pub struct TaxRateFlatAmount {
pub amount: i64,
pub currency: Currency,
}
Expand description
The amount of the tax rate when the rate_type`` is
flat_amount. Tax rates with
rate_type
percentagecan vary based on the transaction, resulting in this field being
null`.
This field exposes the amount and currency of the flat tax rate.
Fields§
§amount: i64
Amount of the tax when the rate_type
is flat_amount
.
This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency).
The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
currency: Currency
Three-letter ISO currency code, in lowercase.
Trait Implementations§
Source§impl Clone for TaxRateFlatAmount
impl Clone for TaxRateFlatAmount
Source§fn clone(&self) -> TaxRateFlatAmount
fn clone(&self) -> TaxRateFlatAmount
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 Debug for TaxRateFlatAmount
impl Debug for TaxRateFlatAmount
Source§impl Deserialize for TaxRateFlatAmount
impl Deserialize for TaxRateFlatAmount
Source§impl FromValueOpt for TaxRateFlatAmount
impl FromValueOpt for TaxRateFlatAmount
fn from_value(v: Value) -> Option<Self>
Auto Trait Implementations§
impl Freeze for TaxRateFlatAmount
impl RefUnwindSafe for TaxRateFlatAmount
impl Send for TaxRateFlatAmount
impl Sync for TaxRateFlatAmount
impl Unpin for TaxRateFlatAmount
impl UnwindSafe for TaxRateFlatAmount
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