@moovio/sdk 26.10.0-dev.0 → 26.10.0-dev.2
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 +167 -68
- package/bin/mcp-server.js +2946 -1196
- package/bin/mcp-server.js.map +141 -85
- package/funcs/avatarsDelete.d.ts +23 -0
- package/funcs/avatarsDelete.d.ts.map +1 -0
- package/funcs/avatarsDelete.js +135 -0
- package/funcs/avatarsDelete.js.map +1 -0
- package/funcs/avatarsUpload.d.ts +23 -0
- package/funcs/avatarsUpload.d.ts.map +1 -0
- package/funcs/avatarsUpload.js +155 -0
- package/funcs/avatarsUpload.js.map +1 -0
- 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/productsList.js +1 -0
- package/funcs/productsList.js.map +1 -1
- package/funcs/productsListCategories.d.ts +14 -0
- package/funcs/productsListCategories.d.ts.map +1 -0
- package/funcs/productsListCategories.js +107 -0
- package/funcs/productsListCategories.js.map +1 -0
- package/funcs/transfersCreateCancellation.js +4 -1
- package/funcs/transfersCreateCancellation.js.map +1 -1
- package/funcs/transfersCreateCapture.d.ts +18 -0
- package/funcs/transfersCreateCapture.d.ts.map +1 -0
- package/funcs/transfersCreateCapture.js +132 -0
- package/funcs/transfersCreateCapture.js.map +1 -0
- 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 +3 -0
- package/funcs/transfersList.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/hooks/oauth2scopes.d.ts +5 -0
- package/hooks/oauth2scopes.d.ts.map +1 -0
- package/hooks/oauth2scopes.js +6 -0
- package/hooks/oauth2scopes.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +16 -6
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/avatarsGet.js +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/institutionsSearch.js +1 -1
- package/mcp-server/tools/productsListCategories.d.ts +3 -0
- package/mcp-server/tools/productsListCategories.d.ts.map +1 -0
- package/mcp-server/tools/productsListCategories.js +24 -0
- package/mcp-server/tools/productsListCategories.js.map +1 -0
- 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 +65 -0
- package/mcp-server/tools/transfersCreateCapture.js.map +1 -0
- 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/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 +22 -0
- package/models/components/achcredittransferprocessingdetails.d.ts.map +1 -0
- package/models/components/achcredittransferprocessingdetails.js +64 -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 +22 -0
- package/models/components/achdebittransferprocessingdetails.d.ts.map +1 -0
- package/models/components/achdebittransferprocessingdetails.js +64 -0
- package/models/components/achdebittransferprocessingdetails.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/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/avataruploadrequest.d.ts +35 -0
- package/models/components/avataruploadrequest.d.ts.map +1 -0
- package/models/components/avataruploadrequest.js +88 -0
- package/models/components/avataruploadrequest.js.map +1 -0
- package/models/components/capabilityid.d.ts +1 -0
- package/models/components/capabilityid.d.ts.map +1 -1
- package/models/components/capabilityid.js +1 -0
- package/models/components/capabilityid.js.map +1 -1
- package/models/components/capture.d.ts +77 -0
- package/models/components/capture.d.ts.map +1 -0
- package/models/components/capture.js +85 -0
- package/models/components/capture.js.map +1 -0
- package/models/components/capturestatus.d.ts +16 -0
- package/models/components/capturestatus.d.ts.map +1 -0
- package/models/components/{refundcardstatus.js → capturestatus.js} +9 -8
- 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/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/cardpaymenttransferprocessingdetails.d.ts +24 -0
- package/models/components/cardpaymenttransferprocessingdetails.d.ts.map +1 -0
- package/models/components/cardpaymenttransferprocessingdetails.js +66 -0
- package/models/components/cardpaymenttransferprocessingdetails.js.map +1 -0
- package/models/components/createcancellation.d.ts +18 -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 +70 -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 +24 -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/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 +4 -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 +13 -7
- package/models/components/createtransfer.d.ts.map +1 -1
- package/models/components/createtransfer.js +9 -6
- package/models/components/createtransfer.js.map +1 -1
- 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/feepaidby.d.ts +18 -0
- package/models/components/feepaidby.d.ts.map +1 -0
- package/models/components/{achtransactionstatus.js → feepaidby.js} +8 -13
- package/models/components/feepaidby.js.map +1 -0
- package/models/components/fullissuedcard.d.ts +6 -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/incurredfee.d.ts +6 -0
- package/models/components/incurredfee.d.ts.map +1 -1
- package/models/components/incurredfee.js +3 -0
- package/models/components/incurredfee.js.map +1 -1
- package/models/components/index.d.ts +47 -9
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +47 -9
- package/models/components/index.js.map +1 -1
- package/models/components/instantbankcredittransferprocessingdetails.d.ts +31 -0
- package/models/components/instantbankcredittransferprocessingdetails.d.ts.map +1 -0
- package/models/components/{instantbanktransactiondetails.js → instantbankcredittransferprocessingdetails.js} +10 -21
- package/models/components/instantbankcredittransferprocessingdetails.js.map +1 -0
- package/models/components/issuedcard.d.ts +6 -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/issuedcontrols.d.ts +76 -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/{cardtransactionstatus.js → issuingcontrolsrestrictionmode.js} +8 -13
- package/models/components/issuingcontrolsrestrictionmode.js.map +1 -0
- package/models/components/issuingintervallimit.d.ts +9 -6
- package/models/components/issuingintervallimit.d.ts.map +1 -1
- package/models/components/issuingintervallimit.js +7 -4
- 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 +8 -3
- 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/paymentlinkpayoutdetails.d.ts +14 -0
- package/models/components/paymentlinkpayoutdetails.d.ts.map +1 -1
- package/models/components/paymentlinkpayoutdetails.js +3 -0
- package/models/components/paymentlinkpayoutdetails.js.map +1 -1
- package/models/components/paymentlinkpayoutdetailsupdate.d.ts +14 -0
- package/models/components/paymentlinkpayoutdetailsupdate.d.ts.map +1 -1
- package/models/components/paymentlinkpayoutdetailsupdate.js +3 -0
- package/models/components/paymentlinkpayoutdetailsupdate.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/payoutdetailserror.d.ts +2 -0
- package/models/components/payoutdetailserror.d.ts.map +1 -1
- package/models/components/payoutdetailserror.js +2 -0
- package/models/components/payoutdetailserror.js.map +1 -1
- package/models/components/product.d.ts +6 -0
- package/models/components/product.d.ts.map +1 -1
- package/models/components/product.js +3 -0
- package/models/components/product.js.map +1 -1
- package/models/components/productcategories.d.ts +21 -0
- package/models/components/productcategories.d.ts.map +1 -0
- package/models/components/productcategories.js +59 -0
- package/models/components/productcategories.js.map +1 -0
- package/models/components/productcategory.d.ts +43 -0
- package/models/components/productcategory.d.ts.map +1 -0
- package/models/components/productcategory.js +67 -0
- package/models/components/productcategory.js.map +1 -0
- package/models/components/productrequest.d.ts +5 -0
- package/models/components/productrequest.d.ts.map +1 -1
- package/models/components/productrequest.js +2 -0
- package/models/components/productrequest.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/pullfromcardtransferprocessingdetails.d.ts +24 -0
- package/models/components/pullfromcardtransferprocessingdetails.d.ts.map +1 -0
- package/models/components/pullfromcardtransferprocessingdetails.js +66 -0
- package/models/components/pullfromcardtransferprocessingdetails.js.map +1 -0
- 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/pushtocardtransferprocessingdetails.d.ts +24 -0
- package/models/components/pushtocardtransferprocessingdetails.d.ts.map +1 -0
- package/models/components/pushtocardtransferprocessingdetails.js +66 -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/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/transfer.d.ts +24 -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 +28 -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 +24 -0
- package/models/components/transferfeepaidby.d.ts.map +1 -0
- package/models/components/transferfeepaidby.js +60 -0
- package/models/components/transferfeepaidby.js.map +1 -0
- 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/transferprocessingdetails.d.ts +33 -0
- package/models/components/transferprocessingdetails.d.ts.map +1 -0
- package/models/components/transferprocessingdetails.js +76 -0
- package/models/components/transferprocessingdetails.js.map +1 -0
- package/models/components/transferrailoptions.d.ts +30 -0
- package/models/components/transferrailoptions.d.ts.map +1 -0
- package/models/components/transferrailoptions.js +72 -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 +24 -0
- package/models/components/transfertype.d.ts.map +1 -0
- package/models/components/{instantbanktransactionstatus.js → transfertype.js} +14 -10
- package/models/components/transfertype.js.map +1 -0
- package/models/components/updateissuedcard.d.ts +6 -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/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/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/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/webhookdatatransferstatus.d.ts +3 -0
- package/models/components/webhookdatatransferstatus.d.ts.map +1 -1
- package/models/components/webhookdatatransferstatus.js +3 -0
- package/models/components/webhookdatatransferstatus.js.map +1 -1
- 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/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/productrequestvalidationerror.d.ts +3 -0
- package/models/errors/productrequestvalidationerror.d.ts.map +1 -1
- package/models/errors/productrequestvalidationerror.js +4 -0
- package/models/errors/productrequestvalidationerror.js.map +1 -1
- package/models/errors/transfer.d.ts +30 -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/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/deleteavatar.d.ts +52 -0
- package/models/operations/deleteavatar.d.ts.map +1 -0
- package/models/operations/deleteavatar.js +102 -0
- package/models/operations/deleteavatar.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/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/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/listproductcategories.d.ts +24 -0
- package/models/operations/listproductcategories.d.ts.map +1 -0
- package/models/operations/listproductcategories.js +72 -0
- package/models/operations/listproductcategories.js.map +1 -0
- package/models/operations/listproducts.d.ts +9 -0
- package/models/operations/listproducts.d.ts.map +1 -1
- package/models/operations/listproducts.js +2 -0
- package/models/operations/listproducts.js.map +1 -1
- package/models/operations/listtransfers.d.ts +15 -0
- package/models/operations/listtransfers.d.ts.map +1 -1
- package/models/operations/listtransfers.js +6 -0
- package/models/operations/listtransfers.js.map +1 -1
- package/models/operations/uploadavatar.d.ts +55 -0
- package/models/operations/uploadavatar.d.ts.map +1 -0
- package/models/operations/uploadavatar.js +113 -0
- package/models/operations/uploadavatar.js.map +1 -0
- package/package.json +1 -1
- package/sdk/avatars.d.ts +24 -0
- package/sdk/avatars.d.ts.map +1 -1
- package/sdk/avatars.js +30 -0
- package/sdk/avatars.js.map +1 -1
- package/sdk/cardissuing.d.ts +9 -0
- package/sdk/cardissuing.d.ts.map +1 -1
- package/sdk/cardissuing.js +12 -0
- package/sdk/cardissuing.js.map +1 -1
- package/sdk/products.d.ts +4 -0
- package/sdk/products.d.ts.map +1 -1
- package/sdk/products.js +7 -0
- package/sdk/products.js.map +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 +21 -0
- package/sdk/transfers.d.ts.map +1 -1
- package/sdk/transfers.js +30 -0
- package/sdk/transfers.js.map +1 -1
- package/src/funcs/avatarsDelete.ts +194 -0
- package/src/funcs/avatarsUpload.ts +231 -0
- package/src/funcs/cardIssuingListMerchantCategories.ts +155 -0
- package/src/funcs/productsList.ts +1 -0
- package/src/funcs/productsListCategories.ts +149 -0
- package/src/funcs/transfersCreateCancellation.ts +5 -2
- package/src/funcs/transfersCreateCapture.ts +196 -0
- package/src/funcs/transfersGetCapture.ts +185 -0
- package/src/funcs/transfersList.ts +3 -0
- package/src/funcs/transfersListCaptures.ts +181 -0
- package/src/hooks/oauth2scopes.ts +8 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +16 -6
- package/src/mcp-server/tools/avatarsGet.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/institutionsSearch.ts +1 -1
- package/src/mcp-server/tools/productsListCategories.ts +29 -0
- package/src/mcp-server/tools/transfersCreateCapture.ts +38 -0
- package/src/mcp-server/tools/transfersGetCapture.ts +38 -0
- package/src/mcp-server/tools/transfersListCaptures.ts +38 -0
- package/src/models/components/achcreditoptions.ts +72 -0
- package/src/models/components/achcredittransferprocessingdetails.ts +69 -0
- package/src/models/components/achdebitoptions.ts +94 -0
- package/src/models/components/achdebittransferprocessingdetails.ts +68 -0
- package/src/models/components/allowedscheduleerror.ts +62 -0
- package/src/models/components/asynccreatedrefund.ts +16 -9
- package/src/models/components/avataruploadrequest.ts +113 -0
- package/src/models/components/capabilityid.ts +1 -0
- package/src/models/components/capture.ts +142 -0
- package/src/models/components/capturestatus.ts +30 -0
- package/src/models/components/cardacquiringrefund.ts +25 -18
- package/src/models/components/cardpaymentoptions.ts +72 -0
- package/src/models/components/cardpaymentrefundprocessingdetails.ts +60 -0
- package/src/models/components/cardpaymenttransferprocessingdetails.ts +72 -0
- package/src/models/components/createcancellation.ts +58 -0
- package/src/models/components/createcapture.ts +128 -0
- package/src/models/components/createdtransfer.ts +63 -58
- package/src/models/components/createrefund.ts +19 -6
- package/src/models/components/createreversal.ts +11 -5
- package/src/models/components/createtransfer.ts +32 -19
- package/src/models/components/createtransferfacilitatorfee.ts +73 -0
- package/src/models/components/createtransferoptions.ts +9 -9
- package/src/models/components/feepaidby.ts +32 -0
- package/src/models/components/fullissuedcard.ts +12 -9
- package/src/models/components/incurredfee.ts +12 -0
- package/src/models/components/index.ts +47 -9
- package/src/models/components/instantbankcredittransferprocessingdetails.ts +88 -0
- package/src/models/components/issuedcard.ts +12 -9
- package/src/models/components/issuedcontrols.ts +180 -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 +18 -10
- package/src/models/components/issuingmerchantcategory.ts +56 -0
- package/src/models/components/issuingscheduleday.ts +26 -0
- package/src/models/components/issuingvelocitylimit.ts +12 -5
- 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/paymentlinkpayoutdetails.ts +16 -0
- package/src/models/components/paymentlinkpayoutdetailsupdate.ts +16 -0
- package/src/models/components/paymentmethodswallet.ts +1 -0
- package/src/models/components/payoutdetailserror.ts +4 -0
- package/src/models/components/product.ts +13 -0
- package/src/models/components/productcategories.ts +60 -0
- package/src/models/components/productcategory.ts +84 -0
- package/src/models/components/productrequest.ts +7 -0
- package/src/models/components/pullfromcardoptions.ts +72 -0
- package/src/models/components/pullfromcardtransferprocessingdetails.ts +72 -0
- package/src/models/components/pushtocardoptions.ts +55 -0
- package/src/models/components/pushtocardtransferprocessingdetails.ts +72 -0
- package/src/models/components/refundprocessingdetails.ts +58 -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/transfer.ts +63 -58
- package/src/models/components/transferauthorization.ts +78 -0
- package/src/models/components/transferdestination.ts +12 -53
- package/src/models/components/transferfeepaidby.ts +63 -0
- package/src/models/components/transferpaymentmethodswallet.ts +1 -0
- package/src/models/components/transferprocessingdetails.ts +117 -0
- package/src/models/components/transferrailoptions.ts +98 -0
- package/src/models/components/transfersource.ts +12 -38
- package/src/models/components/transferstatus.ts +1 -0
- package/src/models/components/transfertype.ts +38 -0
- package/src/models/components/updateissuedcard.ts +13 -0
- package/src/models/components/updateissuingcontrols.ts +351 -0
- package/src/models/components/updateissuingcontrolserror.ts +101 -0
- package/src/models/components/wallet.ts +1 -0
- package/src/models/components/wallettype.ts +3 -0
- package/src/models/components/webhookdatatransferstatus.ts +3 -0
- package/src/models/errors/capturevalidationerror.ts +145 -0
- package/src/models/errors/cardacquiringrefund.ts +23 -11
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/productrequestvalidationerror.ts +6 -0
- package/src/models/errors/transfer.ts +50 -55
- package/src/models/errors/updateissuedcarderror.ts +6 -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/deleteavatar.ts +154 -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/listcaptures.ts +121 -0
- package/src/models/operations/listissuingmerchantcategories.ts +70 -0
- package/src/models/operations/listproductcategories.ts +69 -0
- package/src/models/operations/listproducts.ts +11 -0
- package/src/models/operations/listtransfers.ts +21 -0
- package/src/models/operations/uploadavatar.ts +167 -0
- package/src/sdk/avatars.ts +50 -0
- package/src/sdk/cardissuing.ts +18 -0
- package/src/sdk/products.ts +13 -0
- package/src/sdk/sdk.ts +5 -5
- package/src/sdk/transfers.ts +54 -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/achtransactionstatus.d.ts +0 -23
- package/models/components/achtransactionstatus.d.ts.map +0 -1
- package/models/components/achtransactionstatus.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/instantbanktransactionstatus.d.ts +0 -20
- package/models/components/instantbanktransactionstatus.d.ts.map +0 -1
- package/models/components/instantbanktransactionstatus.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/achtransactionstatus.ts +0 -37
- 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/instantbanktransactionstatus.ts +0 -36
- package/src/models/components/refundcarddetails.ts +0 -86
- package/src/models/components/refundcardstatus.ts +0 -29
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
export type SendFundsWire = {
|
|
18
|
+
estimatedActivity?: EstimatedActivity | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const SendFundsWire$inboundSchema: z.ZodType<
|
|
23
|
+
SendFundsWire,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
estimatedActivity: types.optional(EstimatedActivity$inboundSchema),
|
|
28
|
+
});
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type SendFundsWire$Outbound = {
|
|
31
|
+
estimatedActivity?: EstimatedActivity$Outbound | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const SendFundsWire$outboundSchema: z.ZodType<
|
|
36
|
+
SendFundsWire$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
SendFundsWire
|
|
39
|
+
> = z.object({
|
|
40
|
+
estimatedActivity: EstimatedActivity$outboundSchema.optional(),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export function sendFundsWireToJSON(sendFundsWire: SendFundsWire): string {
|
|
44
|
+
return JSON.stringify(SendFundsWire$outboundSchema.parse(sendFundsWire));
|
|
45
|
+
}
|
|
46
|
+
export function sendFundsWireFromJSON(
|
|
47
|
+
jsonString: string,
|
|
48
|
+
): SafeParseResult<SendFundsWire, SDKValidationError> {
|
|
49
|
+
return safeParse(
|
|
50
|
+
jsonString,
|
|
51
|
+
(x) => SendFundsWire$inboundSchema.parse(JSON.parse(x)),
|
|
52
|
+
`Failed to parse 'SendFundsWire' from JSON`,
|
|
53
|
+
);
|
|
54
|
+
}
|
|
@@ -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 SendFundsWireError = {
|
|
18
|
+
estimatedActivity?: EstimatedActivityError | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const SendFundsWireError$inboundSchema: z.ZodType<
|
|
23
|
+
SendFundsWireError,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
estimatedActivity: types.optional(EstimatedActivityError$inboundSchema),
|
|
28
|
+
});
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type SendFundsWireError$Outbound = {
|
|
31
|
+
estimatedActivity?: EstimatedActivityError$Outbound | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const SendFundsWireError$outboundSchema: z.ZodType<
|
|
36
|
+
SendFundsWireError$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
SendFundsWireError
|
|
39
|
+
> = z.object({
|
|
40
|
+
estimatedActivity: EstimatedActivityError$outboundSchema.optional(),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export function sendFundsWireErrorToJSON(
|
|
44
|
+
sendFundsWireError: SendFundsWireError,
|
|
45
|
+
): string {
|
|
46
|
+
return JSON.stringify(
|
|
47
|
+
SendFundsWireError$outboundSchema.parse(sendFundsWireError),
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
export function sendFundsWireErrorFromJSON(
|
|
51
|
+
jsonString: string,
|
|
52
|
+
): SafeParseResult<SendFundsWireError, SDKValidationError> {
|
|
53
|
+
return safeParse(
|
|
54
|
+
jsonString,
|
|
55
|
+
(x) => SendFundsWireError$inboundSchema.parse(JSON.parse(x)),
|
|
56
|
+
`Failed to parse 'SendFundsWireError' from JSON`,
|
|
57
|
+
);
|
|
58
|
+
}
|
|
@@ -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,
|
|
@@ -55,6 +37,12 @@ import {
|
|
|
55
37
|
TransferAmountDetails$Outbound,
|
|
56
38
|
TransferAmountDetails$outboundSchema,
|
|
57
39
|
} from "./transferamountdetails.js";
|
|
40
|
+
import {
|
|
41
|
+
TransferAuthorization,
|
|
42
|
+
TransferAuthorization$inboundSchema,
|
|
43
|
+
TransferAuthorization$Outbound,
|
|
44
|
+
TransferAuthorization$outboundSchema,
|
|
45
|
+
} from "./transferauthorization.js";
|
|
58
46
|
import {
|
|
59
47
|
TransferDestination,
|
|
60
48
|
TransferDestination$inboundSchema,
|
|
@@ -72,6 +60,18 @@ import {
|
|
|
72
60
|
TransferLineItems$Outbound,
|
|
73
61
|
TransferLineItems$outboundSchema,
|
|
74
62
|
} from "./transferlineitems.js";
|
|
63
|
+
import {
|
|
64
|
+
TransferProcessingDetails,
|
|
65
|
+
TransferProcessingDetails$inboundSchema,
|
|
66
|
+
TransferProcessingDetails$Outbound,
|
|
67
|
+
TransferProcessingDetails$outboundSchema,
|
|
68
|
+
} from "./transferprocessingdetails.js";
|
|
69
|
+
import {
|
|
70
|
+
TransferRailOptions,
|
|
71
|
+
TransferRailOptions$inboundSchema,
|
|
72
|
+
TransferRailOptions$Outbound,
|
|
73
|
+
TransferRailOptions$outboundSchema,
|
|
74
|
+
} from "./transferrailoptions.js";
|
|
75
75
|
import {
|
|
76
76
|
TransferSource,
|
|
77
77
|
TransferSource$inboundSchema,
|
|
@@ -83,12 +83,21 @@ import {
|
|
|
83
83
|
TransferStatus$inboundSchema,
|
|
84
84
|
TransferStatus$outboundSchema,
|
|
85
85
|
} from "./transferstatus.js";
|
|
86
|
+
import {
|
|
87
|
+
TransferType,
|
|
88
|
+
TransferType$inboundSchema,
|
|
89
|
+
TransferType$outboundSchema,
|
|
90
|
+
} from "./transfertype.js";
|
|
86
91
|
|
|
87
92
|
/**
|
|
88
93
|
* Details of a Transfer.
|
|
89
94
|
*/
|
|
90
95
|
export type Transfer = {
|
|
91
96
|
transferID: string;
|
|
97
|
+
/**
|
|
98
|
+
* The rail and direction used to move funds for a transfer.
|
|
99
|
+
*/
|
|
100
|
+
transferType: TransferType;
|
|
92
101
|
createdOn: Date;
|
|
93
102
|
source: TransferSource;
|
|
94
103
|
destination: TransferDestination;
|
|
@@ -101,7 +110,7 @@ export type Transfer = {
|
|
|
101
110
|
* Reason for a transfer's failure.
|
|
102
111
|
*/
|
|
103
112
|
failureReason?: TransferFailureReason | undefined;
|
|
104
|
-
amount:
|
|
113
|
+
amount: AmountDecimal;
|
|
105
114
|
/**
|
|
106
115
|
* An optional description of the transfer that is used on receipts and for your own internal use.
|
|
107
116
|
*/
|
|
@@ -117,11 +126,7 @@ export type Transfer = {
|
|
|
117
126
|
/**
|
|
118
127
|
* Fees charged to your platform account for transfers.
|
|
119
128
|
*/
|
|
120
|
-
moovFee?:
|
|
121
|
-
/**
|
|
122
|
-
* Same as `moovFee`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.
|
|
123
|
-
*/
|
|
124
|
-
moovFeeDecimal?: string | undefined;
|
|
129
|
+
moovFee?: AmountDecimal | undefined;
|
|
125
130
|
/**
|
|
126
131
|
* Processing and pass-through costs that add up to the moovFee.
|
|
127
132
|
*/
|
|
@@ -131,11 +136,8 @@ export type Transfer = {
|
|
|
131
136
|
*/
|
|
132
137
|
moovFees?: Array<MoovFee> | undefined;
|
|
133
138
|
groupID?: string | undefined;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
refunds?: Array<CardAcquiringRefund> | undefined;
|
|
137
|
-
disputedAmount?: Amount | undefined;
|
|
138
|
-
disputes?: Array<CardAcquiringDispute> | undefined;
|
|
139
|
+
refundedAmount?: AmountDecimal | undefined;
|
|
140
|
+
disputedAmount?: AmountDecimal | undefined;
|
|
139
141
|
/**
|
|
140
142
|
* ID of the sweep that created this transfer.
|
|
141
143
|
*/
|
|
@@ -159,6 +161,9 @@ export type Transfer = {
|
|
|
159
161
|
*/
|
|
160
162
|
invoiceID?: string | undefined;
|
|
161
163
|
amountDetails?: TransferAmountDetails | undefined;
|
|
164
|
+
authorization?: TransferAuthorization | undefined;
|
|
165
|
+
options: TransferRailOptions;
|
|
166
|
+
processingDetails: TransferProcessingDetails;
|
|
162
167
|
};
|
|
163
168
|
|
|
164
169
|
/** @internal */
|
|
@@ -168,26 +173,23 @@ export const Transfer$inboundSchema: z.ZodType<
|
|
|
168
173
|
unknown
|
|
169
174
|
> = z.object({
|
|
170
175
|
transferID: types.string(),
|
|
176
|
+
transferType: TransferType$inboundSchema,
|
|
171
177
|
createdOn: types.date(),
|
|
172
178
|
source: TransferSource$inboundSchema,
|
|
173
179
|
destination: TransferDestination$inboundSchema,
|
|
174
180
|
completedOn: types.optional(types.date()),
|
|
175
181
|
status: TransferStatus$inboundSchema,
|
|
176
182
|
failureReason: types.optional(TransferFailureReason$inboundSchema),
|
|
177
|
-
amount:
|
|
183
|
+
amount: AmountDecimal$inboundSchema,
|
|
178
184
|
description: types.optional(types.string()),
|
|
179
185
|
metadata: types.optional(z.record(types.string())),
|
|
180
186
|
facilitatorFee: types.optional(FacilitatorFee$inboundSchema),
|
|
181
|
-
moovFee: types.optional(
|
|
182
|
-
moovFeeDecimal: types.optional(types.string()),
|
|
187
|
+
moovFee: types.optional(AmountDecimal$inboundSchema),
|
|
183
188
|
moovFeeDetails: types.optional(MoovFeeDetails$inboundSchema),
|
|
184
189
|
moovFees: types.optional(z.array(MoovFee$inboundSchema)),
|
|
185
190
|
groupID: types.optional(types.string()),
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
refunds: types.optional(z.array(CardAcquiringRefund$inboundSchema)),
|
|
189
|
-
disputedAmount: types.optional(Amount$inboundSchema),
|
|
190
|
-
disputes: types.optional(z.array(CardAcquiringDispute$inboundSchema)),
|
|
191
|
+
refundedAmount: types.optional(AmountDecimal$inboundSchema),
|
|
192
|
+
disputedAmount: types.optional(AmountDecimal$inboundSchema),
|
|
191
193
|
sweepID: types.optional(types.string()),
|
|
192
194
|
scheduleID: types.optional(types.string()),
|
|
193
195
|
occurrenceID: types.optional(types.string()),
|
|
@@ -196,30 +198,30 @@ export const Transfer$inboundSchema: z.ZodType<
|
|
|
196
198
|
lineItems: types.optional(TransferLineItems$inboundSchema),
|
|
197
199
|
invoiceID: types.optional(types.string()),
|
|
198
200
|
amountDetails: types.optional(TransferAmountDetails$inboundSchema),
|
|
201
|
+
authorization: types.optional(TransferAuthorization$inboundSchema),
|
|
202
|
+
options: TransferRailOptions$inboundSchema,
|
|
203
|
+
processingDetails: TransferProcessingDetails$inboundSchema,
|
|
199
204
|
});
|
|
200
205
|
/** @internal */
|
|
201
206
|
export type Transfer$Outbound = {
|
|
202
207
|
transferID: string;
|
|
208
|
+
transferType: string;
|
|
203
209
|
createdOn: string;
|
|
204
210
|
source: TransferSource$Outbound;
|
|
205
211
|
destination: TransferDestination$Outbound;
|
|
206
212
|
completedOn?: string | undefined;
|
|
207
213
|
status: string;
|
|
208
214
|
failureReason?: string | undefined;
|
|
209
|
-
amount:
|
|
215
|
+
amount: AmountDecimal$Outbound;
|
|
210
216
|
description?: string | undefined;
|
|
211
217
|
metadata?: { [k: string]: string } | undefined;
|
|
212
218
|
facilitatorFee?: FacilitatorFee$Outbound | undefined;
|
|
213
|
-
moovFee?:
|
|
214
|
-
moovFeeDecimal?: string | undefined;
|
|
219
|
+
moovFee?: AmountDecimal$Outbound | undefined;
|
|
215
220
|
moovFeeDetails?: MoovFeeDetails$Outbound | undefined;
|
|
216
221
|
moovFees?: Array<MoovFee$Outbound> | undefined;
|
|
217
222
|
groupID?: string | undefined;
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
refunds?: Array<CardAcquiringRefund$Outbound> | undefined;
|
|
221
|
-
disputedAmount?: Amount$Outbound | undefined;
|
|
222
|
-
disputes?: Array<CardAcquiringDispute$Outbound> | undefined;
|
|
223
|
+
refundedAmount?: AmountDecimal$Outbound | undefined;
|
|
224
|
+
disputedAmount?: AmountDecimal$Outbound | undefined;
|
|
223
225
|
sweepID?: string | undefined;
|
|
224
226
|
scheduleID?: string | undefined;
|
|
225
227
|
occurrenceID?: string | undefined;
|
|
@@ -228,6 +230,9 @@ export type Transfer$Outbound = {
|
|
|
228
230
|
lineItems?: TransferLineItems$Outbound | undefined;
|
|
229
231
|
invoiceID?: string | undefined;
|
|
230
232
|
amountDetails?: TransferAmountDetails$Outbound | undefined;
|
|
233
|
+
authorization?: TransferAuthorization$Outbound | undefined;
|
|
234
|
+
options: TransferRailOptions$Outbound;
|
|
235
|
+
processingDetails: TransferProcessingDetails$Outbound;
|
|
231
236
|
};
|
|
232
237
|
|
|
233
238
|
/** @internal */
|
|
@@ -237,26 +242,23 @@ export const Transfer$outboundSchema: z.ZodType<
|
|
|
237
242
|
Transfer
|
|
238
243
|
> = z.object({
|
|
239
244
|
transferID: z.string(),
|
|
245
|
+
transferType: TransferType$outboundSchema,
|
|
240
246
|
createdOn: z.date().transform(v => v.toISOString()),
|
|
241
247
|
source: TransferSource$outboundSchema,
|
|
242
248
|
destination: TransferDestination$outboundSchema,
|
|
243
249
|
completedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
244
250
|
status: TransferStatus$outboundSchema,
|
|
245
251
|
failureReason: TransferFailureReason$outboundSchema.optional(),
|
|
246
|
-
amount:
|
|
252
|
+
amount: AmountDecimal$outboundSchema,
|
|
247
253
|
description: z.string().optional(),
|
|
248
254
|
metadata: z.record(z.string()).optional(),
|
|
249
255
|
facilitatorFee: FacilitatorFee$outboundSchema.optional(),
|
|
250
|
-
moovFee:
|
|
251
|
-
moovFeeDecimal: z.string().optional(),
|
|
256
|
+
moovFee: AmountDecimal$outboundSchema.optional(),
|
|
252
257
|
moovFeeDetails: MoovFeeDetails$outboundSchema.optional(),
|
|
253
258
|
moovFees: z.array(MoovFee$outboundSchema).optional(),
|
|
254
259
|
groupID: z.string().optional(),
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
refunds: z.array(CardAcquiringRefund$outboundSchema).optional(),
|
|
258
|
-
disputedAmount: Amount$outboundSchema.optional(),
|
|
259
|
-
disputes: z.array(CardAcquiringDispute$outboundSchema).optional(),
|
|
260
|
+
refundedAmount: AmountDecimal$outboundSchema.optional(),
|
|
261
|
+
disputedAmount: AmountDecimal$outboundSchema.optional(),
|
|
260
262
|
sweepID: z.string().optional(),
|
|
261
263
|
scheduleID: z.string().optional(),
|
|
262
264
|
occurrenceID: z.string().optional(),
|
|
@@ -265,6 +267,9 @@ export const Transfer$outboundSchema: z.ZodType<
|
|
|
265
267
|
lineItems: TransferLineItems$outboundSchema.optional(),
|
|
266
268
|
invoiceID: z.string().optional(),
|
|
267
269
|
amountDetails: TransferAmountDetails$outboundSchema.optional(),
|
|
270
|
+
authorization: TransferAuthorization$outboundSchema.optional(),
|
|
271
|
+
options: TransferRailOptions$outboundSchema,
|
|
272
|
+
processingDetails: TransferProcessingDetails$outboundSchema,
|
|
268
273
|
});
|
|
269
274
|
|
|
270
275
|
export function transferToJSON(transfer: Transfer): string {
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
export type TransferAuthorization = {
|
|
18
|
+
authorizationID: string;
|
|
19
|
+
requestedAmount: AmountDecimal;
|
|
20
|
+
authorizedAmount: AmountDecimal;
|
|
21
|
+
capturedAmount: AmountDecimal;
|
|
22
|
+
capturableAmount: AmountDecimal;
|
|
23
|
+
expiresOn?: Date | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const TransferAuthorization$inboundSchema: z.ZodType<
|
|
28
|
+
TransferAuthorization,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
authorizationID: types.string(),
|
|
33
|
+
requestedAmount: AmountDecimal$inboundSchema,
|
|
34
|
+
authorizedAmount: AmountDecimal$inboundSchema,
|
|
35
|
+
capturedAmount: AmountDecimal$inboundSchema,
|
|
36
|
+
capturableAmount: AmountDecimal$inboundSchema,
|
|
37
|
+
expiresOn: types.optional(types.date()),
|
|
38
|
+
});
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type TransferAuthorization$Outbound = {
|
|
41
|
+
authorizationID: string;
|
|
42
|
+
requestedAmount: AmountDecimal$Outbound;
|
|
43
|
+
authorizedAmount: AmountDecimal$Outbound;
|
|
44
|
+
capturedAmount: AmountDecimal$Outbound;
|
|
45
|
+
capturableAmount: AmountDecimal$Outbound;
|
|
46
|
+
expiresOn?: string | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const TransferAuthorization$outboundSchema: z.ZodType<
|
|
51
|
+
TransferAuthorization$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
TransferAuthorization
|
|
54
|
+
> = z.object({
|
|
55
|
+
authorizationID: z.string(),
|
|
56
|
+
requestedAmount: AmountDecimal$outboundSchema,
|
|
57
|
+
authorizedAmount: AmountDecimal$outboundSchema,
|
|
58
|
+
capturedAmount: AmountDecimal$outboundSchema,
|
|
59
|
+
capturableAmount: AmountDecimal$outboundSchema,
|
|
60
|
+
expiresOn: z.date().transform(v => v.toISOString()).optional(),
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export function transferAuthorizationToJSON(
|
|
64
|
+
transferAuthorization: TransferAuthorization,
|
|
65
|
+
): string {
|
|
66
|
+
return JSON.stringify(
|
|
67
|
+
TransferAuthorization$outboundSchema.parse(transferAuthorization),
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
export function transferAuthorizationFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<TransferAuthorization, SDKValidationError> {
|
|
73
|
+
return safeParse(
|
|
74
|
+
jsonString,
|
|
75
|
+
(x) => TransferAuthorization$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
+
`Failed to parse 'TransferAuthorization' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|
|
@@ -7,36 +7,18 @@ 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
|
-
ACHTransactionDetails,
|
|
12
|
-
ACHTransactionDetails$inboundSchema,
|
|
13
|
-
ACHTransactionDetails$Outbound,
|
|
14
|
-
ACHTransactionDetails$outboundSchema,
|
|
15
|
-
} from "./achtransactiondetails.js";
|
|
16
10
|
import {
|
|
17
11
|
ApplePayResponse,
|
|
18
12
|
ApplePayResponse$inboundSchema,
|
|
19
13
|
ApplePayResponse$Outbound,
|
|
20
14
|
ApplePayResponse$outboundSchema,
|
|
21
15
|
} from "./applepayresponse.js";
|
|
22
|
-
import {
|
|
23
|
-
CardTransactionDetails,
|
|
24
|
-
CardTransactionDetails$inboundSchema,
|
|
25
|
-
CardTransactionDetails$Outbound,
|
|
26
|
-
CardTransactionDetails$outboundSchema,
|
|
27
|
-
} from "./cardtransactiondetails.js";
|
|
28
16
|
import {
|
|
29
17
|
GooglePayResponse,
|
|
30
18
|
GooglePayResponse$inboundSchema,
|
|
31
19
|
GooglePayResponse$Outbound,
|
|
32
20
|
GooglePayResponse$outboundSchema,
|
|
33
21
|
} from "./googlepayresponse.js";
|
|
34
|
-
import {
|
|
35
|
-
InstantBankTransactionDetails,
|
|
36
|
-
InstantBankTransactionDetails$inboundSchema,
|
|
37
|
-
InstantBankTransactionDetails$Outbound,
|
|
38
|
-
InstantBankTransactionDetails$outboundSchema,
|
|
39
|
-
} from "./instantbanktransactiondetails.js";
|
|
40
22
|
import {
|
|
41
23
|
TransferAccount,
|
|
42
24
|
TransferAccount$inboundSchema,
|
|
@@ -68,12 +50,12 @@ import {
|
|
|
68
50
|
} from "./transferpaymentmethodtype.js";
|
|
69
51
|
|
|
70
52
|
export type TransferDestination = {
|
|
71
|
-
paymentMethodID
|
|
53
|
+
paymentMethodID?: string | undefined;
|
|
72
54
|
/**
|
|
73
55
|
* The payment method type that represents a payment rail and directionality
|
|
74
56
|
*/
|
|
75
|
-
paymentMethodType
|
|
76
|
-
account
|
|
57
|
+
paymentMethodType?: TransferPaymentMethodType | undefined;
|
|
58
|
+
account?: TransferAccount | undefined;
|
|
77
59
|
/**
|
|
78
60
|
* A bank account as contained within a payment method.
|
|
79
61
|
*/
|
|
@@ -83,10 +65,6 @@ export type TransferDestination = {
|
|
|
83
65
|
* A card as contained within a payment method.
|
|
84
66
|
*/
|
|
85
67
|
card?: TransferPaymentMethodsCard | undefined;
|
|
86
|
-
/**
|
|
87
|
-
* ACH specific details about the transaction.
|
|
88
|
-
*/
|
|
89
|
-
achDetails?: ACHTransactionDetails | undefined;
|
|
90
68
|
/**
|
|
91
69
|
* Describes an Apple Pay token on a Moov account.
|
|
92
70
|
*/
|
|
@@ -95,14 +73,6 @@ export type TransferDestination = {
|
|
|
95
73
|
* Describes a Google Pay token on a Moov account.
|
|
96
74
|
*/
|
|
97
75
|
googlePay?: GooglePayResponse | undefined;
|
|
98
|
-
/**
|
|
99
|
-
* Card-specific details about the transaction.
|
|
100
|
-
*/
|
|
101
|
-
cardDetails?: CardTransactionDetails | undefined;
|
|
102
|
-
/**
|
|
103
|
-
* Instant-bank specific details about the transaction.
|
|
104
|
-
*/
|
|
105
|
-
instantBankDetails?: InstantBankTransactionDetails | undefined;
|
|
106
76
|
};
|
|
107
77
|
|
|
108
78
|
/** @internal */
|
|
@@ -111,33 +81,25 @@ export const TransferDestination$inboundSchema: z.ZodType<
|
|
|
111
81
|
z.ZodTypeDef,
|
|
112
82
|
unknown
|
|
113
83
|
> = z.object({
|
|
114
|
-
paymentMethodID: types.string(),
|
|
115
|
-
paymentMethodType: TransferPaymentMethodType$inboundSchema,
|
|
116
|
-
account: TransferAccount$inboundSchema,
|
|
84
|
+
paymentMethodID: types.optional(types.string()),
|
|
85
|
+
paymentMethodType: types.optional(TransferPaymentMethodType$inboundSchema),
|
|
86
|
+
account: types.optional(TransferAccount$inboundSchema),
|
|
117
87
|
bankAccount: types.optional(TransferPaymentMethodsBankAccount$inboundSchema),
|
|
118
88
|
wallet: types.optional(TransferPaymentMethodsWallet$inboundSchema),
|
|
119
89
|
card: types.optional(TransferPaymentMethodsCard$inboundSchema),
|
|
120
|
-
achDetails: types.optional(ACHTransactionDetails$inboundSchema),
|
|
121
90
|
applePay: types.optional(ApplePayResponse$inboundSchema),
|
|
122
91
|
googlePay: types.optional(GooglePayResponse$inboundSchema),
|
|
123
|
-
cardDetails: types.optional(CardTransactionDetails$inboundSchema),
|
|
124
|
-
instantBankDetails: types.optional(
|
|
125
|
-
InstantBankTransactionDetails$inboundSchema,
|
|
126
|
-
),
|
|
127
92
|
});
|
|
128
93
|
/** @internal */
|
|
129
94
|
export type TransferDestination$Outbound = {
|
|
130
|
-
paymentMethodID
|
|
131
|
-
paymentMethodType
|
|
132
|
-
account
|
|
95
|
+
paymentMethodID?: string | undefined;
|
|
96
|
+
paymentMethodType?: string | undefined;
|
|
97
|
+
account?: TransferAccount$Outbound | undefined;
|
|
133
98
|
bankAccount?: TransferPaymentMethodsBankAccount$Outbound | undefined;
|
|
134
99
|
wallet?: TransferPaymentMethodsWallet$Outbound | undefined;
|
|
135
100
|
card?: TransferPaymentMethodsCard$Outbound | undefined;
|
|
136
|
-
achDetails?: ACHTransactionDetails$Outbound | undefined;
|
|
137
101
|
applePay?: ApplePayResponse$Outbound | undefined;
|
|
138
102
|
googlePay?: GooglePayResponse$Outbound | undefined;
|
|
139
|
-
cardDetails?: CardTransactionDetails$Outbound | undefined;
|
|
140
|
-
instantBankDetails?: InstantBankTransactionDetails$Outbound | undefined;
|
|
141
103
|
};
|
|
142
104
|
|
|
143
105
|
/** @internal */
|
|
@@ -146,17 +108,14 @@ export const TransferDestination$outboundSchema: z.ZodType<
|
|
|
146
108
|
z.ZodTypeDef,
|
|
147
109
|
TransferDestination
|
|
148
110
|
> = z.object({
|
|
149
|
-
paymentMethodID: z.string(),
|
|
150
|
-
paymentMethodType: TransferPaymentMethodType$outboundSchema,
|
|
151
|
-
account: TransferAccount$outboundSchema,
|
|
111
|
+
paymentMethodID: z.string().optional(),
|
|
112
|
+
paymentMethodType: TransferPaymentMethodType$outboundSchema.optional(),
|
|
113
|
+
account: TransferAccount$outboundSchema.optional(),
|
|
152
114
|
bankAccount: TransferPaymentMethodsBankAccount$outboundSchema.optional(),
|
|
153
115
|
wallet: TransferPaymentMethodsWallet$outboundSchema.optional(),
|
|
154
116
|
card: TransferPaymentMethodsCard$outboundSchema.optional(),
|
|
155
|
-
achDetails: ACHTransactionDetails$outboundSchema.optional(),
|
|
156
117
|
applePay: ApplePayResponse$outboundSchema.optional(),
|
|
157
118
|
googlePay: GooglePayResponse$outboundSchema.optional(),
|
|
158
|
-
cardDetails: CardTransactionDetails$outboundSchema.optional(),
|
|
159
|
-
instantBankDetails: InstantBankTransactionDetails$outboundSchema.optional(),
|
|
160
119
|
});
|
|
161
120
|
|
|
162
121
|
export function transferDestinationToJSON(
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
FeePaidBy,
|
|
12
|
+
FeePaidBy$inboundSchema,
|
|
13
|
+
FeePaidBy$outboundSchema,
|
|
14
|
+
} from "./feepaidby.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Indicates which party bears fees for a transfer, keyed by fee type.
|
|
18
|
+
*/
|
|
19
|
+
export type TransferFeePaidBy = {
|
|
20
|
+
/**
|
|
21
|
+
* For payouts, indicates which party bears the fee. Defaults to `source`.
|
|
22
|
+
*/
|
|
23
|
+
payout?: FeePaidBy | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const TransferFeePaidBy$inboundSchema: z.ZodType<
|
|
28
|
+
TransferFeePaidBy,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
payout: types.optional(FeePaidBy$inboundSchema),
|
|
33
|
+
});
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type TransferFeePaidBy$Outbound = {
|
|
36
|
+
payout?: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const TransferFeePaidBy$outboundSchema: z.ZodType<
|
|
41
|
+
TransferFeePaidBy$Outbound,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
TransferFeePaidBy
|
|
44
|
+
> = z.object({
|
|
45
|
+
payout: FeePaidBy$outboundSchema.optional(),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export function transferFeePaidByToJSON(
|
|
49
|
+
transferFeePaidBy: TransferFeePaidBy,
|
|
50
|
+
): string {
|
|
51
|
+
return JSON.stringify(
|
|
52
|
+
TransferFeePaidBy$outboundSchema.parse(transferFeePaidBy),
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
export function transferFeePaidByFromJSON(
|
|
56
|
+
jsonString: string,
|
|
57
|
+
): SafeParseResult<TransferFeePaidBy, SDKValidationError> {
|
|
58
|
+
return safeParse(
|
|
59
|
+
jsonString,
|
|
60
|
+
(x) => TransferFeePaidBy$inboundSchema.parse(JSON.parse(x)),
|
|
61
|
+
`Failed to parse 'TransferFeePaidBy' from JSON`,
|
|
62
|
+
);
|
|
63
|
+
}
|
|
@@ -22,6 +22,7 @@ export type TransferPaymentMethodsWallet = {
|
|
|
22
22
|
* @remarks
|
|
23
23
|
* - `default`: The system-generated wallet automatically created when an account is granted the wallet capability.
|
|
24
24
|
* - `general`: An additional, user-defined wallet created via API or Dashboard.
|
|
25
|
+
* - `card-issuing`: The system-generated wallet automatically created when an account is granted the card-issuing capability.
|
|
25
26
|
*/
|
|
26
27
|
walletType: WalletType;
|
|
27
28
|
};
|