pub struct CreateSubscriptionAddInvoiceItems {
pub discounts: Option<Vec<DiscountsDataParam>>,
pub metadata: Option<HashMap<String, String>>,
pub period: Option<CreateSubscriptionAddInvoiceItemsPeriod>,
pub price: Option<String>,
pub price_data: Option<CreateSubscriptionAddInvoiceItemsPriceData>,
pub quantity: Option<u64>,
pub tax_rates: Option<Vec<String>>,
}
Expand description
A list of prices and quantities that will generate invoice items appended to the next invoice for this subscription. You may pass up to 20 items.
Fields§
§discounts: Option<Vec<DiscountsDataParam>>
The coupons to redeem into discounts for the item.
metadata: Option<HashMap<String, String>>
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
.
period: Option<CreateSubscriptionAddInvoiceItemsPeriod>
The period associated with this invoice item.
If not set, period.start.type
defaults to max_item_period_start
and period.end.type
defaults to min_item_period_end
.
price: Option<String>
The ID of the price object. One of price
or price_data
is required.
price_data: Option<CreateSubscriptionAddInvoiceItemsPriceData>
Data used to generate a new Price object inline.
One of price
or price_data
is required.
quantity: Option<u64>
Quantity for this item. Defaults to 1.
tax_rates: Option<Vec<String>>
The tax rates which apply to the item. When set, the default_tax_rates
do not apply to this item.
Implementations§
Trait Implementations§
Source§impl Clone for CreateSubscriptionAddInvoiceItems
impl Clone for CreateSubscriptionAddInvoiceItems
Source§fn clone(&self) -> CreateSubscriptionAddInvoiceItems
fn clone(&self) -> CreateSubscriptionAddInvoiceItems
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more