@moovio/sdk 26.10.0-dev.1 → 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 +179 -84
- package/bin/mcp-server.js +4562 -2062
- package/bin/mcp-server.js.map +230 -152
- 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/cardIssuingListMerchantCategories.d.ts +19 -0
- package/funcs/cardIssuingListMerchantCategories.d.ts.map +1 -0
- package/funcs/cardIssuingListMerchantCategories.js +109 -0
- package/funcs/cardIssuingListMerchantCategories.js.map +1 -0
- 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 +10 -2
- package/funcs/transfersCreateCancellation.js.map +1 -1
- package/funcs/transfersCreateCapture.d.ts +19 -0
- package/funcs/transfersCreateCapture.d.ts.map +1 -0
- package/funcs/transfersCreateCapture.js +133 -0
- package/funcs/transfersCreateCapture.js.map +1 -0
- 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 +17 -0
- package/funcs/transfersGetCapture.d.ts.map +1 -0
- package/funcs/transfersGetCapture.js +133 -0
- package/funcs/transfersGetCapture.js.map +1 -0
- package/funcs/transfersList.js +2 -0
- 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 +17 -0
- package/funcs/transfersListCaptures.d.ts.map +1 -0
- package/funcs/transfersListCaptures.js +129 -0
- package/funcs/transfersListCaptures.js.map +1 -0
- 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 +20 -6
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/avatarsGet.js +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/cardIssuingListMerchantCategories.d.ts +3 -0
- package/mcp-server/tools/cardIssuingListMerchantCategories.d.ts.map +1 -0
- package/mcp-server/tools/cardIssuingListMerchantCategories.js +29 -0
- package/mcp-server/tools/cardIssuingListMerchantCategories.js.map +1 -0
- package/mcp-server/tools/enrichedAddressGet.js +1 -1
- package/mcp-server/tools/enrichedProfileGet.js +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 +2 -2
- 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 +8 -0
- package/mcp-server/tools/transfersCreateCapture.d.ts.map +1 -0
- package/mcp-server/tools/transfersCreateCapture.js +66 -0
- package/mcp-server/tools/transfersCreateCapture.js.map +1 -0
- 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 +8 -0
- package/mcp-server/tools/transfersGetCapture.d.ts.map +1 -0
- package/mcp-server/tools/transfersGetCapture.js +65 -0
- package/mcp-server/tools/transfersGetCapture.js.map +1 -0
- package/mcp-server/tools/transfersListCancellations.js +1 -1
- package/mcp-server/tools/transfersListCaptures.d.ts +8 -0
- package/mcp-server/tools/transfersListCaptures.d.ts.map +1 -0
- package/mcp-server/tools/transfersListCaptures.js +65 -0
- package/mcp-server/tools/transfersListCaptures.js.map +1 -0
- package/models/components/achcreditoptions.d.ts +28 -0
- package/models/components/achcreditoptions.d.ts.map +1 -0
- package/models/components/achcreditoptions.js +64 -0
- package/models/components/achcreditoptions.js.map +1 -0
- package/models/components/achcredittransferprocessingdetails.d.ts +28 -0
- package/models/components/achcredittransferprocessingdetails.d.ts.map +1 -0
- package/models/components/achcredittransferprocessingdetails.js +67 -0
- package/models/components/achcredittransferprocessingdetails.js.map +1 -0
- package/models/components/achdebitoptions.d.ts +40 -0
- package/models/components/achdebitoptions.d.ts.map +1 -0
- package/models/components/{achtransactiondetails.js → achdebitoptions.js} +10 -34
- package/models/components/achdebitoptions.js.map +1 -0
- package/models/components/achdebittransferprocessingdetails.d.ts +28 -0
- package/models/components/achdebittransferprocessingdetails.d.ts.map +1 -0
- package/models/components/achdebittransferprocessingdetails.js +67 -0
- package/models/components/achdebittransferprocessingdetails.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/allowedscheduleerror.d.ts +24 -0
- package/models/components/allowedscheduleerror.d.ts.map +1 -0
- package/models/components/allowedscheduleerror.js +62 -0
- package/models/components/allowedscheduleerror.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 +8 -3
- package/models/components/asynccreatedrefund.d.ts.map +1 -1
- package/models/components/asynccreatedrefund.js +5 -3
- package/models/components/asynccreatedrefund.js.map +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 +83 -0
- package/models/components/capture.d.ts.map +1 -0
- package/models/components/capture.js +88 -0
- package/models/components/capture.js.map +1 -0
- package/models/components/capturestatus.d.ts +14 -0
- package/models/components/capturestatus.d.ts.map +1 -0
- package/models/components/{refundcardstatus.js → capturestatus.js} +8 -9
- package/models/components/capturestatus.js.map +1 -0
- package/models/components/cardacquiringrefund.d.ts +11 -6
- package/models/components/cardacquiringrefund.d.ts.map +1 -1
- package/models/components/cardacquiringrefund.js +8 -6
- package/models/components/cardacquiringrefund.js.map +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/cardpaymentoptions.d.ts +31 -0
- package/models/components/cardpaymentoptions.d.ts.map +1 -0
- package/models/components/cardpaymentoptions.js +62 -0
- package/models/components/cardpaymentoptions.js.map +1 -0
- package/models/components/cardpaymentrefundprocessingdetails.d.ts +18 -0
- package/models/components/cardpaymentrefundprocessingdetails.d.ts.map +1 -0
- package/models/components/{refundcarddetails.js → cardpaymentrefundprocessingdetails.js} +10 -23
- package/models/components/cardpaymentrefundprocessingdetails.js.map +1 -0
- package/models/components/cardpaymenttransactionstatus.d.ts +22 -0
- package/models/components/cardpaymenttransactionstatus.d.ts.map +1 -0
- package/models/components/{cardtransactionstatus.js → cardpaymenttransactionstatus.js} +6 -7
- package/models/components/cardpaymenttransactionstatus.js.map +1 -0
- package/models/components/cardpaymenttransferprocessingdetails.d.ts +33 -0
- package/models/components/cardpaymenttransferprocessingdetails.d.ts.map +1 -0
- package/models/components/cardpaymenttransferprocessingdetails.js +69 -0
- package/models/components/cardpaymenttransferprocessingdetails.js.map +1 -0
- 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 +28 -0
- package/models/components/createcancellation.d.ts.map +1 -0
- package/models/components/{cardacquiringdispute.js → createcancellation.js} +13 -17
- package/models/components/createcancellation.js.map +1 -0
- package/models/components/createcapture.d.ts +79 -0
- package/models/components/createcapture.d.ts.map +1 -0
- package/models/components/createcapture.js +78 -0
- package/models/components/createcapture.js.map +1 -0
- package/models/components/createdtransfer.d.ts +38 -23
- package/models/components/createdtransfer.d.ts.map +1 -1
- package/models/components/createdtransfer.js +21 -20
- 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 +10 -4
- package/models/components/createrefund.d.ts.map +1 -1
- package/models/components/createrefund.js +5 -2
- package/models/components/createrefund.js.map +1 -1
- package/models/components/createreversal.d.ts +9 -3
- package/models/components/createreversal.d.ts.map +1 -1
- package/models/components/createreversal.js +3 -2
- package/models/components/createreversal.js.map +1 -1
- package/models/components/createtransfer.d.ts +8 -8
- package/models/components/createtransfer.d.ts.map +1 -1
- package/models/components/createtransfer.js +6 -6
- package/models/components/createtransfer.js.map +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/createtransferfacilitatorfee.d.ts +29 -0
- package/models/components/createtransferfacilitatorfee.d.ts.map +1 -0
- package/models/components/createtransferfacilitatorfee.js +62 -0
- package/models/components/createtransferfacilitatorfee.js.map +1 -0
- package/models/components/createtransferoptions.d.ts +3 -3
- package/models/components/createtransferoptions.d.ts.map +1 -1
- package/models/components/createtransferoptions.js +3 -3
- package/models/components/createtransferoptions.js.map +1 -1
- 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 +7 -3
- package/models/components/fullissuedcard.d.ts.map +1 -1
- package/models/components/fullissuedcard.js +3 -3
- package/models/components/fullissuedcard.js.map +1 -1
- package/models/components/index.d.ts +61 -7
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +61 -7
- package/models/components/index.js.map +1 -1
- package/models/components/instantbankcredittransferprocessingdetails.d.ts +37 -0
- package/models/components/instantbankcredittransferprocessingdetails.d.ts.map +1 -0
- package/models/components/{instantbanktransactiondetails.js → instantbankcredittransferprocessingdetails.js} +12 -20
- package/models/components/instantbankcredittransferprocessingdetails.js.map +1 -0
- package/models/components/issuedcard.d.ts +7 -3
- package/models/components/issuedcard.d.ts.map +1 -1
- package/models/components/issuedcard.js +3 -3
- 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 +73 -0
- package/models/components/issuedcontrols.d.ts.map +1 -0
- package/models/components/issuedcontrols.js +92 -0
- package/models/components/issuedcontrols.js.map +1 -0
- package/models/components/issuedvelocitylimit.d.ts +59 -0
- package/models/components/issuedvelocitylimit.d.ts.map +1 -0
- package/models/components/issuedvelocitylimit.js +74 -0
- package/models/components/issuedvelocitylimit.js.map +1 -0
- package/models/components/issuingcontrols.d.ts +47 -0
- package/models/components/issuingcontrols.d.ts.map +1 -1
- package/models/components/issuingcontrols.js +33 -1
- package/models/components/issuingcontrols.js.map +1 -1
- package/models/components/issuingcontrolserror.d.ts +11 -0
- package/models/components/issuingcontrolserror.d.ts.map +1 -1
- package/models/components/issuingcontrolserror.js +12 -0
- package/models/components/issuingcontrolserror.js.map +1 -1
- package/models/components/issuingcontrolsrestrictionmode.d.ts +18 -0
- package/models/components/issuingcontrolsrestrictionmode.d.ts.map +1 -0
- package/models/components/issuingcontrolsrestrictionmode.js +52 -0
- package/models/components/issuingcontrolsrestrictionmode.js.map +1 -0
- package/models/components/issuingintervallimit.d.ts +7 -4
- package/models/components/issuingintervallimit.d.ts.map +1 -1
- package/models/components/issuingintervallimit.js +6 -3
- package/models/components/issuingintervallimit.js.map +1 -1
- package/models/components/issuingmerchantcategory.d.ts +42 -0
- package/models/components/issuingmerchantcategory.d.ts.map +1 -0
- package/models/components/issuingmerchantcategory.js +76 -0
- package/models/components/issuingmerchantcategory.js.map +1 -0
- package/models/components/issuingscheduleday.d.ts +17 -0
- package/models/components/issuingscheduleday.d.ts.map +1 -0
- package/models/components/issuingscheduleday.js +54 -0
- package/models/components/issuingscheduleday.js.map +1 -0
- package/models/components/issuingvelocitylimit.d.ts +7 -2
- package/models/components/issuingvelocitylimit.d.ts.map +1 -1
- package/models/components/issuingvelocitylimit.js +4 -2
- package/models/components/issuingvelocitylimit.js.map +1 -1
- package/models/components/issuingvelocitylimiterror.d.ts +2 -0
- package/models/components/issuingvelocitylimiterror.d.ts.map +1 -1
- package/models/components/issuingvelocitylimiterror.js +2 -0
- package/models/components/issuingvelocitylimiterror.js.map +1 -1
- package/models/components/merchantcategories.d.ts +21 -0
- package/models/components/merchantcategories.d.ts.map +1 -0
- package/models/components/merchantcategories.js +59 -0
- package/models/components/merchantcategories.js.map +1 -0
- package/models/components/merchantcategory.d.ts +32 -0
- package/models/components/merchantcategory.d.ts.map +1 -0
- package/models/components/merchantcategory.js +62 -0
- package/models/components/merchantcategory.js.map +1 -0
- package/models/components/merchantcategoryrestrictions.d.ts +41 -0
- package/models/components/merchantcategoryrestrictions.d.ts.map +1 -0
- package/models/components/merchantcategoryrestrictions.js +68 -0
- package/models/components/merchantcategoryrestrictions.js.map +1 -0
- package/models/components/merchantcategoryrestrictionserror.d.ts +36 -0
- package/models/components/merchantcategoryrestrictionserror.d.ts.map +1 -0
- package/models/components/merchantcategoryrestrictionserror.js +66 -0
- package/models/components/merchantcategoryrestrictionserror.js.map +1 -0
- package/models/components/merchantentry.d.ts +33 -0
- package/models/components/merchantentry.d.ts.map +1 -0
- package/models/components/merchantentry.js +63 -0
- package/models/components/merchantentry.js.map +1 -0
- package/models/components/merchantentryerror.d.ts +19 -0
- package/models/components/merchantentryerror.d.ts.map +1 -0
- package/models/components/merchantentryerror.js +61 -0
- package/models/components/merchantentryerror.js.map +1 -0
- package/models/components/merchantrestrictions.d.ts +30 -0
- package/models/components/merchantrestrictions.d.ts.map +1 -0
- package/models/components/merchantrestrictions.js +62 -0
- package/models/components/merchantrestrictions.js.map +1 -0
- package/models/components/merchantrestrictionserror.d.ts +24 -0
- package/models/components/merchantrestrictionserror.d.ts.map +1 -0
- package/models/components/merchantrestrictionserror.js +62 -0
- package/models/components/merchantrestrictionserror.js.map +1 -0
- package/models/components/moovfeedetails.d.ts +9 -8
- package/models/components/moovfeedetails.d.ts.map +1 -1
- package/models/components/moovfeedetails.js +9 -8
- package/models/components/moovfeedetails.js.map +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/paymentmethodswallet.d.ts +1 -0
- package/models/components/paymentmethodswallet.d.ts.map +1 -1
- package/models/components/paymentmethodswallet.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/pullfromcardoptions.d.ts +31 -0
- package/models/components/pullfromcardoptions.d.ts.map +1 -0
- package/models/components/pullfromcardoptions.js +62 -0
- package/models/components/pullfromcardoptions.js.map +1 -0
- 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 +30 -0
- package/models/components/pullfromcardtransferprocessingdetails.d.ts.map +1 -0
- package/models/components/pullfromcardtransferprocessingdetails.js +69 -0
- package/models/components/pullfromcardtransferprocessingdetails.js.map +1 -0
- 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/pushtocardoptions.d.ts +20 -0
- package/models/components/pushtocardoptions.d.ts.map +1 -0
- package/models/components/pushtocardoptions.js +59 -0
- package/models/components/pushtocardoptions.js.map +1 -0
- 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 +30 -0
- package/models/components/pushtocardtransferprocessingdetails.d.ts.map +1 -0
- package/models/components/pushtocardtransferprocessingdetails.js +69 -0
- package/models/components/pushtocardtransferprocessingdetails.js.map +1 -0
- package/models/components/refundprocessingdetails.d.ts +18 -0
- package/models/components/refundprocessingdetails.d.ts.map +1 -0
- package/models/components/refundprocessingdetails.js +60 -0
- package/models/components/refundprocessingdetails.js.map +1 -0
- 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/schedulewindow.d.ts +34 -0
- package/models/components/schedulewindow.d.ts.map +1 -0
- package/models/components/schedulewindow.js +64 -0
- package/models/components/schedulewindow.js.map +1 -0
- package/models/components/schedulewindowerror.d.ts +21 -0
- package/models/components/schedulewindowerror.d.ts.map +1 -0
- package/models/components/schedulewindowerror.js +63 -0
- package/models/components/schedulewindowerror.js.map +1 -0
- package/models/components/sendfunds.d.ts +3 -0
- package/models/components/sendfunds.d.ts.map +1 -1
- package/models/components/sendfunds.js +3 -0
- package/models/components/sendfunds.js.map +1 -1
- package/models/components/sendfundserror.d.ts +3 -0
- package/models/components/sendfundserror.d.ts.map +1 -1
- package/models/components/sendfundserror.js +3 -0
- package/models/components/sendfundserror.js.map +1 -1
- package/models/components/sendfundswire.d.ts +18 -0
- package/models/components/sendfundswire.d.ts.map +1 -0
- package/models/components/sendfundswire.js +60 -0
- package/models/components/sendfundswire.js.map +1 -0
- package/models/components/sendfundswireerror.d.ts +18 -0
- package/models/components/sendfundswireerror.d.ts.map +1 -0
- package/models/components/sendfundswireerror.js +60 -0
- package/models/components/sendfundswireerror.js.map +1 -0
- 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 +38 -23
- package/models/components/transfer.d.ts.map +1 -1
- package/models/components/transfer.js +21 -20
- package/models/components/transfer.js.map +1 -1
- package/models/components/transferauthorization.d.ts +49 -0
- package/models/components/transferauthorization.d.ts.map +1 -0
- package/models/components/transferauthorization.js +70 -0
- package/models/components/transferauthorization.js.map +1 -0
- package/models/components/transferdestination.d.ts +6 -24
- package/models/components/transferdestination.d.ts.map +1 -1
- package/models/components/transferdestination.js +6 -15
- package/models/components/transferdestination.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/transferpaymentmethodswallet.d.ts +1 -0
- package/models/components/transferpaymentmethodswallet.d.ts.map +1 -1
- package/models/components/transferpaymentmethodswallet.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 +39 -0
- package/models/components/transferprocessingdetails.d.ts.map +1 -0
- package/models/components/transferprocessingdetails.js +79 -0
- package/models/components/transferprocessingdetails.js.map +1 -0
- package/models/components/transferrailoptions.d.ts +36 -0
- package/models/components/transferrailoptions.d.ts.map +1 -0
- package/models/components/transferrailoptions.js +75 -0
- package/models/components/transferrailoptions.js.map +1 -0
- package/models/components/transfersource.d.ts +6 -18
- package/models/components/transfersource.d.ts.map +1 -1
- package/models/components/transfersource.js +6 -12
- package/models/components/transfersource.js.map +1 -1
- package/models/components/transferstatus.d.ts +1 -0
- package/models/components/transferstatus.d.ts.map +1 -1
- package/models/components/transferstatus.js +1 -0
- package/models/components/transferstatus.js.map +1 -1
- package/models/components/transfertype.d.ts +25 -0
- package/models/components/transfertype.d.ts.map +1 -0
- package/models/components/transfertype.js +59 -0
- package/models/components/transfertype.js.map +1 -0
- 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 +8 -0
- package/models/components/updateissuedcard.d.ts.map +1 -1
- package/models/components/updateissuedcard.js +3 -0
- 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 +130 -0
- package/models/components/updateissuingcontrols.d.ts.map +1 -0
- package/models/components/updateissuingcontrols.js +130 -0
- package/models/components/updateissuingcontrols.js.map +1 -0
- package/models/components/updateissuingcontrolserror.d.ts +33 -0
- package/models/components/updateissuingcontrolserror.d.ts.map +1 -0
- package/models/components/updateissuingcontrolserror.js +72 -0
- package/models/components/updateissuingcontrolserror.js.map +1 -0
- 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/wallet.d.ts +1 -0
- package/models/components/wallet.d.ts.map +1 -1
- package/models/components/wallet.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/wallettype.d.ts +3 -0
- package/models/components/wallettype.d.ts.map +1 -1
- package/models/components/wallettype.js +2 -0
- package/models/components/wallettype.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 +4 -0
- package/models/components/webhookdatatransferstatus.d.ts.map +1 -1
- package/models/components/webhookdatatransferstatus.js +4 -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/capturevalidationerror.d.ts +55 -0
- package/models/errors/capturevalidationerror.d.ts.map +1 -0
- package/models/errors/capturevalidationerror.js +117 -0
- package/models/errors/capturevalidationerror.js.map +1 -0
- package/models/errors/cardacquiringrefund.d.ts +15 -6
- package/models/errors/cardacquiringrefund.d.ts.map +1 -1
- package/models/errors/cardacquiringrefund.js +9 -6
- package/models/errors/cardacquiringrefund.js.map +1 -1
- 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 +3 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +3 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/transfer.d.ts +58 -30
- package/models/errors/transfer.d.ts.map +1 -1
- package/models/errors/transfer.js +21 -25
- package/models/errors/transfer.js.map +1 -1
- package/models/errors/updateissuedcarderror.d.ts +3 -0
- package/models/errors/updateissuedcarderror.d.ts.map +1 -1
- package/models/errors/updateissuedcarderror.js +4 -0
- package/models/errors/updateissuedcarderror.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/createcancellation.d.ts +2 -0
- package/models/operations/createcancellation.d.ts.map +1 -1
- package/models/operations/createcancellation.js +10 -0
- package/models/operations/createcancellation.js.map +1 -1
- package/models/operations/createcapture.d.ts +52 -0
- package/models/operations/createcapture.d.ts.map +1 -0
- package/models/operations/createcapture.js +105 -0
- package/models/operations/createcapture.js.map +1 -0
- package/models/operations/createreversal.d.ts +2 -2
- package/models/operations/createreversal.d.ts.map +1 -1
- package/models/operations/createreversal.js +2 -2
- package/models/operations/createreversal.js.map +1 -1
- 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 +50 -0
- package/models/operations/getcapture.d.ts.map +1 -0
- package/models/operations/getcapture.js +93 -0
- package/models/operations/getcapture.js.map +1 -0
- package/models/operations/index.d.ts +7 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +7 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/initiaterefund.d.ts +2 -2
- package/models/operations/initiaterefund.d.ts.map +1 -1
- package/models/operations/initiaterefund.js +2 -2
- package/models/operations/initiaterefund.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 +45 -0
- package/models/operations/listcaptures.d.ts.map +1 -0
- package/models/operations/listcaptures.js +91 -0
- package/models/operations/listcaptures.js.map +1 -0
- 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/listissuingmerchantcategories.d.ts +24 -0
- package/models/operations/listissuingmerchantcategories.d.ts.map +1 -0
- package/models/operations/listissuingmerchantcategories.js +72 -0
- package/models/operations/listissuingmerchantcategories.js.map +1 -0
- 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 +13 -0
- package/models/operations/listtransfers.d.ts.map +1 -1
- package/models/operations/listtransfers.js +4 -0
- 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 +10 -1
- package/sdk/cardissuing.d.ts.map +1 -1
- package/sdk/cardissuing.js +13 -1
- package/sdk/cardissuing.js.map +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/sdk.d.ts +2 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -3
- package/sdk/sdk.js.map +1 -1
- package/sdk/transfers.d.ts +28 -0
- package/sdk/transfers.d.ts.map +1 -1
- package/sdk/transfers.js +37 -0
- 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/cardIssuingListMerchantCategories.ts +155 -0
- 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 +11 -3
- package/src/funcs/transfersCreateCapture.ts +197 -0
- package/src/funcs/transfersCreateReversal.ts +3 -0
- package/src/funcs/transfersGetCapture.ts +185 -0
- package/src/funcs/transfersList.ts +2 -0
- package/src/funcs/transfersListCancellations.ts +1 -1
- package/src/funcs/transfersListCaptures.ts +181 -0
- 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 +20 -6
- package/src/mcp-server/tools/avatarsGet.ts +1 -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/cardIssuingListMerchantCategories.ts +34 -0
- package/src/mcp-server/tools/enrichedAddressGet.ts +1 -1
- package/src/mcp-server/tools/enrichedProfileGet.ts +1 -1
- package/src/mcp-server/tools/imagesUpload.ts +1 -1
- package/src/mcp-server/tools/institutionsSearch.ts +2 -2
- package/src/mcp-server/tools/transfersCreateCancellation.ts +3 -0
- package/src/mcp-server/tools/transfersCreateCapture.ts +40 -0
- package/src/mcp-server/tools/transfersCreateReversal.ts +4 -1
- package/src/mcp-server/tools/transfersGetCapture.ts +39 -0
- package/src/mcp-server/tools/transfersListCancellations.ts +1 -1
- package/src/mcp-server/tools/transfersListCaptures.ts +39 -0
- package/src/models/components/achcreditoptions.ts +72 -0
- package/src/models/components/achcredittransferprocessingdetails.ts +81 -0
- package/src/models/components/achdebitoptions.ts +94 -0
- package/src/models/components/achdebittransferprocessingdetails.ts +80 -0
- package/src/models/components/adjustmentfees.ts +72 -0
- package/src/models/components/allowedscheduleerror.ts +62 -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 +16 -9
- 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 +154 -0
- package/src/models/components/capturestatus.ts +28 -0
- package/src/models/components/cardacquiringrefund.ts +25 -18
- package/src/models/components/cardissuing.ts +61 -0
- package/src/models/components/cardissuingerror.ts +58 -0
- package/src/models/components/cardpaymentoptions.ts +72 -0
- package/src/models/components/cardpaymentrefundprocessingdetails.ts +60 -0
- package/src/models/components/cardpaymenttransactionstatus.ts +38 -0
- package/src/models/components/cardpaymenttransferprocessingdetails.ts +87 -0
- package/src/models/components/cardtransactionfailurecode.ts +16 -0
- package/src/models/components/createbankaccountattestation.ts +69 -0
- package/src/models/components/createcancellation.ts +68 -0
- package/src/models/components/createcapture.ts +137 -0
- package/src/models/components/createdtransfer.ts +77 -58
- package/src/models/components/createfeeplanagreement.ts +18 -1
- package/src/models/components/createpaymentlink.ts +3 -0
- package/src/models/components/createrefund.ts +19 -6
- package/src/models/components/createreversal.ts +16 -5
- package/src/models/components/createtransfer.ts +21 -21
- package/src/models/components/createtransferdestination.ts +13 -0
- package/src/models/components/createtransferdestinationwire.ts +60 -0
- package/src/models/components/createtransferfacilitatorfee.ts +73 -0
- package/src/models/components/createtransferoptions.ts +9 -9
- 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 +13 -9
- package/src/models/components/index.ts +61 -7
- package/src/models/components/instantbankcredittransferprocessingdetails.ts +100 -0
- package/src/models/components/issuedcard.ts +13 -9
- package/src/models/components/issuedcardstate.ts +3 -0
- package/src/models/components/issuedcontrols.ts +177 -0
- package/src/models/components/issuedvelocitylimit.ts +112 -0
- package/src/models/components/issuingcontrols.ts +107 -0
- package/src/models/components/issuingcontrolserror.ts +39 -0
- package/src/models/components/issuingcontrolsrestrictionmode.ts +34 -0
- package/src/models/components/issuingintervallimit.ts +16 -8
- package/src/models/components/issuingmerchantcategory.ts +56 -0
- package/src/models/components/issuingscheduleday.ts +26 -0
- package/src/models/components/issuingvelocitylimit.ts +11 -4
- package/src/models/components/issuingvelocitylimiterror.ts +4 -0
- package/src/models/components/merchantcategories.ts +60 -0
- package/src/models/components/merchantcategory.ts +73 -0
- package/src/models/components/merchantcategoryrestrictions.ts +97 -0
- package/src/models/components/merchantcategoryrestrictionserror.ts +72 -0
- package/src/models/components/merchantentry.ts +68 -0
- package/src/models/components/merchantentryerror.ts +56 -0
- package/src/models/components/merchantrestrictions.ts +75 -0
- package/src/models/components/merchantrestrictionserror.ts +62 -0
- package/src/models/components/moovfeedetails.ts +22 -16
- 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/paymentmethodswallet.ts +1 -0
- package/src/models/components/paymentmethodtype.ts +1 -0
- package/src/models/components/pullfromcardoptions.ts +72 -0
- package/src/models/components/pullfromcardtransactionstatus.ts +35 -0
- package/src/models/components/pullfromcardtransferprocessingdetails.ts +84 -0
- package/src/models/components/pushoptions.ts +4 -6
- package/src/models/components/pushoptionsupdate.ts +4 -6
- package/src/models/components/pushtocardoptions.ts +55 -0
- package/src/models/components/pushtocardtransactionstatus.ts +37 -0
- package/src/models/components/pushtocardtransferprocessingdetails.ts +84 -0
- package/src/models/components/refundprocessingdetails.ts +58 -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/schedulewindow.ts +73 -0
- package/src/models/components/schedulewindowerror.ts +60 -0
- package/src/models/components/sendfunds.ts +10 -0
- package/src/models/components/sendfundserror.ts +10 -0
- package/src/models/components/sendfundswire.ts +54 -0
- package/src/models/components/sendfundswireerror.ts +58 -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 +77 -58
- package/src/models/components/transferauthorization.ts +99 -0
- package/src/models/components/transferdestination.ts +12 -53
- package/src/models/components/transferfeepaidby.ts +1 -1
- package/src/models/components/transferpaymentmethod.ts +11 -1
- package/src/models/components/transferpaymentmethodswallet.ts +1 -0
- package/src/models/components/transferpaymentmethodtype.ts +1 -0
- package/src/models/components/transferprocessingdetails.ts +130 -0
- package/src/models/components/transferrailoptions.ts +111 -0
- package/src/models/components/transfersource.ts +12 -38
- package/src/models/components/transferstatus.ts +1 -0
- package/src/models/components/transfertype.ts +39 -0
- package/src/models/components/underwriting.ts +17 -0
- package/src/models/components/updateissuedcard.ts +15 -0
- package/src/models/components/updateissuedcardstate.ts +6 -0
- package/src/models/components/updateissuingcontrols.ts +351 -0
- package/src/models/components/updateissuingcontrolserror.ts +101 -0
- package/src/models/components/updatepaymentlink.ts +3 -0
- package/src/models/components/upsertunderwriting.ts +17 -0
- package/src/models/components/wallet.ts +1 -0
- package/src/models/components/wallettransactiontype.ts +1 -0
- package/src/models/components/wallettype.ts +3 -0
- package/src/models/components/webhookdata.ts +10 -0
- package/src/models/components/webhookdatacaptureupdated.ts +75 -0
- package/src/models/components/webhookdatatransferstatus.ts +4 -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/capturevalidationerror.ts +145 -0
- package/src/models/errors/cardacquiringrefund.ts +23 -11
- package/src/models/errors/imagemetadata.ts +139 -0
- package/src/models/errors/index.ts +3 -0
- package/src/models/errors/transfer.ts +78 -55
- package/src/models/errors/updateissuedcarderror.ts +6 -0
- package/src/models/errors/upsertunderwritingerror.ts +6 -0
- package/src/models/operations/createbankaccountattestation.ts +136 -0
- package/src/models/operations/createcancellation.ts +12 -0
- package/src/models/operations/createcapture.ts +142 -0
- package/src/models/operations/createreversal.ts +4 -4
- package/src/models/operations/getbankaccountattestationeligibility.ts +149 -0
- package/src/models/operations/getcapture.ts +128 -0
- package/src/models/operations/index.ts +7 -0
- package/src/models/operations/initiaterefund.ts +4 -4
- package/src/models/operations/listaccounts.ts +3 -0
- package/src/models/operations/listbankaccountattestations.ts +121 -0
- package/src/models/operations/listcaptures.ts +121 -0
- 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/listissuingmerchantcategories.ts +70 -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 +17 -0
- 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 +19 -1
- package/src/sdk/images.ts +1 -1
- package/src/sdk/institutions.ts +1 -1
- package/src/sdk/sdk.ts +5 -5
- package/src/sdk/transfers.ts +61 -0
- package/models/components/achtransactiondetails.d.ts +0 -70
- package/models/components/achtransactiondetails.d.ts.map +0 -1
- package/models/components/achtransactiondetails.js.map +0 -1
- package/models/components/cardacquiringdispute.d.ts +0 -25
- package/models/components/cardacquiringdispute.d.ts.map +0 -1
- package/models/components/cardacquiringdispute.js.map +0 -1
- package/models/components/cardtransactiondetails.d.ts +0 -79
- package/models/components/cardtransactiondetails.d.ts.map +0 -1
- package/models/components/cardtransactiondetails.js +0 -90
- package/models/components/cardtransactiondetails.js.map +0 -1
- package/models/components/cardtransactionstatus.d.ts +0 -23
- package/models/components/cardtransactionstatus.d.ts.map +0 -1
- package/models/components/cardtransactionstatus.js.map +0 -1
- package/models/components/instantbanktransactiondetails.d.ts +0 -51
- package/models/components/instantbanktransactiondetails.d.ts.map +0 -1
- package/models/components/instantbanktransactiondetails.js.map +0 -1
- package/models/components/refundcarddetails.d.ts +0 -31
- package/models/components/refundcarddetails.d.ts.map +0 -1
- package/models/components/refundcarddetails.js.map +0 -1
- package/models/components/refundcardstatus.d.ts +0 -15
- package/models/components/refundcardstatus.d.ts.map +0 -1
- package/models/components/refundcardstatus.js.map +0 -1
- package/src/models/components/achtransactiondetails.ts +0 -157
- package/src/models/components/cardacquiringdispute.ts +0 -69
- package/src/models/components/cardtransactiondetails.ts +0 -154
- package/src/models/components/cardtransactionstatus.ts +0 -37
- package/src/models/components/instantbanktransactiondetails.ts +0 -116
- package/src/models/components/refundcarddetails.ts +0 -86
- package/src/models/components/refundcardstatus.ts +0 -29
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
AmountDecimal,
|
|
12
|
+
AmountDecimal$inboundSchema,
|
|
13
|
+
AmountDecimal$Outbound,
|
|
14
|
+
AmountDecimal$outboundSchema,
|
|
15
|
+
} from "./amountdecimal.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Cancellation request.
|
|
19
|
+
*/
|
|
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
|
+
*/
|
|
28
|
+
amount?: AmountDecimal | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const CreateCancellation$inboundSchema: z.ZodType<
|
|
33
|
+
CreateCancellation,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
unknown
|
|
36
|
+
> = z.object({
|
|
37
|
+
amount: types.optional(AmountDecimal$inboundSchema),
|
|
38
|
+
});
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type CreateCancellation$Outbound = {
|
|
41
|
+
amount?: AmountDecimal$Outbound | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const CreateCancellation$outboundSchema: z.ZodType<
|
|
46
|
+
CreateCancellation$Outbound,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
CreateCancellation
|
|
49
|
+
> = z.object({
|
|
50
|
+
amount: AmountDecimal$outboundSchema.optional(),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export function createCancellationToJSON(
|
|
54
|
+
createCancellation: CreateCancellation,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(
|
|
57
|
+
CreateCancellation$outboundSchema.parse(createCancellation),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
export function createCancellationFromJSON(
|
|
61
|
+
jsonString: string,
|
|
62
|
+
): SafeParseResult<CreateCancellation, SDKValidationError> {
|
|
63
|
+
return safeParse(
|
|
64
|
+
jsonString,
|
|
65
|
+
(x) => CreateCancellation$inboundSchema.parse(JSON.parse(x)),
|
|
66
|
+
`Failed to parse 'CreateCancellation' from JSON`,
|
|
67
|
+
);
|
|
68
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
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
|
+
AmountDecimal,
|
|
12
|
+
AmountDecimal$inboundSchema,
|
|
13
|
+
AmountDecimal$Outbound,
|
|
14
|
+
AmountDecimal$outboundSchema,
|
|
15
|
+
} from "./amountdecimal.js";
|
|
16
|
+
import {
|
|
17
|
+
CreateTransferAmountDetails,
|
|
18
|
+
CreateTransferAmountDetails$inboundSchema,
|
|
19
|
+
CreateTransferAmountDetails$Outbound,
|
|
20
|
+
CreateTransferAmountDetails$outboundSchema,
|
|
21
|
+
} from "./createtransferamountdetails.js";
|
|
22
|
+
import {
|
|
23
|
+
CreateTransferLineItems,
|
|
24
|
+
CreateTransferLineItems$inboundSchema,
|
|
25
|
+
CreateTransferLineItems$Outbound,
|
|
26
|
+
CreateTransferLineItems$outboundSchema,
|
|
27
|
+
} from "./createtransferlineitems.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Request to capture funds against an authorization.
|
|
31
|
+
*/
|
|
32
|
+
export type CreateCapture = {
|
|
33
|
+
/**
|
|
34
|
+
* Payment method of the merchant account to capture funds into. For card-acquiring transfers, this must be a moov-wallet payment method.
|
|
35
|
+
*/
|
|
36
|
+
destinationPaymentMethodID: string;
|
|
37
|
+
/**
|
|
38
|
+
* Amount to capture.
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
* If omitted, the remaining capturable amount is captured.
|
|
42
|
+
*/
|
|
43
|
+
amount?: AmountDecimal | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Indicates whether this is intended to be the final capture.
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* When `true`, any remaining capturable amount is voided.
|
|
49
|
+
*/
|
|
50
|
+
isFinal?: boolean | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* An optional description of the capture that is used on receipts and for your own internal use.
|
|
53
|
+
*/
|
|
54
|
+
description?: string | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
|
|
57
|
+
*/
|
|
58
|
+
metadata?: { [k: string]: string } | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Optional alias from a foreign/external system which can be used to reference this resource.
|
|
61
|
+
*/
|
|
62
|
+
foreignID?: string | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* An optional collection of line items for a transfer.
|
|
65
|
+
*
|
|
66
|
+
* @remarks
|
|
67
|
+
* When line items are provided, their total plus tax must equal the transfer amount.
|
|
68
|
+
*/
|
|
69
|
+
lineItems?: CreateTransferLineItems | undefined;
|
|
70
|
+
amountDetails?: CreateTransferAmountDetails | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* The facilitator fee applied to this capture.
|
|
73
|
+
*
|
|
74
|
+
* @remarks
|
|
75
|
+
* The transfer's facilitator fee is the sum of its capture fees.
|
|
76
|
+
*/
|
|
77
|
+
facilitatorFeeAmount?: AmountDecimal | undefined;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const CreateCapture$inboundSchema: z.ZodType<
|
|
82
|
+
CreateCapture,
|
|
83
|
+
z.ZodTypeDef,
|
|
84
|
+
unknown
|
|
85
|
+
> = z.object({
|
|
86
|
+
destinationPaymentMethodID: types.string(),
|
|
87
|
+
amount: types.optional(AmountDecimal$inboundSchema),
|
|
88
|
+
isFinal: types.optional(types.boolean()),
|
|
89
|
+
description: types.optional(types.string()),
|
|
90
|
+
metadata: types.optional(z.record(types.string())),
|
|
91
|
+
foreignID: types.optional(types.string()),
|
|
92
|
+
lineItems: types.optional(CreateTransferLineItems$inboundSchema),
|
|
93
|
+
amountDetails: types.optional(CreateTransferAmountDetails$inboundSchema),
|
|
94
|
+
facilitatorFeeAmount: types.optional(AmountDecimal$inboundSchema),
|
|
95
|
+
});
|
|
96
|
+
/** @internal */
|
|
97
|
+
export type CreateCapture$Outbound = {
|
|
98
|
+
destinationPaymentMethodID: string;
|
|
99
|
+
amount?: AmountDecimal$Outbound | undefined;
|
|
100
|
+
isFinal?: boolean | undefined;
|
|
101
|
+
description?: string | undefined;
|
|
102
|
+
metadata?: { [k: string]: string } | undefined;
|
|
103
|
+
foreignID?: string | undefined;
|
|
104
|
+
lineItems?: CreateTransferLineItems$Outbound | undefined;
|
|
105
|
+
amountDetails?: CreateTransferAmountDetails$Outbound | undefined;
|
|
106
|
+
facilitatorFeeAmount?: AmountDecimal$Outbound | undefined;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
/** @internal */
|
|
110
|
+
export const CreateCapture$outboundSchema: z.ZodType<
|
|
111
|
+
CreateCapture$Outbound,
|
|
112
|
+
z.ZodTypeDef,
|
|
113
|
+
CreateCapture
|
|
114
|
+
> = z.object({
|
|
115
|
+
destinationPaymentMethodID: z.string(),
|
|
116
|
+
amount: AmountDecimal$outboundSchema.optional(),
|
|
117
|
+
isFinal: z.boolean().optional(),
|
|
118
|
+
description: z.string().optional(),
|
|
119
|
+
metadata: z.record(z.string()).optional(),
|
|
120
|
+
foreignID: z.string().optional(),
|
|
121
|
+
lineItems: CreateTransferLineItems$outboundSchema.optional(),
|
|
122
|
+
amountDetails: CreateTransferAmountDetails$outboundSchema.optional(),
|
|
123
|
+
facilitatorFeeAmount: AmountDecimal$outboundSchema.optional(),
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
export function createCaptureToJSON(createCapture: CreateCapture): string {
|
|
127
|
+
return JSON.stringify(CreateCapture$outboundSchema.parse(createCapture));
|
|
128
|
+
}
|
|
129
|
+
export function createCaptureFromJSON(
|
|
130
|
+
jsonString: string,
|
|
131
|
+
): SafeParseResult<CreateCapture, SDKValidationError> {
|
|
132
|
+
return safeParse(
|
|
133
|
+
jsonString,
|
|
134
|
+
(x) => CreateCapture$inboundSchema.parse(JSON.parse(x)),
|
|
135
|
+
`Failed to parse 'CreateCapture' from JSON`,
|
|
136
|
+
);
|
|
137
|
+
}
|
|
@@ -8,29 +8,11 @@ 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
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
16
|
-
import {
|
|
17
|
-
Cancellation,
|
|
18
|
-
Cancellation$inboundSchema,
|
|
19
|
-
Cancellation$Outbound,
|
|
20
|
-
Cancellation$outboundSchema,
|
|
21
|
-
} from "./cancellation.js";
|
|
22
|
-
import {
|
|
23
|
-
CardAcquiringDispute,
|
|
24
|
-
CardAcquiringDispute$inboundSchema,
|
|
25
|
-
CardAcquiringDispute$Outbound,
|
|
26
|
-
CardAcquiringDispute$outboundSchema,
|
|
27
|
-
} from "./cardacquiringdispute.js";
|
|
28
|
-
import {
|
|
29
|
-
CardAcquiringRefund,
|
|
30
|
-
CardAcquiringRefund$inboundSchema,
|
|
31
|
-
CardAcquiringRefund$Outbound,
|
|
32
|
-
CardAcquiringRefund$outboundSchema,
|
|
33
|
-
} from "./cardacquiringrefund.js";
|
|
11
|
+
AmountDecimal,
|
|
12
|
+
AmountDecimal$inboundSchema,
|
|
13
|
+
AmountDecimal$Outbound,
|
|
14
|
+
AmountDecimal$outboundSchema,
|
|
15
|
+
} from "./amountdecimal.js";
|
|
34
16
|
import {
|
|
35
17
|
FacilitatorFee,
|
|
36
18
|
FacilitatorFee$inboundSchema,
|
|
@@ -49,6 +31,12 @@ import {
|
|
|
49
31
|
TransferAmountDetails$Outbound,
|
|
50
32
|
TransferAmountDetails$outboundSchema,
|
|
51
33
|
} from "./transferamountdetails.js";
|
|
34
|
+
import {
|
|
35
|
+
TransferAuthorization,
|
|
36
|
+
TransferAuthorization$inboundSchema,
|
|
37
|
+
TransferAuthorization$Outbound,
|
|
38
|
+
TransferAuthorization$outboundSchema,
|
|
39
|
+
} from "./transferauthorization.js";
|
|
52
40
|
import {
|
|
53
41
|
TransferDestination,
|
|
54
42
|
TransferDestination$inboundSchema,
|
|
@@ -66,6 +54,18 @@ import {
|
|
|
66
54
|
TransferLineItems$Outbound,
|
|
67
55
|
TransferLineItems$outboundSchema,
|
|
68
56
|
} from "./transferlineitems.js";
|
|
57
|
+
import {
|
|
58
|
+
TransferProcessingDetails,
|
|
59
|
+
TransferProcessingDetails$inboundSchema,
|
|
60
|
+
TransferProcessingDetails$Outbound,
|
|
61
|
+
TransferProcessingDetails$outboundSchema,
|
|
62
|
+
} from "./transferprocessingdetails.js";
|
|
63
|
+
import {
|
|
64
|
+
TransferRailOptions,
|
|
65
|
+
TransferRailOptions$inboundSchema,
|
|
66
|
+
TransferRailOptions$Outbound,
|
|
67
|
+
TransferRailOptions$outboundSchema,
|
|
68
|
+
} from "./transferrailoptions.js";
|
|
69
69
|
import {
|
|
70
70
|
TransferSource,
|
|
71
71
|
TransferSource$inboundSchema,
|
|
@@ -77,9 +77,18 @@ import {
|
|
|
77
77
|
TransferStatus$inboundSchema,
|
|
78
78
|
TransferStatus$outboundSchema,
|
|
79
79
|
} from "./transferstatus.js";
|
|
80
|
+
import {
|
|
81
|
+
TransferType,
|
|
82
|
+
TransferType$inboundSchema,
|
|
83
|
+
TransferType$outboundSchema,
|
|
84
|
+
} from "./transfertype.js";
|
|
80
85
|
|
|
81
86
|
export type CreatedTransfer = {
|
|
82
87
|
transferID: string;
|
|
88
|
+
/**
|
|
89
|
+
* The rail and direction used to move funds for a transfer.
|
|
90
|
+
*/
|
|
91
|
+
transferType: TransferType;
|
|
83
92
|
createdOn: Date;
|
|
84
93
|
source?: TransferSource | undefined;
|
|
85
94
|
destination?: TransferDestination | undefined;
|
|
@@ -92,7 +101,15 @@ export type CreatedTransfer = {
|
|
|
92
101
|
* Reason for a transfer's failure.
|
|
93
102
|
*/
|
|
94
103
|
failureReason?: TransferFailureReason | undefined;
|
|
95
|
-
|
|
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
|
+
*/
|
|
112
|
+
amount?: AmountDecimal | undefined;
|
|
96
113
|
/**
|
|
97
114
|
* An optional description of the transfer that is used on receipts and for your own internal use.
|
|
98
115
|
*/
|
|
@@ -108,21 +125,14 @@ export type CreatedTransfer = {
|
|
|
108
125
|
/**
|
|
109
126
|
* Fees charged to your platform account for transfers.
|
|
110
127
|
*/
|
|
111
|
-
moovFee?:
|
|
112
|
-
/**
|
|
113
|
-
* Same as `moovFee`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.
|
|
114
|
-
*/
|
|
115
|
-
moovFeeDecimal?: string | undefined;
|
|
128
|
+
moovFee?: AmountDecimal | undefined;
|
|
116
129
|
/**
|
|
117
130
|
* Processing and pass-through costs that add up to the moovFee.
|
|
118
131
|
*/
|
|
119
132
|
moovFeeDetails?: MoovFeeDetails | undefined;
|
|
120
133
|
groupID?: string | undefined;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
refunds?: Array<CardAcquiringRefund> | undefined;
|
|
124
|
-
disputedAmount?: Amount | undefined;
|
|
125
|
-
disputes?: Array<CardAcquiringDispute> | undefined;
|
|
134
|
+
refundedAmount?: AmountDecimal | undefined;
|
|
135
|
+
disputedAmount?: AmountDecimal | undefined;
|
|
126
136
|
sweepID?: string | undefined;
|
|
127
137
|
scheduleID?: string | undefined;
|
|
128
138
|
occurrenceID?: string | undefined;
|
|
@@ -139,6 +149,15 @@ export type CreatedTransfer = {
|
|
|
139
149
|
*/
|
|
140
150
|
lineItems?: TransferLineItems | undefined;
|
|
141
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
|
+
*/
|
|
158
|
+
authorization?: TransferAuthorization | undefined;
|
|
159
|
+
options: TransferRailOptions;
|
|
160
|
+
processingDetails: TransferProcessingDetails;
|
|
142
161
|
};
|
|
143
162
|
|
|
144
163
|
/** @internal */
|
|
@@ -148,25 +167,22 @@ export const CreatedTransfer$inboundSchema: z.ZodType<
|
|
|
148
167
|
unknown
|
|
149
168
|
> = z.object({
|
|
150
169
|
transferID: types.string(),
|
|
170
|
+
transferType: TransferType$inboundSchema,
|
|
151
171
|
createdOn: types.date(),
|
|
152
172
|
source: types.optional(TransferSource$inboundSchema),
|
|
153
173
|
destination: types.optional(TransferDestination$inboundSchema),
|
|
154
174
|
completedOn: types.optional(types.date()),
|
|
155
175
|
status: types.optional(TransferStatus$inboundSchema),
|
|
156
176
|
failureReason: types.optional(TransferFailureReason$inboundSchema),
|
|
157
|
-
amount: types.optional(
|
|
177
|
+
amount: types.optional(AmountDecimal$inboundSchema),
|
|
158
178
|
description: types.optional(types.string()),
|
|
159
179
|
metadata: types.optional(z.record(types.string())),
|
|
160
180
|
facilitatorFee: types.optional(FacilitatorFee$inboundSchema),
|
|
161
|
-
moovFee: types.optional(
|
|
162
|
-
moovFeeDecimal: types.optional(types.string()),
|
|
181
|
+
moovFee: types.optional(AmountDecimal$inboundSchema),
|
|
163
182
|
moovFeeDetails: types.optional(MoovFeeDetails$inboundSchema),
|
|
164
183
|
groupID: types.optional(types.string()),
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
refunds: types.optional(z.array(CardAcquiringRefund$inboundSchema)),
|
|
168
|
-
disputedAmount: types.optional(Amount$inboundSchema),
|
|
169
|
-
disputes: types.optional(z.array(CardAcquiringDispute$inboundSchema)),
|
|
184
|
+
refundedAmount: types.optional(AmountDecimal$inboundSchema),
|
|
185
|
+
disputedAmount: types.optional(AmountDecimal$inboundSchema),
|
|
170
186
|
sweepID: types.optional(types.string()),
|
|
171
187
|
scheduleID: types.optional(types.string()),
|
|
172
188
|
occurrenceID: types.optional(types.string()),
|
|
@@ -174,29 +190,29 @@ export const CreatedTransfer$inboundSchema: z.ZodType<
|
|
|
174
190
|
foreignID: types.optional(types.string()),
|
|
175
191
|
lineItems: types.optional(TransferLineItems$inboundSchema),
|
|
176
192
|
amountDetails: types.optional(TransferAmountDetails$inboundSchema),
|
|
193
|
+
authorization: types.optional(TransferAuthorization$inboundSchema),
|
|
194
|
+
options: TransferRailOptions$inboundSchema,
|
|
195
|
+
processingDetails: TransferProcessingDetails$inboundSchema,
|
|
177
196
|
});
|
|
178
197
|
/** @internal */
|
|
179
198
|
export type CreatedTransfer$Outbound = {
|
|
180
199
|
transferID: string;
|
|
200
|
+
transferType: string;
|
|
181
201
|
createdOn: string;
|
|
182
202
|
source?: TransferSource$Outbound | undefined;
|
|
183
203
|
destination?: TransferDestination$Outbound | undefined;
|
|
184
204
|
completedOn?: string | undefined;
|
|
185
205
|
status?: string | undefined;
|
|
186
206
|
failureReason?: string | undefined;
|
|
187
|
-
amount?:
|
|
207
|
+
amount?: AmountDecimal$Outbound | undefined;
|
|
188
208
|
description?: string | undefined;
|
|
189
209
|
metadata?: { [k: string]: string } | undefined;
|
|
190
210
|
facilitatorFee?: FacilitatorFee$Outbound | undefined;
|
|
191
|
-
moovFee?:
|
|
192
|
-
moovFeeDecimal?: string | undefined;
|
|
211
|
+
moovFee?: AmountDecimal$Outbound | undefined;
|
|
193
212
|
moovFeeDetails?: MoovFeeDetails$Outbound | undefined;
|
|
194
213
|
groupID?: string | undefined;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
refunds?: Array<CardAcquiringRefund$Outbound> | undefined;
|
|
198
|
-
disputedAmount?: Amount$Outbound | undefined;
|
|
199
|
-
disputes?: Array<CardAcquiringDispute$Outbound> | undefined;
|
|
214
|
+
refundedAmount?: AmountDecimal$Outbound | undefined;
|
|
215
|
+
disputedAmount?: AmountDecimal$Outbound | undefined;
|
|
200
216
|
sweepID?: string | undefined;
|
|
201
217
|
scheduleID?: string | undefined;
|
|
202
218
|
occurrenceID?: string | undefined;
|
|
@@ -204,6 +220,9 @@ export type CreatedTransfer$Outbound = {
|
|
|
204
220
|
foreignID?: string | undefined;
|
|
205
221
|
lineItems?: TransferLineItems$Outbound | undefined;
|
|
206
222
|
amountDetails?: TransferAmountDetails$Outbound | undefined;
|
|
223
|
+
authorization?: TransferAuthorization$Outbound | undefined;
|
|
224
|
+
options: TransferRailOptions$Outbound;
|
|
225
|
+
processingDetails: TransferProcessingDetails$Outbound;
|
|
207
226
|
};
|
|
208
227
|
|
|
209
228
|
/** @internal */
|
|
@@ -213,25 +232,22 @@ export const CreatedTransfer$outboundSchema: z.ZodType<
|
|
|
213
232
|
CreatedTransfer
|
|
214
233
|
> = z.object({
|
|
215
234
|
transferID: z.string(),
|
|
235
|
+
transferType: TransferType$outboundSchema,
|
|
216
236
|
createdOn: z.date().transform(v => v.toISOString()),
|
|
217
237
|
source: TransferSource$outboundSchema.optional(),
|
|
218
238
|
destination: TransferDestination$outboundSchema.optional(),
|
|
219
239
|
completedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
220
240
|
status: TransferStatus$outboundSchema.optional(),
|
|
221
241
|
failureReason: TransferFailureReason$outboundSchema.optional(),
|
|
222
|
-
amount:
|
|
242
|
+
amount: AmountDecimal$outboundSchema.optional(),
|
|
223
243
|
description: z.string().optional(),
|
|
224
244
|
metadata: z.record(z.string()).optional(),
|
|
225
245
|
facilitatorFee: FacilitatorFee$outboundSchema.optional(),
|
|
226
|
-
moovFee:
|
|
227
|
-
moovFeeDecimal: z.string().optional(),
|
|
246
|
+
moovFee: AmountDecimal$outboundSchema.optional(),
|
|
228
247
|
moovFeeDetails: MoovFeeDetails$outboundSchema.optional(),
|
|
229
248
|
groupID: z.string().optional(),
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
refunds: z.array(CardAcquiringRefund$outboundSchema).optional(),
|
|
233
|
-
disputedAmount: Amount$outboundSchema.optional(),
|
|
234
|
-
disputes: z.array(CardAcquiringDispute$outboundSchema).optional(),
|
|
249
|
+
refundedAmount: AmountDecimal$outboundSchema.optional(),
|
|
250
|
+
disputedAmount: AmountDecimal$outboundSchema.optional(),
|
|
235
251
|
sweepID: z.string().optional(),
|
|
236
252
|
scheduleID: z.string().optional(),
|
|
237
253
|
occurrenceID: z.string().optional(),
|
|
@@ -239,6 +255,9 @@ export const CreatedTransfer$outboundSchema: z.ZodType<
|
|
|
239
255
|
foreignID: z.string().optional(),
|
|
240
256
|
lineItems: TransferLineItems$outboundSchema.optional(),
|
|
241
257
|
amountDetails: TransferAmountDetails$outboundSchema.optional(),
|
|
258
|
+
authorization: TransferAuthorization$outboundSchema.optional(),
|
|
259
|
+
options: TransferRailOptions$outboundSchema,
|
|
260
|
+
processingDetails: TransferProcessingDetails$outboundSchema,
|
|
242
261
|
});
|
|
243
262
|
|
|
244
263
|
export function createdTransferToJSON(
|
|
@@ -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`.
|
|
@@ -7,6 +7,12 @@ 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
|
+
AmountDecimal,
|
|
12
|
+
AmountDecimal$inboundSchema,
|
|
13
|
+
AmountDecimal$Outbound,
|
|
14
|
+
AmountDecimal$outboundSchema,
|
|
15
|
+
} from "./amountdecimal.js";
|
|
10
16
|
import {
|
|
11
17
|
RefundAmountDetails,
|
|
12
18
|
RefundAmountDetails$inboundSchema,
|
|
@@ -19,13 +25,17 @@ import {
|
|
|
19
25
|
*
|
|
20
26
|
* @remarks
|
|
21
27
|
*
|
|
22
|
-
*
|
|
28
|
+
* Before v2026.10, this request body may be omitted. In v2026.10 and later, send an empty object to refund the full amount of the original transfer.
|
|
23
29
|
*/
|
|
24
30
|
export type CreateRefund = {
|
|
25
31
|
/**
|
|
26
|
-
* Amount to refund
|
|
32
|
+
* Amount to refund. If omitted, the original transfer's full amount will be refunded.
|
|
33
|
+
*/
|
|
34
|
+
amount?: AmountDecimal | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* ID of the capture to refund. This field is only relevant for an auth-capture `card-payment` transfer.
|
|
27
37
|
*/
|
|
28
|
-
|
|
38
|
+
captureID?: string | undefined;
|
|
29
39
|
/**
|
|
30
40
|
* Breakdown of the refunded amount.
|
|
31
41
|
*/
|
|
@@ -38,12 +48,14 @@ export const CreateRefund$inboundSchema: z.ZodType<
|
|
|
38
48
|
z.ZodTypeDef,
|
|
39
49
|
unknown
|
|
40
50
|
> = z.object({
|
|
41
|
-
amount: types.optional(
|
|
51
|
+
amount: types.optional(AmountDecimal$inboundSchema),
|
|
52
|
+
captureID: types.optional(types.string()),
|
|
42
53
|
amountDetails: types.optional(RefundAmountDetails$inboundSchema),
|
|
43
54
|
});
|
|
44
55
|
/** @internal */
|
|
45
56
|
export type CreateRefund$Outbound = {
|
|
46
|
-
amount?:
|
|
57
|
+
amount?: AmountDecimal$Outbound | undefined;
|
|
58
|
+
captureID?: string | undefined;
|
|
47
59
|
amountDetails?: RefundAmountDetails$Outbound | undefined;
|
|
48
60
|
};
|
|
49
61
|
|
|
@@ -53,7 +65,8 @@ export const CreateRefund$outboundSchema: z.ZodType<
|
|
|
53
65
|
z.ZodTypeDef,
|
|
54
66
|
CreateRefund
|
|
55
67
|
> = z.object({
|
|
56
|
-
amount:
|
|
68
|
+
amount: AmountDecimal$outboundSchema.optional(),
|
|
69
|
+
captureID: z.string().optional(),
|
|
57
70
|
amountDetails: RefundAmountDetails$outboundSchema.optional(),
|
|
58
71
|
});
|
|
59
72
|
|