import type * as Whop from "../index.js"; export interface PaymentMethodDisplay { /** Present when the category is `bank_debit`. Empty until the account is charged. */ bank_debit?: Whop.PaymentMethodDisplayPreview | undefined; /** Details of the card, when the category is `card`. */ card?: Whop.PaymentMethodDisplayPreview | undefined; /** The family the type belongs to. */ category: PaymentMethodDisplay.Category; /** Human-readable label for the method, e.g. `Visa •••• 4242`. */ display_name: string; /** The saved payment method this preview came from, or `null` when the buyer supplied a new one. */ id: string | null; /** Details of the stored card, when the category is `saved`. Absent for a balance. */ saved?: Whop.PaymentMethodDisplayPreview | undefined; /** The payment method type, e.g. `card`, `apple_pay`, `klarna`. */ type: string; /** Details of the network token the wallet supplied, when the category is `wallet`. */ wallet?: Whop.PaymentMethodDisplayPreview | undefined; } export declare namespace PaymentMethodDisplay { /** The family the type belongs to. */ const Category: { readonly Card: "card"; readonly Wallet: "wallet"; readonly BankDebit: "bank_debit"; readonly BankTransfer: "bank_transfer"; readonly Voucher: "voucher"; readonly Redirect: "redirect"; readonly Crypto: "crypto"; readonly Balance: "balance"; readonly InAppPurchase: "in_app_purchase"; readonly CardPresent: "card_present"; readonly Saved: "saved"; }; type Category = (typeof Category)[keyof typeof Category]; }