Read-only log of every card network event — authorization requests,
authorization holds, captures/clearings, reversals, and declines (with a
decline reason). Each transaction's full lifecycle on the card network is
visible here, complementing the higher-level TreasuryPrime.Transaction
record on the account ledger.
This is also the JSON shape POSTed to your
TreasuryPrime.CardAuthLoopEndpoint for real-time authorization
decisions.
Summary
Types
@type t() :: %TreasuryPrime.CardEvent{ account_id: String.t() | nil, amount: String.t() | nil, card_id: String.t() | nil, created_at: String.t() | nil, decline_reason: String.t() | nil, id: String.t() | nil, merchant: map() | nil, network: String.t() | nil, type: String.t() | nil, updated_at: String.t() | nil }
Functions
@spec get(TreasuryPrime.Client.t(), String.t()) :: {:ok, t()} | {:error, TreasuryPrime.Error.t()}
Fetches a single card event by id.
@spec get!(TreasuryPrime.Client.t(), String.t()) :: t()
@spec list(TreasuryPrime.Client.t(), map()) :: {:ok, TreasuryPrime.Page.t()} | {:error, TreasuryPrime.Error.t()}
Lists card events.
Filterable params
card_id, account_id, type.
@spec list!(TreasuryPrime.Client.t(), map()) :: TreasuryPrime.Page.t()