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"; /** * The type of account being referenced. Use `ledger_account` for GL accounts from the chart of accounts, or `bank_account` for bank account entities. When not specified, the connector will use its default behavior. */ export declare const LinkedFinancialAccountAccountType: { readonly LedgerAccount: "ledger_account"; readonly BankAccount: "bank_account"; readonly Employee: "employee"; }; /** * The type of account being referenced. Use `ledger_account` for GL accounts from the chart of accounts, or `bank_account` for bank account entities. When not specified, the connector will use its default behavior. */ export type LinkedFinancialAccountAccountType = OpenEnum; /** * 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. */ export type LinkedFinancialAccount = { /** * The unique identifier for the account. This can be a ledger account ID or bank account ID depending on the `type` field. */ id?: string | undefined; /** * The type of account being referenced. Use `ledger_account` for GL accounts from the chart of accounts, or `bank_account` for bank account entities. When not specified, the connector will use its default behavior. */ type?: LinkedFinancialAccountAccountType | null | undefined; /** * The account code of the account */ code?: string | undefined; /** * Id to be displayed. */ displayId?: string | null | undefined; /** * The bank account number */ accountNumber?: string | null | undefined; /** * The name of the account. */ name?: string | undefined; /** * The third-party API ID of original entity */ downstreamId?: 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. */ export type LinkedFinancialAccountInput = { /** * The unique identifier for the account. This can be a ledger account ID or bank account ID depending on the `type` field. */ id?: string | undefined; /** * The type of account being referenced. Use `ledger_account` for GL accounts from the chart of accounts, or `bank_account` for bank account entities. When not specified, the connector will use its default behavior. */ type?: LinkedFinancialAccountAccountType | null | undefined; /** * The account code of the account */ code?: string | undefined; /** * Id to be displayed. */ displayId?: string | null | undefined; /** * The bank account number */ accountNumber?: string | null | undefined; }; /** @internal */ export declare const LinkedFinancialAccountAccountType$inboundSchema: z.ZodType; /** @internal */ export declare const LinkedFinancialAccountAccountType$outboundSchema: z.ZodType; /** @internal */ export declare const LinkedFinancialAccount$inboundSchema: z.ZodType; export declare function linkedFinancialAccountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export type LinkedFinancialAccountInput$Outbound = { id?: string | undefined; type?: string | null | undefined; code?: string | undefined; display_id?: string | null | undefined; account_number?: string | null | undefined; }; /** @internal */ export declare const LinkedFinancialAccountInput$outboundSchema: z.ZodType; export declare function linkedFinancialAccountInputToJSON(linkedFinancialAccountInput: LinkedFinancialAccountInput): string; //# sourceMappingURL=linkedfinancialaccount.d.ts.map