Struct stripe::generated::tax_calculation::tax_calculation::TaxCalculation
source · pub struct TaxCalculation {Show 13 fields
pub id: TaxCalculationId,
pub amount_total: i64,
pub currency: Currency,
pub customer: Option<String>,
pub customer_details: TaxProductResourceCustomerDetails,
pub expires_at: Option<Timestamp>,
pub line_items: Option<List<TaxCalculationLineItem>>,
pub livemode: bool,
pub shipping_cost: Option<TaxProductResourceTaxCalculationShippingCost>,
pub tax_amount_exclusive: i64,
pub tax_amount_inclusive: i64,
pub tax_breakdown: Vec<TaxProductResourceTaxBreakdown>,
pub tax_date: Timestamp,
}
Expand description
The resource representing a Stripe “TaxProductResourceTaxCalculation”.
For more details see https://stripe.com/docs/api/tax/calculations/object
Fields§
§id: TaxCalculationId
Unique identifier for the calculation.
amount_total: i64
Total after taxes.
currency: Currency
Three-letter ISO currency code, in lowercase.
Must be a supported currency.
customer: Option<String>
The ID of an existing Customer used for the resource.
customer_details: TaxProductResourceCustomerDetails
§expires_at: Option<Timestamp>
Timestamp of date at which the tax calculation will expire.
line_items: Option<List<TaxCalculationLineItem>>
The list of items the customer is purchasing.
livemode: bool
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
shipping_cost: Option<TaxProductResourceTaxCalculationShippingCost>
The shipping cost details for the calculation.
tax_amount_exclusive: i64
The amount of tax to be collected on top of the line item prices.
tax_amount_inclusive: i64
The amount of tax already included in the line item prices.
tax_breakdown: Vec<TaxProductResourceTaxBreakdown>
Breakdown of individual tax amounts that add up to the total.
tax_date: Timestamp
Timestamp of date at which the tax rules and rates in effect applies for the calculation.
Trait Implementations§
source§impl Clone for TaxCalculation
impl Clone for TaxCalculation
source§fn clone(&self) -> TaxCalculation
fn clone(&self) -> TaxCalculation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more