/* tslint:disable */ /* eslint-disable */ /** * glaccounts * 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 the request payload for creating a GL Account */ export interface GLAccountInput { /** * `TRUE` if manual journal entries are allowed, `FALSE` otherwise. This is only available for Detail Accounts. */ allowManualJournalEntries?: boolean; currency?: Currency; /** * The description of the general ledger account. */ description?: 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 name of the general ledger account. */ name: string; /** * `TRUE` to strip trailing zeros, `FALSE` otherwise. Only available for Header Accounts. */ stripTrailingZeros?: boolean; /** * The general ledger account type. */ type: GLAccountInputTypeEnum; /** * `DETAIL` for general ledger accounts that log transactions, and `HEADER` for general ledger accounts used for reporting and organizational purposes. */ usage: GLAccountInputUsageEnum; } export const GLAccountInputTypeEnum = { Asset: 'ASSET', Liability: 'LIABILITY', Equity: 'EQUITY', Income: 'INCOME', Expense: 'EXPENSE', } as const; export type GLAccountInputTypeEnum = (typeof GLAccountInputTypeEnum)[keyof typeof GLAccountInputTypeEnum]; export const GLAccountInputUsageEnum = { Detail: 'DETAIL', Header: 'HEADER', } as const; export type GLAccountInputUsageEnum = (typeof GLAccountInputUsageEnum)[keyof typeof GLAccountInputUsageEnum];