Interface WalletInterface

Wallet entity interface

Mirrors macs-node-sdk/lib/payments/models/wallet.js. Balances are tracked in USD. stripe_customer_id and the subscription fields are server-managed.

interface WalletInterface {
    active?: boolean;
    external_id?: string;
    extensors?: { [key: string]: string };
    record_history?: RecordHistory;
    id?: string;
    org?: string;
    user?: string;
    usd_balance?: number;
    renewal_threshold_usd?: number;
    renewal_amount_usd?: number;
    auto_reload_on?: boolean;
    stripe_customer_id?: string;
    subscription?: WalletSubscription;
}

Hierarchy (View Summary)

Properties

active?: boolean

Whether the entity is active

external_id?: string

External system identifier for integration with third-party systems

extensors?: { [key: string]: string }

Extended properties for custom integrations

record_history?: RecordHistory

Record history tracking information

id?: string

Unique identifier for the entity

org?: string
user?: string
usd_balance?: number

Current balance in USD

renewal_threshold_usd?: number

Auto-reload threshold in USD (balance triggers reload below this)

renewal_amount_usd?: number

Auto-reload amount in USD

auto_reload_on?: boolean

Whether auto-reload is enabled

stripe_customer_id?: string

Linked Stripe customer — server-managed

subscription?: WalletSubscription

Active Stripe subscription (if any)