/* tslint:disable */ /* eslint-disable */ /** * accounting/reports * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ // May contain unused imports in some cases // @ts-ignore import type { Currency } from './currency'; /** * Represents a general ledger account. */ export interface GLAccount { /** * `TRUE` if the account is activated and may be used, `FALSE` otherwise. */ activated?: boolean; /** * `TRUE` if manual journal entries are allowed, `FALSE` otherwise. */ allowManualJournalEntries?: boolean; /** * The balance of the general ledger account, which is only populated for the GET /glaccounts endpoint. */ balance?: number; /** * The creation date for this account, which is stored as UTC. */ creationDate?: string; currency?: Currency; /** * A description of the general ledger account. */ description?: string; /** * The encoded key of the entity, generated, globally unique */ encodedKey?: string; /** * The general ledger code used to identify different account types. Also used for grouping and categorizing accounts. For example: an account code of \'3201\' is considered a subtype of \'3200\'. */ glCode?: string; /** * The last modification date and time, which is stored as UTC. */ lastModifiedDate?: string; /** * The data migration event key if the general ledger account was created as a part of a data migration event. */ migrationEventKey?: string; /** * The name of the general ledger account. */ name?: string; /** * `TRUE` if trailing zeros are stripped, `FALSE` otherwise. */ stripTrailingZeros?: boolean; /** * The general ledger account type. */ type?: GLAccountTypeEnum; /** * The usage type of the general ledger account. `DETAIL` accounts are used to stores transaction balances. `HEADER` accounts are used to organise and group detail accounts for reporting purposes. */ usage?: GLAccountUsageEnum; } export const GLAccountTypeEnum = { Asset: 'ASSET', Liability: 'LIABILITY', Equity: 'EQUITY', Income: 'INCOME', Expense: 'EXPENSE', } as const; export type GLAccountTypeEnum = (typeof GLAccountTypeEnum)[keyof typeof GLAccountTypeEnum]; export const GLAccountUsageEnum = { Detail: 'DETAIL', Header: 'HEADER', } as const; export type GLAccountUsageEnum = (typeof GLAccountUsageEnum)[keyof typeof GLAccountUsageEnum];