pub struct TaxTransactionLineItem {
pub amount: i64,
pub amount_tax: i64,
pub id: TaxTransactionLineItemId,
pub livemode: bool,
pub metadata: Option<HashMap<String, String>>,
pub product: Option<String>,
pub quantity: u64,
pub reference: String,
pub reversal: Option<TaxProductResourceTaxTransactionLineItemResourceReversal>,
pub tax_behavior: TaxTransactionLineItemTaxBehavior,
pub tax_code: String,
pub type_: TaxTransactionLineItemType,
}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: TaxTransactionLineItemIdUnique 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 in the transaction.
reversal: Option<TaxProductResourceTaxTransactionLineItemResourceReversal>If type=reversal, contains information about what was reversed.
tax_behavior: TaxTransactionLineItemTaxBehaviorSpecifies whether the amount includes taxes.
If tax_behavior=inclusive, then the amount includes taxes.
tax_code: StringThe tax code ID used for this resource.
type_: TaxTransactionLineItemTypeIf reversal, this line item reverses an earlier transaction.
Trait Implementations§
Source§impl Clone for TaxTransactionLineItem
impl Clone for TaxTransactionLineItem
Source§fn clone(&self) -> TaxTransactionLineItem
fn clone(&self) -> TaxTransactionLineItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more