@moovio/sdk 26.7.0-dev.6 → 26.7.1
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 +141 -67
- package/bin/mcp-server.js +1364 -389
- package/bin/mcp-server.js.map +84 -50
- 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/transfersList.js +2 -0
- package/funcs/transfersList.js.map +1 -1
- 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.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +10 -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/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/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/createdtransfer.d.ts +6 -0
- package/models/components/createdtransfer.d.ts.map +1 -1
- package/models/components/createdtransfer.js +3 -0
- package/models/components/createdtransfer.js.map +1 -1
- package/models/components/createrefund.d.ts +2 -2
- package/models/components/createreversal.d.ts +1 -1
- package/models/components/createtransfer.d.ts +6 -0
- package/models/components/createtransfer.d.ts.map +1 -1
- package/models/components/createtransfer.js +3 -0
- package/models/components/createtransfer.js.map +1 -1
- package/models/components/feepaidby.d.ts +18 -0
- package/models/components/feepaidby.d.ts.map +1 -0
- package/models/components/feepaidby.js +52 -0
- package/models/components/feepaidby.js.map +1 -0
- package/models/components/filedetails.d.ts +1 -1
- package/models/components/filepurpose.d.ts +2 -2
- package/models/components/filepurpose.js +1 -1
- 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 +26 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +26 -0
- package/models/components/index.js.map +1 -1
- 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/issuingcontrolsrestrictionmode.js +52 -0
- 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/onboardinginvite.d.ts +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/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 +6 -0
- package/models/components/transfer.d.ts.map +1 -1
- package/models/components/transfer.js +3 -0
- package/models/components/transfer.js.map +1 -1
- package/models/components/transfercapture.d.ts +28 -0
- package/models/components/transfercapture.d.ts.map +1 -0
- package/models/components/transfercapture.js +61 -0
- package/models/components/transfercapture.js.map +1 -0
- 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/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/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 +9 -0
- package/models/errors/transfer.d.ts.map +1 -1
- package/models/errors/transfer.js +4 -0
- 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/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/index.d.ts +4 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listissuingmerchantcategories.d.ts +24 -0
- package/models/operations/listissuingmerchantcategories.d.ts.map +1 -0
- package/models/operations/listissuingmerchantcategories.js +72 -0
- package/models/operations/listissuingmerchantcategories.js.map +1 -0
- package/models/operations/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 +10 -0
- package/models/operations/listtransfers.d.ts.map +1 -1
- package/models/operations/listtransfers.js +4 -0
- package/models/operations/listtransfers.js.map +1 -1
- package/models/operations/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/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/transfersList.ts +2 -0
- package/src/hooks/oauth2scopes.ts +8 -0
- package/src/lib/config.ts +3 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +10 -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/models/components/allowedscheduleerror.ts +62 -0
- package/src/models/components/avataruploadrequest.ts +113 -0
- package/src/models/components/capabilityid.ts +1 -0
- package/src/models/components/createdtransfer.ts +13 -0
- package/src/models/components/createrefund.ts +2 -2
- package/src/models/components/createreversal.ts +1 -1
- package/src/models/components/createtransfer.ts +13 -0
- package/src/models/components/feepaidby.ts +32 -0
- package/src/models/components/filedetails.ts +1 -1
- package/src/models/components/filepurpose.ts +2 -2
- package/src/models/components/fullissuedcard.ts +12 -9
- package/src/models/components/incurredfee.ts +12 -0
- package/src/models/components/index.ts +26 -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/onboardinginvite.ts +1 -1
- 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/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 +13 -0
- package/src/models/components/transfercapture.ts +63 -0
- package/src/models/components/transferfeepaidby.ts +63 -0
- package/src/models/components/transferpaymentmethodswallet.ts +1 -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/productrequestvalidationerror.ts +6 -0
- package/src/models/errors/transfer.ts +12 -0
- package/src/models/errors/updateissuedcarderror.ts +6 -0
- package/src/models/operations/deleteavatar.ts +154 -0
- package/src/models/operations/index.ts +4 -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 +14 -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
|
@@ -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
|
+
}
|
|
@@ -55,6 +55,12 @@ import {
|
|
|
55
55
|
TransferAmountDetails$Outbound,
|
|
56
56
|
TransferAmountDetails$outboundSchema,
|
|
57
57
|
} from "./transferamountdetails.js";
|
|
58
|
+
import {
|
|
59
|
+
TransferCapture,
|
|
60
|
+
TransferCapture$inboundSchema,
|
|
61
|
+
TransferCapture$Outbound,
|
|
62
|
+
TransferCapture$outboundSchema,
|
|
63
|
+
} from "./transfercapture.js";
|
|
58
64
|
import {
|
|
59
65
|
TransferDestination,
|
|
60
66
|
TransferDestination$inboundSchema,
|
|
@@ -159,6 +165,10 @@ export type Transfer = {
|
|
|
159
165
|
*/
|
|
160
166
|
invoiceID?: string | undefined;
|
|
161
167
|
amountDetails?: TransferAmountDetails | undefined;
|
|
168
|
+
/**
|
|
169
|
+
* The card authorization and capture IDs associated with a transfer.
|
|
170
|
+
*/
|
|
171
|
+
capture?: TransferCapture | undefined;
|
|
162
172
|
};
|
|
163
173
|
|
|
164
174
|
/** @internal */
|
|
@@ -196,6 +206,7 @@ export const Transfer$inboundSchema: z.ZodType<
|
|
|
196
206
|
lineItems: types.optional(TransferLineItems$inboundSchema),
|
|
197
207
|
invoiceID: types.optional(types.string()),
|
|
198
208
|
amountDetails: types.optional(TransferAmountDetails$inboundSchema),
|
|
209
|
+
capture: types.optional(TransferCapture$inboundSchema),
|
|
199
210
|
});
|
|
200
211
|
/** @internal */
|
|
201
212
|
export type Transfer$Outbound = {
|
|
@@ -228,6 +239,7 @@ export type Transfer$Outbound = {
|
|
|
228
239
|
lineItems?: TransferLineItems$Outbound | undefined;
|
|
229
240
|
invoiceID?: string | undefined;
|
|
230
241
|
amountDetails?: TransferAmountDetails$Outbound | undefined;
|
|
242
|
+
capture?: TransferCapture$Outbound | undefined;
|
|
231
243
|
};
|
|
232
244
|
|
|
233
245
|
/** @internal */
|
|
@@ -265,6 +277,7 @@ export const Transfer$outboundSchema: z.ZodType<
|
|
|
265
277
|
lineItems: TransferLineItems$outboundSchema.optional(),
|
|
266
278
|
invoiceID: z.string().optional(),
|
|
267
279
|
amountDetails: TransferAmountDetails$outboundSchema.optional(),
|
|
280
|
+
capture: TransferCapture$outboundSchema.optional(),
|
|
268
281
|
});
|
|
269
282
|
|
|
270
283
|
export function transferToJSON(transfer: Transfer): string {
|
|
@@ -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
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The card authorization and capture IDs associated with a transfer.
|
|
13
|
+
*/
|
|
14
|
+
export type TransferCapture = {
|
|
15
|
+
/**
|
|
16
|
+
* ID of the card authorization associated with this transfer.
|
|
17
|
+
*/
|
|
18
|
+
authorizationID: string;
|
|
19
|
+
/**
|
|
20
|
+
* ID of the card capture associated with this transfer.
|
|
21
|
+
*/
|
|
22
|
+
captureID: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const TransferCapture$inboundSchema: z.ZodType<
|
|
27
|
+
TransferCapture,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
authorizationID: types.string(),
|
|
32
|
+
captureID: types.string(),
|
|
33
|
+
});
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type TransferCapture$Outbound = {
|
|
36
|
+
authorizationID: string;
|
|
37
|
+
captureID: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const TransferCapture$outboundSchema: z.ZodType<
|
|
42
|
+
TransferCapture$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
TransferCapture
|
|
45
|
+
> = z.object({
|
|
46
|
+
authorizationID: z.string(),
|
|
47
|
+
captureID: z.string(),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export function transferCaptureToJSON(
|
|
51
|
+
transferCapture: TransferCapture,
|
|
52
|
+
): string {
|
|
53
|
+
return JSON.stringify(TransferCapture$outboundSchema.parse(transferCapture));
|
|
54
|
+
}
|
|
55
|
+
export function transferCaptureFromJSON(
|
|
56
|
+
jsonString: string,
|
|
57
|
+
): SafeParseResult<TransferCapture, SDKValidationError> {
|
|
58
|
+
return safeParse(
|
|
59
|
+
jsonString,
|
|
60
|
+
(x) => TransferCapture$inboundSchema.parse(JSON.parse(x)),
|
|
61
|
+
`Failed to parse 'TransferCapture' from JSON`,
|
|
62
|
+
);
|
|
63
|
+
}
|
|
@@ -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
|
};
|
|
@@ -12,6 +12,12 @@ import {
|
|
|
12
12
|
UpdateIssuedCardState$inboundSchema,
|
|
13
13
|
UpdateIssuedCardState$outboundSchema,
|
|
14
14
|
} from "./updateissuedcardstate.js";
|
|
15
|
+
import {
|
|
16
|
+
UpdateIssuingControls,
|
|
17
|
+
UpdateIssuingControls$inboundSchema,
|
|
18
|
+
UpdateIssuingControls$Outbound,
|
|
19
|
+
UpdateIssuingControls$outboundSchema,
|
|
20
|
+
} from "./updateissuingcontrols.js";
|
|
15
21
|
|
|
16
22
|
export type BillingAddress = {
|
|
17
23
|
addressLine1?: string | undefined;
|
|
@@ -33,6 +39,10 @@ export type UpdateIssuedCard = {
|
|
|
33
39
|
nickname?: string | null | undefined;
|
|
34
40
|
metadata?: { [k: string]: string } | null | undefined;
|
|
35
41
|
billingAddress?: BillingAddress | null | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Mutable spend controls for the card.
|
|
44
|
+
*/
|
|
45
|
+
controls?: UpdateIssuingControls | undefined;
|
|
36
46
|
};
|
|
37
47
|
|
|
38
48
|
/** @internal */
|
|
@@ -96,6 +106,7 @@ export const UpdateIssuedCard$inboundSchema: z.ZodType<
|
|
|
96
106
|
metadata: z.nullable(z.record(types.string())).optional(),
|
|
97
107
|
billingAddress: z.nullable(z.lazy(() => BillingAddress$inboundSchema))
|
|
98
108
|
.optional(),
|
|
109
|
+
controls: types.optional(UpdateIssuingControls$inboundSchema),
|
|
99
110
|
});
|
|
100
111
|
/** @internal */
|
|
101
112
|
export type UpdateIssuedCard$Outbound = {
|
|
@@ -103,6 +114,7 @@ export type UpdateIssuedCard$Outbound = {
|
|
|
103
114
|
nickname?: string | null | undefined;
|
|
104
115
|
metadata?: { [k: string]: string } | null | undefined;
|
|
105
116
|
billingAddress?: BillingAddress$Outbound | null | undefined;
|
|
117
|
+
controls?: UpdateIssuingControls$Outbound | undefined;
|
|
106
118
|
};
|
|
107
119
|
|
|
108
120
|
/** @internal */
|
|
@@ -116,6 +128,7 @@ export const UpdateIssuedCard$outboundSchema: z.ZodType<
|
|
|
116
128
|
metadata: z.nullable(z.record(z.string())).optional(),
|
|
117
129
|
billingAddress: z.nullable(z.lazy(() => BillingAddress$outboundSchema))
|
|
118
130
|
.optional(),
|
|
131
|
+
controls: UpdateIssuingControls$outboundSchema.optional(),
|
|
119
132
|
});
|
|
120
133
|
|
|
121
134
|
export function updateIssuedCardToJSON(
|
|
@@ -0,0 +1,351 @@
|
|
|
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
|
+
IssuingControlsRestrictionMode,
|
|
12
|
+
IssuingControlsRestrictionMode$inboundSchema,
|
|
13
|
+
IssuingControlsRestrictionMode$outboundSchema,
|
|
14
|
+
} from "./issuingcontrolsrestrictionmode.js";
|
|
15
|
+
import {
|
|
16
|
+
IssuingMerchantCategory,
|
|
17
|
+
IssuingMerchantCategory$inboundSchema,
|
|
18
|
+
IssuingMerchantCategory$outboundSchema,
|
|
19
|
+
} from "./issuingmerchantcategory.js";
|
|
20
|
+
import {
|
|
21
|
+
IssuingVelocityLimit,
|
|
22
|
+
IssuingVelocityLimit$inboundSchema,
|
|
23
|
+
IssuingVelocityLimit$Outbound,
|
|
24
|
+
IssuingVelocityLimit$outboundSchema,
|
|
25
|
+
} from "./issuingvelocitylimit.js";
|
|
26
|
+
import {
|
|
27
|
+
MerchantEntry,
|
|
28
|
+
MerchantEntry$inboundSchema,
|
|
29
|
+
MerchantEntry$Outbound,
|
|
30
|
+
MerchantEntry$outboundSchema,
|
|
31
|
+
} from "./merchantentry.js";
|
|
32
|
+
import {
|
|
33
|
+
ScheduleWindow,
|
|
34
|
+
ScheduleWindow$inboundSchema,
|
|
35
|
+
ScheduleWindow$Outbound,
|
|
36
|
+
ScheduleWindow$outboundSchema,
|
|
37
|
+
} from "./schedulewindow.js";
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Replaces the merchant category restrictions. Set to `null` to remove.
|
|
41
|
+
*/
|
|
42
|
+
export type UpdateIssuingControlsMerchantCategoryRestrictions = {
|
|
43
|
+
/**
|
|
44
|
+
* Whether the listed categories are the only ones allowed, or the ones to block.
|
|
45
|
+
*/
|
|
46
|
+
mode?: IssuingControlsRestrictionMode | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Predefined category groups to allow or block.
|
|
49
|
+
*/
|
|
50
|
+
categories?: Array<IssuingMerchantCategory> | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Individual merchant category codes (MCCs) to allow or block, for codes not covered by a predefined category.
|
|
53
|
+
*/
|
|
54
|
+
customMCCs?: Array<string> | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Merchants that are exempt from category restrictions regardless of their category.
|
|
57
|
+
*/
|
|
58
|
+
exemptMerchants?: Array<MerchantEntry> | undefined;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Replaces the merchant restrictions. Set to `null` to remove.
|
|
63
|
+
*/
|
|
64
|
+
export type UpdateIssuingControlsMerchantRestrictions = {
|
|
65
|
+
/**
|
|
66
|
+
* Whether the listed merchants are the only ones allowed, or the ones to block.
|
|
67
|
+
*/
|
|
68
|
+
mode?: IssuingControlsRestrictionMode | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* The merchants to allow or block.
|
|
71
|
+
*/
|
|
72
|
+
merchants?: Array<MerchantEntry> | undefined;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Replaces the allowed schedule. Set to `null` to remove all schedule restrictions.
|
|
77
|
+
*/
|
|
78
|
+
export type UpdateIssuingControlsAllowedSchedule = {
|
|
79
|
+
/**
|
|
80
|
+
* IANA timezone string used to evaluate window boundaries against the authorization time.
|
|
81
|
+
*/
|
|
82
|
+
timezone?: string | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Time windows during which the card may authorize. Any matching window allows the transaction.
|
|
85
|
+
*/
|
|
86
|
+
windows?: Array<ScheduleWindow> | undefined;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Mutable spend controls. Each field replaces the entire corresponding value.
|
|
91
|
+
*/
|
|
92
|
+
export type UpdateIssuingControls = {
|
|
93
|
+
/**
|
|
94
|
+
* Replaces the entire set of velocity limits. Send an empty array to clear all limits.
|
|
95
|
+
*/
|
|
96
|
+
velocityLimits?: Array<IssuingVelocityLimit> | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* Replaces the merchant category restrictions. Set to `null` to remove.
|
|
99
|
+
*/
|
|
100
|
+
merchantCategoryRestrictions?:
|
|
101
|
+
| UpdateIssuingControlsMerchantCategoryRestrictions
|
|
102
|
+
| null
|
|
103
|
+
| undefined;
|
|
104
|
+
/**
|
|
105
|
+
* Replaces the merchant restrictions. Set to `null` to remove.
|
|
106
|
+
*/
|
|
107
|
+
merchantRestrictions?:
|
|
108
|
+
| UpdateIssuingControlsMerchantRestrictions
|
|
109
|
+
| null
|
|
110
|
+
| undefined;
|
|
111
|
+
/**
|
|
112
|
+
* Replaces the allowed schedule. Set to `null` to remove all schedule restrictions.
|
|
113
|
+
*/
|
|
114
|
+
allowedSchedule?: UpdateIssuingControlsAllowedSchedule | null | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* A spend cutoff date and time. Set to `null` to remove the cutoff.
|
|
117
|
+
*/
|
|
118
|
+
expiresOn?: Date | null | undefined;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
/** @internal */
|
|
122
|
+
export const UpdateIssuingControlsMerchantCategoryRestrictions$inboundSchema:
|
|
123
|
+
z.ZodType<
|
|
124
|
+
UpdateIssuingControlsMerchantCategoryRestrictions,
|
|
125
|
+
z.ZodTypeDef,
|
|
126
|
+
unknown
|
|
127
|
+
> = z.object({
|
|
128
|
+
mode: types.optional(IssuingControlsRestrictionMode$inboundSchema),
|
|
129
|
+
categories: types.optional(z.array(IssuingMerchantCategory$inboundSchema)),
|
|
130
|
+
customMCCs: types.optional(z.array(types.string())),
|
|
131
|
+
exemptMerchants: types.optional(z.array(MerchantEntry$inboundSchema)),
|
|
132
|
+
});
|
|
133
|
+
/** @internal */
|
|
134
|
+
export type UpdateIssuingControlsMerchantCategoryRestrictions$Outbound = {
|
|
135
|
+
mode?: string | undefined;
|
|
136
|
+
categories?: Array<string> | undefined;
|
|
137
|
+
customMCCs?: Array<string> | undefined;
|
|
138
|
+
exemptMerchants?: Array<MerchantEntry$Outbound> | undefined;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
/** @internal */
|
|
142
|
+
export const UpdateIssuingControlsMerchantCategoryRestrictions$outboundSchema:
|
|
143
|
+
z.ZodType<
|
|
144
|
+
UpdateIssuingControlsMerchantCategoryRestrictions$Outbound,
|
|
145
|
+
z.ZodTypeDef,
|
|
146
|
+
UpdateIssuingControlsMerchantCategoryRestrictions
|
|
147
|
+
> = z.object({
|
|
148
|
+
mode: IssuingControlsRestrictionMode$outboundSchema.optional(),
|
|
149
|
+
categories: z.array(IssuingMerchantCategory$outboundSchema).optional(),
|
|
150
|
+
customMCCs: z.array(z.string()).optional(),
|
|
151
|
+
exemptMerchants: z.array(MerchantEntry$outboundSchema).optional(),
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
export function updateIssuingControlsMerchantCategoryRestrictionsToJSON(
|
|
155
|
+
updateIssuingControlsMerchantCategoryRestrictions:
|
|
156
|
+
UpdateIssuingControlsMerchantCategoryRestrictions,
|
|
157
|
+
): string {
|
|
158
|
+
return JSON.stringify(
|
|
159
|
+
UpdateIssuingControlsMerchantCategoryRestrictions$outboundSchema.parse(
|
|
160
|
+
updateIssuingControlsMerchantCategoryRestrictions,
|
|
161
|
+
),
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
export function updateIssuingControlsMerchantCategoryRestrictionsFromJSON(
|
|
165
|
+
jsonString: string,
|
|
166
|
+
): SafeParseResult<
|
|
167
|
+
UpdateIssuingControlsMerchantCategoryRestrictions,
|
|
168
|
+
SDKValidationError
|
|
169
|
+
> {
|
|
170
|
+
return safeParse(
|
|
171
|
+
jsonString,
|
|
172
|
+
(x) =>
|
|
173
|
+
UpdateIssuingControlsMerchantCategoryRestrictions$inboundSchema.parse(
|
|
174
|
+
JSON.parse(x),
|
|
175
|
+
),
|
|
176
|
+
`Failed to parse 'UpdateIssuingControlsMerchantCategoryRestrictions' from JSON`,
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/** @internal */
|
|
181
|
+
export const UpdateIssuingControlsMerchantRestrictions$inboundSchema: z.ZodType<
|
|
182
|
+
UpdateIssuingControlsMerchantRestrictions,
|
|
183
|
+
z.ZodTypeDef,
|
|
184
|
+
unknown
|
|
185
|
+
> = z.object({
|
|
186
|
+
mode: types.optional(IssuingControlsRestrictionMode$inboundSchema),
|
|
187
|
+
merchants: types.optional(z.array(MerchantEntry$inboundSchema)),
|
|
188
|
+
});
|
|
189
|
+
/** @internal */
|
|
190
|
+
export type UpdateIssuingControlsMerchantRestrictions$Outbound = {
|
|
191
|
+
mode?: string | undefined;
|
|
192
|
+
merchants?: Array<MerchantEntry$Outbound> | undefined;
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
/** @internal */
|
|
196
|
+
export const UpdateIssuingControlsMerchantRestrictions$outboundSchema:
|
|
197
|
+
z.ZodType<
|
|
198
|
+
UpdateIssuingControlsMerchantRestrictions$Outbound,
|
|
199
|
+
z.ZodTypeDef,
|
|
200
|
+
UpdateIssuingControlsMerchantRestrictions
|
|
201
|
+
> = z.object({
|
|
202
|
+
mode: IssuingControlsRestrictionMode$outboundSchema.optional(),
|
|
203
|
+
merchants: z.array(MerchantEntry$outboundSchema).optional(),
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
export function updateIssuingControlsMerchantRestrictionsToJSON(
|
|
207
|
+
updateIssuingControlsMerchantRestrictions:
|
|
208
|
+
UpdateIssuingControlsMerchantRestrictions,
|
|
209
|
+
): string {
|
|
210
|
+
return JSON.stringify(
|
|
211
|
+
UpdateIssuingControlsMerchantRestrictions$outboundSchema.parse(
|
|
212
|
+
updateIssuingControlsMerchantRestrictions,
|
|
213
|
+
),
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
export function updateIssuingControlsMerchantRestrictionsFromJSON(
|
|
217
|
+
jsonString: string,
|
|
218
|
+
): SafeParseResult<
|
|
219
|
+
UpdateIssuingControlsMerchantRestrictions,
|
|
220
|
+
SDKValidationError
|
|
221
|
+
> {
|
|
222
|
+
return safeParse(
|
|
223
|
+
jsonString,
|
|
224
|
+
(x) =>
|
|
225
|
+
UpdateIssuingControlsMerchantRestrictions$inboundSchema.parse(
|
|
226
|
+
JSON.parse(x),
|
|
227
|
+
),
|
|
228
|
+
`Failed to parse 'UpdateIssuingControlsMerchantRestrictions' from JSON`,
|
|
229
|
+
);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/** @internal */
|
|
233
|
+
export const UpdateIssuingControlsAllowedSchedule$inboundSchema: z.ZodType<
|
|
234
|
+
UpdateIssuingControlsAllowedSchedule,
|
|
235
|
+
z.ZodTypeDef,
|
|
236
|
+
unknown
|
|
237
|
+
> = z.object({
|
|
238
|
+
timezone: types.optional(types.string()),
|
|
239
|
+
windows: types.optional(z.array(ScheduleWindow$inboundSchema)),
|
|
240
|
+
});
|
|
241
|
+
/** @internal */
|
|
242
|
+
export type UpdateIssuingControlsAllowedSchedule$Outbound = {
|
|
243
|
+
timezone?: string | undefined;
|
|
244
|
+
windows?: Array<ScheduleWindow$Outbound> | undefined;
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
/** @internal */
|
|
248
|
+
export const UpdateIssuingControlsAllowedSchedule$outboundSchema: z.ZodType<
|
|
249
|
+
UpdateIssuingControlsAllowedSchedule$Outbound,
|
|
250
|
+
z.ZodTypeDef,
|
|
251
|
+
UpdateIssuingControlsAllowedSchedule
|
|
252
|
+
> = z.object({
|
|
253
|
+
timezone: z.string().optional(),
|
|
254
|
+
windows: z.array(ScheduleWindow$outboundSchema).optional(),
|
|
255
|
+
});
|
|
256
|
+
|
|
257
|
+
export function updateIssuingControlsAllowedScheduleToJSON(
|
|
258
|
+
updateIssuingControlsAllowedSchedule: UpdateIssuingControlsAllowedSchedule,
|
|
259
|
+
): string {
|
|
260
|
+
return JSON.stringify(
|
|
261
|
+
UpdateIssuingControlsAllowedSchedule$outboundSchema.parse(
|
|
262
|
+
updateIssuingControlsAllowedSchedule,
|
|
263
|
+
),
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
export function updateIssuingControlsAllowedScheduleFromJSON(
|
|
267
|
+
jsonString: string,
|
|
268
|
+
): SafeParseResult<UpdateIssuingControlsAllowedSchedule, SDKValidationError> {
|
|
269
|
+
return safeParse(
|
|
270
|
+
jsonString,
|
|
271
|
+
(x) =>
|
|
272
|
+
UpdateIssuingControlsAllowedSchedule$inboundSchema.parse(JSON.parse(x)),
|
|
273
|
+
`Failed to parse 'UpdateIssuingControlsAllowedSchedule' from JSON`,
|
|
274
|
+
);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/** @internal */
|
|
278
|
+
export const UpdateIssuingControls$inboundSchema: z.ZodType<
|
|
279
|
+
UpdateIssuingControls,
|
|
280
|
+
z.ZodTypeDef,
|
|
281
|
+
unknown
|
|
282
|
+
> = z.object({
|
|
283
|
+
velocityLimits: types.optional(z.array(IssuingVelocityLimit$inboundSchema)),
|
|
284
|
+
merchantCategoryRestrictions: z.nullable(
|
|
285
|
+
z.lazy(() =>
|
|
286
|
+
UpdateIssuingControlsMerchantCategoryRestrictions$inboundSchema
|
|
287
|
+
),
|
|
288
|
+
).optional(),
|
|
289
|
+
merchantRestrictions: z.nullable(
|
|
290
|
+
z.lazy(() => UpdateIssuingControlsMerchantRestrictions$inboundSchema),
|
|
291
|
+
).optional(),
|
|
292
|
+
allowedSchedule: z.nullable(
|
|
293
|
+
z.lazy(() => UpdateIssuingControlsAllowedSchedule$inboundSchema),
|
|
294
|
+
).optional(),
|
|
295
|
+
expiresOn: z.nullable(types.date()).optional(),
|
|
296
|
+
});
|
|
297
|
+
/** @internal */
|
|
298
|
+
export type UpdateIssuingControls$Outbound = {
|
|
299
|
+
velocityLimits?: Array<IssuingVelocityLimit$Outbound> | undefined;
|
|
300
|
+
merchantCategoryRestrictions?:
|
|
301
|
+
| UpdateIssuingControlsMerchantCategoryRestrictions$Outbound
|
|
302
|
+
| null
|
|
303
|
+
| undefined;
|
|
304
|
+
merchantRestrictions?:
|
|
305
|
+
| UpdateIssuingControlsMerchantRestrictions$Outbound
|
|
306
|
+
| null
|
|
307
|
+
| undefined;
|
|
308
|
+
allowedSchedule?:
|
|
309
|
+
| UpdateIssuingControlsAllowedSchedule$Outbound
|
|
310
|
+
| null
|
|
311
|
+
| undefined;
|
|
312
|
+
expiresOn?: string | null | undefined;
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
/** @internal */
|
|
316
|
+
export const UpdateIssuingControls$outboundSchema: z.ZodType<
|
|
317
|
+
UpdateIssuingControls$Outbound,
|
|
318
|
+
z.ZodTypeDef,
|
|
319
|
+
UpdateIssuingControls
|
|
320
|
+
> = z.object({
|
|
321
|
+
velocityLimits: z.array(IssuingVelocityLimit$outboundSchema).optional(),
|
|
322
|
+
merchantCategoryRestrictions: z.nullable(
|
|
323
|
+
z.lazy(() =>
|
|
324
|
+
UpdateIssuingControlsMerchantCategoryRestrictions$outboundSchema
|
|
325
|
+
),
|
|
326
|
+
).optional(),
|
|
327
|
+
merchantRestrictions: z.nullable(
|
|
328
|
+
z.lazy(() => UpdateIssuingControlsMerchantRestrictions$outboundSchema),
|
|
329
|
+
).optional(),
|
|
330
|
+
allowedSchedule: z.nullable(
|
|
331
|
+
z.lazy(() => UpdateIssuingControlsAllowedSchedule$outboundSchema),
|
|
332
|
+
).optional(),
|
|
333
|
+
expiresOn: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
334
|
+
});
|
|
335
|
+
|
|
336
|
+
export function updateIssuingControlsToJSON(
|
|
337
|
+
updateIssuingControls: UpdateIssuingControls,
|
|
338
|
+
): string {
|
|
339
|
+
return JSON.stringify(
|
|
340
|
+
UpdateIssuingControls$outboundSchema.parse(updateIssuingControls),
|
|
341
|
+
);
|
|
342
|
+
}
|
|
343
|
+
export function updateIssuingControlsFromJSON(
|
|
344
|
+
jsonString: string,
|
|
345
|
+
): SafeParseResult<UpdateIssuingControls, SDKValidationError> {
|
|
346
|
+
return safeParse(
|
|
347
|
+
jsonString,
|
|
348
|
+
(x) => UpdateIssuingControls$inboundSchema.parse(JSON.parse(x)),
|
|
349
|
+
`Failed to parse 'UpdateIssuingControls' from JSON`,
|
|
350
|
+
);
|
|
351
|
+
}
|