import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Currency } from "./currency.js"; /** * The type of bank account. */ export declare const AccountType: { readonly BankAccount: "bank_account"; readonly CreditCard: "credit_card"; readonly Other: "other"; }; /** * The type of bank account. */ export type AccountType = ClosedEnum; export type BankAccount = { /** * The name of the bank */ bankName?: string | null | undefined; /** * A bank account number is a number that is tied to your bank account. If you have several bank accounts, such as personal, joint, business (and so on), each account will have a different account number. */ accountNumber?: string | null | undefined; /** * The name which you used in opening your bank account. */ accountName?: string | null | undefined; /** * The type of bank account. */ accountType?: AccountType | null | undefined; /** * The International Bank Account Number (IBAN). */ iban?: string | null | undefined; /** * The Bank Identifier Code (BIC). */ bic?: string | null | undefined; /** * A routing number is a nine-digit code used to identify a financial institution in the United States. */ routingNumber?: string | null | undefined; /** * A BSB is a 6 digit numeric code used for identifying the branch of an Australian or New Zealand bank or financial institution. */ bsbNumber?: string | null | undefined; /** * A branch identifier is a unique identifier for a branch of a bank or financial institution. */ branchIdentifier?: string | null | undefined; /** * A bank code is a code assigned by a central bank, a bank supervisory body or a Bankers Association in a country to all its licensed member banks or financial institutions. */ bankCode?: string | 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; }; /** @internal */ export declare const AccountType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const AccountType$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AccountType$ { /** @deprecated use `AccountType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly BankAccount: "bank_account"; readonly CreditCard: "credit_card"; readonly Other: "other"; }>; /** @deprecated use `AccountType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly BankAccount: "bank_account"; readonly CreditCard: "credit_card"; readonly Other: "other"; }>; } /** @internal */ export declare const BankAccount$inboundSchema: z.ZodType; /** @internal */ export type BankAccount$Outbound = { bank_name?: string | null | undefined; account_number?: string | null | undefined; account_name?: string | null | undefined; account_type?: string | null | undefined; iban?: string | null | undefined; bic?: string | null | undefined; routing_number?: string | null | undefined; bsb_number?: string | null | undefined; branch_identifier?: string | null | undefined; bank_code?: string | null | undefined; currency?: string | null | undefined; }; /** @internal */ export declare const BankAccount$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 BankAccount$ { /** @deprecated use `BankAccount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `BankAccount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `BankAccount$Outbound` instead. */ type Outbound = BankAccount$Outbound; } export declare function bankAccountToJSON(bankAccount: BankAccount): string; export declare function bankAccountFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=bankaccount.d.ts.map