@moovio/sdk 26.10.0-dev.2 → 26.10.0-dev.4
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 +2526 -1427
- package/bin/mcp-server.js.map +171 -138
- 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 +22 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +22 -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/issuedcardauthorization.d.ts +5 -0
- package/models/components/issuedcardauthorization.d.ts.map +1 -1
- package/models/components/issuedcardauthorization.js +2 -0
- package/models/components/issuedcardauthorization.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/issuedcardtransaction.d.ts +5 -0
- package/models/components/issuedcardtransaction.d.ts.map +1 -1
- package/models/components/issuedcardtransaction.js +2 -0
- package/models/components/issuedcardtransaction.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 +4 -2
- package/models/components/webhookdata.d.ts.map +1 -1
- package/models/components/webhookdata.js +6 -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/webhookdataeventtest.d.ts +20 -0
- package/models/components/webhookdataeventtest.d.ts.map +1 -0
- package/models/components/webhookdataeventtest.js +59 -0
- package/models/components/webhookdataeventtest.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 +2 -0
- package/models/components/webhookeventtype.d.ts.map +1 -1
- package/models/components/webhookeventtype.js +2 -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 +22 -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/issuedcardauthorization.ts +7 -0
- package/src/models/components/issuedcardstate.ts +3 -0
- package/src/models/components/issuedcardtransaction.ts +7 -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 +22 -2
- package/src/models/components/webhookdatacaptureupdated.ts +75 -0
- package/src/models/components/webhookdataeventtest.ts +55 -0
- package/src/models/components/webhookdatatransferstatus.ts +1 -0
- package/src/models/components/webhookeventtype.ts +2 -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
|
@@ -18,6 +18,11 @@ import {
|
|
|
18
18
|
CaptureStatus$inboundSchema,
|
|
19
19
|
CaptureStatus$outboundSchema,
|
|
20
20
|
} from "./capturestatus.js";
|
|
21
|
+
import {
|
|
22
|
+
CardTransactionFailureCode,
|
|
23
|
+
CardTransactionFailureCode$inboundSchema,
|
|
24
|
+
CardTransactionFailureCode$outboundSchema,
|
|
25
|
+
} from "./cardtransactionfailurecode.js";
|
|
21
26
|
import {
|
|
22
27
|
TransferAmountDetails,
|
|
23
28
|
TransferAmountDetails$inboundSchema,
|
|
@@ -32,7 +37,7 @@ import {
|
|
|
32
37
|
} from "./transferlineitems.js";
|
|
33
38
|
|
|
34
39
|
/**
|
|
35
|
-
* Details of a capture against an
|
|
40
|
+
* Details of a capture against an authorization.
|
|
36
41
|
*/
|
|
37
42
|
export type Capture = {
|
|
38
43
|
/**
|
|
@@ -41,7 +46,7 @@ export type Capture = {
|
|
|
41
46
|
captureID: string;
|
|
42
47
|
amount: AmountDecimal;
|
|
43
48
|
/**
|
|
44
|
-
* Indicates whether this is
|
|
49
|
+
* Indicates whether this is intended to be the final capture.
|
|
45
50
|
*/
|
|
46
51
|
isFinal: boolean;
|
|
47
52
|
status: CaptureStatus;
|
|
@@ -71,9 +76,13 @@ export type Capture = {
|
|
|
71
76
|
lineItems?: TransferLineItems | undefined;
|
|
72
77
|
amountDetails?: TransferAmountDetails | undefined;
|
|
73
78
|
/**
|
|
74
|
-
* The facilitator fee
|
|
79
|
+
* The facilitator fee applied to this capture.
|
|
80
|
+
*
|
|
81
|
+
* @remarks
|
|
82
|
+
* The transfer's facilitator fee is the sum of its capture fees.
|
|
75
83
|
*/
|
|
76
84
|
facilitatorFeeAmount?: AmountDecimal | undefined;
|
|
85
|
+
failureCode?: CardTransactionFailureCode | undefined;
|
|
77
86
|
};
|
|
78
87
|
|
|
79
88
|
/** @internal */
|
|
@@ -91,6 +100,7 @@ export const Capture$inboundSchema: z.ZodType<Capture, z.ZodTypeDef, unknown> =
|
|
|
91
100
|
lineItems: types.optional(TransferLineItems$inboundSchema),
|
|
92
101
|
amountDetails: types.optional(TransferAmountDetails$inboundSchema),
|
|
93
102
|
facilitatorFeeAmount: types.optional(AmountDecimal$inboundSchema),
|
|
103
|
+
failureCode: types.optional(CardTransactionFailureCode$inboundSchema),
|
|
94
104
|
});
|
|
95
105
|
/** @internal */
|
|
96
106
|
export type Capture$Outbound = {
|
|
@@ -106,6 +116,7 @@ export type Capture$Outbound = {
|
|
|
106
116
|
lineItems?: TransferLineItems$Outbound | undefined;
|
|
107
117
|
amountDetails?: TransferAmountDetails$Outbound | undefined;
|
|
108
118
|
facilitatorFeeAmount?: AmountDecimal$Outbound | undefined;
|
|
119
|
+
failureCode?: string | undefined;
|
|
109
120
|
};
|
|
110
121
|
|
|
111
122
|
/** @internal */
|
|
@@ -126,6 +137,7 @@ export const Capture$outboundSchema: z.ZodType<
|
|
|
126
137
|
lineItems: TransferLineItems$outboundSchema.optional(),
|
|
127
138
|
amountDetails: TransferAmountDetails$outboundSchema.optional(),
|
|
128
139
|
facilitatorFeeAmount: AmountDecimal$outboundSchema.optional(),
|
|
140
|
+
failureCode: CardTransactionFailureCode$outboundSchema.optional(),
|
|
129
141
|
});
|
|
130
142
|
|
|
131
143
|
export function captureToJSON(capture: Capture): string {
|
|
@@ -44,7 +44,7 @@ export type CardAcquiringRefund = {
|
|
|
44
44
|
status: RefundStatus;
|
|
45
45
|
amount: AmountDecimal;
|
|
46
46
|
/**
|
|
47
|
-
* ID of the capture
|
|
47
|
+
* ID of the capture refunded for an auth-capture `card-payment` transfer.
|
|
48
48
|
*/
|
|
49
49
|
captureID?: string | undefined;
|
|
50
50
|
amountDetails?: RefundAmountDetails | undefined;
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
import {
|
|
11
|
+
EstimatedActivity,
|
|
12
|
+
EstimatedActivity$inboundSchema,
|
|
13
|
+
EstimatedActivity$Outbound,
|
|
14
|
+
EstimatedActivity$outboundSchema,
|
|
15
|
+
} from "./estimatedactivity.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Underwriting data for the `card-issuing` capability.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
*
|
|
22
|
+
* Issued cards are funded from the account's card-issuing wallet before they can be spent, so estimated activity is the only data collected.
|
|
23
|
+
*/
|
|
24
|
+
export type CardIssuing = {
|
|
25
|
+
estimatedActivity?: EstimatedActivity | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const CardIssuing$inboundSchema: z.ZodType<
|
|
30
|
+
CardIssuing,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
estimatedActivity: types.optional(EstimatedActivity$inboundSchema),
|
|
35
|
+
});
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type CardIssuing$Outbound = {
|
|
38
|
+
estimatedActivity?: EstimatedActivity$Outbound | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const CardIssuing$outboundSchema: z.ZodType<
|
|
43
|
+
CardIssuing$Outbound,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
CardIssuing
|
|
46
|
+
> = z.object({
|
|
47
|
+
estimatedActivity: EstimatedActivity$outboundSchema.optional(),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export function cardIssuingToJSON(cardIssuing: CardIssuing): string {
|
|
51
|
+
return JSON.stringify(CardIssuing$outboundSchema.parse(cardIssuing));
|
|
52
|
+
}
|
|
53
|
+
export function cardIssuingFromJSON(
|
|
54
|
+
jsonString: string,
|
|
55
|
+
): SafeParseResult<CardIssuing, SDKValidationError> {
|
|
56
|
+
return safeParse(
|
|
57
|
+
jsonString,
|
|
58
|
+
(x) => CardIssuing$inboundSchema.parse(JSON.parse(x)),
|
|
59
|
+
`Failed to parse 'CardIssuing' from JSON`,
|
|
60
|
+
);
|
|
61
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
import {
|
|
11
|
+
EstimatedActivityError,
|
|
12
|
+
EstimatedActivityError$inboundSchema,
|
|
13
|
+
EstimatedActivityError$Outbound,
|
|
14
|
+
EstimatedActivityError$outboundSchema,
|
|
15
|
+
} from "./estimatedactivityerror.js";
|
|
16
|
+
|
|
17
|
+
export type CardIssuingError = {
|
|
18
|
+
estimatedActivity?: EstimatedActivityError | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const CardIssuingError$inboundSchema: z.ZodType<
|
|
23
|
+
CardIssuingError,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
estimatedActivity: types.optional(EstimatedActivityError$inboundSchema),
|
|
28
|
+
});
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type CardIssuingError$Outbound = {
|
|
31
|
+
estimatedActivity?: EstimatedActivityError$Outbound | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const CardIssuingError$outboundSchema: z.ZodType<
|
|
36
|
+
CardIssuingError$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
CardIssuingError
|
|
39
|
+
> = z.object({
|
|
40
|
+
estimatedActivity: EstimatedActivityError$outboundSchema.optional(),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export function cardIssuingErrorToJSON(
|
|
44
|
+
cardIssuingError: CardIssuingError,
|
|
45
|
+
): string {
|
|
46
|
+
return JSON.stringify(
|
|
47
|
+
CardIssuingError$outboundSchema.parse(cardIssuingError),
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
export function cardIssuingErrorFromJSON(
|
|
51
|
+
jsonString: string,
|
|
52
|
+
): SafeParseResult<CardIssuingError, SDKValidationError> {
|
|
53
|
+
return safeParse(
|
|
54
|
+
jsonString,
|
|
55
|
+
(x) => CardIssuingError$inboundSchema.parse(JSON.parse(x)),
|
|
56
|
+
`Failed to parse 'CardIssuingError' from JSON`,
|
|
57
|
+
);
|
|
58
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 card payment transaction.
|
|
11
|
+
*/
|
|
12
|
+
export const CardPaymentTransactionStatus = {
|
|
13
|
+
Initiated: "initiated",
|
|
14
|
+
Confirmed: "confirmed",
|
|
15
|
+
Canceled: "canceled",
|
|
16
|
+
Settled: "settled",
|
|
17
|
+
Failed: "failed",
|
|
18
|
+
Completed: "completed",
|
|
19
|
+
} as const;
|
|
20
|
+
/**
|
|
21
|
+
* Status of a card payment transaction.
|
|
22
|
+
*/
|
|
23
|
+
export type CardPaymentTransactionStatus = OpenEnum<
|
|
24
|
+
typeof CardPaymentTransactionStatus
|
|
25
|
+
>;
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const CardPaymentTransactionStatus$inboundSchema: z.ZodType<
|
|
29
|
+
CardPaymentTransactionStatus,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = openEnums.inboundSchema(CardPaymentTransactionStatus);
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const CardPaymentTransactionStatus$outboundSchema: z.ZodType<
|
|
35
|
+
string,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
CardPaymentTransactionStatus
|
|
38
|
+
> = openEnums.outboundSchema(CardPaymentTransactionStatus);
|
|
@@ -7,6 +7,11 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import * as types from "../../types/primitives.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
CardPaymentTransactionStatus,
|
|
12
|
+
CardPaymentTransactionStatus$inboundSchema,
|
|
13
|
+
CardPaymentTransactionStatus$outboundSchema,
|
|
14
|
+
} from "./cardpaymenttransactionstatus.js";
|
|
10
15
|
import {
|
|
11
16
|
CardTransactionFailureCode,
|
|
12
17
|
CardTransactionFailureCode$inboundSchema,
|
|
@@ -14,10 +19,17 @@ import {
|
|
|
14
19
|
} from "./cardtransactionfailurecode.js";
|
|
15
20
|
|
|
16
21
|
export type CardPaymentTransferProcessingDetails = {
|
|
22
|
+
/**
|
|
23
|
+
* Status of a card payment transaction.
|
|
24
|
+
*/
|
|
25
|
+
status?: CardPaymentTransactionStatus | undefined;
|
|
17
26
|
authorizationCode?: string | undefined;
|
|
18
27
|
networkTransactionID?: string | undefined;
|
|
19
|
-
networkResponseCode?: string | undefined;
|
|
20
28
|
failureCode?: CardTransactionFailureCode | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* The retrieval reference number assigned by the card network to the card payment.
|
|
31
|
+
*/
|
|
32
|
+
retrievalReferenceNumber?: string | undefined;
|
|
21
33
|
};
|
|
22
34
|
|
|
23
35
|
/** @internal */
|
|
@@ -26,17 +38,19 @@ export const CardPaymentTransferProcessingDetails$inboundSchema: z.ZodType<
|
|
|
26
38
|
z.ZodTypeDef,
|
|
27
39
|
unknown
|
|
28
40
|
> = z.object({
|
|
41
|
+
status: types.optional(CardPaymentTransactionStatus$inboundSchema),
|
|
29
42
|
authorizationCode: types.optional(types.string()),
|
|
30
43
|
networkTransactionID: types.optional(types.string()),
|
|
31
|
-
networkResponseCode: types.optional(types.string()),
|
|
32
44
|
failureCode: types.optional(CardTransactionFailureCode$inboundSchema),
|
|
45
|
+
retrievalReferenceNumber: types.optional(types.string()),
|
|
33
46
|
});
|
|
34
47
|
/** @internal */
|
|
35
48
|
export type CardPaymentTransferProcessingDetails$Outbound = {
|
|
49
|
+
status?: string | undefined;
|
|
36
50
|
authorizationCode?: string | undefined;
|
|
37
51
|
networkTransactionID?: string | undefined;
|
|
38
|
-
networkResponseCode?: string | undefined;
|
|
39
52
|
failureCode?: string | undefined;
|
|
53
|
+
retrievalReferenceNumber?: string | undefined;
|
|
40
54
|
};
|
|
41
55
|
|
|
42
56
|
/** @internal */
|
|
@@ -45,10 +59,11 @@ export const CardPaymentTransferProcessingDetails$outboundSchema: z.ZodType<
|
|
|
45
59
|
z.ZodTypeDef,
|
|
46
60
|
CardPaymentTransferProcessingDetails
|
|
47
61
|
> = z.object({
|
|
62
|
+
status: CardPaymentTransactionStatus$outboundSchema.optional(),
|
|
48
63
|
authorizationCode: z.string().optional(),
|
|
49
64
|
networkTransactionID: z.string().optional(),
|
|
50
|
-
networkResponseCode: z.string().optional(),
|
|
51
65
|
failureCode: CardTransactionFailureCode$outboundSchema.optional(),
|
|
66
|
+
retrievalReferenceNumber: z.string().optional(),
|
|
52
67
|
});
|
|
53
68
|
|
|
54
69
|
export function cardPaymentTransferProcessingDetailsToJSON(
|
|
@@ -30,6 +30,22 @@ export const CardTransactionFailureCode = {
|
|
|
30
30
|
IssuerNotAvailable: "issuer-not-available",
|
|
31
31
|
CouldNotRoute: "could-not-route",
|
|
32
32
|
CardholderAccountClosed: "cardholder-account-closed",
|
|
33
|
+
AccountClosed: "account-closed",
|
|
34
|
+
AccountNotActivated: "account-not-activated",
|
|
35
|
+
AuthenticationFailed: "authentication-failed",
|
|
36
|
+
AuthenticationRequired: "authentication-required",
|
|
37
|
+
CardholderActionRequired: "cardholder-action-required",
|
|
38
|
+
FormatError: "format-error",
|
|
39
|
+
InvalidPin: "invalid-pin",
|
|
40
|
+
OfflineApproved: "offline-approved",
|
|
41
|
+
OfflineDeclined: "offline-declined",
|
|
42
|
+
PartialApproval: "partial-approval",
|
|
43
|
+
PaymentStopped: "payment-stopped",
|
|
44
|
+
PinRequired: "pin-required",
|
|
45
|
+
RecordNotFound: "record-not-found",
|
|
46
|
+
SurchargeNotPermitted: "surcharge-not-permitted",
|
|
47
|
+
TransactionReversed: "transaction-reversed",
|
|
48
|
+
VerificationFailed: "verification-failed",
|
|
33
49
|
UnknownIssue: "unknown-issue",
|
|
34
50
|
DuplicateTransaction: "duplicate-transaction",
|
|
35
51
|
} as const;
|
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
* Request body for creating a R29 re-authorization attestation for an errored bank account.
|
|
13
|
+
*/
|
|
14
|
+
export type CreateBankAccountAttestation = {
|
|
15
|
+
/**
|
|
16
|
+
* Date on which new authorization was obtained from the receiver, formatted as YYYY-MM-DD.
|
|
17
|
+
*/
|
|
18
|
+
attestedAt: Date;
|
|
19
|
+
/**
|
|
20
|
+
* Freeform text description describing how the authorization was obtained.
|
|
21
|
+
*/
|
|
22
|
+
description: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const CreateBankAccountAttestation$inboundSchema: z.ZodType<
|
|
27
|
+
CreateBankAccountAttestation,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
attestedAt: types.date(),
|
|
32
|
+
description: types.string(),
|
|
33
|
+
});
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type CreateBankAccountAttestation$Outbound = {
|
|
36
|
+
attestedAt: string;
|
|
37
|
+
description: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const CreateBankAccountAttestation$outboundSchema: z.ZodType<
|
|
42
|
+
CreateBankAccountAttestation$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
CreateBankAccountAttestation
|
|
45
|
+
> = z.object({
|
|
46
|
+
attestedAt: z.date().transform(v =>
|
|
47
|
+
v.toISOString().slice(0, "YYYY-MM-DD".length)
|
|
48
|
+
),
|
|
49
|
+
description: z.string(),
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export function createBankAccountAttestationToJSON(
|
|
53
|
+
createBankAccountAttestation: CreateBankAccountAttestation,
|
|
54
|
+
): string {
|
|
55
|
+
return JSON.stringify(
|
|
56
|
+
CreateBankAccountAttestation$outboundSchema.parse(
|
|
57
|
+
createBankAccountAttestation,
|
|
58
|
+
),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
export function createBankAccountAttestationFromJSON(
|
|
62
|
+
jsonString: string,
|
|
63
|
+
): SafeParseResult<CreateBankAccountAttestation, SDKValidationError> {
|
|
64
|
+
return safeParse(
|
|
65
|
+
jsonString,
|
|
66
|
+
(x) => CreateBankAccountAttestation$inboundSchema.parse(JSON.parse(x)),
|
|
67
|
+
`Failed to parse 'CreateBankAccountAttestation' from JSON`,
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -14,7 +14,17 @@ import {
|
|
|
14
14
|
AmountDecimal$outboundSchema,
|
|
15
15
|
} from "./amountdecimal.js";
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* Cancellation request.
|
|
19
|
+
*/
|
|
17
20
|
export type CreateCancellation = {
|
|
21
|
+
/**
|
|
22
|
+
* Amount to void. This field can only be set for an auth-capture `card-payment` transfer.
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* This cannot exceed `capturableAmount`.
|
|
26
|
+
* Omit this field to void the entire `capturableAmount`.
|
|
27
|
+
*/
|
|
18
28
|
amount?: AmountDecimal | undefined;
|
|
19
29
|
};
|
|
20
30
|
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./createtransferlineitems.js";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Request to capture funds against an
|
|
30
|
+
* Request to capture funds against an authorization.
|
|
31
31
|
*/
|
|
32
32
|
export type CreateCapture = {
|
|
33
33
|
/**
|
|
@@ -35,11 +35,17 @@ export type CreateCapture = {
|
|
|
35
35
|
*/
|
|
36
36
|
destinationPaymentMethodID: string;
|
|
37
37
|
/**
|
|
38
|
-
* Amount to capture.
|
|
38
|
+
* Amount to capture.
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
* If omitted, the remaining capturable amount is captured.
|
|
39
42
|
*/
|
|
40
43
|
amount?: AmountDecimal | undefined;
|
|
41
44
|
/**
|
|
42
|
-
* Indicates whether this is
|
|
45
|
+
* Indicates whether this is intended to be the final capture.
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* When `true`, any remaining capturable amount is voided.
|
|
43
49
|
*/
|
|
44
50
|
isFinal?: boolean | undefined;
|
|
45
51
|
/**
|
|
@@ -63,7 +69,10 @@ export type CreateCapture = {
|
|
|
63
69
|
lineItems?: CreateTransferLineItems | undefined;
|
|
64
70
|
amountDetails?: CreateTransferAmountDetails | undefined;
|
|
65
71
|
/**
|
|
66
|
-
* The facilitator fee
|
|
72
|
+
* The facilitator fee applied to this capture.
|
|
73
|
+
*
|
|
74
|
+
* @remarks
|
|
75
|
+
* The transfer's facilitator fee is the sum of its capture fees.
|
|
67
76
|
*/
|
|
68
77
|
facilitatorFeeAmount?: AmountDecimal | undefined;
|
|
69
78
|
};
|
|
@@ -101,6 +101,14 @@ export type CreatedTransfer = {
|
|
|
101
101
|
* Reason for a transfer's failure.
|
|
102
102
|
*/
|
|
103
103
|
failureReason?: TransferFailureReason | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* Amount associated with this transfer.
|
|
106
|
+
*
|
|
107
|
+
* @remarks
|
|
108
|
+
* In v2026.10 and later, an auth-capture `card-payment` transfer reports the approved authorization amount until a final capture is created.
|
|
109
|
+
* For these transfers, when a final capture is created, this is updated to the cumulative captured amount.
|
|
110
|
+
* For other transfer types, this is the transfer amount.
|
|
111
|
+
*/
|
|
104
112
|
amount?: AmountDecimal | undefined;
|
|
105
113
|
/**
|
|
106
114
|
* An optional description of the transfer that is used on receipts and for your own internal use.
|
|
@@ -141,6 +149,12 @@ export type CreatedTransfer = {
|
|
|
141
149
|
*/
|
|
142
150
|
lineItems?: TransferLineItems | undefined;
|
|
143
151
|
amountDetails?: TransferAmountDetails | undefined;
|
|
152
|
+
/**
|
|
153
|
+
* Authorization amounts.
|
|
154
|
+
*
|
|
155
|
+
* @remarks
|
|
156
|
+
* This field is present only for an auth-capture `card-payment` transfer.
|
|
157
|
+
*/
|
|
144
158
|
authorization?: TransferAuthorization | undefined;
|
|
145
159
|
options: TransferRailOptions;
|
|
146
160
|
processingDetails: TransferProcessingDetails;
|
|
@@ -10,9 +10,23 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
10
10
|
|
|
11
11
|
export type CreateFeePlanAgreement = {
|
|
12
12
|
/**
|
|
13
|
-
* A unique identifier for a
|
|
13
|
+
* A unique identifier for a fee plan: the pricing terms, such as flat-rate or cost-plus, that an account
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* is charged under its fee plan agreement. Use GET /accounts/{accountID}/fee-plans to list the fee plans
|
|
17
|
+
* available to assign to a given account.
|
|
14
18
|
*/
|
|
15
19
|
planID: string;
|
|
20
|
+
/**
|
|
21
|
+
* The account's active fee plan agreement to supersede. When set, that agreement is terminated and
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* the new one takes its place in a single operation, so the account is never without an active fee
|
|
25
|
+
* plan agreement. This new agreement always receives a newly issued agreementID.
|
|
26
|
+
*
|
|
27
|
+
* Omit it if the account doesn't already have an active fee plan agreement.
|
|
28
|
+
*/
|
|
29
|
+
priorAgreementID?: string | undefined;
|
|
16
30
|
};
|
|
17
31
|
|
|
18
32
|
/** @internal */
|
|
@@ -22,10 +36,12 @@ export const CreateFeePlanAgreement$inboundSchema: z.ZodType<
|
|
|
22
36
|
unknown
|
|
23
37
|
> = z.object({
|
|
24
38
|
planID: types.string(),
|
|
39
|
+
priorAgreementID: types.optional(types.string()),
|
|
25
40
|
});
|
|
26
41
|
/** @internal */
|
|
27
42
|
export type CreateFeePlanAgreement$Outbound = {
|
|
28
43
|
planID: string;
|
|
44
|
+
priorAgreementID?: string | undefined;
|
|
29
45
|
};
|
|
30
46
|
|
|
31
47
|
/** @internal */
|
|
@@ -35,6 +51,7 @@ export const CreateFeePlanAgreement$outboundSchema: z.ZodType<
|
|
|
35
51
|
CreateFeePlanAgreement
|
|
36
52
|
> = z.object({
|
|
37
53
|
planID: z.string(),
|
|
54
|
+
priorAgreementID: z.string().optional(),
|
|
38
55
|
});
|
|
39
56
|
|
|
40
57
|
export function createFeePlanAgreementToJSON(
|
|
@@ -106,6 +106,9 @@ export type CreatePaymentLink = {
|
|
|
106
106
|
* Options for payment links used to collect payment.
|
|
107
107
|
*/
|
|
108
108
|
payment?: PaymentLinkPaymentDetails | undefined;
|
|
109
|
+
/**
|
|
110
|
+
* Options for payout links used to send a payout.
|
|
111
|
+
*/
|
|
109
112
|
payout?: PaymentLinkPayoutDetails | undefined;
|
|
110
113
|
/**
|
|
111
114
|
* Options for a custom amount payment link. Mutually exclusive with `payment` and `payout`.
|
|
@@ -29,11 +29,11 @@ import {
|
|
|
29
29
|
*/
|
|
30
30
|
export type CreateRefund = {
|
|
31
31
|
/**
|
|
32
|
-
* Amount to refund.
|
|
32
|
+
* Amount to refund. If omitted, the original transfer's full amount will be refunded.
|
|
33
33
|
*/
|
|
34
34
|
amount?: AmountDecimal | undefined;
|
|
35
35
|
/**
|
|
36
|
-
* ID of the capture to refund.
|
|
36
|
+
* ID of the capture to refund. This field is only relevant for an auth-capture `card-payment` transfer.
|
|
37
37
|
*/
|
|
38
38
|
captureID?: string | undefined;
|
|
39
39
|
/**
|
|
@@ -22,7 +22,12 @@ import {
|
|
|
22
22
|
|
|
23
23
|
export type CreateReversal = {
|
|
24
24
|
/**
|
|
25
|
-
* Amount to reverse.
|
|
25
|
+
* Amount to reverse.
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* Before v2026.10, specify the amount in integer cents.
|
|
29
|
+
* For supported auth-capture `card-payment` reversals in v2026.10 and later, a transfer with no captures uses the full `capturableAmount`.
|
|
30
|
+
* For those transfers with one final capture, a cancellation uses the full capture amount, while a refund may be partial.
|
|
26
31
|
*/
|
|
27
32
|
amount: AmountDecimal;
|
|
28
33
|
/**
|
|
@@ -85,7 +85,7 @@ export type CreateTransfer = {
|
|
|
85
85
|
lineItems?: CreateTransferLineItems | undefined;
|
|
86
86
|
amountDetails?: CreateTransferAmountDetails | undefined;
|
|
87
87
|
/**
|
|
88
|
-
* Indicates which party bears fees for
|
|
88
|
+
* Indicates which party bears fees for a transfer, keyed by fee type.
|
|
89
89
|
*/
|
|
90
90
|
feePaidBy?: TransferFeePaidBy | undefined;
|
|
91
91
|
};
|
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
CreateTransferDestinationCard$Outbound,
|
|
20
20
|
CreateTransferDestinationCard$outboundSchema,
|
|
21
21
|
} from "./createtransferdestinationcard.js";
|
|
22
|
+
import {
|
|
23
|
+
CreateTransferDestinationWire,
|
|
24
|
+
CreateTransferDestinationWire$inboundSchema,
|
|
25
|
+
CreateTransferDestinationWire$Outbound,
|
|
26
|
+
CreateTransferDestinationWire$outboundSchema,
|
|
27
|
+
} from "./createtransferdestinationwire.js";
|
|
22
28
|
|
|
23
29
|
/**
|
|
24
30
|
* The final stage of a transfer and the ultimate recipient of the funds.
|
|
@@ -27,6 +33,10 @@ export type CreateTransferDestination = {
|
|
|
27
33
|
paymentMethodID: string;
|
|
28
34
|
cardDetails?: CreateTransferDestinationCard | undefined;
|
|
29
35
|
achDetails?: CreateTransferDestinationACH | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Wire-specific options supplied when creating a transfer.
|
|
38
|
+
*/
|
|
39
|
+
wireDetails?: CreateTransferDestinationWire | undefined;
|
|
30
40
|
};
|
|
31
41
|
|
|
32
42
|
/** @internal */
|
|
@@ -38,12 +48,14 @@ export const CreateTransferDestination$inboundSchema: z.ZodType<
|
|
|
38
48
|
paymentMethodID: types.string(),
|
|
39
49
|
cardDetails: types.optional(CreateTransferDestinationCard$inboundSchema),
|
|
40
50
|
achDetails: types.optional(CreateTransferDestinationACH$inboundSchema),
|
|
51
|
+
wireDetails: types.optional(CreateTransferDestinationWire$inboundSchema),
|
|
41
52
|
});
|
|
42
53
|
/** @internal */
|
|
43
54
|
export type CreateTransferDestination$Outbound = {
|
|
44
55
|
paymentMethodID: string;
|
|
45
56
|
cardDetails?: CreateTransferDestinationCard$Outbound | undefined;
|
|
46
57
|
achDetails?: CreateTransferDestinationACH$Outbound | undefined;
|
|
58
|
+
wireDetails?: CreateTransferDestinationWire$Outbound | undefined;
|
|
47
59
|
};
|
|
48
60
|
|
|
49
61
|
/** @internal */
|
|
@@ -55,6 +67,7 @@ export const CreateTransferDestination$outboundSchema: z.ZodType<
|
|
|
55
67
|
paymentMethodID: z.string(),
|
|
56
68
|
cardDetails: CreateTransferDestinationCard$outboundSchema.optional(),
|
|
57
69
|
achDetails: CreateTransferDestinationACH$outboundSchema.optional(),
|
|
70
|
+
wireDetails: CreateTransferDestinationWire$outboundSchema.optional(),
|
|
58
71
|
});
|
|
59
72
|
|
|
60
73
|
export function createTransferDestinationToJSON(
|