[][src]Struct stripe::UpdateSubscriptionItem

pub struct UpdateSubscriptionItem<'a> {
    pub billing_thresholds: Option<SubscriptionItemBillingThresholds>,
    pub expand: &'a [&'a str],
    pub metadata: Option<Metadata>,
    pub plan: Option<PlanId>,
    pub prorate: Option<bool>,
    pub proration_date: Option<Timestamp>,
    pub quantity: Option<u64>,
    pub tax_rates: Option<Vec<String>>,
}

The parameters for SubscriptionItem::update.

Fields

billing_thresholds: Option<SubscriptionItemBillingThresholds>

Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.

expand: &'a [&'a str]

Specifies which fields in the response should be expanded.

metadata: Option<Metadata>

Set of key-value pairs that you can attach to an object.

This can be useful for storing additional information about the object in a structured format.

plan: Option<PlanId>

The identifier of the new plan for this subscription item.

prorate: Option<bool>

Flag indicating whether to prorate switching plans during a billing cycle.

proration_date: Option<Timestamp>

If set, the proration will be calculated as though the subscription was updated at the given time.

This can be used to apply the same proration that was previewed with the upcoming invoice endpoint.

quantity: Option<u64>

The quantity you'd like to apply to the subscription item you're creating.

tax_rates: Option<Vec<String>>

The tax rates which apply to this subscription_item.

When set, the default_tax_rates on the subscription do not apply to this subscription_item.

Methods

impl<'a> UpdateSubscriptionItem<'a>[src]

pub fn new() -> Self[src]

Trait Implementations

impl<'a> Default for UpdateSubscriptionItem<'a>[src]

impl<'a> Clone for UpdateSubscriptionItem<'a>[src]

impl<'a> Debug for UpdateSubscriptionItem<'a>[src]

impl<'a> Serialize for UpdateSubscriptionItem<'a>[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Same<T> for T

type Output = T

Should always be Self