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 { DeprecatedLinkedTrackingCategory, DeprecatedLinkedTrackingCategory$Outbound } from "./deprecatedlinkedtrackingcategory.js"; import { LinkedCustomer } from "./linkedcustomer.js"; import { LinkedCustomerInput, LinkedCustomerInput$Outbound } from "./linkedcustomerinput.js"; import { LinkedEmployee, LinkedEmployee$Outbound } from "./linkedemployee.js"; import { LinkedLedgerAccount, LinkedLedgerAccount$Outbound } from "./linkedledgeraccount.js"; import { LinkedSupplier } from "./linkedsupplier.js"; import { LinkedSupplierInput, LinkedSupplierInput$Outbound } from "./linkedsupplierinput.js"; import { LinkedTaxRate } from "./linkedtaxrate.js"; import { LinkedTaxRateInput, LinkedTaxRateInput$Outbound } from "./linkedtaxrateinput.js"; import { LinkedTrackingCategory, LinkedTrackingCategory$Outbound } from "./linkedtrackingcategory.js"; import { LinkedWorktag, LinkedWorktag$Outbound } from "./linkedworktag.js"; /** * Debit entries are considered positive, and credit entries are considered negative. */ export declare const JournalEntryLineItemType: { readonly Debit: "debit"; readonly Credit: "credit"; }; /** * Debit entries are considered positive, and credit entries are considered negative. */ export type JournalEntryLineItemType = OpenEnum; /** * The tax applicability of this line item. Overrides the root-level tax_type for this line. */ export declare const TaxType: { readonly Sales: "sales"; readonly Purchase: "purchase"; }; /** * The tax applicability of this line item. Overrides the root-level tax_type for this line. */ export type TaxType = OpenEnum; export type JournalEntryLineItem = { /** * A unique identifier for an object. */ id?: string | undefined; /** * User defined description */ description?: string | null | undefined; /** * Tax amount */ taxAmount?: number | null | undefined; /** * Sub-total amount, normally before tax. */ subTotal?: number | null | undefined; /** * Debit entries are considered positive, and credit entries are considered negative. */ totalAmount?: number | null | undefined; /** * Amount for this line in the company's base currency. Used when the journal entry currency differs from the company's base currency. */ baseCurrencyAmount?: number | null | undefined; /** * Debit entries are considered positive, and credit entries are considered negative. */ type: JournalEntryLineItemType | null; taxRate?: LinkedTaxRate | undefined; /** * The tax applicability of this line item. Overrides the root-level tax_type for this line. */ taxType?: TaxType | null | undefined; /** * @deprecated field: This field is deprecated and may be removed in a future version.. */ trackingCategory?: DeprecatedLinkedTrackingCategory | null | undefined; /** * A list of linked tracking categories. */ trackingCategories?: Array | null | undefined; ledgerAccount: LinkedLedgerAccount | null; /** * The customer this entity is linked to. */ customer?: LinkedCustomer | null | undefined; /** * The supplier this entity is linked to. */ supplier?: LinkedSupplier | null | undefined; /** * The employee this entity is linked to. */ employee?: LinkedEmployee | null | undefined; /** * The ID of the department */ departmentId?: string | null | undefined; /** * The ID of the location */ locationId?: string | null | undefined; /** * Line number of the resource */ lineNumber?: number | null | undefined; /** * Worktags of the line item. This is currently only supported in Workday. */ worktags?: Array | undefined; /** * The financial date of this specific line, when it differs from the journal entry's own posted_at date - for example when booking a historical or backdated transaction. Not populated by every connector: some post the entry date at the header level only, in which case this line-level date is legitimately absent rather than wrong. */ date?: Date | null | undefined; /** * A unique identifier for the source of this specific line, distinct from the journal entry's own source_id. Useful for reconciling an individual line back to an external system's own record when a single journal entry aggregates lines originating from more than one source. */ sourceId?: string | null | undefined; }; export type JournalEntryLineItemInput = { /** * User defined description */ description?: string | null | undefined; /** * Tax amount */ taxAmount?: number | null | undefined; /** * Sub-total amount, normally before tax. */ subTotal?: number | null | undefined; /** * Debit entries are considered positive, and credit entries are considered negative. */ totalAmount?: number | null | undefined; /** * Amount for this line in the company's base currency. Used when the journal entry currency differs from the company's base currency. */ baseCurrencyAmount?: number | null | undefined; /** * Debit entries are considered positive, and credit entries are considered negative. */ type: JournalEntryLineItemType | null; taxRate?: LinkedTaxRateInput | undefined; /** * The tax applicability of this line item. Overrides the root-level tax_type for this line. */ taxType?: TaxType | null | undefined; /** * @deprecated field: This field is deprecated and may be removed in a future version.. */ trackingCategory?: DeprecatedLinkedTrackingCategory | null | undefined; /** * A list of linked tracking categories. */ trackingCategories?: Array | null | undefined; ledgerAccount: LinkedLedgerAccount | null; /** * The customer this entity is linked to. */ customer?: LinkedCustomerInput | null | undefined; /** * The supplier this entity is linked to. */ supplier?: LinkedSupplierInput | null | undefined; /** * The employee this entity is linked to. */ employee?: LinkedEmployee | null | undefined; /** * The ID of the department */ departmentId?: string | null | undefined; /** * The ID of the location */ locationId?: string | null | undefined; /** * Line number of the resource */ lineNumber?: number | null | undefined; /** * Worktags of the line item. This is currently only supported in Workday. */ worktags?: Array | undefined; /** * The financial date of this specific line, when it differs from the journal entry's own posted_at date - for example when booking a historical or backdated transaction. Not populated by every connector: some post the entry date at the header level only, in which case this line-level date is legitimately absent rather than wrong. */ date?: Date | null | undefined; /** * A unique identifier for the source of this specific line, distinct from the journal entry's own source_id. Useful for reconciling an individual line back to an external system's own record when a single journal entry aggregates lines originating from more than one source. */ sourceId?: string | null | undefined; }; /** @internal */ export declare const JournalEntryLineItemType$inboundSchema: z.ZodType; /** @internal */ export declare const JournalEntryLineItemType$outboundSchema: z.ZodType; /** @internal */ export declare const TaxType$inboundSchema: z.ZodType; /** @internal */ export declare const TaxType$outboundSchema: z.ZodType; /** @internal */ export declare const JournalEntryLineItem$inboundSchema: z.ZodType; export declare function journalEntryLineItemFromJSON(jsonString: string): SafeParseResult; /** @internal */ export type JournalEntryLineItemInput$Outbound = { description?: string | null | undefined; tax_amount?: number | null | undefined; sub_total?: number | null | undefined; total_amount?: number | null | undefined; base_currency_amount?: number | null | undefined; type: string | null; tax_rate?: LinkedTaxRateInput$Outbound | undefined; tax_type?: string | null | undefined; tracking_category?: DeprecatedLinkedTrackingCategory$Outbound | null | undefined; tracking_categories?: Array | null | undefined; ledger_account: LinkedLedgerAccount$Outbound | null; customer?: LinkedCustomerInput$Outbound | null | undefined; supplier?: LinkedSupplierInput$Outbound | null | undefined; employee?: LinkedEmployee$Outbound | null | undefined; department_id?: string | null | undefined; location_id?: string | null | undefined; line_number?: number | null | undefined; worktags?: Array | undefined; date?: string | null | undefined; source_id?: string | null | undefined; }; /** @internal */ export declare const JournalEntryLineItemInput$outboundSchema: z.ZodType; export declare function journalEntryLineItemInputToJSON(journalEntryLineItemInput: JournalEntryLineItemInput): string; //# sourceMappingURL=journalentrylineitem.d.ts.map