Struct stripe::UpdateSubscriptionItems
source · pub struct UpdateSubscriptionItems {
pub billing_thresholds: Option<SubscriptionItemBillingThresholds>,
pub clear_usage: Option<bool>,
pub deleted: Option<bool>,
pub id: Option<String>,
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<SubscriptionItemBillingThresholds>
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.
clear_usage: Option<bool>
Delete all usage for a given subscription item.
Allowed only when deleted
is set to true
and the current plan’s usage_type
is metered
.
deleted: Option<bool>
A flag that, if set to true
, will delete the specified item.
id: Option<String>
Subscription item to update.
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.
When changing a subscription item’s price, quantity
is set to 1 unless a quantity
parameter is provided.
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.
Trait Implementations§
source§impl Clone for UpdateSubscriptionItems
impl Clone for UpdateSubscriptionItems
source§fn clone(&self) -> UpdateSubscriptionItems
fn clone(&self) -> UpdateSubscriptionItems
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more