import type * as Whop from "../../../../index.js"; /** * @example * {} */ export interface ListFinancialActivityRequest { /** The owning account ID (a biz_ identifier). Provide this or user_id. */ account_id?: string; /** The owning user ID (a user_ identifier). Provide this or account_id. */ user_id?: string; /** When true, aggregates the authenticated user's personal ledger with the businesses they own (owner role with balance read) into one feed. Requires user_id to be the authenticated user; cannot be combined with account_id or the settlement-date filters. Each returned row includes the owning `account`. */ include_owned_accounts?: boolean; /** Whether to include the `resource` field in the response or not. Consider passing `false` if you need a fast response without as many rich details. */ include_resource?: boolean; /** Optional ledger line categories to include. Some categories (for example `onchain_deposit`, which covers inbound crypto deposits such as MoonPay onramps) are only returned when explicitly requested here. */ line_types?: Whop.ListFinancialActivityRequestLineTypesItem | Whop.ListFinancialActivityRequestLineTypesItem[]; /** Optional direction filter. `money_in` returns positive activity and `money_out` returns negative activity. */ direction?: Whop.ListFinancialActivityRequestDirection; /** Optional prefixed resource ID. Returns activity associated with that resource. */ resource_id?: string; /** Filter activity by payment ID (pay_), including related refunds, disputes, and fees. Combines with resource_id and other filters within the selected accounts. Unknown payments return an empty list. */ payment_id?: string; /** Optional ledger activity ID (for example `line_3`). Returns at most that one activity. */ activity_id?: string; /** Whether to exclude balance reservations and balanced movements between the account's own balances. */ exclude_internal_movements?: boolean; /** Which balance the activity changes. `total` includes available, pending, and reserved funds. `available` includes only movements into or out of available funds, including reservations, releases, and fees. Movements within the selected balance are omitted. Omit to preserve the existing activity feed. Requires account_id or user_id; cannot be combined with available_after or available_before. */ balance_type?: Whop.ListFinancialActivityRequestBalanceType; /** Withdrawal ID (wdrl_). With balance_type=available, selects the same period as its statement, after the previous withdrawal and through this withdrawal, excluding this withdrawal and its fee. Requires a single account. Overrides currency and posted-date filters. */ withdrawal_id?: string; /** Optional currency code filter, for example `usd`. */ currency?: string; /** Only include rows posted after this ISO 8601 timestamp. */ posted_after?: string; /** Only include rows posted before this ISO 8601 timestamp. */ posted_before?: string; /** Only include balance credits and debits available on or after this `YYYY-MM-DD` date (UTC), distinct from posted_at. Requires currency. */ available_after?: string; /** Only include balance credits and debits available on or before this `YYYY-MM-DD` date (UTC). Set equal to available_after for a single day. Requires currency. */ available_before?: string; /** Maximum number of rows to return. */ limit?: number; /** Cursor returned by the previous page. */ cursor?: string; }