pub struct SubscriptionScheduleConfigurationItem {
pub billing_thresholds: Option<SubscriptionItemBillingThresholds>,
pub discounts: Vec<DiscountsResourceStackableDiscount>,
pub metadata: Option<HashMap<String, String>>,
pub plan: Expandable<Plan>,
pub price: Expandable<Price>,
pub quantity: Option<u64>,
pub tax_rates: Option<Vec<TaxRate>>,
}
Expand description
A phase item describes the price and quantity of a phase.
Fields§
§billing_thresholds: Option<SubscriptionItemBillingThresholds>
Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period.
discounts: Vec<DiscountsResourceStackableDiscount>
The discounts applied to the subscription item.
Subscription item discounts are applied before subscription discounts.
Use expand[]=discounts
to expand each discount.
metadata: Option<HashMap<String, String>>
Set of key-value pairs that you can attach to an item.
Metadata on this item will update the underlying subscription item’s metadata
when the phase is entered.
plan: Expandable<Plan>
ID of the plan to which the customer should be subscribed.
price: Expandable<Price>
ID of the price to which the customer should be subscribed.
quantity: Option<u64>
Quantity of the plan to which the customer should be subscribed.
tax_rates: Option<Vec<TaxRate>>
The tax rates which apply to this phase_item
.
When set, the default_tax_rates
on the phase do not apply to this phase_item
.
Trait Implementations§
Source§impl Clone for SubscriptionScheduleConfigurationItem
impl Clone for SubscriptionScheduleConfigurationItem
Source§fn clone(&self) -> SubscriptionScheduleConfigurationItem
fn clone(&self) -> SubscriptionScheduleConfigurationItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more