pub struct SubscriptionScheduleAddInvoiceItem {
pub discounts: Vec<DiscountsResourceStackableDiscount>,
pub price: Expandable<Price>,
pub quantity: Option<u64>,
pub tax_rates: Option<Vec<TaxRate>>,
}
Expand description
An Add Invoice Item describes the prices and quantities that will be added as pending invoice items when entering a phase.
Fields§
§discounts: Vec<DiscountsResourceStackableDiscount>
The stackable discounts that will be applied to the item.
price: Expandable<Price>
ID of the price used to generate the invoice item.
quantity: Option<u64>
The quantity of the invoice item.
tax_rates: Option<Vec<TaxRate>>
The tax rates which apply to the item. When set, the default_tax_rates
do not apply to this item.
Trait Implementations§
Source§impl Clone for SubscriptionScheduleAddInvoiceItem
impl Clone for SubscriptionScheduleAddInvoiceItem
Source§fn clone(&self) -> SubscriptionScheduleAddInvoiceItem
fn clone(&self) -> SubscriptionScheduleAddInvoiceItem
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 moreAuto Trait Implementations§
impl Freeze for SubscriptionScheduleAddInvoiceItem
impl RefUnwindSafe for SubscriptionScheduleAddInvoiceItem
impl Send for SubscriptionScheduleAddInvoiceItem
impl Sync for SubscriptionScheduleAddInvoiceItem
impl Unpin for SubscriptionScheduleAddInvoiceItem
impl UnwindSafe for SubscriptionScheduleAddInvoiceItem
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