TaxTransaction class final

TaxProductResourceTaxTransaction

A Tax Transaction records the tax collected from or refunded to your customer. Related guide: [Calculate tax in your custom payment flow](https://stripe.com/docs/tax/custom#tax-transaction)

Implemented types

Constructors

TaxTransaction({required DateTime created, required String currency, String? customer, required TaxProductResourceCustomerDetails customerDetails, required String id, TaxTransactionLineItems? lineItems, required bool livemode, Map<String, String>? metadata, required String reference, TaxTransactionReversal? reversal, TaxCalculationShippingCost? shippingCost, required DateTime taxDate, required TaxTransactionType type})
TaxProductResourceTaxTransaction
const
TaxTransaction.fromJson(Object? json)
factory

Properties

created DateTime
final
currency String
final
customer String?
final
customerDetails TaxProductResourceCustomerDetails
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
lineItems TaxTransactionLineItems?
TaxProductResourceTaxTransactionLineItemList
final
livemode bool
final
metadata Map<String, String>?
final
object String
The resource's type.
final
reference String
final
reversal TaxTransactionReversal?
If `type=reversal`, contains information about what was reversed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shippingCost TaxCalculationShippingCost?
final
taxDate DateTime
final
type TaxTransactionType
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>(TaxTransaction instance, Encoder<V> encoder) → V