TaxCalculation constructor
const
TaxCalculation({
- required int amountTotal,
- required String currency,
- String? customer,
- required TaxProductResourceCustomerDetails customerDetails,
- DateTime? expiresAt,
- String? id,
- TaxCalculationLineItems? lineItems,
- required bool livemode,
- TaxCalculationShippingCost? shippingCost,
- required int taxAmountExclusive,
- required int taxAmountInclusive,
- required List<
TaxProductResourceTaxBreakdown> taxBreakdown, - 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,
});