UNPKG

@memberjunction/actions-bizapps-accounting

Version:

Accounting system integration actions for MemberJunction

40 lines 1.16 kB
import { QuickBooksBaseAction } from '../quickbooks-base.action.js'; import { ActionResultSimple, RunActionParams } from '@memberjunction/actions-base'; /** * Interface for a GL Code (Chart of Accounts) entry */ export interface GLCode { id: string; code: string; name: string; type: string; subType: string; normalBalance: 'Debit' | 'Credit'; currentBalance: number; active: boolean; parentId?: string; level: number; fullyQualifiedName: string; } /** * Action to retrieve the Chart of Accounts (GL Codes) from QuickBooks Online */ export declare class GetQuickBooksGLCodesAction extends QuickBooksBaseAction { /** * Description of the action */ get Description(): string; /** * Main execution method */ protected InternalRunAction(params: RunActionParams): Promise<ActionResultSimple>; /** * Maps a QuickBooks account to our standard GL Code interface */ private mapQBOAccountToGLCode; /** * Determines the normal balance based on account classification */ private determineNormalBalance; } //# sourceMappingURL=get-gl-codes.action.d.ts.map