TaxCalculation constructor

const TaxCalculation({
  1. required int amountTotal,
  2. required String currency,
  3. String? customer,
  4. required TaxProductResourceCustomerDetails customerDetails,
  5. DateTime? expiresAt,
  6. String? id,
  7. TaxCalculationLineItems? lineItems,
  8. required bool livemode,
  9. TaxCalculationShippingCost? shippingCost,
  10. required int taxAmountExclusive,
  11. required int taxAmountInclusive,
  12. required List<TaxProductResourceTaxBreakdown> taxBreakdown,
  13. required DateTime taxDate,
})

TaxProductResourceTaxCalculation

A Tax Calculation allows you to calculate the tax to collect from your customer. Related guide: [Calculate tax in your custom payment flow](https://stripe.com/docs/tax/custom)

Implementation

const TaxCalculation({
  required this.amountTotal,
  required this.currency,
  this.customer,
  required this.customerDetails,
  this.expiresAt,
  this.id,
  this.lineItems,
  required this.livemode,
  this.shippingCost,
  required this.taxAmountExclusive,
  required this.taxAmountInclusive,
  required this.taxBreakdown,
  required this.taxDate,
});