Represents a card authorization — a pending card transaction that has been authorized by the card network but not yet settled.
Authorizations are created when a card is used at a merchant. They transition
to a purchaseTransaction on settlement, or are reversed if declined/expired.
Statuses
Authorized— pending settlementCompleted— settled (transaction created)Canceled— authorization voidedDeclined— declined at the network level
Summary
Types
@type t() :: %Unit.Resource.Authorization{ account_id: String.t() | nil, amount: integer(), approved: boolean(), card_id: String.t() | nil, card_verification_data: map() | nil, created_at: DateTime.t() | nil, customer_id: String.t() | nil, digital_wallet: String.t() | nil, id: String.t(), interchange: integer() | nil, merchant: map() | nil, partial_approval_amount: integer() | nil, payment_id: String.t() | nil, payment_method: String.t() | nil, recurring: boolean(), status: String.t() | nil, tags: map(), type: String.t(), updated_at: DateTime.t() | nil }