TaxProductResourceTaxAssociation
A Tax Association exposes the Tax Transactions that Stripe attempted to create on your behalf based on the PaymentIntent input
Summary
Types
@type t() :: %Stripe.Resources.Tax.Association{ calculation: String.t(), id: String.t(), object: String.t(), payment_intent: String.t(), tax_transaction_attempts: [tax_transaction_attempts()] }
calculation- The Tax Calculation that was included in PaymentIntent. Max length: 5000.id- Unique identifier for the object. Max length: 5000.object- String representing the object's type. Objects of the same type share the same value. Possible values:tax.association.payment_intent- The PaymentIntent that this Tax Association is tracking. Max length: 5000.tax_transaction_attempts- Information about the tax transactions linked to this payment intent Nullable. Expandable.
@type tax_transaction_attempts() :: %{ optional(:committed) => tax_transaction_attempts_committed() | nil, optional(:errored) => tax_transaction_attempts_errored() | nil, optional(:source) => String.t() | nil, optional(:status) => String.t() | nil, optional(String.t()) => term() }
committederroredsource- The source of the tax transaction attempt. This is either a refund or a payment intent. Max length: 5000.status- The status of the transaction attempt. This can beerroredorcommitted. Max length: 5000.
@type tax_transaction_attempts_committed() :: %{ optional(:transaction) => String.t() | nil, optional(String.t()) => term() }
transaction- The Tax Transaction Max length: 5000.
@type tax_transaction_attempts_errored() :: %{ optional(:reason) => String.t() | nil, optional(String.t()) => term() }
reason- Details on why we couldn't commit the tax transaction. Possible values:another_payment_associated_with_calculation,calculation_expired,currency_mismatch,original_transaction_voided,unique_reference_violation.