export interface CardTransaction { /** The card this transaction was charged to, prefixed `icrd_`. */ card_id: string; /** The user the card is assigned to, prefixed `user_`. Null when the card has no assigned cardholder. */ cardholder_id: string | null; /** Cashback earned on this transaction as a USD amount. Zero for declined or ineligible transactions, and null when cashback has not been computed yet. */ cashback_usd_amount: number | null; /** When the transaction was authorized, as an ISO 8601 timestamp. */ created_at: string; /** ISO 4217 currency code the merchant charged in. */ currency: string | null; /** Why the transaction was declined. Null unless `status` is `declined`. */ declined_reason: string | null; /** Card transaction ID, prefixed `citx_`. */ id: string; /** True when the merchant is outside the card's home country. */ international: boolean; /** Amount the merchant charged in their own currency. Pair with `currency`. */ local_amount: number | null; /** Merchant category label, enriched where available and otherwise as the card network reported it. */ merchant_category: string | null; /** Four-digit ISO 18245 merchant category code (MCC). */ merchant_category_code: string | null; /** URL of the enriched merchant logo. Null when no logo was matched. */ merchant_icon_url: string | null; /** Merchant name, enriched where available and otherwise as the card network reported it. */ merchant_name: string | null; /** When the card network settled the transaction, as an ISO 8601 timestamp. Null until it settles. */ posted_at: string | null; /** Current status of the transaction. */ status: CardTransaction.Status; /** The kind of card transaction. Always `spend` today. */ transaction_type: CardTransaction.TransactionType; /** Amount charged in USD. Negative when the merchant refunded the card. */ usd_amount: number | null; } export declare namespace CardTransaction { /** Current status of the transaction. */ const Status: { readonly Pending: "pending"; readonly Completed: "completed"; readonly Reversed: "reversed"; readonly Declined: "declined"; }; type Status = (typeof Status)[keyof typeof Status]; /** The kind of card transaction. Always `spend` today. */ const TransactionType: { readonly Spend: "spend"; }; type TransactionType = (typeof TransactionType)[keyof typeof TransactionType]; }