pub struct TaxCalculation {Show 14 fields
pub amount_total: i64,
pub currency: Currency,
pub customer: Option<String>,
pub customer_details: TaxProductResourceCustomerDetails,
pub expires_at: Option<Timestamp>,
pub id: Option<TaxCalculationId>,
pub line_items: Option<List<TaxCalculationLineItem>>,
pub livemode: bool,
pub ship_from_details: Option<TaxProductResourceShipFromDetails>,
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
A Tax Calculation allows you to calculate the tax to collect from your customer.
Related guide: Calculate tax in your custom payment flow
For more details see <https://stripe.com/docs/api/tax/calculations/object>.
Fields§
§amount_total: i64
Total amount after taxes in the smallest currency unit.
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.
id: Option<TaxCalculationId>
Unique identifier for the calculation.
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.
ship_from_details: Option<TaxProductResourceShipFromDetails>
The details of the ship from location, such as the address.
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