pub struct TaxCalculationLineItem {
pub amount: i64,
pub amount_tax: i64,
pub id: TaxCalculationLineItemId,
pub livemode: bool,
pub product: Option<String>,
pub quantity: u64,
pub reference: String,
pub tax_behavior: TaxCalculationLineItemTaxBehavior,
pub tax_breakdown: Option<Vec<TaxProductResourceLineItemTaxBreakdown>>,
pub tax_code: String,
}
Fields§
§amount: i64
The line item amount in the smallest currency unit.
If tax_behavior=inclusive
, then this amount includes taxes.
Otherwise, taxes were calculated on top of this amount.
amount_tax: i64
The amount of tax calculated for this line item, in the smallest currency unit.
id: TaxCalculationLineItemId
Unique identifier for the object.
livemode: bool
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
product: Option<String>
The ID of an existing Product.
quantity: u64
The number of units of the item being purchased. For reversals, this is the quantity reversed.
reference: String
A custom identifier for this line item.
tax_behavior: TaxCalculationLineItemTaxBehavior
Specifies whether the amount
includes taxes.
If tax_behavior=inclusive
, then the amount includes taxes.
tax_breakdown: Option<Vec<TaxProductResourceLineItemTaxBreakdown>>
Detailed account of taxes relevant to this line item.
tax_code: String
The tax code ID used for this resource.
Trait Implementations§
Source§impl Clone for TaxCalculationLineItem
impl Clone for TaxCalculationLineItem
Source§fn clone(&self) -> TaxCalculationLineItem
fn clone(&self) -> TaxCalculationLineItem
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 TaxCalculationLineItem
impl Debug for TaxCalculationLineItem
Source§impl Deserialize for TaxCalculationLineItem
impl Deserialize for TaxCalculationLineItem
Source§impl FromValueOpt for TaxCalculationLineItem
impl FromValueOpt for TaxCalculationLineItem
fn from_value(v: Value) -> Option<Self>
Source§impl Object for TaxCalculationLineItem
impl Object for TaxCalculationLineItem
Auto Trait Implementations§
impl Freeze for TaxCalculationLineItem
impl RefUnwindSafe for TaxCalculationLineItem
impl Send for TaxCalculationLineItem
impl Sync for TaxCalculationLineItem
impl Unpin for TaxCalculationLineItem
impl UnwindSafe for TaxCalculationLineItem
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