pub struct TaxCalculationLineItem {
pub amount: i64,
pub amount_tax: i64,
pub id: TaxCalculationLineItemId,
pub livemode: bool,
pub metadata: Option<HashMap<String, String>>,
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: i64The 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: i64The amount of tax calculated for this line item, in the smallest currency unit.
id: TaxCalculationLineItemIdUnique identifier for the object.
livemode: boolHas the value true if the object exists in live mode or the value false if the object exists in test mode.
metadata: Option<HashMap<String, String>>Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
product: Option<String>The ID of an existing Product.
quantity: u64The number of units of the item being purchased. For reversals, this is the quantity reversed.
reference: StringA custom identifier for this line item.
tax_behavior: TaxCalculationLineItemTaxBehaviorSpecifies 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: StringThe 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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more