pub struct TransactionPriceCreateBase {
pub description: String,
pub name: Option<String>,
pub billing_cycle: Option<Duration>,
pub trial_period: Option<Duration>,
pub tax_mode: TaxMode,
pub unit_price: Money,
pub unit_price_overrides: Vec<UnitPriceOverride>,
pub quantity: PriceQuantity,
pub custom_data: Option<Value>,
}Expand description
Represents a price entity.
Fields§
§description: StringInternal description for this price, not shown to customers. Typically notes for your team.
name: Option<String>Name of this price, shown to customers at checkout and on invoices. Typically describes how often the related product bills.
billing_cycle: Option<Duration>How often this price should be charged. null if price is non-recurring (one-time).
trial_period: Option<Duration>Trial period for the product related to this price. The billing cycle begins once the trial period is over. null for no trial period. Requires billing_cycle.
tax_mode: TaxModeHow tax is calculated for this price.
unit_price: MoneyA base representation of monetary value unformatted in the lowest denomination with currency code.
unit_price_overrides: Vec<UnitPriceOverride>List of unit price overrides. Use to override the base price with a custom price and currency for a country or group of countries.
quantity: PriceQuantity§custom_data: Option<Value>Your own structured key-value data.
Trait Implementations§
Source§impl Clone for TransactionPriceCreateBase
impl Clone for TransactionPriceCreateBase
Source§fn clone(&self) -> TransactionPriceCreateBase
fn clone(&self) -> TransactionPriceCreateBase
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more