Struct stripe::generated::billing::subscription::CreateSubscriptionItems
source · pub struct CreateSubscriptionItems {
pub billing_thresholds: Option<CreateSubscriptionItemsBillingThresholds>,
pub metadata: Option<Metadata>,
pub plan: Option<String>,
pub price: Option<String>,
pub price_data: Option<SubscriptionItemPriceData>,
pub quantity: Option<u64>,
pub tax_rates: Option<Vec<String>>,
}
Fields§
§billing_thresholds: Option<CreateSubscriptionItemsBillingThresholds>
Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.
When updating, pass an empty string to remove previously-defined thresholds.
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.
Individual keys can be unset by posting an empty value to them.
All keys can be unset by posting an empty value to metadata
.
plan: Option<String>
Plan ID for this item, as a string.
price: Option<String>
The ID of the price object.
price_data: Option<SubscriptionItemPriceData>
Data used to generate a new Price object inline.
quantity: Option<u64>
Quantity for this item.
tax_rates: Option<Vec<String>>
A list of Tax Rate ids.
These Tax Rates will override the default_tax_rates
on the Subscription.
When updating, pass an empty string to remove previously-defined tax rates.
Implementations§
Trait Implementations§
source§impl Clone for CreateSubscriptionItems
impl Clone for CreateSubscriptionItems
source§fn clone(&self) -> CreateSubscriptionItems
fn clone(&self) -> CreateSubscriptionItems
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more