Struct stripe::SubscriptionParams[][src]

pub struct SubscriptionParams<'a> {
    pub customer: Option<&'a str>,
    pub application_fee_percent: Option<f64>,
    pub coupon: Option<&'a str>,
    pub items: Option<Vec<ItemParams<'a>>>,
    pub metadata: Option<Metadata>,
    pub plan: Option<&'a str>,
    pub prorate: Option<bool>,
    pub proration_date: Option<Timestamp>,
    pub quantity: Option<u64>,
    pub source: Option<&'a str>,
    pub tax_percent: Option<f64>,
    pub trial_end: Option<TrialEnd<'a>>,
    pub trial_period_days: Option<u64>,
}

The set of parameters that can be used when creating or updating a subscription.

For more details see https://stripe.com/docs/api#create_subscription and https://stripe.com/docs/api#update_subscription.

Fields

Trait Implementations

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

Returns the "default value" for a type. Read more

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> Send for SubscriptionParams<'a>

impl<'a> Sync for SubscriptionParams<'a>