pub struct CreatePriceCurrencyOptionsTiers {
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 CreatePriceCurrencyOptionsTiers
impl Clone for CreatePriceCurrencyOptionsTiers
source§fn clone(&self) -> CreatePriceCurrencyOptionsTiers
fn clone(&self) -> CreatePriceCurrencyOptionsTiers
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 CreatePriceCurrencyOptionsTiers
impl Default for CreatePriceCurrencyOptionsTiers
source§fn default() -> CreatePriceCurrencyOptionsTiers
fn default() -> CreatePriceCurrencyOptionsTiers
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreatePriceCurrencyOptionsTiers
impl<'de> Deserialize<'de> for CreatePriceCurrencyOptionsTiers
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 CreatePriceCurrencyOptionsTiers
impl RefUnwindSafe for CreatePriceCurrencyOptionsTiers
impl Send for CreatePriceCurrencyOptionsTiers
impl Sync for CreatePriceCurrencyOptionsTiers
impl Unpin for CreatePriceCurrencyOptionsTiers
impl UnwindSafe for CreatePriceCurrencyOptionsTiers
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)