import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ACHReturnCode } from "./achreturncode.js"; import { RTPRejectionCode } from "./rtprejectioncode.js"; /** * Reason for, and details related to, an `errored` or `verificationFailed` bank account status. */ export type BankAccountException = { /** * The return code of an ACH transaction that caused the bank account status to change. * * @remarks * * - R02: Account Closed * - R03: No Account/Unable to Locate Account * - R04: Invalid Account Number * - R05: Improper Debit to Consumer Account * - R07: Authorization Revoked by Customer * - R08: Payment Stopped * - R10: Customer Advises Originator is Not Known or Authorized to Receiver * - R11: Customer Advises Entry Not in Accordance with the Terms of the Authorization * - R12: Branch Sold to Another DFI * - R13: RDFI not qualified to participate * - R14: Representative payee deceased or unable to continue in that capacity * - R15: Beneficiary or bank account holder * - R16: Bank account frozen * - R17: Entry with Invalid Account Number Initiated Under Questionable Circumstances * - R20: Non-payment bank account * - R23: Credit entry refused by receiver * - R29: Corporate customer advises not authorized * - R34: Limited participation RDFI * - R38: Stop Payment on Source Document (Adjustment Entry) * - R39: Improper Source Document */ achReturnCode?: ACHReturnCode | undefined; /** * The rejection code of an RTP transaction that caused the bank account status to change. * * @remarks * * - AC03: Account Invalid * - AC04: Account Closed * - AC06: Account Blocked * - AC14: Creditor Account Type Invalid * - AG01: Transactions Forbidden On Account * - AG03: Transaction Type Not Supported * - MD07: Customer Deceased */ rtpRejectionCode?: RTPRejectionCode | undefined; /** * The rejection code of a FedNow transaction that caused the bank account status to change. * * @remarks * * - AC02: Debtor account is invalid * - AC03: Creditor account is invalid * - AC04: Account closed * - AC06: Account is blocked * - AC07: Creditor account closed * - AC10: Debtor account currency is invalid or missing * - AC11: Creditor account currency is invalid or missing * - AC13: Debtor account type missing or invalid * - AC14: Creditor account type missing or invalid * - AG01: Transaction is forbidden on this type of account * - AG03: Transaction type is not supported/authorized on this account * - BE06: End customer specified is not known at associated Sort/National Bank Code or no longer exists in the books * - DUPL: Payment is a duplicate of another payment * - MD07: End customer is deceased * - NOAT: Receiving customer account does not support/accept this message type * - RC02: Bank identifier is invalid or missing * - RC03: Debtor FI identifier is invalid or missing * - RC04: Creditor FI identifier is invalid or missing */ fednowRejectionCode?: string | undefined; /** * Details related to an `errored` or `verificationFailed` bank account status. */ description: string; }; /** @internal */ export declare const BankAccountException$inboundSchema: z.ZodType; /** @internal */ export type BankAccountException$Outbound = { achReturnCode?: string | undefined; rtpRejectionCode?: string | undefined; fednowRejectionCode?: string | undefined; description: string; }; /** @internal */ export declare const BankAccountException$outboundSchema: z.ZodType; export declare function bankAccountExceptionToJSON(bankAccountException: BankAccountException): string; export declare function bankAccountExceptionFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=bankaccountexception.d.ts.map