/** * YNAB API Endpoints * Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com * * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ import type { AccountType } from './AccountType'; /** * * @export * @interface AccountBase */ export interface AccountBase { /** * * @type {string} * @memberof AccountBase */ id: string; /** * * @type {string} * @memberof AccountBase */ name: string; /** * * @type {AccountType} * @memberof AccountBase */ type: AccountType; /** * Whether this account is "on budget" or not * @type {boolean} * @memberof AccountBase */ on_budget: boolean; /** * Whether this account is closed or not * @type {boolean} * @memberof AccountBase */ closed: boolean; /** * * @type {string} * @memberof AccountBase */ note?: string | null; /** * The current available balance of the account in milliunits format * @type {number} * @memberof AccountBase */ balance: number; /** * The current cleared balance of the account in milliunits format * @type {number} * @memberof AccountBase */ cleared_balance: number; /** * The current uncleared balance of the account in milliunits format * @type {number} * @memberof AccountBase */ uncleared_balance: number; /** * The payee id which should be used when transferring to this account * @type {string} * @memberof AccountBase */ transfer_payee_id: string | null; /** * Whether or not the account is linked to a financial institution for automatic transaction import. * @type {boolean} * @memberof AccountBase */ direct_import_linked?: boolean; /** * If an account linked to a financial institution (direct_import_linked=true) and the linked connection is not in a healthy state, this will be true. * @type {boolean} * @memberof AccountBase */ direct_import_in_error?: boolean; /** * A date/time specifying when the account was last reconciled. * @type {string} * @memberof AccountBase */ last_reconciled_at?: string | null; /** * This field is deprecated and will always be null. * @type {number} * @memberof AccountBase */ debt_original_balance?: number | null; /** * * @type {{ [key: string]: number; }} * @memberof AccountBase */ debt_interest_rates?: { [key: string]: number; }; /** * * @type {{ [key: string]: number; }} * @memberof AccountBase */ debt_minimum_payments?: { [key: string]: number; }; /** * * @type {{ [key: string]: number; }} * @memberof AccountBase */ debt_escrow_amounts?: { [key: string]: number; }; /** * Whether or not the account has been deleted. Deleted accounts will only be included in delta requests. * @type {boolean} * @memberof AccountBase */ deleted: boolean; } /** * Check if a given object implements the AccountBase interface. */ export declare function instanceOfAccountBase(value: object): value is AccountBase; export declare function AccountBaseFromJSON(json: any): AccountBase; export declare function AccountBaseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountBase; export declare function AccountBaseToJSON(json: any): AccountBase; export declare function AccountBaseToJSONTyped(value?: AccountBase | null, ignoreDiscriminator?: boolean): any;