pub struct SubscriptionScheduleConfigurationItem {
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§
§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
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl FromValueOpt for SubscriptionScheduleConfigurationItem
impl FromValueOpt for SubscriptionScheduleConfigurationItem
fn from_value(v: Value) -> Option<Self>
Auto Trait Implementations§
impl Freeze for SubscriptionScheduleConfigurationItem
impl RefUnwindSafe for SubscriptionScheduleConfigurationItem
impl Send for SubscriptionScheduleConfigurationItem
impl Sync for SubscriptionScheduleConfigurationItem
impl Unpin for SubscriptionScheduleConfigurationItem
impl UnwindSafe for SubscriptionScheduleConfigurationItem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more