TaxCalculation class final
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)
- Implemented types
Constructors
-
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
const
- TaxCalculation.fromJson(Object? json)
-
factory
Properties
- amountTotal → int
-
final
- currency → String
-
final
- customer → String?
-
final
- customerDetails → TaxProductResourceCustomerDetails
-
final
- expiresAt → DateTime?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
final
- lineItems → TaxCalculationLineItems?
-
TaxProductResourceTaxCalculationLineItemList
final
- livemode → bool
-
final
- object → String
-
The resource's type.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shippingCost → TaxCalculationShippingCost?
-
The shipping cost details for the calculation.
final
- taxAmountExclusive → int
-
final
- taxAmountInclusive → int
-
final
-
taxBreakdown
→ List<
TaxProductResourceTaxBreakdown> -
final
- taxDate → DateTime
-
final
Methods
-
encodeWith<
V> (Encoder< V> encoder) → V -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
encode<
V> (TaxCalculation instance, Encoder< V> encoder) → V