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 { Currency } from "./currency.js"; import { LinkedFinancialAccount, LinkedFinancialAccountInput, LinkedFinancialAccountInput$Outbound } from "./linkedfinancialaccount.js"; /** * Normalized journal classification. */ export declare const JournalType: { readonly General: "general"; readonly Sales: "sales"; readonly Purchase: "purchase"; readonly SalesCreditNote: "sales_credit_note"; readonly PurchaseCreditNote: "purchase_credit_note"; readonly Cash: "cash"; readonly Bank: "bank"; readonly PaymentService: "payment_service"; readonly Other: "other"; }; /** * Normalized journal classification. */ export type JournalType = OpenEnum; export type Journal = { /** * A unique identifier for an object. */ id?: string | undefined; /** * Code used to select this journal when posting entries. For Exact Online, pass this code as journal_symbol, not the journal id. */ code?: string | null | undefined; /** * Name of the journal. */ name?: string | null | undefined; /** * Description of the journal. */ description?: string | null | undefined; /** * Normalized journal classification. */ type?: JournalType | null | undefined; /** * Whether the journal permits VAT on entries. Null or absent means unknown. Exact Online exposes this setting for general journals; it must not be treated as a universal VAT capability flag for other journal types. */ allowVat?: boolean | 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; /** * International Bank Account Number */ iban?: string | null | undefined; /** * A flexible account reference that can represent a ledger account (GL account), a bank account, or an employee payable account, depending on the connector's requirements. */ defaultAccount?: LinkedFinancialAccount | null | undefined; /** * A flexible account reference that can represent a ledger account (GL account), a bank account, or an employee payable account, depending on the connector's requirements. */ clearingAccount?: LinkedFinancialAccount | null | undefined; /** * Whether the journal is blocked for posting. */ blocked?: boolean | null | undefined; /** * The date and time when the object was created. */ createdAt?: Date | null | undefined; /** * The date and time when the object was last updated. */ updatedAt?: Date | null | undefined; /** * When custom mappings are configured on the resource, the result is included here. */ customMappings?: { [k: string]: any; } | null | undefined; }; export type JournalInput = { /** * Code used to select this journal when posting entries. For Exact Online, pass this code as journal_symbol, not the journal id. */ code?: string | null | undefined; /** * Name of the journal. */ name?: string | null | undefined; /** * Description of the journal. */ description?: string | null | undefined; /** * Normalized journal classification. */ type?: JournalType | null | undefined; /** * Whether the journal permits VAT on entries. Null or absent means unknown. Exact Online exposes this setting for general journals; it must not be treated as a universal VAT capability flag for other journal types. */ allowVat?: boolean | 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; /** * International Bank Account Number */ iban?: string | null | undefined; /** * A flexible account reference that can represent a ledger account (GL account), a bank account, or an employee payable account, depending on the connector's requirements. */ defaultAccount?: LinkedFinancialAccountInput | null | undefined; /** * A flexible account reference that can represent a ledger account (GL account), a bank account, or an employee payable account, depending on the connector's requirements. */ clearingAccount?: LinkedFinancialAccountInput | null | undefined; /** * Whether the journal is blocked for posting. */ blocked?: boolean | null | undefined; }; /** @internal */ export declare const JournalType$inboundSchema: z.ZodType; /** @internal */ export declare const JournalType$outboundSchema: z.ZodType; /** @internal */ export declare const Journal$inboundSchema: z.ZodType; export declare function journalFromJSON(jsonString: string): SafeParseResult; /** @internal */ export type JournalInput$Outbound = { code?: string | null | undefined; name?: string | null | undefined; description?: string | null | undefined; type?: string | null | undefined; allow_vat?: boolean | null | undefined; currency?: string | null | undefined; iban?: string | null | undefined; default_account?: LinkedFinancialAccountInput$Outbound | null | undefined; clearing_account?: LinkedFinancialAccountInput$Outbound | null | undefined; blocked?: boolean | null | undefined; }; /** @internal */ export declare const JournalInput$outboundSchema: z.ZodType; export declare function journalInputToJSON(journalInput: JournalInput): string; //# sourceMappingURL=journal.d.ts.map