pub struct TransactionPriceCreateWithProductId {
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>,
pub product_id: ProductID,
}
Fields§
§description: String
Internal 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: TaxMode
How tax is calculated for this price.
unit_price: Money
A 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.
product_id: ProductID
Paddle ID for the product that this price is for, prefixed with pro_
.
Trait Implementations§
Source§impl Clone for TransactionPriceCreateWithProductId
impl Clone for TransactionPriceCreateWithProductId
Source§fn clone(&self) -> TransactionPriceCreateWithProductId
fn clone(&self) -> TransactionPriceCreateWithProductId
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more