import * as z from "zod/v3"; import { OpenEnum } from "../../types/enums.js"; import { BankAccount, BankAccount$Outbound } from "./bankaccount.js"; import { Currency } from "./currency.js"; import { CustomField, CustomField$Outbound } from "./customfield.js"; import { LinkedTaxRateInput, LinkedTaxRateInput$Outbound } from "./linkedtaxrateinput.js"; import { PassThroughBody, PassThroughBody$Outbound } from "./passthroughbody.js"; /** * The classification of account. */ export declare const LedgerAccountCreateInputClassification: { readonly Asset: "asset"; readonly Equity: "equity"; readonly Expense: "expense"; readonly Liability: "liability"; readonly Revenue: "revenue"; readonly Income: "income"; readonly OtherIncome: "other_income"; readonly OtherExpense: "other_expense"; readonly CostsOfSales: "costs_of_sales"; readonly Other: "other"; }; /** * The classification of account. */ export type LedgerAccountCreateInputClassification = OpenEnum; /** * The type of account. */ export declare const LedgerAccountCreateInputType: { readonly AccountsPayable: "accounts_payable"; readonly AccountsReceivable: "accounts_receivable"; readonly Balancesheet: "balancesheet"; readonly Bank: "bank"; readonly CostsOfSales: "costs_of_sales"; readonly CreditCard: "credit_card"; readonly CurrentAsset: "current_asset"; readonly CurrentLiability: "current_liability"; readonly Equity: "equity"; readonly Expense: "expense"; readonly FixedAsset: "fixed_asset"; readonly NonCurrentAsset: "non_current_asset"; readonly NonCurrentLiability: "non_current_liability"; readonly OtherAsset: "other_asset"; readonly OtherExpense: "other_expense"; readonly OtherIncome: "other_income"; readonly OtherLiability: "other_liability"; readonly Revenue: "revenue"; readonly Sales: "sales"; readonly Other: "other"; }; /** * The type of account. */ export type LedgerAccountCreateInputType = OpenEnum; /** * The status of the account. */ export declare const LedgerAccountCreateInputAccountStatus: { readonly Active: "active"; readonly Inactive: "inactive"; readonly Archived: "archived"; }; /** * The status of the account. */ export type LedgerAccountCreateInputAccountStatus = OpenEnum; export type LedgerAccountCreateInputParentAccount = { /** * The ID of the parent account. */ id?: string | undefined; /** * The name of the parent account. */ name?: string | undefined; /** * The human readable display ID used when displaying the parent account */ displayId?: string | undefined; }; export type LedgerAccountCreateInputSubsidiaries = { /** * The ID of the subsidiary. */ id?: string | undefined; }; /** * The writable shape of LedgerAccount for a batch create. Identical to [LedgerAccount](the model returned on reads) with the read-only properties removed — the same properties the single-record create endpoint rejects, so a batched record and a single-record create accept exactly the same body. */ export type LedgerAccountCreateInput = { /** * The human readable display ID used when displaying the account */ displayId?: string | undefined; /** * The nominal code of the ledger account. * * @deprecated field: This field is deprecated and may be removed in a future version.. */ nominalCode?: string | null | undefined; /** * The code assigned to the account. */ code?: string | null | undefined; /** * The classification of account. */ classification?: LedgerAccountCreateInputClassification | null | undefined; /** * The type of account. */ type?: LedgerAccountCreateInputType | undefined; /** * The sub type of account. */ subType?: string | null | undefined; /** * The name of the account. */ name?: string | null | undefined; /** * The fully qualified name of the account. */ fullyQualifiedName?: string | null | undefined; /** * The description of the account. */ description?: string | null | undefined; /** * The opening balance of the account. */ openingBalance?: number | null | undefined; /** * The current balance of the account. */ currentBalance?: 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 tax type of the account. */ taxType?: string | null | undefined; taxRate?: LinkedTaxRateInput | undefined; level?: number | null | undefined; /** * Whether the account is active or not. */ active?: boolean | null | undefined; /** * The status of the account. */ status?: LedgerAccountCreateInputAccountStatus | null | undefined; /** * Whether the account is a header or not. */ header?: boolean | null | undefined; bankAccount?: BankAccount | undefined; parentAccount?: LedgerAccountCreateInputParentAccount | undefined; /** * Whether the account is a sub account or not. */ subAccount?: boolean | null | undefined; /** * Reconciliation Date means the last calendar day of each Reconciliation Period. */ lastReconciliationDate?: Date | null | undefined; /** * The subsidiaries the account belongs to. */ subsidiaries?: Array | undefined; customFields?: Array | 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 LedgerAccountCreateInputClassification$outboundSchema: z.ZodType; /** @internal */ export declare const LedgerAccountCreateInputType$outboundSchema: z.ZodType; /** @internal */ export declare const LedgerAccountCreateInputAccountStatus$outboundSchema: z.ZodType; /** @internal */ export type LedgerAccountCreateInputParentAccount$Outbound = { id?: string | undefined; name?: string | undefined; display_id?: string | undefined; }; /** @internal */ export declare const LedgerAccountCreateInputParentAccount$outboundSchema: z.ZodType; export declare function ledgerAccountCreateInputParentAccountToJSON(ledgerAccountCreateInputParentAccount: LedgerAccountCreateInputParentAccount): string; /** @internal */ export type LedgerAccountCreateInputSubsidiaries$Outbound = { id?: string | undefined; }; /** @internal */ export declare const LedgerAccountCreateInputSubsidiaries$outboundSchema: z.ZodType; export declare function ledgerAccountCreateInputSubsidiariesToJSON(ledgerAccountCreateInputSubsidiaries: LedgerAccountCreateInputSubsidiaries): string; /** @internal */ export type LedgerAccountCreateInput$Outbound = { display_id?: string | undefined; nominal_code?: string | null | undefined; code?: string | null | undefined; classification?: string | null | undefined; type?: string | undefined; sub_type?: string | null | undefined; name?: string | null | undefined; fully_qualified_name?: string | null | undefined; description?: string | null | undefined; opening_balance?: number | null | undefined; current_balance?: number | null | undefined; currency?: string | null | undefined; tax_type?: string | null | undefined; tax_rate?: LinkedTaxRateInput$Outbound | undefined; level?: number | null | undefined; active?: boolean | null | undefined; status?: string | null | undefined; header?: boolean | null | undefined; bank_account?: BankAccount$Outbound | undefined; parent_account?: LedgerAccountCreateInputParentAccount$Outbound | undefined; sub_account?: boolean | null | undefined; last_reconciliation_date?: string | null | undefined; subsidiaries?: Array | undefined; custom_fields?: Array | undefined; row_version?: string | null | undefined; pass_through?: Array | undefined; }; /** @internal */ export declare const LedgerAccountCreateInput$outboundSchema: z.ZodType; export declare function ledgerAccountCreateInputToJSON(ledgerAccountCreateInput: LedgerAccountCreateInput): string; //# sourceMappingURL=ledgeraccountcreateinput.d.ts.map