pub struct CreateProductDefaultPriceDataCurrencyOptionsTiers {
pub flat_amount: Option<i64>,
pub flat_amount_decimal: Option<String>,
pub unit_amount: Option<i64>,
pub unit_amount_decimal: Option<String>,
pub up_to: Option<UpTo>,
}
Fields§
§flat_amount: Option<i64>
The flat billing amount for an entire tier, regardless of the number of units in the tier.
flat_amount_decimal: Option<String>
Same as flat_amount
, but accepts a decimal value representing an integer in the minor units of the currency.
Only one of flat_amount
and flat_amount_decimal
can be set.
unit_amount: Option<i64>
The per unit billing amount for each individual unit for which this tier applies.
unit_amount_decimal: Option<String>
Same as unit_amount
, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places.
Only one of unit_amount
and unit_amount_decimal
can be set.
up_to: Option<UpTo>
Specifies the upper bound of this tier.
The lower bound of a tier is the upper bound of the previous tier adding one.
Use inf
to define a fallback tier.
Trait Implementations§
source§impl Clone for CreateProductDefaultPriceDataCurrencyOptionsTiers
impl Clone for CreateProductDefaultPriceDataCurrencyOptionsTiers
source§fn clone(&self) -> CreateProductDefaultPriceDataCurrencyOptionsTiers
fn clone(&self) -> CreateProductDefaultPriceDataCurrencyOptionsTiers
Returns a copy 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 Default for CreateProductDefaultPriceDataCurrencyOptionsTiers
impl Default for CreateProductDefaultPriceDataCurrencyOptionsTiers
source§fn default() -> CreateProductDefaultPriceDataCurrencyOptionsTiers
fn default() -> CreateProductDefaultPriceDataCurrencyOptionsTiers
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreateProductDefaultPriceDataCurrencyOptionsTiers
impl<'de> Deserialize<'de> for CreateProductDefaultPriceDataCurrencyOptionsTiers
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 CreateProductDefaultPriceDataCurrencyOptionsTiers
impl RefUnwindSafe for CreateProductDefaultPriceDataCurrencyOptionsTiers
impl Send for CreateProductDefaultPriceDataCurrencyOptionsTiers
impl Sync for CreateProductDefaultPriceDataCurrencyOptionsTiers
impl Unpin for CreateProductDefaultPriceDataCurrencyOptionsTiers
impl UnwindSafe for CreateProductDefaultPriceDataCurrencyOptionsTiers
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