import { APIResource } from "../core/resource.mjs"; import { APIPromise } from "../core/api-promise.mjs"; import { RequestOptions } from "../internal/request-options.mjs"; export declare class IntrafiBalances extends APIResource { /** * Returns the IntraFi balance for the given account. IntraFi may sweep funds to * multiple banks. This endpoint will include both the total balance and the amount * swept to each institution. * * @example * ```ts * const intrafiBalance = * await client.intrafiBalances.intrafiBalance( * 'account_in71c4amph0vgo2qllky', * ); * ``` */ intrafiBalance(accountID: string, options?: RequestOptions): APIPromise; } /** * When using IntraFi, each account's balance over the standard FDIC insurance * amount is swept to various other institutions. Funds are rebalanced across banks * as needed once per business day. */ export interface IntrafiBalance { /** * Each entry represents a balance held at a different bank. IntraFi separates the * total balance across many participating banks in the network. */ balances: Array; /** * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the account * currency. * * - `USD` - US Dollar (USD) */ currency: 'USD'; /** * The date this balance reflects. */ effective_date: string; /** * The total balance, in minor units of `currency`. Increase reports this balance * to IntraFi daily. */ total_balance: number; /** * A constant representing the object's type. For this resource it will always be * `intrafi_balance`. */ type: 'intrafi_balance'; } export declare namespace IntrafiBalance { interface Balance { /** * The balance, in minor units of `currency`, held with this bank. */ balance: number; /** * The name of the bank holding these funds. */ bank: string; /** * The primary location of the bank. */ bank_location: Balance.BankLocation | null; /** * The Federal Deposit Insurance Corporation (FDIC) certificate number of the bank. * Because many banks have the same or similar names, this can be used to uniquely * identify the institution. */ fdic_certificate_number: string; } namespace Balance { /** * The primary location of the bank. */ interface BankLocation { /** * The bank's city. */ city: string; /** * The bank's state. */ state: string; } } } export declare namespace IntrafiBalances { export { type IntrafiBalance as IntrafiBalance }; } //# sourceMappingURL=intrafi-balances.d.mts.map