import type * as Whop from "../index.mjs"; /** * A resolution center case is a dispute or support case between a user and a company, tracking the issue, status, and outcome. */ export interface ResolutionCenterCaseLegacy { /** The company involved in this resolution case. Null if the company no longer exists. */ company: ResolutionCenterCaseLegacy.Company | null; /** The datetime the resolution was created. */ created_at: string; /** Whether the customer has filed an appeal after the initial resolution decision. */ customer_appealed: boolean; /** The list of actions currently available to the customer. */ customer_response_actions: Whop.ResolutionCenterCaseCustomerResponses[]; /** The deadline by which the next response is required. Null if no deadline is currently active. As a Unix timestamp. */ due_date: string | null; /** The unique identifier for the resolution. */ id: string; /** The category of the dispute. */ issue: Whop.ResolutionCenterCaseIssueTypes; /** The membership record associated with the disputed payment. Null if the membership no longer exists. */ member: ResolutionCenterCaseLegacy.Member | null; /** Whether the merchant has filed an appeal after the initial resolution decision. */ merchant_appealed: boolean; /** The list of actions currently available to the merchant. */ merchant_response_actions: Whop.ResolutionCenterCaseMerchantResponses[]; /** The payment record that is the subject of this resolution case. */ payment: ResolutionCenterCaseLegacy.Payment; /** The list of actions currently available to the Whop platform for moderating this resolution. */ platform_response_actions: Whop.ResolutionCenterCasePlatformResponses[]; /** The most recent 50 messages, actions, and status changes that have occurred during this resolution case. */ resolution_events: ResolutionCenterCaseLegacy.ResolutionEvents.Item[]; /** The current status of the resolution case, indicating which party needs to respond or if the case is closed. */ status: Whop.ResolutionCenterCaseStatuses; /** The datetime the resolution was last updated. */ updated_at: string; /** The customer (buyer) who filed this resolution case. */ user: ResolutionCenterCaseLegacy.User; } export declare namespace ResolutionCenterCaseLegacy { /** * The company involved in this resolution case. Null if the company no longer exists. */ interface Company { /** The unique identifier for the company. */ id: string; /** The display name of the company shown to customers. */ title: string; } /** * The membership record associated with the disputed payment. Null if the membership no longer exists. */ interface Member { /** The unique identifier for the extra public member. */ id: string; } /** * The payment record that is the subject of this resolution case. */ interface Payment { /** 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 | null; /** The unique identifier for the payment. */ id: string; /** 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 payment amount before taxes and discounts are applied. In the currency specified by the currency field. */ subtotal: number | null; /** The total amount charged to the customer for this payment, including taxes and after any discounts. In the currency specified by the currency field. */ total: number; } type ResolutionEvents = ResolutionEvents.Item[]; namespace ResolutionEvents { /** * A resolution event is a message or action within a resolution case, such as a response, escalation, or status change. */ interface Item { /** The type of action recorded in this event. */ action: Whop.ResolutionCenterCaseActions; /** The datetime the resolution event was created. */ created_at: string; /** The message body or additional context provided with this resolution event. Null if no details were included. */ details: string | null; /** The unique identifier for the resolution event. */ id: string; /** The party who performed this action. */ reporter_type: Whop.ResolutionCenterCaseReporters; } } /** * The customer (buyer) who filed this resolution case. */ interface User { /** 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; } }