pub struct Subscription {Show 18 fields
pub canceled_at: Option<i64>,
pub created: i64,
pub current_period_end: i64,
pub current_period_start: i64,
pub customer: String,
pub id: SubscriptionId,
pub livemode: bool,
pub metadata: Option<Value>,
pub next_cycle_plan: Option<SubscriptionNextCyclePlan>,
pub object: String,
pub paused_at: Option<i64>,
pub plan: Plan,
pub prorate: bool,
pub resumed_at: Option<i64>,
pub start: i64,
pub status: SubscriptionStatus,
pub trial_end: Option<i64>,
pub trial_start: Option<i64>,
}
Expand description
subscriptionオブジェクト
For more details see <https://pay.jp/docs/api>.
Fields§
§canceled_at: Option<i64>
定期課金がキャンセル状態になった時のタイムスタンプ
created: i64
定期課金作成時のタイムスタンプ
current_period_end: i64
現在の購読期間終了時のタイムスタンプ
current_period_start: i64
現在の購読期間開始時のタイムスタンプ
customer: String
定期課金を購読している顧客ID
id: SubscriptionId
sub_
で始まる一意なオブジェクトを示す文字列
livemode: bool
本番環境かどうか
metadata: Option<Value>
キーバリューの任意データ
next_cycle_plan: Option<SubscriptionNextCyclePlan>
§object: String
“subscription“の固定文字列
paused_at: Option<i64>
定期課金が停止状態になった時のタイムスタンプ
plan: Plan
§prorate: bool
日割り課金が有効かどうか
resumed_at: Option<i64>
停止またはキャンセル状態の定期課金が有効状態になった時のタイムスタンプ.
start: i64
定期課金開始時のタイムスタンプ
status: SubscriptionStatus
trial
, active
, canceled
または paused
のいずれかの値。
trial_end: Option<i64>
トライアル期間終了時のタイムスタンプ
trial_start: Option<i64>
トライアル期間開始時のタイムスタンプ
Trait Implementations§
Source§impl Clone for Subscription
impl Clone for Subscription
Source§fn clone(&self) -> Subscription
fn clone(&self) -> Subscription
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Subscription
impl Debug for Subscription
Source§impl Deserialize for Subscription
impl Deserialize for Subscription
Source§impl FromValueOpt for Subscription
impl FromValueOpt for Subscription
fn from_value(v: Value) -> Option<Self>
Source§impl Object for Subscription
impl Object for Subscription
Source§impl ObjectDeser for Subscription
impl ObjectDeser for Subscription
Auto Trait Implementations§
impl Freeze for Subscription
impl RefUnwindSafe for Subscription
impl Send for Subscription
impl Sync for Subscription
impl Unpin for Subscription
impl UnwindSafe for Subscription
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more