Struct stripe::SubscriptionsResourcePendingUpdate [−][src]
pub struct SubscriptionsResourcePendingUpdate {
pub billing_cycle_anchor: Option<Box<Timestamp>>,
pub expires_at: Timestamp,
pub subscription_items: Option<Box<Vec<SubscriptionItem>>>,
pub trial_end: Option<Box<Timestamp>>,
pub trial_from_plan: Option<Box<bool>>,
}
Fields
billing_cycle_anchor: Option<Box<Timestamp>>
If the update is applied, determines the date of the first full invoice, and, for plans with month
or year
intervals, the day of the month for subsequent invoices.
expires_at: Timestamp
The point after which the changes reflected by this update will be discarded and no longer applied.
subscription_items: Option<Box<Vec<SubscriptionItem>>>
List of subscription items, each with an attached plan, that will be set if the update is applied.
trial_end: Option<Box<Timestamp>>
Unix timestamp representing the end of the trial period the customer will get before being charged for the first time, if the update is applied.
trial_from_plan: Option<Box<bool>>
Indicates if a plan’s trial_period_days
should be applied to the subscription.
Setting trial_end
per subscription is preferred, and this defaults to false
.
Setting this flag to true
together with trial_end
is not allowed.
See Using trial periods on subscriptions to learn more.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl Send for SubscriptionsResourcePendingUpdate
impl Sync for SubscriptionsResourcePendingUpdate
impl Unpin for SubscriptionsResourcePendingUpdate
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more