pub struct SubscriptionChargeCreateWithPricePrice {
pub product_id: ProductID,
pub description: String,
pub name: Option<String>,
pub tax_mode: TaxMode,
pub unit_price: Money,
pub unit_price_overrides: Vec<UnitPriceOverride>,
pub quantity: PriceQuantity,
pub custom_data: Option<Value>,
}
Expand description
Price object for a non-catalog item to bill for. Include a product_id
to relate this non-catalog price to an existing catalog price.
Fields§
§product_id: ProductID
Unique Paddle ID for this product, prefixed with pro_
.
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.
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.
Trait Implementations§
Source§impl Clone for SubscriptionChargeCreateWithPricePrice
impl Clone for SubscriptionChargeCreateWithPricePrice
Source§fn clone(&self) -> SubscriptionChargeCreateWithPricePrice
fn clone(&self) -> SubscriptionChargeCreateWithPricePrice
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<'de> Deserialize<'de> for SubscriptionChargeCreateWithPricePrice
impl<'de> Deserialize<'de> for SubscriptionChargeCreateWithPricePrice
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SubscriptionChargeCreateWithPricePrice
impl RefUnwindSafe for SubscriptionChargeCreateWithPricePrice
impl Send for SubscriptionChargeCreateWithPricePrice
impl Sync for SubscriptionChargeCreateWithPricePrice
impl Unpin for SubscriptionChargeCreateWithPricePrice
impl UnwindSafe for SubscriptionChargeCreateWithPricePrice
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