Struct stripe::generated::tax_calculation::tax_calculation_line_item::TaxCalculationLineItem
source · pub struct TaxCalculationLineItem {
pub id: TaxCalculationLineItemId,
pub amount: i64,
pub amount_tax: i64,
pub livemode: bool,
pub product: Option<String>,
pub quantity: u64,
pub reference: Option<String>,
pub tax_behavior: TaxCalculationLineItemTaxBehavior,
pub tax_breakdown: Option<Vec<TaxProductResourceLineItemTaxBreakdown>>,
pub tax_code: String,
}
Expand description
The resource representing a Stripe “TaxProductResourceTaxCalculationLineItem”.
Fields§
§id: TaxCalculationLineItemId
Unique identifier for the object.
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.
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: Option<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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more