pub struct UpdatePriceCurrencyOptionsTiers {
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 UpdatePriceCurrencyOptionsTiers
impl Clone for UpdatePriceCurrencyOptionsTiers
source§fn clone(&self) -> UpdatePriceCurrencyOptionsTiers
fn clone(&self) -> UpdatePriceCurrencyOptionsTiers
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 UpdatePriceCurrencyOptionsTiers
impl Default for UpdatePriceCurrencyOptionsTiers
source§fn default() -> UpdatePriceCurrencyOptionsTiers
fn default() -> UpdatePriceCurrencyOptionsTiers
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UpdatePriceCurrencyOptionsTiers
impl<'de> Deserialize<'de> for UpdatePriceCurrencyOptionsTiers
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 UpdatePriceCurrencyOptionsTiers
impl RefUnwindSafe for UpdatePriceCurrencyOptionsTiers
impl Send for UpdatePriceCurrencyOptionsTiers
impl Sync for UpdatePriceCurrencyOptionsTiers
impl Unpin for UpdatePriceCurrencyOptionsTiers
impl UnwindSafe for UpdatePriceCurrencyOptionsTiers
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
)