@moovio/sdk 26.10.0-dev.2 → 26.10.0-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +135 -77
- package/bin/mcp-server.js +2501 -1424
- package/bin/mcp-server.js.map +168 -136
- package/funcs/bankAccountsCreateAttestation.d.ts +25 -0
- package/funcs/bankAccountsCreateAttestation.d.ts.map +1 -0
- package/funcs/bankAccountsCreateAttestation.js +142 -0
- package/funcs/bankAccountsCreateAttestation.js.map +1 -0
- package/funcs/bankAccountsGetAttestationEligibility.d.ts +23 -0
- package/funcs/bankAccountsGetAttestationEligibility.d.ts.map +1 -0
- package/funcs/bankAccountsGetAttestationEligibility.js +137 -0
- package/funcs/bankAccountsGetAttestationEligibility.js.map +1 -0
- package/funcs/bankAccountsListAttestations.d.ts +14 -0
- package/funcs/bankAccountsListAttestations.d.ts.map +1 -0
- package/funcs/bankAccountsListAttestations.js +126 -0
- package/funcs/bankAccountsListAttestations.js.map +1 -0
- package/funcs/cardIssuingGetFull.d.ts +1 -1
- package/funcs/cardIssuingGetFull.js +1 -1
- package/funcs/imagesUpload.d.ts +2 -2
- package/funcs/imagesUpload.d.ts.map +1 -1
- package/funcs/imagesUpload.js +2 -2
- package/funcs/imagesUpload.js.map +1 -1
- package/funcs/institutionsSearch.d.ts +1 -1
- package/funcs/institutionsSearch.js +1 -1
- package/funcs/issuingTransactionsList.js +1 -0
- package/funcs/issuingTransactionsList.js.map +1 -1
- package/funcs/transfersCreateCancellation.d.ts +3 -0
- package/funcs/transfersCreateCancellation.d.ts.map +1 -1
- package/funcs/transfersCreateCancellation.js +6 -1
- package/funcs/transfersCreateCancellation.js.map +1 -1
- package/funcs/transfersCreateCapture.d.ts +2 -1
- package/funcs/transfersCreateCapture.d.ts.map +1 -1
- package/funcs/transfersCreateCapture.js +2 -1
- package/funcs/transfersCreateCapture.js.map +1 -1
- package/funcs/transfersCreateReversal.d.ts +3 -0
- package/funcs/transfersCreateReversal.d.ts.map +1 -1
- package/funcs/transfersCreateReversal.js +3 -0
- package/funcs/transfersCreateReversal.js.map +1 -1
- package/funcs/transfersGetCapture.d.ts +1 -1
- package/funcs/transfersGetCapture.js +1 -1
- package/funcs/transfersList.js +0 -1
- package/funcs/transfersList.js.map +1 -1
- package/funcs/transfersListCancellations.js +1 -1
- package/funcs/transfersListCancellations.js.map +1 -1
- package/funcs/transfersListCaptures.d.ts +1 -1
- package/funcs/transfersListCaptures.js +2 -2
- package/funcs/transfersListCaptures.js.map +1 -1
- package/funcs/transfersListRefunds.js +1 -1
- package/funcs/transfersListRefunds.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/encodings.d.ts +10 -9
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +29 -13
- package/lib/encodings.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +7 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/bankAccountsCreateAttestation.d.ts +8 -0
- package/mcp-server/tools/bankAccountsCreateAttestation.d.ts.map +1 -0
- package/mcp-server/tools/bankAccountsCreateAttestation.js +72 -0
- package/mcp-server/tools/bankAccountsCreateAttestation.js.map +1 -0
- package/mcp-server/tools/bankAccountsGetAttestationEligibility.d.ts +8 -0
- package/mcp-server/tools/bankAccountsGetAttestationEligibility.d.ts.map +1 -0
- package/mcp-server/tools/bankAccountsGetAttestationEligibility.js +70 -0
- package/mcp-server/tools/bankAccountsGetAttestationEligibility.js.map +1 -0
- package/mcp-server/tools/bankAccountsListAttestations.d.ts +8 -0
- package/mcp-server/tools/bankAccountsListAttestations.d.ts.map +1 -0
- package/mcp-server/tools/bankAccountsListAttestations.js +62 -0
- package/mcp-server/tools/bankAccountsListAttestations.js.map +1 -0
- package/mcp-server/tools/cardIssuingGetFull.js +1 -1
- package/mcp-server/tools/cardIssuingGetFull.js.map +1 -1
- package/mcp-server/tools/imagesUpload.js +1 -1
- package/mcp-server/tools/imagesUpload.js.map +1 -1
- package/mcp-server/tools/institutionsSearch.js +1 -1
- package/mcp-server/tools/transfersCreateCancellation.d.ts.map +1 -1
- package/mcp-server/tools/transfersCreateCancellation.js +3 -0
- package/mcp-server/tools/transfersCreateCancellation.js.map +1 -1
- package/mcp-server/tools/transfersCreateCapture.d.ts.map +1 -1
- package/mcp-server/tools/transfersCreateCapture.js +2 -1
- package/mcp-server/tools/transfersCreateCapture.js.map +1 -1
- package/mcp-server/tools/transfersCreateReversal.d.ts.map +1 -1
- package/mcp-server/tools/transfersCreateReversal.js +4 -1
- package/mcp-server/tools/transfersCreateReversal.js.map +1 -1
- package/mcp-server/tools/transfersGetCapture.d.ts.map +1 -1
- package/mcp-server/tools/transfersGetCapture.js +1 -1
- package/mcp-server/tools/transfersGetCapture.js.map +1 -1
- package/mcp-server/tools/transfersListCancellations.js +1 -1
- package/mcp-server/tools/transfersListCaptures.d.ts.map +1 -1
- package/mcp-server/tools/transfersListCaptures.js +1 -1
- package/mcp-server/tools/transfersListCaptures.js.map +1 -1
- package/models/components/achcredittransferprocessingdetails.d.ts +6 -0
- package/models/components/achcredittransferprocessingdetails.d.ts.map +1 -1
- package/models/components/achcredittransferprocessingdetails.js +3 -0
- package/models/components/achcredittransferprocessingdetails.js.map +1 -1
- package/models/components/achdebittransferprocessingdetails.d.ts +6 -0
- package/models/components/achdebittransferprocessingdetails.d.ts.map +1 -1
- package/models/components/achdebittransferprocessingdetails.js +3 -0
- package/models/components/achdebittransferprocessingdetails.js.map +1 -1
- package/models/components/achtransactionstatus.d.ts +23 -0
- package/models/components/achtransactionstatus.d.ts.map +1 -0
- package/models/components/achtransactionstatus.js +57 -0
- package/models/components/achtransactionstatus.js.map +1 -0
- package/models/components/adjustmentfees.d.ts +30 -0
- package/models/components/adjustmentfees.d.ts.map +1 -0
- package/models/components/adjustmentfees.js +62 -0
- package/models/components/adjustmentfees.js.map +1 -0
- package/models/components/amountdecimalrange.d.ts +1 -3
- package/models/components/amountdecimalrange.d.ts.map +1 -1
- package/models/components/amountdecimalrange.js.map +1 -1
- package/models/components/amountdecimalrangeupdate.d.ts +1 -3
- package/models/components/amountdecimalrangeupdate.d.ts.map +1 -1
- package/models/components/amountdecimalrangeupdate.js.map +1 -1
- package/models/components/applicationscope.d.ts +1 -1
- package/models/components/applicationscope.js +1 -1
- package/models/components/applicationscope.js.map +1 -1
- package/models/components/asynccreatedrefund.d.ts +1 -1
- package/models/components/bankaccountattestation.d.ts +48 -0
- package/models/components/bankaccountattestation.d.ts.map +1 -0
- package/models/components/bankaccountattestation.js +69 -0
- package/models/components/bankaccountattestation.js.map +1 -0
- package/models/components/bankaccountattestationeligibility.d.ts +28 -0
- package/models/components/bankaccountattestationeligibility.d.ts.map +1 -0
- package/models/components/bankaccountattestationeligibility.js +61 -0
- package/models/components/bankaccountattestationeligibility.js.map +1 -0
- package/models/components/bankaccountattestationsummary.d.ts +38 -0
- package/models/components/bankaccountattestationsummary.d.ts.map +1 -0
- package/models/components/bankaccountattestationsummary.js +65 -0
- package/models/components/bankaccountattestationsummary.js.map +1 -0
- package/models/components/billingadjustment.d.ts +34 -0
- package/models/components/billingadjustment.d.ts.map +1 -0
- package/models/components/billingadjustment.js +64 -0
- package/models/components/billingadjustment.js.map +1 -0
- package/models/components/billingsummary.d.ts +15 -10
- package/models/components/billingsummary.d.ts.map +1 -1
- package/models/components/billingsummary.js +14 -11
- package/models/components/billingsummary.js.map +1 -1
- package/models/components/cancellation.d.ts +3 -0
- package/models/components/cancellation.d.ts.map +1 -1
- package/models/components/cancellation.js.map +1 -1
- package/models/components/capture.d.ts +9 -3
- package/models/components/capture.d.ts.map +1 -1
- package/models/components/capture.js +3 -0
- package/models/components/capture.js.map +1 -1
- package/models/components/capturestatus.d.ts +0 -2
- package/models/components/capturestatus.d.ts.map +1 -1
- package/models/components/capturestatus.js +0 -2
- package/models/components/capturestatus.js.map +1 -1
- package/models/components/cardacquiringrefund.d.ts +1 -1
- package/models/components/cardissuing.d.ts +25 -0
- package/models/components/cardissuing.d.ts.map +1 -0
- package/models/components/cardissuing.js +60 -0
- package/models/components/cardissuing.js.map +1 -0
- package/models/components/cardissuingerror.d.ts +18 -0
- package/models/components/cardissuingerror.d.ts.map +1 -0
- package/models/components/cardissuingerror.js +60 -0
- package/models/components/cardissuingerror.js.map +1 -0
- package/models/components/cardpaymenttransactionstatus.d.ts +22 -0
- package/models/components/cardpaymenttransactionstatus.d.ts.map +1 -0
- package/models/components/cardpaymenttransactionstatus.js +56 -0
- package/models/components/cardpaymenttransactionstatus.js.map +1 -0
- package/models/components/cardpaymenttransferprocessingdetails.d.ts +11 -2
- package/models/components/cardpaymenttransferprocessingdetails.d.ts.map +1 -1
- package/models/components/cardpaymenttransferprocessingdetails.js +5 -2
- package/models/components/cardpaymenttransferprocessingdetails.js.map +1 -1
- package/models/components/cardtransactionfailurecode.d.ts +16 -0
- package/models/components/cardtransactionfailurecode.d.ts.map +1 -1
- package/models/components/cardtransactionfailurecode.js +16 -0
- package/models/components/cardtransactionfailurecode.js.map +1 -1
- package/models/components/createbankaccountattestation.d.ts +28 -0
- package/models/components/createbankaccountattestation.d.ts.map +1 -0
- package/models/components/createbankaccountattestation.js +61 -0
- package/models/components/createbankaccountattestation.js.map +1 -0
- package/models/components/createcancellation.d.ts +10 -0
- package/models/components/createcancellation.d.ts.map +1 -1
- package/models/components/createcancellation.js.map +1 -1
- package/models/components/createcapture.d.ts +13 -4
- package/models/components/createcapture.d.ts.map +1 -1
- package/models/components/createcapture.js.map +1 -1
- package/models/components/createdtransfer.d.ts +14 -0
- package/models/components/createdtransfer.d.ts.map +1 -1
- package/models/components/createdtransfer.js.map +1 -1
- package/models/components/createfeeplanagreement.d.ts +16 -1
- package/models/components/createfeeplanagreement.d.ts.map +1 -1
- package/models/components/createfeeplanagreement.js +2 -0
- package/models/components/createfeeplanagreement.js.map +1 -1
- package/models/components/createpaymentlink.d.ts +3 -0
- package/models/components/createpaymentlink.d.ts.map +1 -1
- package/models/components/createpaymentlink.js.map +1 -1
- package/models/components/createrefund.d.ts +2 -2
- package/models/components/createreversal.d.ts +6 -1
- package/models/components/createreversal.d.ts.map +1 -1
- package/models/components/createreversal.js.map +1 -1
- package/models/components/createtransfer.d.ts +1 -1
- package/models/components/createtransferdestination.d.ts +6 -0
- package/models/components/createtransferdestination.d.ts.map +1 -1
- package/models/components/createtransferdestination.js +3 -0
- package/models/components/createtransferdestination.js.map +1 -1
- package/models/components/createtransferdestinationwire.d.ts +23 -0
- package/models/components/createtransferdestinationwire.d.ts.map +1 -0
- package/models/components/createtransferdestinationwire.js +59 -0
- package/models/components/createtransferdestinationwire.js.map +1 -0
- package/models/components/facilitatorfee.d.ts +7 -23
- package/models/components/facilitatorfee.d.ts.map +1 -1
- package/models/components/facilitatorfee.js +5 -8
- package/models/components/facilitatorfee.js.map +1 -1
- package/models/components/feepaidby.d.ts +0 -6
- package/models/components/feepaidby.d.ts.map +1 -1
- package/models/components/feepaidby.js +0 -3
- package/models/components/feepaidby.js.map +1 -1
- package/models/components/feeplanagreement.d.ts +10 -0
- package/models/components/feeplanagreement.d.ts.map +1 -1
- package/models/components/feeplanagreement.js +5 -0
- package/models/components/feeplanagreement.js.map +1 -1
- package/models/components/fullissuedcard.d.ts +1 -0
- package/models/components/fullissuedcard.d.ts.map +1 -1
- package/models/components/fullissuedcard.js.map +1 -1
- package/models/components/index.d.ts +21 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +21 -0
- package/models/components/index.js.map +1 -1
- package/models/components/instantbankcredittransferprocessingdetails.d.ts +6 -0
- package/models/components/instantbankcredittransferprocessingdetails.d.ts.map +1 -1
- package/models/components/instantbankcredittransferprocessingdetails.js +3 -0
- package/models/components/instantbankcredittransferprocessingdetails.js.map +1 -1
- package/models/components/instantbanktransactionstatus.d.ts +20 -0
- package/models/components/instantbanktransactionstatus.d.ts.map +1 -0
- package/models/components/instantbanktransactionstatus.js +54 -0
- package/models/components/instantbanktransactionstatus.js.map +1 -0
- package/models/components/issuedcard.d.ts +1 -0
- package/models/components/issuedcard.d.ts.map +1 -1
- package/models/components/issuedcard.js.map +1 -1
- package/models/components/issuedcardstate.d.ts +3 -0
- package/models/components/issuedcardstate.d.ts.map +1 -1
- package/models/components/issuedcardstate.js +2 -0
- package/models/components/issuedcardstate.js.map +1 -1
- package/models/components/issuedcontrols.d.ts +1 -4
- package/models/components/issuedcontrols.d.ts.map +1 -1
- package/models/components/issuedcontrols.js.map +1 -1
- package/models/components/issuingcontrols.d.ts +5 -5
- package/models/components/issuingcontrols.d.ts.map +1 -1
- package/models/components/issuingcontrolsrestrictionmode.d.ts +2 -2
- package/models/components/issuingcontrolsrestrictionmode.js +1 -1
- package/models/components/merchantcategoryrestrictions.d.ts +2 -2
- package/models/components/merchantentry.d.ts +3 -3
- package/models/components/merchantentry.d.ts.map +1 -1
- package/models/components/merchantentry.js +2 -2
- package/models/components/merchantentry.js.map +1 -1
- package/models/components/merchantentryerror.d.ts +2 -2
- package/models/components/merchantentryerror.d.ts.map +1 -1
- package/models/components/merchantentryerror.js +2 -2
- package/models/components/merchantentryerror.js.map +1 -1
- package/models/components/merchantrestrictions.d.ts +1 -1
- package/models/components/partnerpricingagreement.d.ts +12 -2
- package/models/components/partnerpricingagreement.d.ts.map +1 -1
- package/models/components/partnerpricingagreement.js +5 -0
- package/models/components/partnerpricingagreement.js.map +1 -1
- package/models/components/paymentlink.d.ts +4 -3
- package/models/components/paymentlink.d.ts.map +1 -1
- package/models/components/paymentlink.js.map +1 -1
- package/models/components/paymentlinkcustomamountpaymentdetails.d.ts +1 -3
- package/models/components/paymentlinkcustomamountpaymentdetails.d.ts.map +1 -1
- package/models/components/paymentlinkcustomamountpaymentdetails.js.map +1 -1
- package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts +1 -3
- package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts.map +1 -1
- package/models/components/paymentlinkcustomamountpaymentdetailsupdate.js.map +1 -1
- package/models/components/paymentlinkpayoutdetails.d.ts +7 -8
- package/models/components/paymentlinkpayoutdetails.d.ts.map +1 -1
- package/models/components/paymentlinkpayoutdetails.js.map +1 -1
- package/models/components/paymentlinkpayoutdetailsupdate.d.ts +7 -8
- package/models/components/paymentlinkpayoutdetailsupdate.d.ts.map +1 -1
- package/models/components/paymentlinkpayoutdetailsupdate.js.map +1 -1
- package/models/components/paymentmethod.d.ts +3 -2
- package/models/components/paymentmethod.d.ts.map +1 -1
- package/models/components/paymentmethod.js +3 -0
- package/models/components/paymentmethod.js.map +1 -1
- package/models/components/paymentmethodtype.d.ts +1 -0
- package/models/components/paymentmethodtype.d.ts.map +1 -1
- package/models/components/paymentmethodtype.js +1 -0
- package/models/components/paymentmethodtype.js.map +1 -1
- package/models/components/pullfromcardtransactionstatus.d.ts +19 -0
- package/models/components/pullfromcardtransactionstatus.d.ts.map +1 -0
- package/models/components/pullfromcardtransactionstatus.js +53 -0
- package/models/components/pullfromcardtransactionstatus.js.map +1 -0
- package/models/components/pullfromcardtransferprocessingdetails.d.ts +6 -0
- package/models/components/pullfromcardtransferprocessingdetails.d.ts.map +1 -1
- package/models/components/pullfromcardtransferprocessingdetails.js +3 -0
- package/models/components/pullfromcardtransferprocessingdetails.js.map +1 -1
- package/models/components/pushoptions.d.ts +4 -6
- package/models/components/pushoptions.d.ts.map +1 -1
- package/models/components/pushoptions.js.map +1 -1
- package/models/components/pushoptionsupdate.d.ts +4 -6
- package/models/components/pushoptionsupdate.d.ts.map +1 -1
- package/models/components/pushoptionsupdate.js.map +1 -1
- package/models/components/pushtocardtransactionstatus.d.ts +21 -0
- package/models/components/pushtocardtransactionstatus.d.ts.map +1 -0
- package/models/components/pushtocardtransactionstatus.js +55 -0
- package/models/components/pushtocardtransactionstatus.js.map +1 -0
- package/models/components/pushtocardtransferprocessingdetails.d.ts +6 -0
- package/models/components/pushtocardtransferprocessingdetails.d.ts.map +1 -1
- package/models/components/pushtocardtransferprocessingdetails.js +3 -0
- package/models/components/pushtocardtransferprocessingdetails.js.map +1 -1
- package/models/components/requestcard.d.ts +3 -0
- package/models/components/requestcard.d.ts.map +1 -1
- package/models/components/requestcard.js.map +1 -1
- package/models/components/requirementid.d.ts +15 -0
- package/models/components/requirementid.d.ts.map +1 -1
- package/models/components/requirementid.js +15 -0
- package/models/components/requirementid.js.map +1 -1
- package/models/components/reversalamountdetails.d.ts +5 -1
- package/models/components/reversalamountdetails.d.ts.map +1 -1
- package/models/components/reversalamountdetails.js.map +1 -1
- package/models/components/reversedwithcancellation.d.ts +3 -0
- package/models/components/reversedwithcancellation.d.ts.map +1 -1
- package/models/components/reversedwithcancellation.js.map +1 -1
- package/models/components/statement.d.ts +6 -0
- package/models/components/statement.d.ts.map +1 -1
- package/models/components/statement.js +3 -0
- package/models/components/statement.js.map +1 -1
- package/models/components/sweepconfig.d.ts +2 -2
- package/models/components/sweepconfigpaymentmethod.d.ts +1 -1
- package/models/components/transfer.d.ts +14 -0
- package/models/components/transfer.d.ts.map +1 -1
- package/models/components/transfer.js.map +1 -1
- package/models/components/transferauthorization.d.ts +21 -0
- package/models/components/transferauthorization.d.ts.map +1 -1
- package/models/components/transferauthorization.js.map +1 -1
- package/models/components/transferfeepaidby.d.ts +1 -1
- package/models/components/transferpaymentmethod.d.ts +3 -2
- package/models/components/transferpaymentmethod.d.ts.map +1 -1
- package/models/components/transferpaymentmethod.js +3 -0
- package/models/components/transferpaymentmethod.js.map +1 -1
- package/models/components/transferpaymentmethodtype.d.ts +1 -0
- package/models/components/transferpaymentmethodtype.d.ts.map +1 -1
- package/models/components/transferpaymentmethodtype.js +1 -0
- package/models/components/transferpaymentmethodtype.js.map +1 -1
- package/models/components/transferprocessingdetails.d.ts +6 -0
- package/models/components/transferprocessingdetails.d.ts.map +1 -1
- package/models/components/transferprocessingdetails.js +3 -0
- package/models/components/transferprocessingdetails.js.map +1 -1
- package/models/components/transferrailoptions.d.ts +6 -0
- package/models/components/transferrailoptions.d.ts.map +1 -1
- package/models/components/transferrailoptions.js +3 -0
- package/models/components/transferrailoptions.js.map +1 -1
- package/models/components/transfertype.d.ts +1 -0
- package/models/components/transfertype.d.ts.map +1 -1
- package/models/components/transfertype.js +1 -0
- package/models/components/transfertype.js.map +1 -1
- package/models/components/underwriting.d.ts +10 -0
- package/models/components/underwriting.d.ts.map +1 -1
- package/models/components/underwriting.js +3 -0
- package/models/components/underwriting.js.map +1 -1
- package/models/components/updateissuedcard.d.ts +2 -0
- package/models/components/updateissuedcard.d.ts.map +1 -1
- package/models/components/updateissuedcard.js.map +1 -1
- package/models/components/updateissuedcardstate.d.ts +6 -0
- package/models/components/updateissuedcardstate.d.ts.map +1 -1
- package/models/components/updateissuedcardstate.js +4 -0
- package/models/components/updateissuedcardstate.js.map +1 -1
- package/models/components/updateissuingcontrols.d.ts +10 -10
- package/models/components/updatepaymentlink.d.ts +3 -0
- package/models/components/updatepaymentlink.d.ts.map +1 -1
- package/models/components/updatepaymentlink.js.map +1 -1
- package/models/components/upsertunderwriting.d.ts +10 -0
- package/models/components/upsertunderwriting.d.ts.map +1 -1
- package/models/components/upsertunderwriting.js +3 -0
- package/models/components/upsertunderwriting.js.map +1 -1
- package/models/components/wallettransactiontype.d.ts +1 -0
- package/models/components/wallettransactiontype.d.ts.map +1 -1
- package/models/components/wallettransactiontype.js +1 -0
- package/models/components/wallettransactiontype.js.map +1 -1
- package/models/components/webhookdata.d.ts +3 -2
- package/models/components/webhookdata.d.ts.map +1 -1
- package/models/components/webhookdata.js +3 -0
- package/models/components/webhookdata.js.map +1 -1
- package/models/components/webhookdatacaptureupdated.d.ts +30 -0
- package/models/components/webhookdatacaptureupdated.d.ts.map +1 -0
- package/models/components/webhookdatacaptureupdated.js +66 -0
- package/models/components/webhookdatacaptureupdated.js.map +1 -0
- package/models/components/webhookdatatransferstatus.d.ts +1 -0
- package/models/components/webhookdatatransferstatus.d.ts.map +1 -1
- package/models/components/webhookdatatransferstatus.js +1 -0
- package/models/components/webhookdatatransferstatus.js.map +1 -1
- package/models/components/webhookeventtype.d.ts +1 -0
- package/models/components/webhookeventtype.d.ts.map +1 -1
- package/models/components/webhookeventtype.js +1 -0
- package/models/components/webhookeventtype.js.map +1 -1
- package/models/components/wirecreditpaymentmethod.d.ts +31 -0
- package/models/components/wirecreditpaymentmethod.d.ts.map +1 -0
- package/models/components/wirecreditpaymentmethod.js +64 -0
- package/models/components/wirecreditpaymentmethod.js.map +1 -0
- package/models/components/wirecredittransferpaymentmethod.d.ts +31 -0
- package/models/components/wirecredittransferpaymentmethod.d.ts.map +1 -0
- package/models/components/wirecredittransferpaymentmethod.js +64 -0
- package/models/components/wirecredittransferpaymentmethod.js.map +1 -0
- package/models/components/wirefailurecode.d.ts +25 -0
- package/models/components/wirefailurecode.d.ts.map +1 -0
- package/models/components/wirefailurecode.js +59 -0
- package/models/components/wirefailurecode.js.map +1 -0
- package/models/components/wireoptions.d.ts +23 -0
- package/models/components/wireoptions.d.ts.map +1 -0
- package/models/components/wireoptions.js +59 -0
- package/models/components/wireoptions.js.map +1 -0
- package/models/components/wiretransactionstatus.d.ts +20 -0
- package/models/components/wiretransactionstatus.d.ts.map +1 -0
- package/models/components/wiretransactionstatus.js +54 -0
- package/models/components/wiretransactionstatus.js.map +1 -0
- package/models/components/wiretransferprocessingdetails.d.ts +35 -0
- package/models/components/wiretransferprocessingdetails.d.ts.map +1 -0
- package/models/components/wiretransferprocessingdetails.js +65 -0
- package/models/components/wiretransferprocessingdetails.js.map +1 -0
- package/models/errors/bankaccountattestationvalidationerror.d.ts +45 -0
- package/models/errors/bankaccountattestationvalidationerror.d.ts.map +1 -0
- package/models/errors/bankaccountattestationvalidationerror.js +83 -0
- package/models/errors/bankaccountattestationvalidationerror.js.map +1 -0
- package/models/errors/cardacquiringrefund.d.ts +2 -2
- package/models/errors/imagemetadata.d.ts +78 -0
- package/models/errors/imagemetadata.d.ts.map +1 -0
- package/models/errors/imagemetadata.js +98 -0
- package/models/errors/imagemetadata.js.map +1 -0
- package/models/errors/index.d.ts +2 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +2 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/transfer.d.ts +28 -0
- package/models/errors/transfer.d.ts.map +1 -1
- package/models/errors/transfer.js.map +1 -1
- package/models/errors/upsertunderwritingerror.d.ts +3 -0
- package/models/errors/upsertunderwritingerror.d.ts.map +1 -1
- package/models/errors/upsertunderwritingerror.js +4 -0
- package/models/errors/upsertunderwritingerror.js.map +1 -1
- package/models/operations/createbankaccountattestation.d.ts +41 -0
- package/models/operations/createbankaccountattestation.d.ts.map +1 -0
- package/models/operations/createbankaccountattestation.js +101 -0
- package/models/operations/createbankaccountattestation.js.map +1 -0
- package/models/operations/createcapture.d.ts +2 -2
- package/models/operations/getbankaccountattestationeligibility.d.ts +47 -0
- package/models/operations/getbankaccountattestationeligibility.d.ts.map +1 -0
- package/models/operations/getbankaccountattestationeligibility.js +93 -0
- package/models/operations/getbankaccountattestationeligibility.js.map +1 -0
- package/models/operations/getcapture.d.ts +2 -2
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listaccounts.d.ts +3 -0
- package/models/operations/listaccounts.d.ts.map +1 -1
- package/models/operations/listaccounts.js.map +1 -1
- package/models/operations/listbankaccountattestations.d.ts +39 -0
- package/models/operations/listbankaccountattestations.d.ts.map +1 -0
- package/models/operations/listbankaccountattestations.js +91 -0
- package/models/operations/listbankaccountattestations.js.map +1 -0
- package/models/operations/listcaptures.d.ts +2 -2
- package/models/operations/listconnectedaccountsforaccount.d.ts +3 -0
- package/models/operations/listconnectedaccountsforaccount.d.ts.map +1 -1
- package/models/operations/listconnectedaccountsforaccount.js.map +1 -1
- package/models/operations/listdisputes.d.ts +3 -0
- package/models/operations/listdisputes.d.ts.map +1 -1
- package/models/operations/listdisputes.js.map +1 -1
- package/models/operations/listfeeplanagreements.d.ts +3 -0
- package/models/operations/listfeeplanagreements.d.ts.map +1 -1
- package/models/operations/listfeeplanagreements.js.map +1 -1
- package/models/operations/listfeerevenue.d.ts +3 -0
- package/models/operations/listfeerevenue.d.ts.map +1 -1
- package/models/operations/listfeerevenue.js.map +1 -1
- package/models/operations/listinvoices.d.ts +3 -0
- package/models/operations/listinvoices.d.ts.map +1 -1
- package/models/operations/listinvoices.js.map +1 -1
- package/models/operations/listissuedcardauthorizationevents.d.ts +3 -0
- package/models/operations/listissuedcardauthorizationevents.d.ts.map +1 -1
- package/models/operations/listissuedcardauthorizationevents.js.map +1 -1
- package/models/operations/listissuedcardauthorizations.d.ts +3 -0
- package/models/operations/listissuedcardauthorizations.d.ts.map +1 -1
- package/models/operations/listissuedcardauthorizations.js.map +1 -1
- package/models/operations/listissuedcards.d.ts +3 -0
- package/models/operations/listissuedcards.d.ts.map +1 -1
- package/models/operations/listissuedcards.js.map +1 -1
- package/models/operations/listissuedcardtransactions.d.ts +8 -0
- package/models/operations/listissuedcardtransactions.d.ts.map +1 -1
- package/models/operations/listissuedcardtransactions.js +2 -0
- package/models/operations/listissuedcardtransactions.js.map +1 -1
- package/models/operations/listpartnerpricingagreements.d.ts +3 -0
- package/models/operations/listpartnerpricingagreements.d.ts.map +1 -1
- package/models/operations/listpartnerpricingagreements.js.map +1 -1
- package/models/operations/listpaymentlinks.d.ts +3 -0
- package/models/operations/listpaymentlinks.d.ts.map +1 -1
- package/models/operations/listpaymentlinks.js.map +1 -1
- package/models/operations/listproducts.d.ts +3 -0
- package/models/operations/listproducts.d.ts.map +1 -1
- package/models/operations/listproducts.js.map +1 -1
- package/models/operations/listresidualfees.d.ts +3 -0
- package/models/operations/listresidualfees.d.ts.map +1 -1
- package/models/operations/listresidualfees.js.map +1 -1
- package/models/operations/listresiduals.d.ts +3 -0
- package/models/operations/listresiduals.d.ts.map +1 -1
- package/models/operations/listresiduals.js.map +1 -1
- package/models/operations/listschedules.d.ts +3 -0
- package/models/operations/listschedules.d.ts.map +1 -1
- package/models/operations/listschedules.js.map +1 -1
- package/models/operations/liststatements.d.ts +3 -0
- package/models/operations/liststatements.d.ts.map +1 -1
- package/models/operations/liststatements.js.map +1 -1
- package/models/operations/listsweeps.d.ts +3 -0
- package/models/operations/listsweeps.d.ts.map +1 -1
- package/models/operations/listsweeps.js.map +1 -1
- package/models/operations/listtickets.d.ts +3 -0
- package/models/operations/listtickets.d.ts.map +1 -1
- package/models/operations/listtickets.js.map +1 -1
- package/models/operations/listtransfers.d.ts +4 -6
- package/models/operations/listtransfers.d.ts.map +1 -1
- package/models/operations/listtransfers.js +0 -2
- package/models/operations/listtransfers.js.map +1 -1
- package/models/operations/listwallets.d.ts +3 -0
- package/models/operations/listwallets.d.ts.map +1 -1
- package/models/operations/listwallets.js.map +1 -1
- package/models/operations/listwallettransactions.d.ts +3 -0
- package/models/operations/listwallettransactions.d.ts.map +1 -1
- package/models/operations/listwallettransactions.js.map +1 -1
- package/models/operations/retrievefees.d.ts +3 -0
- package/models/operations/retrievefees.d.ts.map +1 -1
- package/models/operations/retrievefees.js.map +1 -1
- package/package.json +1 -1
- package/sdk/bankaccounts.d.ts +30 -0
- package/sdk/bankaccounts.d.ts.map +1 -1
- package/sdk/bankaccounts.js +39 -0
- package/sdk/bankaccounts.js.map +1 -1
- package/sdk/cardissuing.d.ts +1 -1
- package/sdk/cardissuing.js +1 -1
- package/sdk/images.d.ts +1 -1
- package/sdk/images.js +1 -1
- package/sdk/institutions.d.ts +1 -1
- package/sdk/institutions.js +1 -1
- package/sdk/transfers.d.ts +10 -3
- package/sdk/transfers.d.ts.map +1 -1
- package/sdk/transfers.js +10 -3
- package/sdk/transfers.js.map +1 -1
- package/src/funcs/bankAccountsCreateAttestation.ts +205 -0
- package/src/funcs/bankAccountsGetAttestationEligibility.ts +199 -0
- package/src/funcs/bankAccountsListAttestations.ts +179 -0
- package/src/funcs/cardIssuingGetFull.ts +1 -1
- package/src/funcs/imagesUpload.ts +6 -2
- package/src/funcs/institutionsSearch.ts +1 -1
- package/src/funcs/issuingTransactionsList.ts +1 -0
- package/src/funcs/transfersCreateCancellation.ts +6 -1
- package/src/funcs/transfersCreateCapture.ts +2 -1
- package/src/funcs/transfersCreateReversal.ts +3 -0
- package/src/funcs/transfersGetCapture.ts +1 -1
- package/src/funcs/transfersList.ts +0 -1
- package/src/funcs/transfersListCancellations.ts +1 -1
- package/src/funcs/transfersListCaptures.ts +2 -2
- package/src/funcs/transfersListRefunds.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +58 -23
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +7 -1
- package/src/mcp-server/tools/bankAccountsCreateAttestation.ts +46 -0
- package/src/mcp-server/tools/bankAccountsGetAttestationEligibility.ts +46 -0
- package/src/mcp-server/tools/bankAccountsListAttestations.ts +35 -0
- package/src/mcp-server/tools/cardIssuingGetFull.ts +1 -1
- package/src/mcp-server/tools/imagesUpload.ts +1 -1
- package/src/mcp-server/tools/institutionsSearch.ts +1 -1
- package/src/mcp-server/tools/transfersCreateCancellation.ts +3 -0
- package/src/mcp-server/tools/transfersCreateCapture.ts +3 -1
- package/src/mcp-server/tools/transfersCreateReversal.ts +4 -1
- package/src/mcp-server/tools/transfersGetCapture.ts +2 -1
- package/src/mcp-server/tools/transfersListCancellations.ts +1 -1
- package/src/mcp-server/tools/transfersListCaptures.ts +2 -1
- package/src/models/components/achcredittransferprocessingdetails.ts +12 -0
- package/src/models/components/achdebittransferprocessingdetails.ts +12 -0
- package/src/models/components/achtransactionstatus.ts +37 -0
- package/src/models/components/adjustmentfees.ts +72 -0
- package/src/models/components/amountdecimalrange.ts +1 -3
- package/src/models/components/amountdecimalrangeupdate.ts +1 -3
- package/src/models/components/applicationscope.ts +1 -1
- package/src/models/components/asynccreatedrefund.ts +1 -1
- package/src/models/components/bankaccountattestation.ts +95 -0
- package/src/models/components/bankaccountattestationeligibility.ts +67 -0
- package/src/models/components/bankaccountattestationsummary.ts +83 -0
- package/src/models/components/billingadjustment.ts +78 -0
- package/src/models/components/billingsummary.ts +35 -19
- package/src/models/components/cancellation.ts +3 -0
- package/src/models/components/capture.ts +15 -3
- package/src/models/components/capturestatus.ts +0 -2
- package/src/models/components/cardacquiringrefund.ts +1 -1
- package/src/models/components/cardissuing.ts +61 -0
- package/src/models/components/cardissuingerror.ts +58 -0
- package/src/models/components/cardpaymenttransactionstatus.ts +38 -0
- package/src/models/components/cardpaymenttransferprocessingdetails.ts +19 -4
- package/src/models/components/cardtransactionfailurecode.ts +16 -0
- package/src/models/components/createbankaccountattestation.ts +69 -0
- package/src/models/components/createcancellation.ts +10 -0
- package/src/models/components/createcapture.ts +13 -4
- package/src/models/components/createdtransfer.ts +14 -0
- package/src/models/components/createfeeplanagreement.ts +18 -1
- package/src/models/components/createpaymentlink.ts +3 -0
- package/src/models/components/createrefund.ts +2 -2
- package/src/models/components/createreversal.ts +6 -1
- package/src/models/components/createtransfer.ts +1 -1
- package/src/models/components/createtransferdestination.ts +13 -0
- package/src/models/components/createtransferdestinationwire.ts +60 -0
- package/src/models/components/facilitatorfee.ts +16 -31
- package/src/models/components/feepaidby.ts +0 -6
- package/src/models/components/feeplanagreement.ts +15 -0
- package/src/models/components/fullissuedcard.ts +1 -0
- package/src/models/components/index.ts +21 -0
- package/src/models/components/instantbankcredittransferprocessingdetails.ts +12 -0
- package/src/models/components/instantbanktransactionstatus.ts +36 -0
- package/src/models/components/issuedcard.ts +1 -0
- package/src/models/components/issuedcardstate.ts +3 -0
- package/src/models/components/issuedcontrols.ts +1 -4
- package/src/models/components/issuingcontrols.ts +5 -5
- package/src/models/components/issuingcontrolsrestrictionmode.ts +2 -2
- package/src/models/components/merchantcategoryrestrictions.ts +2 -2
- package/src/models/components/merchantentry.ts +5 -5
- package/src/models/components/merchantentryerror.ts +4 -4
- package/src/models/components/merchantrestrictions.ts +1 -1
- package/src/models/components/partnerpricingagreement.ts +17 -2
- package/src/models/components/paymentlink.ts +4 -3
- package/src/models/components/paymentlinkcustomamountpaymentdetails.ts +1 -3
- package/src/models/components/paymentlinkcustomamountpaymentdetailsupdate.ts +1 -3
- package/src/models/components/paymentlinkpayoutdetails.ts +7 -8
- package/src/models/components/paymentlinkpayoutdetailsupdate.ts +7 -8
- package/src/models/components/paymentmethod.ts +11 -1
- package/src/models/components/paymentmethodtype.ts +1 -0
- package/src/models/components/pullfromcardtransactionstatus.ts +35 -0
- package/src/models/components/pullfromcardtransferprocessingdetails.ts +12 -0
- package/src/models/components/pushoptions.ts +4 -6
- package/src/models/components/pushoptionsupdate.ts +4 -6
- package/src/models/components/pushtocardtransactionstatus.ts +37 -0
- package/src/models/components/pushtocardtransferprocessingdetails.ts +12 -0
- package/src/models/components/requestcard.ts +3 -0
- package/src/models/components/requirementid.ts +30 -0
- package/src/models/components/reversalamountdetails.ts +5 -1
- package/src/models/components/reversedwithcancellation.ts +3 -0
- package/src/models/components/statement.ts +13 -0
- package/src/models/components/sweepconfig.ts +2 -2
- package/src/models/components/sweepconfigpaymentmethod.ts +1 -1
- package/src/models/components/transfer.ts +14 -0
- package/src/models/components/transferauthorization.ts +21 -0
- package/src/models/components/transferfeepaidby.ts +1 -1
- package/src/models/components/transferpaymentmethod.ts +11 -1
- package/src/models/components/transferpaymentmethodtype.ts +1 -0
- package/src/models/components/transferprocessingdetails.ts +13 -0
- package/src/models/components/transferrailoptions.ts +13 -0
- package/src/models/components/transfertype.ts +1 -0
- package/src/models/components/underwriting.ts +17 -0
- package/src/models/components/updateissuedcard.ts +2 -0
- package/src/models/components/updateissuedcardstate.ts +6 -0
- package/src/models/components/updateissuingcontrols.ts +10 -10
- package/src/models/components/updatepaymentlink.ts +3 -0
- package/src/models/components/upsertunderwriting.ts +17 -0
- package/src/models/components/wallettransactiontype.ts +1 -0
- package/src/models/components/webhookdata.ts +10 -0
- package/src/models/components/webhookdatacaptureupdated.ts +75 -0
- package/src/models/components/webhookdatatransferstatus.ts +1 -0
- package/src/models/components/webhookeventtype.ts +1 -0
- package/src/models/components/wirecreditpaymentmethod.ts +75 -0
- package/src/models/components/wirecredittransferpaymentmethod.ts +77 -0
- package/src/models/components/wirefailurecode.ts +39 -0
- package/src/models/components/wireoptions.ts +54 -0
- package/src/models/components/wiretransactionstatus.ts +34 -0
- package/src/models/components/wiretransferprocessingdetails.ts +84 -0
- package/src/models/errors/bankaccountattestationvalidationerror.ts +91 -0
- package/src/models/errors/cardacquiringrefund.ts +2 -2
- package/src/models/errors/imagemetadata.ts +139 -0
- package/src/models/errors/index.ts +2 -0
- package/src/models/errors/transfer.ts +28 -0
- package/src/models/errors/upsertunderwritingerror.ts +6 -0
- package/src/models/operations/createbankaccountattestation.ts +136 -0
- package/src/models/operations/createcapture.ts +2 -2
- package/src/models/operations/getbankaccountattestationeligibility.ts +149 -0
- package/src/models/operations/getcapture.ts +2 -2
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/listaccounts.ts +3 -0
- package/src/models/operations/listbankaccountattestations.ts +121 -0
- package/src/models/operations/listcaptures.ts +2 -2
- package/src/models/operations/listconnectedaccountsforaccount.ts +3 -0
- package/src/models/operations/listdisputes.ts +3 -0
- package/src/models/operations/listfeeplanagreements.ts +3 -0
- package/src/models/operations/listfeerevenue.ts +3 -0
- package/src/models/operations/listinvoices.ts +3 -0
- package/src/models/operations/listissuedcardauthorizationevents.ts +3 -0
- package/src/models/operations/listissuedcardauthorizations.ts +3 -0
- package/src/models/operations/listissuedcards.ts +3 -0
- package/src/models/operations/listissuedcardtransactions.ts +10 -0
- package/src/models/operations/listpartnerpricingagreements.ts +3 -0
- package/src/models/operations/listpaymentlinks.ts +3 -0
- package/src/models/operations/listproducts.ts +3 -0
- package/src/models/operations/listresidualfees.ts +3 -0
- package/src/models/operations/listresiduals.ts +3 -0
- package/src/models/operations/listschedules.ts +3 -0
- package/src/models/operations/liststatements.ts +3 -0
- package/src/models/operations/listsweeps.ts +3 -0
- package/src/models/operations/listtickets.ts +3 -0
- package/src/models/operations/listtransfers.ts +4 -8
- package/src/models/operations/listwallets.ts +3 -0
- package/src/models/operations/listwallettransactions.ts +3 -0
- package/src/models/operations/retrievefees.ts +3 -0
- package/src/sdk/bankaccounts.ts +63 -0
- package/src/sdk/cardissuing.ts +1 -1
- package/src/sdk/images.ts +1 -1
- package/src/sdk/institutions.ts +1 -1
- package/src/sdk/transfers.ts +10 -3
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { bankAccountsCreateAttestation } from "../../funcs/bankAccountsCreateAttestation.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.CreateBankAccountAttestationRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$bankAccountsCreateAttestation: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "bank-accounts-create-attestation",
|
|
15
|
+
description:
|
|
16
|
+
` Submit a new authorization attestation for a bank account in an \`errored\` status due to an R29 ACH return (\`Corporate Customer Advises Not Authorized\`).
|
|
17
|
+
|
|
18
|
+
After obtaining new authorization from the receiver, submit an attestation with the date the authorization was obtained and a brief description of how the authorization was obtained. If the attestation is accepted, the bank account transitions from \`errored\` to \`verified\`.
|
|
19
|
+
|
|
20
|
+
Constraints
|
|
21
|
+
|
|
22
|
+
- The bank account's current errored status must be the result of an R29 return.
|
|
23
|
+
- \`attestedAt\` must be on or after the date of the bank account's most recent R29 return and cannot be a future date.
|
|
24
|
+
- Only one attestation may be submitted for a bank account. Use the [Get attestation eligibility](https://docs.moov.io/api/sources/bank-accounts/attestation-eligibility/) endpoint to confirm eligibility before submitting an attestation.
|
|
25
|
+
|
|
26
|
+
This endpoint is available only to allowlisted partners. Contact Moov Support for more information.`,
|
|
27
|
+
args,
|
|
28
|
+
tool: async (client, args, ctx) => {
|
|
29
|
+
const [result, apiCall] = await bankAccountsCreateAttestation(
|
|
30
|
+
client,
|
|
31
|
+
args.request,
|
|
32
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
33
|
+
).$inspect();
|
|
34
|
+
|
|
35
|
+
if (!result.ok) {
|
|
36
|
+
return {
|
|
37
|
+
content: [{ type: "text", text: result.error.message }],
|
|
38
|
+
isError: true,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const value = result.value.result;
|
|
43
|
+
|
|
44
|
+
return formatResult(value, apiCall);
|
|
45
|
+
},
|
|
46
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { bankAccountsGetAttestationEligibility } from "../../funcs/bankAccountsGetAttestationEligibility.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.GetBankAccountAttestationEligibilityRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$bankAccountsGetAttestationEligibility: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "bank-accounts-get-attestation-eligibility",
|
|
17
|
+
description:
|
|
18
|
+
`Check whether a bank account is currently eligible for a new authorization attestation without submitting one.
|
|
19
|
+
|
|
20
|
+
- \`enabled\` indicates whether the calling account has access to the attestations feature. If \`enabled\` is \`false\`, \`eligible\` is always \`false\`.
|
|
21
|
+
- When \`enabled\` is \`true\`, \`eligible\` indicates whether the bank account currently meets the eligibility requirements for a new attestation: the bank account must be \`errored\` due to an R29 return, with no prior attestations.
|
|
22
|
+
|
|
23
|
+
This endpoint always returns \`200\`, including when the bank account is not eligible. Check the \`eligible\` field to determine eligibility.
|
|
24
|
+
|
|
25
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
26
|
+
you'll need to specify the \`/accounts/{accountID}/bank-accounts.read\` scope.`,
|
|
27
|
+
args,
|
|
28
|
+
tool: async (client, args, ctx) => {
|
|
29
|
+
const [result, apiCall] = await bankAccountsGetAttestationEligibility(
|
|
30
|
+
client,
|
|
31
|
+
args.request,
|
|
32
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
33
|
+
).$inspect();
|
|
34
|
+
|
|
35
|
+
if (!result.ok) {
|
|
36
|
+
return {
|
|
37
|
+
content: [{ type: "text", text: result.error.message }],
|
|
38
|
+
isError: true,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const value = result.value.result;
|
|
43
|
+
|
|
44
|
+
return formatResult(value, apiCall);
|
|
45
|
+
},
|
|
46
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { bankAccountsListAttestations } from "../../funcs/bankAccountsListAttestations.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.ListBankAccountAttestationsRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$bankAccountsListAttestations: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "bank-accounts-list-attestations",
|
|
15
|
+
description: `List the attestations submitted for a bank account.`,
|
|
16
|
+
args,
|
|
17
|
+
tool: async (client, args, ctx) => {
|
|
18
|
+
const [result, apiCall] = await bankAccountsListAttestations(
|
|
19
|
+
client,
|
|
20
|
+
args.request,
|
|
21
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
22
|
+
).$inspect();
|
|
23
|
+
|
|
24
|
+
if (!result.ok) {
|
|
25
|
+
return {
|
|
26
|
+
content: [{ type: "text", text: result.error.message }],
|
|
27
|
+
isError: true,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const value = result.value.result;
|
|
32
|
+
|
|
33
|
+
return formatResult(value, apiCall);
|
|
34
|
+
},
|
|
35
|
+
};
|
|
@@ -17,7 +17,7 @@ export const tool$cardIssuingGetFull: ToolDefinition<typeof args> = {
|
|
|
17
17
|
Only use this endpoint if you have provided Moov with a copy of your PCI attestation of compliance.
|
|
18
18
|
|
|
19
19
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
20
|
-
you'll need to specify the \`/accounts/{accountID}/issued-cards.read-
|
|
20
|
+
you'll need to specify the \`/accounts/{accountID}/issued-cards.read-private\` scope.`,
|
|
21
21
|
args,
|
|
22
22
|
tool: async (client, args, ctx) => {
|
|
23
23
|
const [result, apiCall] = await cardIssuingGetFull(
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$imagesUpload: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "images-upload",
|
|
15
15
|
description: ` Upload a new PNG, JPEG, or WebP image with optional metadata.
|
|
16
|
-
Duplicate images
|
|
16
|
+
Duplicate images return the existing image's metadata with a 409 status. Requests larger than 16MB will be rejected.`,
|
|
17
17
|
args,
|
|
18
18
|
tool: async (client, args, ctx) => {
|
|
19
19
|
const [result, apiCall] = await imagesUpload(
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$institutionsSearch: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "institutions-search",
|
|
15
15
|
description:
|
|
16
|
-
`This endpoint has been deprecated and will be removed in a future release. Use [/institutions](https://docs.moov.io/api/enrichment/
|
|
16
|
+
`This endpoint has been deprecated and will be removed in a future release. Use [/institutions](https://docs.moov.io/api/enrichment/institutions/get/).
|
|
17
17
|
|
|
18
18
|
Search for institutions by either their name or routing number.
|
|
19
19
|
|
|
@@ -14,6 +14,9 @@ export const tool$transfersCreateCancellation: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "transfers-create-cancellation",
|
|
15
15
|
description: ` Initiate a cancellation for a card, ACH, or queued transfer.
|
|
16
16
|
|
|
17
|
+
In v2026.10 and later, an auth-capture \`card-payment\` transfer can be canceled before any captures exist.
|
|
18
|
+
For these transfers, a successful cancellation reduces \`capturableAmount\` without changing \`authorizedAmount\`.
|
|
19
|
+
For these transfers, a partial cancellation leaves the remaining \`capturableAmount\` available for capture.
|
|
17
20
|
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
18
21
|
to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
19
22
|
args,
|
|
@@ -12,7 +12,9 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$transfersCreateCapture: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "transfers-create-capture",
|
|
15
|
-
description:
|
|
15
|
+
description:
|
|
16
|
+
`Create a capture against an auth-capture \`card-payment\` transfer.
|
|
17
|
+
The \`accountID\` must identify the partner account for the transfer.
|
|
16
18
|
|
|
17
19
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
18
20
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
@@ -13,7 +13,10 @@ const args = {
|
|
|
13
13
|
export const tool$transfersCreateReversal: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "transfers-create-reversal",
|
|
15
15
|
description:
|
|
16
|
-
`Reverses a card transfer by initiating a cancellation or refund depending on the transaction status.
|
|
16
|
+
`Reverses a card transfer by initiating a cancellation or refund depending on the transaction status.
|
|
17
|
+
In v2026.10 and later, reversing an auth-capture \`card-payment\` transfer with no captures cancels the entire \`capturableAmount\`.
|
|
18
|
+
In those API versions, an auth-capture \`card-payment\` transfer with one final capture is canceled or refunded depending on its processing state.
|
|
19
|
+
Auth-capture \`card-payment\` transfers with a non-final capture or multiple captures are not supported in those API versions.
|
|
17
20
|
Read our [reversals guide](https://docs.moov.io/guides/money-movement/accept-payments/card-acceptance/reversals/)
|
|
18
21
|
to learn more.
|
|
19
22
|
|
|
@@ -12,7 +12,8 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$transfersGetCapture: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "transfers-get-capture",
|
|
15
|
-
description:
|
|
15
|
+
description:
|
|
16
|
+
`Get details of a capture for an auth-capture \`card-payment\` transfer.
|
|
16
17
|
|
|
17
18
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
18
19
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$transfersListCancellations: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "transfers-list-cancellations",
|
|
15
15
|
description: ` Get a list of cancellations for a transfer.
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
18
18
|
to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
19
19
|
args,
|
|
@@ -12,7 +12,8 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$transfersListCaptures: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "transfers-list-captures",
|
|
15
|
-
description:
|
|
15
|
+
description:
|
|
16
|
+
`Get a list of captures for an auth-capture \`card-payment\` transfer.
|
|
16
17
|
|
|
17
18
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
18
19
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
@@ -13,8 +13,17 @@ import {
|
|
|
13
13
|
ACHException$Outbound,
|
|
14
14
|
ACHException$outboundSchema,
|
|
15
15
|
} from "./achexception.js";
|
|
16
|
+
import {
|
|
17
|
+
ACHTransactionStatus,
|
|
18
|
+
ACHTransactionStatus$inboundSchema,
|
|
19
|
+
ACHTransactionStatus$outboundSchema,
|
|
20
|
+
} from "./achtransactionstatus.js";
|
|
16
21
|
|
|
17
22
|
export type ACHCreditTransferProcessingDetails = {
|
|
23
|
+
/**
|
|
24
|
+
* Status of a transaction within the ACH lifecycle.
|
|
25
|
+
*/
|
|
26
|
+
status: ACHTransactionStatus;
|
|
18
27
|
traceNumber: string;
|
|
19
28
|
return?: ACHException | undefined;
|
|
20
29
|
correction?: ACHException | undefined;
|
|
@@ -26,12 +35,14 @@ export const ACHCreditTransferProcessingDetails$inboundSchema: z.ZodType<
|
|
|
26
35
|
z.ZodTypeDef,
|
|
27
36
|
unknown
|
|
28
37
|
> = z.object({
|
|
38
|
+
status: ACHTransactionStatus$inboundSchema,
|
|
29
39
|
traceNumber: types.string(),
|
|
30
40
|
return: types.optional(ACHException$inboundSchema),
|
|
31
41
|
correction: types.optional(ACHException$inboundSchema),
|
|
32
42
|
});
|
|
33
43
|
/** @internal */
|
|
34
44
|
export type ACHCreditTransferProcessingDetails$Outbound = {
|
|
45
|
+
status: string;
|
|
35
46
|
traceNumber: string;
|
|
36
47
|
return?: ACHException$Outbound | undefined;
|
|
37
48
|
correction?: ACHException$Outbound | undefined;
|
|
@@ -43,6 +54,7 @@ export const ACHCreditTransferProcessingDetails$outboundSchema: z.ZodType<
|
|
|
43
54
|
z.ZodTypeDef,
|
|
44
55
|
ACHCreditTransferProcessingDetails
|
|
45
56
|
> = z.object({
|
|
57
|
+
status: ACHTransactionStatus$outboundSchema,
|
|
46
58
|
traceNumber: z.string(),
|
|
47
59
|
return: ACHException$outboundSchema.optional(),
|
|
48
60
|
correction: ACHException$outboundSchema.optional(),
|
|
@@ -13,8 +13,17 @@ import {
|
|
|
13
13
|
ACHException$Outbound,
|
|
14
14
|
ACHException$outboundSchema,
|
|
15
15
|
} from "./achexception.js";
|
|
16
|
+
import {
|
|
17
|
+
ACHTransactionStatus,
|
|
18
|
+
ACHTransactionStatus$inboundSchema,
|
|
19
|
+
ACHTransactionStatus$outboundSchema,
|
|
20
|
+
} from "./achtransactionstatus.js";
|
|
16
21
|
|
|
17
22
|
export type ACHDebitTransferProcessingDetails = {
|
|
23
|
+
/**
|
|
24
|
+
* Status of a transaction within the ACH lifecycle.
|
|
25
|
+
*/
|
|
26
|
+
status: ACHTransactionStatus;
|
|
18
27
|
traceNumber: string;
|
|
19
28
|
return?: ACHException | undefined;
|
|
20
29
|
correction?: ACHException | undefined;
|
|
@@ -26,12 +35,14 @@ export const ACHDebitTransferProcessingDetails$inboundSchema: z.ZodType<
|
|
|
26
35
|
z.ZodTypeDef,
|
|
27
36
|
unknown
|
|
28
37
|
> = z.object({
|
|
38
|
+
status: ACHTransactionStatus$inboundSchema,
|
|
29
39
|
traceNumber: types.string(),
|
|
30
40
|
return: types.optional(ACHException$inboundSchema),
|
|
31
41
|
correction: types.optional(ACHException$inboundSchema),
|
|
32
42
|
});
|
|
33
43
|
/** @internal */
|
|
34
44
|
export type ACHDebitTransferProcessingDetails$Outbound = {
|
|
45
|
+
status: string;
|
|
35
46
|
traceNumber: string;
|
|
36
47
|
return?: ACHException$Outbound | undefined;
|
|
37
48
|
correction?: ACHException$Outbound | undefined;
|
|
@@ -43,6 +54,7 @@ export const ACHDebitTransferProcessingDetails$outboundSchema: z.ZodType<
|
|
|
43
54
|
z.ZodTypeDef,
|
|
44
55
|
ACHDebitTransferProcessingDetails
|
|
45
56
|
> = z.object({
|
|
57
|
+
status: ACHTransactionStatus$outboundSchema,
|
|
46
58
|
traceNumber: z.string(),
|
|
47
59
|
return: ACHException$outboundSchema.optional(),
|
|
48
60
|
correction: ACHException$outboundSchema.optional(),
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Status of a transaction within the ACH lifecycle.
|
|
11
|
+
*/
|
|
12
|
+
export const ACHTransactionStatus = {
|
|
13
|
+
Unknown: "",
|
|
14
|
+
Initiated: "initiated",
|
|
15
|
+
Originated: "originated",
|
|
16
|
+
Corrected: "corrected",
|
|
17
|
+
Returned: "returned",
|
|
18
|
+
Completed: "completed",
|
|
19
|
+
Canceled: "canceled",
|
|
20
|
+
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* Status of a transaction within the ACH lifecycle.
|
|
23
|
+
*/
|
|
24
|
+
export type ACHTransactionStatus = OpenEnum<typeof ACHTransactionStatus>;
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const ACHTransactionStatus$inboundSchema: z.ZodType<
|
|
28
|
+
ACHTransactionStatus,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = openEnums.inboundSchema(ACHTransactionStatus);
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const ACHTransactionStatus$outboundSchema: z.ZodType<
|
|
34
|
+
string,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
ACHTransactionStatus
|
|
37
|
+
> = openEnums.outboundSchema(ACHTransactionStatus);
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
BillingAdjustment,
|
|
11
|
+
BillingAdjustment$inboundSchema,
|
|
12
|
+
BillingAdjustment$Outbound,
|
|
13
|
+
BillingAdjustment$outboundSchema,
|
|
14
|
+
} from "./billingadjustment.js";
|
|
15
|
+
import {
|
|
16
|
+
BillingCountAndAmount,
|
|
17
|
+
BillingCountAndAmount$inboundSchema,
|
|
18
|
+
BillingCountAndAmount$Outbound,
|
|
19
|
+
BillingCountAndAmount$outboundSchema,
|
|
20
|
+
} from "./billingcountandamount.js";
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* A detailed breakdown of adjustment (correction) fees by fee name.
|
|
24
|
+
*/
|
|
25
|
+
export type AdjustmentFees = {
|
|
26
|
+
/**
|
|
27
|
+
* Adjustment fees grouped by fee name.
|
|
28
|
+
*/
|
|
29
|
+
items: Array<BillingAdjustment>;
|
|
30
|
+
/**
|
|
31
|
+
* Total adjustment fees.
|
|
32
|
+
*/
|
|
33
|
+
total: BillingCountAndAmount;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const AdjustmentFees$inboundSchema: z.ZodType<
|
|
38
|
+
AdjustmentFees,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
unknown
|
|
41
|
+
> = z.object({
|
|
42
|
+
items: z.array(BillingAdjustment$inboundSchema),
|
|
43
|
+
total: BillingCountAndAmount$inboundSchema,
|
|
44
|
+
});
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type AdjustmentFees$Outbound = {
|
|
47
|
+
items: Array<BillingAdjustment$Outbound>;
|
|
48
|
+
total: BillingCountAndAmount$Outbound;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const AdjustmentFees$outboundSchema: z.ZodType<
|
|
53
|
+
AdjustmentFees$Outbound,
|
|
54
|
+
z.ZodTypeDef,
|
|
55
|
+
AdjustmentFees
|
|
56
|
+
> = z.object({
|
|
57
|
+
items: z.array(BillingAdjustment$outboundSchema),
|
|
58
|
+
total: BillingCountAndAmount$outboundSchema,
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
export function adjustmentFeesToJSON(adjustmentFees: AdjustmentFees): string {
|
|
62
|
+
return JSON.stringify(AdjustmentFees$outboundSchema.parse(adjustmentFees));
|
|
63
|
+
}
|
|
64
|
+
export function adjustmentFeesFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<AdjustmentFees, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => AdjustmentFees$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'AdjustmentFees' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -15,12 +15,10 @@ import {
|
|
|
15
15
|
} from "./amountdecimal.js";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* If either `minimum` or `maximum` is omitted, the range is "open" on that end:
|
|
19
19
|
*
|
|
20
20
|
* @remarks
|
|
21
21
|
*
|
|
22
|
-
* If either `minimum` or `maximum` is omitted, the range is "open" on that end:
|
|
23
|
-
*
|
|
24
22
|
* `minimum` specified: `amt >= minimum`
|
|
25
23
|
* `maximum` specified: `amt <= maximum`
|
|
26
24
|
* both specified: `minimum <= amt <= maximum`
|
|
@@ -15,12 +15,10 @@ import {
|
|
|
15
15
|
} from "./amountdecimalupdate.js";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* If either `minimum` or `maximum` is omitted, the range is "open" on that end:
|
|
19
19
|
*
|
|
20
20
|
* @remarks
|
|
21
21
|
*
|
|
22
|
-
* If either `minimum` or `maximum` is omitted, the range is "open" on that end:
|
|
23
|
-
*
|
|
24
22
|
* `minimum` specified: `amt >= minimum`
|
|
25
23
|
* `maximum` specified: `amt <= maximum`
|
|
26
24
|
* both specified: `minimum <= amt <= maximum`
|
|
@@ -30,7 +30,7 @@ export const ApplicationScope = {
|
|
|
30
30
|
FilesWrite: "files.write",
|
|
31
31
|
IssuedCardsRead: "issued-cards.read",
|
|
32
32
|
IssuedCardsWrite: "issued-cards.write",
|
|
33
|
-
|
|
33
|
+
IssuedCardsReadPrivate: "issued-cards.read-private",
|
|
34
34
|
PaymentMethodsRead: "payment-methods.read",
|
|
35
35
|
PingRead: "ping.read",
|
|
36
36
|
ProfileEnrichmentRead: "profile-enrichment.read",
|
|
@@ -28,7 +28,7 @@ export type AsyncCreatedRefund = {
|
|
|
28
28
|
createdOn: Date;
|
|
29
29
|
amount: AmountDecimal;
|
|
30
30
|
/**
|
|
31
|
-
* ID of the capture
|
|
31
|
+
* ID of the capture refunded for an auth-capture `card-payment` transfer.
|
|
32
32
|
*/
|
|
33
33
|
captureID?: string | undefined;
|
|
34
34
|
amountDetails?: RefundAmountDetails | undefined;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* An attestation that a new authorization was obtained for a R29-errored bank account.
|
|
13
|
+
*/
|
|
14
|
+
export type BankAccountAttestation = {
|
|
15
|
+
/**
|
|
16
|
+
* ID of the created attestation.
|
|
17
|
+
*/
|
|
18
|
+
attestationID: string;
|
|
19
|
+
/**
|
|
20
|
+
* ID of the bank account the attestation belongs to.
|
|
21
|
+
*/
|
|
22
|
+
bankAccountID: string;
|
|
23
|
+
/**
|
|
24
|
+
* ID of the Moov account the bank account is linked to.
|
|
25
|
+
*/
|
|
26
|
+
accountID: string;
|
|
27
|
+
/**
|
|
28
|
+
* Timestamp at which the attestation was created.
|
|
29
|
+
*/
|
|
30
|
+
createdOn: Date;
|
|
31
|
+
/**
|
|
32
|
+
* Date on which new authorization was obtained from the receiver, formatted as YYYY-MM-DD.
|
|
33
|
+
*/
|
|
34
|
+
attestedAt: Date;
|
|
35
|
+
/**
|
|
36
|
+
* Freeform text description describing how the authorization was obtained.
|
|
37
|
+
*/
|
|
38
|
+
description: string;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const BankAccountAttestation$inboundSchema: z.ZodType<
|
|
43
|
+
BankAccountAttestation,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
unknown
|
|
46
|
+
> = z.object({
|
|
47
|
+
attestationID: types.string(),
|
|
48
|
+
bankAccountID: types.string(),
|
|
49
|
+
accountID: types.string(),
|
|
50
|
+
createdOn: types.date(),
|
|
51
|
+
attestedAt: types.date(),
|
|
52
|
+
description: types.string(),
|
|
53
|
+
});
|
|
54
|
+
/** @internal */
|
|
55
|
+
export type BankAccountAttestation$Outbound = {
|
|
56
|
+
attestationID: string;
|
|
57
|
+
bankAccountID: string;
|
|
58
|
+
accountID: string;
|
|
59
|
+
createdOn: string;
|
|
60
|
+
attestedAt: string;
|
|
61
|
+
description: string;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const BankAccountAttestation$outboundSchema: z.ZodType<
|
|
66
|
+
BankAccountAttestation$Outbound,
|
|
67
|
+
z.ZodTypeDef,
|
|
68
|
+
BankAccountAttestation
|
|
69
|
+
> = z.object({
|
|
70
|
+
attestationID: z.string(),
|
|
71
|
+
bankAccountID: z.string(),
|
|
72
|
+
accountID: z.string(),
|
|
73
|
+
createdOn: z.date().transform(v => v.toISOString()),
|
|
74
|
+
attestedAt: z.date().transform(v =>
|
|
75
|
+
v.toISOString().slice(0, "YYYY-MM-DD".length)
|
|
76
|
+
),
|
|
77
|
+
description: z.string(),
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
export function bankAccountAttestationToJSON(
|
|
81
|
+
bankAccountAttestation: BankAccountAttestation,
|
|
82
|
+
): string {
|
|
83
|
+
return JSON.stringify(
|
|
84
|
+
BankAccountAttestation$outboundSchema.parse(bankAccountAttestation),
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
export function bankAccountAttestationFromJSON(
|
|
88
|
+
jsonString: string,
|
|
89
|
+
): SafeParseResult<BankAccountAttestation, SDKValidationError> {
|
|
90
|
+
return safeParse(
|
|
91
|
+
jsonString,
|
|
92
|
+
(x) => BankAccountAttestation$inboundSchema.parse(JSON.parse(x)),
|
|
93
|
+
`Failed to parse 'BankAccountAttestation' from JSON`,
|
|
94
|
+
);
|
|
95
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Whether a bank account is currently eligible to receive a new attestation.
|
|
13
|
+
*/
|
|
14
|
+
export type BankAccountAttestationEligibility = {
|
|
15
|
+
/**
|
|
16
|
+
* Whether the calling account is allowlisted for the attestations feature. When `false`, `eligible` is always `false`.
|
|
17
|
+
*/
|
|
18
|
+
enabled: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the bank account currently meets the requirements to receive a new attestation.
|
|
21
|
+
*/
|
|
22
|
+
eligible: boolean;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const BankAccountAttestationEligibility$inboundSchema: z.ZodType<
|
|
27
|
+
BankAccountAttestationEligibility,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
enabled: types.boolean(),
|
|
32
|
+
eligible: types.boolean(),
|
|
33
|
+
});
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type BankAccountAttestationEligibility$Outbound = {
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
eligible: boolean;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const BankAccountAttestationEligibility$outboundSchema: z.ZodType<
|
|
42
|
+
BankAccountAttestationEligibility$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
BankAccountAttestationEligibility
|
|
45
|
+
> = z.object({
|
|
46
|
+
enabled: z.boolean(),
|
|
47
|
+
eligible: z.boolean(),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export function bankAccountAttestationEligibilityToJSON(
|
|
51
|
+
bankAccountAttestationEligibility: BankAccountAttestationEligibility,
|
|
52
|
+
): string {
|
|
53
|
+
return JSON.stringify(
|
|
54
|
+
BankAccountAttestationEligibility$outboundSchema.parse(
|
|
55
|
+
bankAccountAttestationEligibility,
|
|
56
|
+
),
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
export function bankAccountAttestationEligibilityFromJSON(
|
|
60
|
+
jsonString: string,
|
|
61
|
+
): SafeParseResult<BankAccountAttestationEligibility, SDKValidationError> {
|
|
62
|
+
return safeParse(
|
|
63
|
+
jsonString,
|
|
64
|
+
(x) => BankAccountAttestationEligibility$inboundSchema.parse(JSON.parse(x)),
|
|
65
|
+
`Failed to parse 'BankAccountAttestationEligibility' from JSON`,
|
|
66
|
+
);
|
|
67
|
+
}
|