import type * as Whop from "../index.mjs"; /** * A token transaction records a credit or debit to a member's token balance within a company, including transfers between members. */ export interface CompanyTokenTransaction { /** The token amount for this transaction. Always a positive value regardless of transaction type. */ amount: number; /** The company whose token balance this transaction affects. */ company: CompanyTokenTransaction.Company; /** The datetime the company token transaction was created. */ created_at: string; /** Free-text description explaining the reason for this token transaction. Null if no description was provided. */ description: string | null; /** The unique identifier for the company token transaction. */ id: string; /** A unique key used to prevent duplicate transactions when retrying API requests. Null if no idempotency key was provided. */ idempotency_key: string | null; /** The ID of the corresponding transaction on the other side of a transfer. Null if this is not a transfer transaction. */ linked_transaction_id: string | null; /** The member whose token balance was affected by this transaction. */ member: CompanyTokenTransaction.Member; /** The direction of this token transaction (add, subtract, or transfer). */ transaction_type: Whop.CompanyTokenTransactionTypes; /** The user whose token balance was affected by this transaction. */ user: CompanyTokenTransaction.User; } export declare namespace CompanyTokenTransaction { /** * The company whose token balance this transaction affects. */ interface Company { /** The unique identifier for the company. */ id: string; /** The slug/route of the company on the Whop site. */ route: string; /** The written name of the company. */ title: string; } /** * The member whose token balance was affected by this transaction. */ interface Member { /** The unique identifier for the company member. */ id: string; } /** * The user whose token balance was affected by this transaction. */ 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; } }