/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ /** * Credit account information API response (GET). * * Display balance (has_credits, account_id, available_credits) and * auto-recharge preferences. */ export type CreditAccountInfo = { /** * True if the account has any credits (or infinite credits). */ readonly has_credits: boolean; /** * The unique identifier of the credit account. */ readonly account_id: string; /** * The current available credit balance in USD. */ readonly available_credits: string; /** * The balance threshold below which auto-recharge is triggered. */ readonly auto_recharge_threshold_usd: string; /** * The amount in USD to recharge when the threshold is reached. */ readonly auto_recharge_amount_usd: string; /** * True if auto-recharge is currently enabled for this account. */ readonly auto_recharge_enabled: boolean; /** * The timestamp when auto-recharge was last successfully triggered. */ readonly auto_recharge_last_triggered_at: string | null; /** * The platform key associated with this account (if applicable). */ readonly platform_key: string; /** * Stripe pricing table details for topping up credits. */ readonly pricing_table: any; /** * True if the account is on the free trial plan (no paid plan purchased yet). */ readonly free_trial: boolean; /** * Current plan identifier, e.g. 'free_trial' or Stripe product SKU. */ readonly current_plan: string | null; /** * Previous plan before the last purchase. */ readonly previous_plan: string | null; /** * True if the current plan is not free_trial (paid plans can use auto-recharge). */ readonly can_use_auto_recharge: boolean; /** * True if the user has a payment method on file (can use manual top-up and auto-recharge). */ readonly has_payment_method: boolean; /** * True if the requesting user is the user that owns this credit account (account.user). */ readonly is_owner: boolean; /** * Message explaining why credits are insufficient (only present when has_credits is False). */ readonly message: string; };