Struct stripe::generated::billing::subscription_schedule::CreateSubscriptionSchedulePhasesItems
source · pub struct CreateSubscriptionSchedulePhasesItems {
pub billing_thresholds: Option<CreateSubscriptionSchedulePhasesItemsBillingThresholds>,
pub metadata: Option<Metadata>,
pub plan: Option<String>,
pub price: Option<String>,
pub price_data: Option<CreateSubscriptionSchedulePhasesItemsPriceData>,
pub quantity: Option<u64>,
pub tax_rates: Option<Vec<String>>,
}
Fields§
§billing_thresholds: Option<CreateSubscriptionSchedulePhasesItemsBillingThresholds>
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 a configuration item.
Metadata on a configuration item will update the underlying subscription item’s metadata
when the phase is entered, adding new keys and replacing existing keys.
Individual keys in the subscription item’s metadata
can be unset by posting an empty value to them in the configuration item’s metadata
.
To unset all keys in the subscription item’s metadata
, update the subscription item directly or unset every key individually from the configuration item’s metadata
.
plan: Option<String>
The plan ID to subscribe to.
You may specify the same ID in plan
and price
.
price: Option<String>
The ID of the price object.
price_data: Option<CreateSubscriptionSchedulePhasesItemsPriceData>
Data used to generate a new Price object inline.
quantity: Option<u64>
Quantity for the given price.
Can be set only if the price’s usage_type
is licensed
and not metered
.
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 CreateSubscriptionSchedulePhasesItems
impl Clone for CreateSubscriptionSchedulePhasesItems
source§fn clone(&self) -> CreateSubscriptionSchedulePhasesItems
fn clone(&self) -> CreateSubscriptionSchedulePhasesItems
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more