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: 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: TaxTransactionLineItemId
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.
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: 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 in the transaction.
reversal: Option<TaxProductResourceTaxTransactionLineItemResourceReversal>
If type=reversal
, contains information about what was reversed.
tax_behavior: TaxTransactionLineItemTaxBehavior
Specifies whether the amount
includes taxes.
If tax_behavior=inclusive
, then the amount includes taxes.
tax_code: String
The tax code ID used for this resource.
type_: TaxTransactionLineItemType
If 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