/* tslint:disable */ /* eslint-disable */ /** * gljournalentries * 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 { GLAccount } from './glaccount'; // May contain unused imports in some cases // @ts-ignore import type { GLJournalEntryForeignAmount } from './gljournal-entry-foreign-amount'; /** * Represents a general ledger journal entry. */ export interface GLJournalEntry { /** * The account associated with this journal entry. `Null` if the journal entry is not associated to any account. */ accountKey?: string; /** * The amount which was debited or credited in the organization\'s currency. */ amount?: number; /** * The key of the assigned branch for this general ledger journal entry. */ assignedBranchKey?: string; /** * The date and time when the general ledger journal entry was recorded. */ bookingDate?: string; /** * The creation date of the general ledger journal entry. */ creationDate?: string; /** * The encoded key of the entity, generated, globally unique */ encodedKey?: string; /** * The ID of the general ledger journal entry. */ entryID?: number; foreignAmount?: GLJournalEntryForeignAmount; glAccount?: GLAccount; /** * Optional notes entered by the user when they performed the journal entry. */ notes?: string; /** * The product associated with this journal entry. `Null` if the journal entry is not associated with any product. */ productKey?: string; /** * The product type that is referenced by the account key. `Null` if the journal entry is not associated to any product. */ productType?: GLJournalEntryProductTypeEnum; /** * The entry key of the general ledger journal entry that reverses this general ledger journal entry. Null if the general ledger journal entry isn\'t reversed. */ reversalEntryKey?: string; /** * The transation ID, which is not unique. */ transactionId?: string; /** * The general ledger journal entry type, which may be debit or credit. */ type?: GLJournalEntryTypeEnum; /** * The encoded key of the user that performed the transaction. */ userKey?: string; } export const GLJournalEntryProductTypeEnum = { Loan: 'LOAN', Savings: 'SAVINGS', } as const; export type GLJournalEntryProductTypeEnum = (typeof GLJournalEntryProductTypeEnum)[keyof typeof GLJournalEntryProductTypeEnum]; export const GLJournalEntryTypeEnum = { Debit: 'DEBIT', Credit: 'CREDIT', } as const; export type GLJournalEntryTypeEnum = (typeof GLJournalEntryTypeEnum)[keyof typeof GLJournalEntryTypeEnum];