import type * as Whop from "../index.js"; /** * A dispute alert represents an early warning notification from a payment processor about a potential dispute or chargeback. */ export interface DisputeAlertLegacy { /** The type of the dispute alert. */ alert_type: Whop.DisputeAlertTypes; /** The alerted amount in the specified currency. */ amount: number; /** Whether this alert incurs a charge. */ charge_for_alert: boolean; /** The time the dispute alert was created. */ created_at: string; /** The three-letter ISO currency code for the alerted amount. */ currency: Whop.Currencies; /** The dispute associated with the dispute alert. */ dispute: DisputeAlertLegacy.Dispute | null; /** The unique identifier of the dispute alert. */ id: string; /** The payment associated with the dispute alert. */ payment: DisputeAlertLegacy.Payment | null; /** The date of the original transaction. */ transaction_date: string | null; } export declare namespace DisputeAlertLegacy { /** * The dispute associated with the dispute alert. */ interface Dispute { /** The disputed amount in the specified currency, formatted as a decimal. */ amount: number; /** The datetime the dispute was created. */ created_at: string | null; /** The three-letter ISO currency code for the disputed amount. */ currency: Whop.Currencies; /** The unique identifier for the dispute. */ id: string; /** A human-readable reason for the dispute. */ reason: string | null; /** The current status of the dispute lifecycle, such as needs_response, under_review, won, or lost. */ status: Whop.DisputeStatuses; } /** * The payment associated with the dispute alert. */ interface Payment { /** The machine-readable reason this charge was created, such as initial subscription purchase, renewal cycle, or one-time payment. */ billing_reason: Whop.BillingReasons | null; /** Card network reported by the processor (e.g., 'visa', 'mastercard', 'amex'). Present only when the payment method type is 'card'. */ card_brand: Whop.CardBrands | null; /** The last four digits of the card used to make this payment. Null if the payment was not made with a card. */ card_last4: string | null; /** The datetime the payment was created. */ created_at: string; /** The three-letter ISO currency code for this payment (e.g., 'usd', 'eur'). */ currency: Whop.Currencies; /** When an alert came in that this transaction will be disputed */ dispute_alerted_at: string | null; /** The unique identifier for the payment. */ id: string; /** The member attached to this payment. */ member: Payment.Member | null; /** The membership attached to this payment. */ membership: Payment.Membership | null; /** The time at which this payment was successfully collected. Null if the payment has not yet succeeded. As a Unix timestamp. */ paid_at: string | null; /** The type of payment instrument used for this payment (e.g., card, Cash App, iDEAL, Klarna, crypto). Null when the processor does not supply a type. */ payment_method_type: Whop.PaymentMethodTypes | null; /** The subtotal to show to the creator (excluding buyer fees). */ subtotal: number | null; /** The total to show to the creator (excluding buyer fees). */ total: number | null; /** The total in USD to show to the creator (excluding buyer fees). */ usd_total: number | null; /** The user that made this payment. */ user: Payment.User | null; } namespace Payment { /** * The member attached to this payment. */ interface Member { /** The unique identifier for the company member. */ id: string; /** The phone number for the member, if available. */ phone: string | null; } /** * The membership attached to this payment. */ interface Membership { /** The unique identifier for the membership. */ id: string; /** The state of the membership. */ status: Whop.MembershipStatus; } /** * The user that made this payment. */ interface User { /** The user's email address. Requires the member:email:read permission to access. Null if not authorized. */ email: string | null; /** The unique identifier for the user. */ id: string; /** The user's display name shown on their public profile. */ name: string | null; /** The user's unique username shown on their public profile. */ username: string; } } }