import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { BankAccountException, BankAccountException$Outbound } from "./bankaccountexception.js"; import { BankAccountHolderType } from "./bankaccountholdertype.js"; import { BankAccountStatus } from "./bankaccountstatus.js"; import { BankAccountStatusReason } from "./bankaccountstatusreason.js"; import { BankAccountType } from "./bankaccounttype.js"; import { BasicPaymentMethod, BasicPaymentMethod$Outbound } from "./basicpaymentmethod.js"; /** * Describes a bank account linked to a Moov account. */ export type BankAccount = { bankAccountID: string; /** * Once the bank account is linked, we don't reveal the full bank account number. * * @remarks * * The fingerprint acts as a way to identify whether two linked bank accounts are the same. */ fingerprint: string; status: BankAccountStatus; holderName: string; /** * The type of holder on a funding source. */ holderType: BankAccountHolderType; bankName: string; /** * The bank account type. */ bankAccountType: BankAccountType; routingNumber: string; lastFourAccountNumber: string; updatedOn: Date; /** * The reason the bank account status changed to the current value. */ statusReason?: BankAccountStatusReason | undefined; /** * Reason for, and details related to, an `errored` or `verificationFailed` bank account status. */ exceptionDetails?: BankAccountException | undefined; /** * Includes any payment methods generated for a newly created bank account, removing the need to * * @remarks * call the List Payment Methods endpoint following a successful Create BankAccount request. * * **NOTE: This field is only populated for Create BankAccount requests made with the `X-Wait-For` header.** */ paymentMethods?: Array | undefined; }; /** @internal */ export declare const BankAccount$inboundSchema: z.ZodType; /** @internal */ export type BankAccount$Outbound = { bankAccountID: string; fingerprint: string; status: string; holderName: string; holderType: string; bankName: string; bankAccountType: string; routingNumber: string; lastFourAccountNumber: string; updatedOn: string; statusReason?: string | undefined; exceptionDetails?: BankAccountException$Outbound | undefined; paymentMethods?: Array | undefined; }; /** @internal */ export declare const BankAccount$outboundSchema: z.ZodType; export declare function bankAccountToJSON(bankAccount: BankAccount): string; export declare function bankAccountFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=bankaccount.d.ts.map