import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Currency } from "./currency.js"; import { JournalEntryLineItemInput, JournalEntryLineItemInput$Outbound } from "./journalentrylineitem.js"; import { LinkedTrackingCategory, LinkedTrackingCategory$Outbound } from "./linkedtrackingcategory.js"; import { PassThroughBody, PassThroughBody$Outbound } from "./passthroughbody.js"; export type JournalEntryInput = { /** * Journal entry title */ title?: string | null | undefined; /** * Currency Exchange Rate at the time entity was recorded/generated. */ currencyRate?: number | null | undefined; /** * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). */ currency?: Currency | null | undefined; /** * The company or subsidiary id the transaction belongs to */ companyId?: string | null | undefined; /** * Requires a minimum of 2 line items that sum to 0 */ lineItems?: Array | undefined; /** * Reference for the journal entry. */ memo?: string | null | undefined; /** * This is the date on which the journal entry was added. This can be different from the creation date and can also be backdated. */ postedAt?: Date | undefined; /** * Journal symbol of the entry. For example IND for indirect costs */ journalSymbol?: string | null | undefined; /** * The specific category of tax associated with a transaction like sales or purchase */ taxType?: string | null | undefined; /** * Applicable tax id/code override if tax is not supplied on a line item basis. */ taxCode?: string | null | undefined; /** * Journal entry number. */ number?: string | null | undefined; /** * A list of linked tracking categories. */ trackingCategories?: Array | null | undefined; /** * Accounting period */ accountingPeriod?: string | null | undefined; /** * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. */ rowVersion?: string | null | undefined; /** * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. */ passThrough?: Array | undefined; }; /** @internal */ export declare const JournalEntryInput$inboundSchema: z.ZodType; /** @internal */ export type JournalEntryInput$Outbound = { title?: string | null | undefined; currency_rate?: number | null | undefined; currency?: string | null | undefined; company_id?: string | null | undefined; line_items?: Array | undefined; memo?: string | null | undefined; posted_at?: string | undefined; journal_symbol?: string | null | undefined; tax_type?: string | null | undefined; tax_code?: string | null | undefined; number?: string | null | undefined; tracking_categories?: Array | null | undefined; accounting_period?: string | null | undefined; row_version?: string | null | undefined; pass_through?: Array | undefined; }; /** @internal */ export declare const JournalEntryInput$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace JournalEntryInput$ { /** @deprecated use `JournalEntryInput$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `JournalEntryInput$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `JournalEntryInput$Outbound` instead. */ type Outbound = JournalEntryInput$Outbound; } export declare function journalEntryInputToJSON(journalEntryInput: JournalEntryInput): string; export declare function journalEntryInputFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=journalentryinput.d.ts.map