import * as z from "zod/v3"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { LinkedLedgerAccount } from "./linkedledgeraccount.js"; import { LinkedTaxRate } from "./linkedtaxrate.js"; import { LinkedTrackingCategory } from "./linkedtrackingcategory.js"; /** * Side of the entry. Redundant with the sign of net_amount but exposed as an explicit flag for filtering convenience. */ export declare const GeneralLedgerTransactionLineItemType: { readonly Debit: "debit"; readonly Credit: "credit"; }; /** * Side of the entry. Redundant with the sign of net_amount but exposed as an explicit flag for filtering convenience. */ export type GeneralLedgerTransactionLineItemType = OpenEnum; export type GeneralLedgerTransactionLineItem = { /** * A unique identifier for an object. */ id?: string | undefined; /** * Free-text description of the line. */ description?: string | null | undefined; /** * The amount posted to the ledger account, tax-exclusive. Debit entries are positive, credit entries are negative. In general-ledger views the tax component lives in its own dedicated line against a tax payable/receivable account, so net_amount is the canonical figure for reporting. */ netAmount?: number | null | undefined; /** * Side of the entry. Redundant with the sign of net_amount but exposed as an explicit flag for filtering convenience. */ type: GeneralLedgerTransactionLineItemType | null; /** * Tax embedded in the line. In GL views this is typically 0 or null because tax has its own dedicated line against a tax payable/receivable account. Exposed for completeness and for tax-inclusive setups. */ taxAmount?: number | null | undefined; taxRate?: LinkedTaxRate | undefined; /** * A list of linked tracking categories. */ trackingCategories?: Array | null | undefined; ledgerAccount: LinkedLedgerAccount | null; /** * Line number of the resource */ lineNumber?: number | null | undefined; }; /** @internal */ export declare const GeneralLedgerTransactionLineItemType$inboundSchema: z.ZodType; /** @internal */ export declare const GeneralLedgerTransactionLineItem$inboundSchema: z.ZodType; export declare function generalLedgerTransactionLineItemFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=generalledgertransactionlineitem.d.ts.map