import { SpeakeasyBase } from "../../../internal/utils"; import { AccountStatus } from "./accountstatus"; import { AccountType } from "./accounttype"; import { SupplementalData } from "./supplementaldata"; import { ValidDataTypeLinks } from "./validdatatypelinks"; export declare class AccountPrototype extends SpeakeasyBase { /** * The currency data type in Codat is the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code, e.g. _GBP_. * * @remarks * * ## Unknown currencies * * In line with the ISO 4217 specification, the code _XXX_ is used when the data source does not return a currency for a transaction. * * There are only a very small number of edge cases where this currency code is returned by the Codat system. */ currency?: string; /** * Current balance in the account. */ currentBalance?: number; /** * Description for the account. */ description?: string; /** * Full category of the account. * * @remarks * * For example, `Liability.Current` or `Income.Revenue`. To determine a list of possible categories for each integration, see our examples, follow our [Create, update, delete data](https://docs.codat.io/using-the-api/push) guide, or refer to the integration's own documentation. */ fullyQualifiedCategory?: string; /** * Full name of the account, for example: * * @remarks * - `Cash On Hand` * - `Rents Held In Trust` * - `Fixed Asset` */ fullyQualifiedName?: string; /** * Confirms whether the account is a bank account or not. */ isBankAccount?: boolean; /** * Name of the account. */ name?: string; /** * Reference given to each nominal account for a business. It ensures money is allocated to the correct account. This code isn't a unique identifier in the Codat system. */ nominalCode?: string; /** * Status of the account */ status?: AccountStatus; /** * Supplemental data is additional data you can include in our standard data types. * * @remarks * * It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. */ supplementalData?: SupplementalData; /** * Type of account */ type?: AccountType; /** * The validDatatypeLinks can be used to determine whether an account can be correctly mapped to another object; for example, accounts with a `type` of `income` might only support being used on an Invoice and Direct Income. For more information, see [Valid Data Type Links](/accounting-api#/schemas/ValidDataTypeLinks). */ validDatatypeLinks?: ValidDataTypeLinks[]; }