pub struct SubscriptionChargeCreateWithPriceAndProduct {
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>,
pub product: TransactionSubscriptionProductCreate,
}
Expand description
Price object for a non-catalog item to charge for. Include a product
object to create a non-catalog product for this non-catalog price.
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.
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: TransactionSubscriptionProductCreate
Product object for a non-catalog item to charge for.
Trait Implementations§
Source§impl Clone for SubscriptionChargeCreateWithPriceAndProduct
impl Clone for SubscriptionChargeCreateWithPriceAndProduct
Source§fn clone(&self) -> SubscriptionChargeCreateWithPriceAndProduct
fn clone(&self) -> SubscriptionChargeCreateWithPriceAndProduct
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 SubscriptionChargeCreateWithPriceAndProduct
impl<'de> Deserialize<'de> for SubscriptionChargeCreateWithPriceAndProduct
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 SubscriptionChargeCreateWithPriceAndProduct
impl RefUnwindSafe for SubscriptionChargeCreateWithPriceAndProduct
impl Send for SubscriptionChargeCreateWithPriceAndProduct
impl Sync for SubscriptionChargeCreateWithPriceAndProduct
impl Unpin for SubscriptionChargeCreateWithPriceAndProduct
impl UnwindSafe for SubscriptionChargeCreateWithPriceAndProduct
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