@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,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
MerchantEntryError,
|
|
12
|
+
MerchantEntryError$inboundSchema,
|
|
13
|
+
MerchantEntryError$Outbound,
|
|
14
|
+
MerchantEntryError$outboundSchema,
|
|
15
|
+
} from "./merchantentryerror.js";
|
|
16
|
+
|
|
17
|
+
export type MerchantCategoryRestrictionsError = {
|
|
18
|
+
mode?: string | undefined;
|
|
19
|
+
categories?: { [k: string]: string } | undefined;
|
|
20
|
+
customMCCs?: { [k: string]: string } | undefined;
|
|
21
|
+
exemptMerchants?: { [k: string]: MerchantEntryError } | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const MerchantCategoryRestrictionsError$inboundSchema: z.ZodType<
|
|
26
|
+
MerchantCategoryRestrictionsError,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
mode: types.optional(types.string()),
|
|
31
|
+
categories: types.optional(z.record(types.string())),
|
|
32
|
+
customMCCs: types.optional(z.record(types.string())),
|
|
33
|
+
exemptMerchants: types.optional(z.record(MerchantEntryError$inboundSchema)),
|
|
34
|
+
});
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type MerchantCategoryRestrictionsError$Outbound = {
|
|
37
|
+
mode?: string | undefined;
|
|
38
|
+
categories?: { [k: string]: string } | undefined;
|
|
39
|
+
customMCCs?: { [k: string]: string } | undefined;
|
|
40
|
+
exemptMerchants?: { [k: string]: MerchantEntryError$Outbound } | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const MerchantCategoryRestrictionsError$outboundSchema: z.ZodType<
|
|
45
|
+
MerchantCategoryRestrictionsError$Outbound,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
MerchantCategoryRestrictionsError
|
|
48
|
+
> = z.object({
|
|
49
|
+
mode: z.string().optional(),
|
|
50
|
+
categories: z.record(z.string()).optional(),
|
|
51
|
+
customMCCs: z.record(z.string()).optional(),
|
|
52
|
+
exemptMerchants: z.record(MerchantEntryError$outboundSchema).optional(),
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export function merchantCategoryRestrictionsErrorToJSON(
|
|
56
|
+
merchantCategoryRestrictionsError: MerchantCategoryRestrictionsError,
|
|
57
|
+
): string {
|
|
58
|
+
return JSON.stringify(
|
|
59
|
+
MerchantCategoryRestrictionsError$outboundSchema.parse(
|
|
60
|
+
merchantCategoryRestrictionsError,
|
|
61
|
+
),
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
export function merchantCategoryRestrictionsErrorFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<MerchantCategoryRestrictionsError, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => MerchantCategoryRestrictionsError$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'MerchantCategoryRestrictionsError' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -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
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Identifies a merchant by ID, descriptor pattern, or both. At least one of `mid` or `descriptorPattern` must be set.
|
|
13
|
+
*/
|
|
14
|
+
export type MerchantEntry = {
|
|
15
|
+
/**
|
|
16
|
+
* The merchant's unique identifier (ISO 8583 DE42), matched exactly.
|
|
17
|
+
*/
|
|
18
|
+
mid?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* A case-insensitive RE2 regular expression matched against the merchant descriptor (ISO 8583 DE43).
|
|
21
|
+
*/
|
|
22
|
+
descriptorPattern?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* An optional label for this entry.
|
|
25
|
+
*/
|
|
26
|
+
name?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const MerchantEntry$inboundSchema: z.ZodType<
|
|
31
|
+
MerchantEntry,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
unknown
|
|
34
|
+
> = z.object({
|
|
35
|
+
mid: types.optional(types.string()),
|
|
36
|
+
descriptorPattern: types.optional(types.string()),
|
|
37
|
+
name: types.optional(types.string()),
|
|
38
|
+
});
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type MerchantEntry$Outbound = {
|
|
41
|
+
mid?: string | undefined;
|
|
42
|
+
descriptorPattern?: string | undefined;
|
|
43
|
+
name?: string | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const MerchantEntry$outboundSchema: z.ZodType<
|
|
48
|
+
MerchantEntry$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
MerchantEntry
|
|
51
|
+
> = z.object({
|
|
52
|
+
mid: z.string().optional(),
|
|
53
|
+
descriptorPattern: z.string().optional(),
|
|
54
|
+
name: z.string().optional(),
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
export function merchantEntryToJSON(merchantEntry: MerchantEntry): string {
|
|
58
|
+
return JSON.stringify(MerchantEntry$outboundSchema.parse(merchantEntry));
|
|
59
|
+
}
|
|
60
|
+
export function merchantEntryFromJSON(
|
|
61
|
+
jsonString: string,
|
|
62
|
+
): SafeParseResult<MerchantEntry, SDKValidationError> {
|
|
63
|
+
return safeParse(
|
|
64
|
+
jsonString,
|
|
65
|
+
(x) => MerchantEntry$inboundSchema.parse(JSON.parse(x)),
|
|
66
|
+
`Failed to parse 'MerchantEntry' from JSON`,
|
|
67
|
+
);
|
|
68
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
export type MerchantEntryError = {
|
|
12
|
+
mid?: string | undefined;
|
|
13
|
+
descriptorPattern?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const MerchantEntryError$inboundSchema: z.ZodType<
|
|
18
|
+
MerchantEntryError,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
mid: types.optional(types.string()),
|
|
23
|
+
descriptorPattern: types.optional(types.string()),
|
|
24
|
+
});
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type MerchantEntryError$Outbound = {
|
|
27
|
+
mid?: string | undefined;
|
|
28
|
+
descriptorPattern?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const MerchantEntryError$outboundSchema: z.ZodType<
|
|
33
|
+
MerchantEntryError$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
MerchantEntryError
|
|
36
|
+
> = z.object({
|
|
37
|
+
mid: z.string().optional(),
|
|
38
|
+
descriptorPattern: z.string().optional(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export function merchantEntryErrorToJSON(
|
|
42
|
+
merchantEntryError: MerchantEntryError,
|
|
43
|
+
): string {
|
|
44
|
+
return JSON.stringify(
|
|
45
|
+
MerchantEntryError$outboundSchema.parse(merchantEntryError),
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
export function merchantEntryErrorFromJSON(
|
|
49
|
+
jsonString: string,
|
|
50
|
+
): SafeParseResult<MerchantEntryError, SDKValidationError> {
|
|
51
|
+
return safeParse(
|
|
52
|
+
jsonString,
|
|
53
|
+
(x) => MerchantEntryError$inboundSchema.parse(JSON.parse(x)),
|
|
54
|
+
`Failed to parse 'MerchantEntryError' from JSON`,
|
|
55
|
+
);
|
|
56
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
IssuingControlsRestrictionMode,
|
|
11
|
+
IssuingControlsRestrictionMode$inboundSchema,
|
|
12
|
+
IssuingControlsRestrictionMode$outboundSchema,
|
|
13
|
+
} from "./issuingcontrolsrestrictionmode.js";
|
|
14
|
+
import {
|
|
15
|
+
MerchantEntry,
|
|
16
|
+
MerchantEntry$inboundSchema,
|
|
17
|
+
MerchantEntry$Outbound,
|
|
18
|
+
MerchantEntry$outboundSchema,
|
|
19
|
+
} from "./merchantentry.js";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Restricts card usage to specific merchants, independent of merchant category.
|
|
23
|
+
*/
|
|
24
|
+
export type MerchantRestrictions = {
|
|
25
|
+
/**
|
|
26
|
+
* Whether the listed merchants are the only ones allowed, or the ones to block.
|
|
27
|
+
*/
|
|
28
|
+
mode: IssuingControlsRestrictionMode;
|
|
29
|
+
/**
|
|
30
|
+
* The merchants to allow or block.
|
|
31
|
+
*/
|
|
32
|
+
merchants: Array<MerchantEntry>;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const MerchantRestrictions$inboundSchema: z.ZodType<
|
|
37
|
+
MerchantRestrictions,
|
|
38
|
+
z.ZodTypeDef,
|
|
39
|
+
unknown
|
|
40
|
+
> = z.object({
|
|
41
|
+
mode: IssuingControlsRestrictionMode$inboundSchema,
|
|
42
|
+
merchants: z.array(MerchantEntry$inboundSchema),
|
|
43
|
+
});
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type MerchantRestrictions$Outbound = {
|
|
46
|
+
mode: string;
|
|
47
|
+
merchants: Array<MerchantEntry$Outbound>;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const MerchantRestrictions$outboundSchema: z.ZodType<
|
|
52
|
+
MerchantRestrictions$Outbound,
|
|
53
|
+
z.ZodTypeDef,
|
|
54
|
+
MerchantRestrictions
|
|
55
|
+
> = z.object({
|
|
56
|
+
mode: IssuingControlsRestrictionMode$outboundSchema,
|
|
57
|
+
merchants: z.array(MerchantEntry$outboundSchema),
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export function merchantRestrictionsToJSON(
|
|
61
|
+
merchantRestrictions: MerchantRestrictions,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
MerchantRestrictions$outboundSchema.parse(merchantRestrictions),
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
export function merchantRestrictionsFromJSON(
|
|
68
|
+
jsonString: string,
|
|
69
|
+
): SafeParseResult<MerchantRestrictions, SDKValidationError> {
|
|
70
|
+
return safeParse(
|
|
71
|
+
jsonString,
|
|
72
|
+
(x) => MerchantRestrictions$inboundSchema.parse(JSON.parse(x)),
|
|
73
|
+
`Failed to parse 'MerchantRestrictions' from JSON`,
|
|
74
|
+
);
|
|
75
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
MerchantEntryError,
|
|
12
|
+
MerchantEntryError$inboundSchema,
|
|
13
|
+
MerchantEntryError$Outbound,
|
|
14
|
+
MerchantEntryError$outboundSchema,
|
|
15
|
+
} from "./merchantentryerror.js";
|
|
16
|
+
|
|
17
|
+
export type MerchantRestrictionsError = {
|
|
18
|
+
mode?: string | undefined;
|
|
19
|
+
merchants?: { [k: string]: MerchantEntryError } | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const MerchantRestrictionsError$inboundSchema: z.ZodType<
|
|
24
|
+
MerchantRestrictionsError,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
mode: types.optional(types.string()),
|
|
29
|
+
merchants: types.optional(z.record(MerchantEntryError$inboundSchema)),
|
|
30
|
+
});
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type MerchantRestrictionsError$Outbound = {
|
|
33
|
+
mode?: string | undefined;
|
|
34
|
+
merchants?: { [k: string]: MerchantEntryError$Outbound } | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const MerchantRestrictionsError$outboundSchema: z.ZodType<
|
|
39
|
+
MerchantRestrictionsError$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
MerchantRestrictionsError
|
|
42
|
+
> = z.object({
|
|
43
|
+
mode: z.string().optional(),
|
|
44
|
+
merchants: z.record(MerchantEntryError$outboundSchema).optional(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export function merchantRestrictionsErrorToJSON(
|
|
48
|
+
merchantRestrictionsError: MerchantRestrictionsError,
|
|
49
|
+
): string {
|
|
50
|
+
return JSON.stringify(
|
|
51
|
+
MerchantRestrictionsError$outboundSchema.parse(merchantRestrictionsError),
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
export function merchantRestrictionsErrorFromJSON(
|
|
55
|
+
jsonString: string,
|
|
56
|
+
): SafeParseResult<MerchantRestrictionsError, SDKValidationError> {
|
|
57
|
+
return safeParse(
|
|
58
|
+
jsonString,
|
|
59
|
+
(x) => MerchantRestrictionsError$inboundSchema.parse(JSON.parse(x)),
|
|
60
|
+
`Failed to parse 'MerchantRestrictionsError' from JSON`,
|
|
61
|
+
);
|
|
62
|
+
}
|
|
@@ -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
|
|
|
11
17
|
/**
|
|
12
18
|
* Processing and pass-through costs that add up to the moovFee.
|
|
@@ -15,19 +21,19 @@ export type MoovFeeDetails = {
|
|
|
15
21
|
/**
|
|
16
22
|
* Card scheme fees accrued during authorization and settlement. String type represents dollars with up to 9 decimal place precision.
|
|
17
23
|
*/
|
|
18
|
-
cardScheme?:
|
|
24
|
+
cardScheme?: AmountDecimal | undefined;
|
|
19
25
|
/**
|
|
20
26
|
* Network interchange fee for Visa, Mastercard, or Discover. String type represents dollars with up to 9 decimal place precision.
|
|
21
27
|
*/
|
|
22
|
-
interchange?:
|
|
28
|
+
interchange?: AmountDecimal | undefined;
|
|
23
29
|
/**
|
|
24
30
|
* Network discount fee for American Express. String type represents dollars with up to 9 decimal place precision.
|
|
25
31
|
*/
|
|
26
|
-
discount?:
|
|
32
|
+
discount?: AmountDecimal | undefined;
|
|
27
33
|
/**
|
|
28
34
|
* Moov processing fee. String type represents dollars with up to 9 decimal place precision.
|
|
29
35
|
*/
|
|
30
|
-
moovProcessing:
|
|
36
|
+
moovProcessing: AmountDecimal;
|
|
31
37
|
};
|
|
32
38
|
|
|
33
39
|
/** @internal */
|
|
@@ -36,17 +42,17 @@ export const MoovFeeDetails$inboundSchema: z.ZodType<
|
|
|
36
42
|
z.ZodTypeDef,
|
|
37
43
|
unknown
|
|
38
44
|
> = z.object({
|
|
39
|
-
cardScheme: types.optional(
|
|
40
|
-
interchange: types.optional(
|
|
41
|
-
discount: types.optional(
|
|
42
|
-
moovProcessing:
|
|
45
|
+
cardScheme: types.optional(AmountDecimal$inboundSchema),
|
|
46
|
+
interchange: types.optional(AmountDecimal$inboundSchema),
|
|
47
|
+
discount: types.optional(AmountDecimal$inboundSchema),
|
|
48
|
+
moovProcessing: AmountDecimal$inboundSchema,
|
|
43
49
|
});
|
|
44
50
|
/** @internal */
|
|
45
51
|
export type MoovFeeDetails$Outbound = {
|
|
46
|
-
cardScheme?:
|
|
47
|
-
interchange?:
|
|
48
|
-
discount?:
|
|
49
|
-
moovProcessing:
|
|
52
|
+
cardScheme?: AmountDecimal$Outbound | undefined;
|
|
53
|
+
interchange?: AmountDecimal$Outbound | undefined;
|
|
54
|
+
discount?: AmountDecimal$Outbound | undefined;
|
|
55
|
+
moovProcessing: AmountDecimal$Outbound;
|
|
50
56
|
};
|
|
51
57
|
|
|
52
58
|
/** @internal */
|
|
@@ -55,10 +61,10 @@ export const MoovFeeDetails$outboundSchema: z.ZodType<
|
|
|
55
61
|
z.ZodTypeDef,
|
|
56
62
|
MoovFeeDetails
|
|
57
63
|
> = z.object({
|
|
58
|
-
cardScheme:
|
|
59
|
-
interchange:
|
|
60
|
-
discount:
|
|
61
|
-
moovProcessing:
|
|
64
|
+
cardScheme: AmountDecimal$outboundSchema.optional(),
|
|
65
|
+
interchange: AmountDecimal$outboundSchema.optional(),
|
|
66
|
+
discount: AmountDecimal$outboundSchema.optional(),
|
|
67
|
+
moovProcessing: AmountDecimal$outboundSchema,
|
|
62
68
|
});
|
|
63
69
|
|
|
64
70
|
export function moovFeeDetailsToJSON(moovFeeDetails: MoovFeeDetails): string {
|
|
@@ -12,6 +12,11 @@ import {
|
|
|
12
12
|
DisbursementPaymentMethodType$inboundSchema,
|
|
13
13
|
DisbursementPaymentMethodType$outboundSchema,
|
|
14
14
|
} from "./disbursementpaymentmethodtype.js";
|
|
15
|
+
import {
|
|
16
|
+
FeePaidBy,
|
|
17
|
+
FeePaidBy$inboundSchema,
|
|
18
|
+
FeePaidBy$outboundSchema,
|
|
19
|
+
} from "./feepaidby.js";
|
|
15
20
|
import {
|
|
16
21
|
PayoutRecipient,
|
|
17
22
|
PayoutRecipient$inboundSchema,
|
|
@@ -52,6 +57,14 @@ export type PaymentLinkPayoutDetails = {
|
|
|
52
57
|
* (`push-to-apple-pay`, `push-to-google-pay`) are always delivered instantly regardless of these options.
|
|
53
58
|
*/
|
|
54
59
|
pushOptions?: PushOptions | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Indicates which party bears the fee, keyed by disbursement payment method (`DisbursementPaymentMethodType`).
|
|
62
|
+
*
|
|
63
|
+
* @remarks
|
|
64
|
+
*
|
|
65
|
+
* Sparse — include only the methods you want to attribute. Any method left unset defaults to `source`.
|
|
66
|
+
*/
|
|
67
|
+
feePaidBy?: { [k: string]: FeePaidBy } | undefined;
|
|
55
68
|
};
|
|
56
69
|
|
|
57
70
|
/** @internal */
|
|
@@ -64,6 +77,7 @@ export const PaymentLinkPayoutDetails$inboundSchema: z.ZodType<
|
|
|
64
77
|
recipient: PayoutRecipient$inboundSchema,
|
|
65
78
|
metadata: types.optional(z.record(types.string())),
|
|
66
79
|
pushOptions: types.optional(PushOptions$inboundSchema),
|
|
80
|
+
feePaidBy: types.optional(z.record(FeePaidBy$inboundSchema)),
|
|
67
81
|
});
|
|
68
82
|
/** @internal */
|
|
69
83
|
export type PaymentLinkPayoutDetails$Outbound = {
|
|
@@ -71,6 +85,7 @@ export type PaymentLinkPayoutDetails$Outbound = {
|
|
|
71
85
|
recipient: PayoutRecipient$Outbound;
|
|
72
86
|
metadata?: { [k: string]: string } | undefined;
|
|
73
87
|
pushOptions?: PushOptions$Outbound | undefined;
|
|
88
|
+
feePaidBy?: { [k: string]: string } | undefined;
|
|
74
89
|
};
|
|
75
90
|
|
|
76
91
|
/** @internal */
|
|
@@ -83,6 +98,7 @@ export const PaymentLinkPayoutDetails$outboundSchema: z.ZodType<
|
|
|
83
98
|
recipient: PayoutRecipient$outboundSchema,
|
|
84
99
|
metadata: z.record(z.string()).optional(),
|
|
85
100
|
pushOptions: PushOptions$outboundSchema.optional(),
|
|
101
|
+
feePaidBy: z.record(FeePaidBy$outboundSchema).optional(),
|
|
86
102
|
});
|
|
87
103
|
|
|
88
104
|
export function paymentLinkPayoutDetailsToJSON(
|
|
@@ -12,6 +12,11 @@ import {
|
|
|
12
12
|
DisbursementPaymentMethodType$inboundSchema,
|
|
13
13
|
DisbursementPaymentMethodType$outboundSchema,
|
|
14
14
|
} from "./disbursementpaymentmethodtype.js";
|
|
15
|
+
import {
|
|
16
|
+
FeePaidBy,
|
|
17
|
+
FeePaidBy$inboundSchema,
|
|
18
|
+
FeePaidBy$outboundSchema,
|
|
19
|
+
} from "./feepaidby.js";
|
|
15
20
|
import {
|
|
16
21
|
PayoutRecipient,
|
|
17
22
|
PayoutRecipient$inboundSchema,
|
|
@@ -52,6 +57,14 @@ export type PaymentLinkPayoutDetailsUpdate = {
|
|
|
52
57
|
* (`push-to-apple-pay`, `push-to-google-pay`) are always delivered instantly regardless of these options.
|
|
53
58
|
*/
|
|
54
59
|
pushOptions?: PushOptionsUpdate | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Indicates which party bears the fee, keyed by disbursement payment method (`DisbursementPaymentMethodType`).
|
|
62
|
+
*
|
|
63
|
+
* @remarks
|
|
64
|
+
*
|
|
65
|
+
* Sparse — include only the methods you want to attribute. Any method left unset defaults to `source`.
|
|
66
|
+
*/
|
|
67
|
+
feePaidBy?: { [k: string]: FeePaidBy } | undefined;
|
|
55
68
|
};
|
|
56
69
|
|
|
57
70
|
/** @internal */
|
|
@@ -66,6 +79,7 @@ export const PaymentLinkPayoutDetailsUpdate$inboundSchema: z.ZodType<
|
|
|
66
79
|
recipient: types.optional(PayoutRecipient$inboundSchema),
|
|
67
80
|
metadata: types.optional(z.record(types.string())),
|
|
68
81
|
pushOptions: types.optional(PushOptionsUpdate$inboundSchema),
|
|
82
|
+
feePaidBy: types.optional(z.record(FeePaidBy$inboundSchema)),
|
|
69
83
|
});
|
|
70
84
|
/** @internal */
|
|
71
85
|
export type PaymentLinkPayoutDetailsUpdate$Outbound = {
|
|
@@ -73,6 +87,7 @@ export type PaymentLinkPayoutDetailsUpdate$Outbound = {
|
|
|
73
87
|
recipient?: PayoutRecipient$Outbound | undefined;
|
|
74
88
|
metadata?: { [k: string]: string } | undefined;
|
|
75
89
|
pushOptions?: PushOptionsUpdate$Outbound | undefined;
|
|
90
|
+
feePaidBy?: { [k: string]: string } | undefined;
|
|
76
91
|
};
|
|
77
92
|
|
|
78
93
|
/** @internal */
|
|
@@ -86,6 +101,7 @@ export const PaymentLinkPayoutDetailsUpdate$outboundSchema: z.ZodType<
|
|
|
86
101
|
recipient: PayoutRecipient$outboundSchema.optional(),
|
|
87
102
|
metadata: z.record(z.string()).optional(),
|
|
88
103
|
pushOptions: PushOptionsUpdate$outboundSchema.optional(),
|
|
104
|
+
feePaidBy: z.record(FeePaidBy$outboundSchema).optional(),
|
|
89
105
|
});
|
|
90
106
|
|
|
91
107
|
export function paymentLinkPayoutDetailsUpdateToJSON(
|
|
@@ -22,6 +22,7 @@ export type PaymentMethodsWallet = {
|
|
|
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
|
};
|
|
@@ -25,6 +25,7 @@ export type PayoutDetailsError = {
|
|
|
25
25
|
recipient?: PayoutRecipientError | undefined;
|
|
26
26
|
metadata?: string | undefined;
|
|
27
27
|
pushOptions?: PushOptionsError | undefined;
|
|
28
|
+
feePaidBy?: string | undefined;
|
|
28
29
|
};
|
|
29
30
|
|
|
30
31
|
/** @internal */
|
|
@@ -37,6 +38,7 @@ export const PayoutDetailsError$inboundSchema: z.ZodType<
|
|
|
37
38
|
recipient: types.optional(PayoutRecipientError$inboundSchema),
|
|
38
39
|
metadata: types.optional(types.string()),
|
|
39
40
|
pushOptions: types.optional(PushOptionsError$inboundSchema),
|
|
41
|
+
feePaidBy: types.optional(types.string()),
|
|
40
42
|
});
|
|
41
43
|
/** @internal */
|
|
42
44
|
export type PayoutDetailsError$Outbound = {
|
|
@@ -44,6 +46,7 @@ export type PayoutDetailsError$Outbound = {
|
|
|
44
46
|
recipient?: PayoutRecipientError$Outbound | undefined;
|
|
45
47
|
metadata?: string | undefined;
|
|
46
48
|
pushOptions?: PushOptionsError$Outbound | undefined;
|
|
49
|
+
feePaidBy?: string | undefined;
|
|
47
50
|
};
|
|
48
51
|
|
|
49
52
|
/** @internal */
|
|
@@ -56,6 +59,7 @@ export const PayoutDetailsError$outboundSchema: z.ZodType<
|
|
|
56
59
|
recipient: PayoutRecipientError$outboundSchema.optional(),
|
|
57
60
|
metadata: z.string().optional(),
|
|
58
61
|
pushOptions: PushOptionsError$outboundSchema.optional(),
|
|
62
|
+
feePaidBy: z.string().optional(),
|
|
59
63
|
});
|
|
60
64
|
|
|
61
65
|
export function payoutDetailsErrorToJSON(
|
|
@@ -13,6 +13,12 @@ import {
|
|
|
13
13
|
AmountDecimal$Outbound,
|
|
14
14
|
AmountDecimal$outboundSchema,
|
|
15
15
|
} from "./amountdecimal.js";
|
|
16
|
+
import {
|
|
17
|
+
ProductCategory,
|
|
18
|
+
ProductCategory$inboundSchema,
|
|
19
|
+
ProductCategory$Outbound,
|
|
20
|
+
ProductCategory$outboundSchema,
|
|
21
|
+
} from "./productcategory.js";
|
|
16
22
|
import {
|
|
17
23
|
ProductImageMetadata,
|
|
18
24
|
ProductImageMetadata$inboundSchema,
|
|
@@ -57,6 +63,10 @@ export type Product = {
|
|
|
57
63
|
* Optional images associated with the product.
|
|
58
64
|
*/
|
|
59
65
|
images?: Array<ProductImageMetadata> | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* The product taxonomy category associated with the product, if any.
|
|
68
|
+
*/
|
|
69
|
+
category?: ProductCategory | undefined;
|
|
60
70
|
/**
|
|
61
71
|
* The date and time when the product was added.
|
|
62
72
|
*/
|
|
@@ -80,6 +90,7 @@ export const Product$inboundSchema: z.ZodType<Product, z.ZodTypeDef, unknown> =
|
|
|
80
90
|
basePrice: AmountDecimal$inboundSchema,
|
|
81
91
|
optionGroups: types.optional(z.array(ProductOptionGroup$inboundSchema)),
|
|
82
92
|
images: types.optional(z.array(ProductImageMetadata$inboundSchema)),
|
|
93
|
+
category: types.optional(ProductCategory$inboundSchema),
|
|
83
94
|
createdOn: types.date(),
|
|
84
95
|
updatedOn: types.date(),
|
|
85
96
|
disabledOn: types.optional(types.date()),
|
|
@@ -92,6 +103,7 @@ export type Product$Outbound = {
|
|
|
92
103
|
basePrice: AmountDecimal$Outbound;
|
|
93
104
|
optionGroups?: Array<ProductOptionGroup$Outbound> | undefined;
|
|
94
105
|
images?: Array<ProductImageMetadata$Outbound> | undefined;
|
|
106
|
+
category?: ProductCategory$Outbound | undefined;
|
|
95
107
|
createdOn: string;
|
|
96
108
|
updatedOn: string;
|
|
97
109
|
disabledOn?: string | undefined;
|
|
@@ -109,6 +121,7 @@ export const Product$outboundSchema: z.ZodType<
|
|
|
109
121
|
basePrice: AmountDecimal$outboundSchema,
|
|
110
122
|
optionGroups: z.array(ProductOptionGroup$outboundSchema).optional(),
|
|
111
123
|
images: z.array(ProductImageMetadata$outboundSchema).optional(),
|
|
124
|
+
category: ProductCategory$outboundSchema.optional(),
|
|
112
125
|
createdOn: z.date().transform(v => v.toISOString()),
|
|
113
126
|
updatedOn: z.date().transform(v => v.toISOString()),
|
|
114
127
|
disabledOn: z.date().transform(v => v.toISOString()).optional(),
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
ProductCategory,
|
|
11
|
+
ProductCategory$inboundSchema,
|
|
12
|
+
ProductCategory$Outbound,
|
|
13
|
+
ProductCategory$outboundSchema,
|
|
14
|
+
} from "./productcategory.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A list of product categories from the product taxonomy.
|
|
18
|
+
*/
|
|
19
|
+
export type ProductCategories = {
|
|
20
|
+
categories: Array<ProductCategory>;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const ProductCategories$inboundSchema: z.ZodType<
|
|
25
|
+
ProductCategories,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
categories: z.array(ProductCategory$inboundSchema),
|
|
30
|
+
});
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type ProductCategories$Outbound = {
|
|
33
|
+
categories: Array<ProductCategory$Outbound>;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const ProductCategories$outboundSchema: z.ZodType<
|
|
38
|
+
ProductCategories$Outbound,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
ProductCategories
|
|
41
|
+
> = z.object({
|
|
42
|
+
categories: z.array(ProductCategory$outboundSchema),
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export function productCategoriesToJSON(
|
|
46
|
+
productCategories: ProductCategories,
|
|
47
|
+
): string {
|
|
48
|
+
return JSON.stringify(
|
|
49
|
+
ProductCategories$outboundSchema.parse(productCategories),
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
export function productCategoriesFromJSON(
|
|
53
|
+
jsonString: string,
|
|
54
|
+
): SafeParseResult<ProductCategories, SDKValidationError> {
|
|
55
|
+
return safeParse(
|
|
56
|
+
jsonString,
|
|
57
|
+
(x) => ProductCategories$inboundSchema.parse(JSON.parse(x)),
|
|
58
|
+
`Failed to parse 'ProductCategories' from JSON`,
|
|
59
|
+
);
|
|
60
|
+
}
|