@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,180 @@
|
|
|
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
|
+
IssuedVelocityLimit,
|
|
12
|
+
IssuedVelocityLimit$inboundSchema,
|
|
13
|
+
IssuedVelocityLimit$Outbound,
|
|
14
|
+
IssuedVelocityLimit$outboundSchema,
|
|
15
|
+
} from "./issuedvelocitylimit.js";
|
|
16
|
+
import {
|
|
17
|
+
MerchantCategoryRestrictions,
|
|
18
|
+
MerchantCategoryRestrictions$inboundSchema,
|
|
19
|
+
MerchantCategoryRestrictions$Outbound,
|
|
20
|
+
MerchantCategoryRestrictions$outboundSchema,
|
|
21
|
+
} from "./merchantcategoryrestrictions.js";
|
|
22
|
+
import {
|
|
23
|
+
MerchantRestrictions,
|
|
24
|
+
MerchantRestrictions$inboundSchema,
|
|
25
|
+
MerchantRestrictions$Outbound,
|
|
26
|
+
MerchantRestrictions$outboundSchema,
|
|
27
|
+
} from "./merchantrestrictions.js";
|
|
28
|
+
import {
|
|
29
|
+
ScheduleWindow,
|
|
30
|
+
ScheduleWindow$inboundSchema,
|
|
31
|
+
ScheduleWindow$Outbound,
|
|
32
|
+
ScheduleWindow$outboundSchema,
|
|
33
|
+
} from "./schedulewindow.js";
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Limits card usage to specific days and times.
|
|
37
|
+
*/
|
|
38
|
+
export type IssuedControlsAllowedSchedule = {
|
|
39
|
+
/**
|
|
40
|
+
* IANA timezone string used to evaluate window boundaries against the authorization time.
|
|
41
|
+
*/
|
|
42
|
+
timezone: string;
|
|
43
|
+
/**
|
|
44
|
+
* Time windows during which the card may authorize. Any matching window allows the transaction.
|
|
45
|
+
*/
|
|
46
|
+
windows: Array<ScheduleWindow>;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Spend controls applied to an issued card, including velocity runtime state.
|
|
51
|
+
*/
|
|
52
|
+
export type IssuedControls = {
|
|
53
|
+
/**
|
|
54
|
+
* Indicates if the card is single-use. If true, the card closes after the first authorization.
|
|
55
|
+
*/
|
|
56
|
+
singleUse?: boolean | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* The spending limits per time interval, including current runtime state.
|
|
59
|
+
*/
|
|
60
|
+
velocityLimits?: Array<IssuedVelocityLimit> | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Restricts card usage by merchant category. When not set, all categories are allowed.
|
|
63
|
+
*/
|
|
64
|
+
merchantCategoryRestrictions?: MerchantCategoryRestrictions | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Restricts card usage to specific merchants, or blocks specific merchants.
|
|
67
|
+
*/
|
|
68
|
+
merchantRestrictions?: MerchantRestrictions | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Limits card usage to specific days and times.
|
|
71
|
+
*/
|
|
72
|
+
allowedSchedule?: IssuedControlsAllowedSchedule | null | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* A spend cutoff date and time. When set, all authorizations after this datetime are declined regardless of other controls.
|
|
75
|
+
*/
|
|
76
|
+
expiresOn?: Date | null | undefined;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
/** @internal */
|
|
80
|
+
export const IssuedControlsAllowedSchedule$inboundSchema: z.ZodType<
|
|
81
|
+
IssuedControlsAllowedSchedule,
|
|
82
|
+
z.ZodTypeDef,
|
|
83
|
+
unknown
|
|
84
|
+
> = z.object({
|
|
85
|
+
timezone: types.string(),
|
|
86
|
+
windows: z.array(ScheduleWindow$inboundSchema),
|
|
87
|
+
});
|
|
88
|
+
/** @internal */
|
|
89
|
+
export type IssuedControlsAllowedSchedule$Outbound = {
|
|
90
|
+
timezone: string;
|
|
91
|
+
windows: Array<ScheduleWindow$Outbound>;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
/** @internal */
|
|
95
|
+
export const IssuedControlsAllowedSchedule$outboundSchema: z.ZodType<
|
|
96
|
+
IssuedControlsAllowedSchedule$Outbound,
|
|
97
|
+
z.ZodTypeDef,
|
|
98
|
+
IssuedControlsAllowedSchedule
|
|
99
|
+
> = z.object({
|
|
100
|
+
timezone: z.string(),
|
|
101
|
+
windows: z.array(ScheduleWindow$outboundSchema),
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
export function issuedControlsAllowedScheduleToJSON(
|
|
105
|
+
issuedControlsAllowedSchedule: IssuedControlsAllowedSchedule,
|
|
106
|
+
): string {
|
|
107
|
+
return JSON.stringify(
|
|
108
|
+
IssuedControlsAllowedSchedule$outboundSchema.parse(
|
|
109
|
+
issuedControlsAllowedSchedule,
|
|
110
|
+
),
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
export function issuedControlsAllowedScheduleFromJSON(
|
|
114
|
+
jsonString: string,
|
|
115
|
+
): SafeParseResult<IssuedControlsAllowedSchedule, SDKValidationError> {
|
|
116
|
+
return safeParse(
|
|
117
|
+
jsonString,
|
|
118
|
+
(x) => IssuedControlsAllowedSchedule$inboundSchema.parse(JSON.parse(x)),
|
|
119
|
+
`Failed to parse 'IssuedControlsAllowedSchedule' from JSON`,
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/** @internal */
|
|
124
|
+
export const IssuedControls$inboundSchema: z.ZodType<
|
|
125
|
+
IssuedControls,
|
|
126
|
+
z.ZodTypeDef,
|
|
127
|
+
unknown
|
|
128
|
+
> = z.object({
|
|
129
|
+
singleUse: types.optional(types.boolean()),
|
|
130
|
+
velocityLimits: types.optional(z.array(IssuedVelocityLimit$inboundSchema)),
|
|
131
|
+
merchantCategoryRestrictions: types.optional(
|
|
132
|
+
MerchantCategoryRestrictions$inboundSchema,
|
|
133
|
+
),
|
|
134
|
+
merchantRestrictions: types.optional(MerchantRestrictions$inboundSchema),
|
|
135
|
+
allowedSchedule: z.nullable(
|
|
136
|
+
z.lazy(() => IssuedControlsAllowedSchedule$inboundSchema),
|
|
137
|
+
).optional(),
|
|
138
|
+
expiresOn: z.nullable(types.date()).optional(),
|
|
139
|
+
});
|
|
140
|
+
/** @internal */
|
|
141
|
+
export type IssuedControls$Outbound = {
|
|
142
|
+
singleUse?: boolean | undefined;
|
|
143
|
+
velocityLimits?: Array<IssuedVelocityLimit$Outbound> | undefined;
|
|
144
|
+
merchantCategoryRestrictions?:
|
|
145
|
+
| MerchantCategoryRestrictions$Outbound
|
|
146
|
+
| undefined;
|
|
147
|
+
merchantRestrictions?: MerchantRestrictions$Outbound | undefined;
|
|
148
|
+
allowedSchedule?: IssuedControlsAllowedSchedule$Outbound | null | undefined;
|
|
149
|
+
expiresOn?: string | null | undefined;
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
/** @internal */
|
|
153
|
+
export const IssuedControls$outboundSchema: z.ZodType<
|
|
154
|
+
IssuedControls$Outbound,
|
|
155
|
+
z.ZodTypeDef,
|
|
156
|
+
IssuedControls
|
|
157
|
+
> = z.object({
|
|
158
|
+
singleUse: z.boolean().optional(),
|
|
159
|
+
velocityLimits: z.array(IssuedVelocityLimit$outboundSchema).optional(),
|
|
160
|
+
merchantCategoryRestrictions: MerchantCategoryRestrictions$outboundSchema
|
|
161
|
+
.optional(),
|
|
162
|
+
merchantRestrictions: MerchantRestrictions$outboundSchema.optional(),
|
|
163
|
+
allowedSchedule: z.nullable(
|
|
164
|
+
z.lazy(() => IssuedControlsAllowedSchedule$outboundSchema),
|
|
165
|
+
).optional(),
|
|
166
|
+
expiresOn: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
export function issuedControlsToJSON(issuedControls: IssuedControls): string {
|
|
170
|
+
return JSON.stringify(IssuedControls$outboundSchema.parse(issuedControls));
|
|
171
|
+
}
|
|
172
|
+
export function issuedControlsFromJSON(
|
|
173
|
+
jsonString: string,
|
|
174
|
+
): SafeParseResult<IssuedControls, SDKValidationError> {
|
|
175
|
+
return safeParse(
|
|
176
|
+
jsonString,
|
|
177
|
+
(x) => IssuedControls$inboundSchema.parse(JSON.parse(x)),
|
|
178
|
+
`Failed to parse 'IssuedControls' from JSON`,
|
|
179
|
+
);
|
|
180
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
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
|
+
IssuingIntervalLimit,
|
|
12
|
+
IssuingIntervalLimit$inboundSchema,
|
|
13
|
+
IssuingIntervalLimit$outboundSchema,
|
|
14
|
+
} from "./issuingintervallimit.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A velocity limit with its current runtime state.
|
|
18
|
+
*/
|
|
19
|
+
export type IssuedVelocityLimit = {
|
|
20
|
+
/**
|
|
21
|
+
* The maximum amount in cents that can be spent in a given interval.
|
|
22
|
+
*/
|
|
23
|
+
amount?: number | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* The maximum number of transactions allowed in the given interval.
|
|
26
|
+
*/
|
|
27
|
+
count?: number | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Specifies the time frame for a velocity limit. `per-transaction` applies to each individual authorization and never resets. Time-based intervals (where supported) reset at midnight ET.
|
|
30
|
+
*/
|
|
31
|
+
interval: IssuingIntervalLimit;
|
|
32
|
+
/**
|
|
33
|
+
* The amount in cents already spent in the current interval.
|
|
34
|
+
*/
|
|
35
|
+
amountUsed?: number | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* The amount in cents remaining in the current interval.
|
|
38
|
+
*/
|
|
39
|
+
amountRemaining?: number | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* The number of transactions already made in the current interval.
|
|
42
|
+
*/
|
|
43
|
+
countUsed?: number | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* The number of transactions remaining in the current interval.
|
|
46
|
+
*/
|
|
47
|
+
countRemaining?: number | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* When the current interval resets. Absent for per-transaction limits.
|
|
50
|
+
*/
|
|
51
|
+
resetsOn?: Date | undefined;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const IssuedVelocityLimit$inboundSchema: z.ZodType<
|
|
56
|
+
IssuedVelocityLimit,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
unknown
|
|
59
|
+
> = z.object({
|
|
60
|
+
amount: types.optional(types.number()),
|
|
61
|
+
count: types.optional(types.number()),
|
|
62
|
+
interval: IssuingIntervalLimit$inboundSchema,
|
|
63
|
+
amountUsed: types.optional(types.number()),
|
|
64
|
+
amountRemaining: types.optional(types.number()),
|
|
65
|
+
countUsed: types.optional(types.number()),
|
|
66
|
+
countRemaining: types.optional(types.number()),
|
|
67
|
+
resetsOn: types.optional(types.date()),
|
|
68
|
+
});
|
|
69
|
+
/** @internal */
|
|
70
|
+
export type IssuedVelocityLimit$Outbound = {
|
|
71
|
+
amount?: number | undefined;
|
|
72
|
+
count?: number | undefined;
|
|
73
|
+
interval: string;
|
|
74
|
+
amountUsed?: number | undefined;
|
|
75
|
+
amountRemaining?: number | undefined;
|
|
76
|
+
countUsed?: number | undefined;
|
|
77
|
+
countRemaining?: number | undefined;
|
|
78
|
+
resetsOn?: string | undefined;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export const IssuedVelocityLimit$outboundSchema: z.ZodType<
|
|
83
|
+
IssuedVelocityLimit$Outbound,
|
|
84
|
+
z.ZodTypeDef,
|
|
85
|
+
IssuedVelocityLimit
|
|
86
|
+
> = z.object({
|
|
87
|
+
amount: z.number().int().optional(),
|
|
88
|
+
count: z.number().int().optional(),
|
|
89
|
+
interval: IssuingIntervalLimit$outboundSchema,
|
|
90
|
+
amountUsed: z.number().int().optional(),
|
|
91
|
+
amountRemaining: z.number().int().optional(),
|
|
92
|
+
countUsed: z.number().int().optional(),
|
|
93
|
+
countRemaining: z.number().int().optional(),
|
|
94
|
+
resetsOn: z.date().transform(v => v.toISOString()).optional(),
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
export function issuedVelocityLimitToJSON(
|
|
98
|
+
issuedVelocityLimit: IssuedVelocityLimit,
|
|
99
|
+
): string {
|
|
100
|
+
return JSON.stringify(
|
|
101
|
+
IssuedVelocityLimit$outboundSchema.parse(issuedVelocityLimit),
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
export function issuedVelocityLimitFromJSON(
|
|
105
|
+
jsonString: string,
|
|
106
|
+
): SafeParseResult<IssuedVelocityLimit, SDKValidationError> {
|
|
107
|
+
return safeParse(
|
|
108
|
+
jsonString,
|
|
109
|
+
(x) => IssuedVelocityLimit$inboundSchema.parse(JSON.parse(x)),
|
|
110
|
+
`Failed to parse 'IssuedVelocityLimit' from JSON`,
|
|
111
|
+
);
|
|
112
|
+
}
|
|
@@ -13,6 +13,38 @@ import {
|
|
|
13
13
|
IssuingVelocityLimit$Outbound,
|
|
14
14
|
IssuingVelocityLimit$outboundSchema,
|
|
15
15
|
} from "./issuingvelocitylimit.js";
|
|
16
|
+
import {
|
|
17
|
+
MerchantCategoryRestrictions,
|
|
18
|
+
MerchantCategoryRestrictions$inboundSchema,
|
|
19
|
+
MerchantCategoryRestrictions$Outbound,
|
|
20
|
+
MerchantCategoryRestrictions$outboundSchema,
|
|
21
|
+
} from "./merchantcategoryrestrictions.js";
|
|
22
|
+
import {
|
|
23
|
+
MerchantRestrictions,
|
|
24
|
+
MerchantRestrictions$inboundSchema,
|
|
25
|
+
MerchantRestrictions$Outbound,
|
|
26
|
+
MerchantRestrictions$outboundSchema,
|
|
27
|
+
} from "./merchantrestrictions.js";
|
|
28
|
+
import {
|
|
29
|
+
ScheduleWindow,
|
|
30
|
+
ScheduleWindow$inboundSchema,
|
|
31
|
+
ScheduleWindow$Outbound,
|
|
32
|
+
ScheduleWindow$outboundSchema,
|
|
33
|
+
} from "./schedulewindow.js";
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Limits card usage to specific days and times. Set to `null` to remove all schedule restrictions.
|
|
37
|
+
*/
|
|
38
|
+
export type AllowedSchedule = {
|
|
39
|
+
/**
|
|
40
|
+
* IANA timezone string used to evaluate window boundaries against the authorization time.
|
|
41
|
+
*/
|
|
42
|
+
timezone: string;
|
|
43
|
+
/**
|
|
44
|
+
* Time windows during which the card may authorize. Any matching window allows the transaction.
|
|
45
|
+
*/
|
|
46
|
+
windows: Array<ScheduleWindow>;
|
|
47
|
+
};
|
|
16
48
|
|
|
17
49
|
export type IssuingControls = {
|
|
18
50
|
/**
|
|
@@ -23,8 +55,64 @@ export type IssuingControls = {
|
|
|
23
55
|
* Sets the spending limit per time interval. Only one limit per interval is supported.
|
|
24
56
|
*/
|
|
25
57
|
velocityLimits?: Array<IssuingVelocityLimit> | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Restricts card usage by merchant category. When not set, all categories are allowed.
|
|
60
|
+
*/
|
|
61
|
+
merchantCategoryRestrictions?: MerchantCategoryRestrictions | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Restricts card usage to specific merchants, or blocks specific merchants.
|
|
64
|
+
*/
|
|
65
|
+
merchantRestrictions?: MerchantRestrictions | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Limits card usage to specific days and times. Set to `null` to remove all schedule restrictions.
|
|
68
|
+
*/
|
|
69
|
+
allowedSchedule?: AllowedSchedule | null | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* A spend cutoff date and time. When set, all authorizations after this datetime are declined regardless of other controls. Set to `null` for no cutoff.
|
|
72
|
+
*/
|
|
73
|
+
expiresOn?: Date | null | undefined;
|
|
26
74
|
};
|
|
27
75
|
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const AllowedSchedule$inboundSchema: z.ZodType<
|
|
78
|
+
AllowedSchedule,
|
|
79
|
+
z.ZodTypeDef,
|
|
80
|
+
unknown
|
|
81
|
+
> = z.object({
|
|
82
|
+
timezone: types.string(),
|
|
83
|
+
windows: z.array(ScheduleWindow$inboundSchema),
|
|
84
|
+
});
|
|
85
|
+
/** @internal */
|
|
86
|
+
export type AllowedSchedule$Outbound = {
|
|
87
|
+
timezone: string;
|
|
88
|
+
windows: Array<ScheduleWindow$Outbound>;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const AllowedSchedule$outboundSchema: z.ZodType<
|
|
93
|
+
AllowedSchedule$Outbound,
|
|
94
|
+
z.ZodTypeDef,
|
|
95
|
+
AllowedSchedule
|
|
96
|
+
> = z.object({
|
|
97
|
+
timezone: z.string(),
|
|
98
|
+
windows: z.array(ScheduleWindow$outboundSchema),
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
export function allowedScheduleToJSON(
|
|
102
|
+
allowedSchedule: AllowedSchedule,
|
|
103
|
+
): string {
|
|
104
|
+
return JSON.stringify(AllowedSchedule$outboundSchema.parse(allowedSchedule));
|
|
105
|
+
}
|
|
106
|
+
export function allowedScheduleFromJSON(
|
|
107
|
+
jsonString: string,
|
|
108
|
+
): SafeParseResult<AllowedSchedule, SDKValidationError> {
|
|
109
|
+
return safeParse(
|
|
110
|
+
jsonString,
|
|
111
|
+
(x) => AllowedSchedule$inboundSchema.parse(JSON.parse(x)),
|
|
112
|
+
`Failed to parse 'AllowedSchedule' from JSON`,
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
|
|
28
116
|
/** @internal */
|
|
29
117
|
export const IssuingControls$inboundSchema: z.ZodType<
|
|
30
118
|
IssuingControls,
|
|
@@ -33,11 +121,24 @@ export const IssuingControls$inboundSchema: z.ZodType<
|
|
|
33
121
|
> = z.object({
|
|
34
122
|
singleUse: types.optional(types.boolean()),
|
|
35
123
|
velocityLimits: types.optional(z.array(IssuingVelocityLimit$inboundSchema)),
|
|
124
|
+
merchantCategoryRestrictions: types.optional(
|
|
125
|
+
MerchantCategoryRestrictions$inboundSchema,
|
|
126
|
+
),
|
|
127
|
+
merchantRestrictions: types.optional(MerchantRestrictions$inboundSchema),
|
|
128
|
+
allowedSchedule: z.nullable(z.lazy(() => AllowedSchedule$inboundSchema))
|
|
129
|
+
.optional(),
|
|
130
|
+
expiresOn: z.nullable(types.date()).optional(),
|
|
36
131
|
});
|
|
37
132
|
/** @internal */
|
|
38
133
|
export type IssuingControls$Outbound = {
|
|
39
134
|
singleUse?: boolean | undefined;
|
|
40
135
|
velocityLimits?: Array<IssuingVelocityLimit$Outbound> | undefined;
|
|
136
|
+
merchantCategoryRestrictions?:
|
|
137
|
+
| MerchantCategoryRestrictions$Outbound
|
|
138
|
+
| undefined;
|
|
139
|
+
merchantRestrictions?: MerchantRestrictions$Outbound | undefined;
|
|
140
|
+
allowedSchedule?: AllowedSchedule$Outbound | null | undefined;
|
|
141
|
+
expiresOn?: string | null | undefined;
|
|
41
142
|
};
|
|
42
143
|
|
|
43
144
|
/** @internal */
|
|
@@ -48,6 +149,12 @@ export const IssuingControls$outboundSchema: z.ZodType<
|
|
|
48
149
|
> = z.object({
|
|
49
150
|
singleUse: z.boolean().optional(),
|
|
50
151
|
velocityLimits: z.array(IssuingVelocityLimit$outboundSchema).optional(),
|
|
152
|
+
merchantCategoryRestrictions: MerchantCategoryRestrictions$outboundSchema
|
|
153
|
+
.optional(),
|
|
154
|
+
merchantRestrictions: MerchantRestrictions$outboundSchema.optional(),
|
|
155
|
+
allowedSchedule: z.nullable(z.lazy(() => AllowedSchedule$outboundSchema))
|
|
156
|
+
.optional(),
|
|
157
|
+
expiresOn: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
51
158
|
});
|
|
52
159
|
|
|
53
160
|
export function issuingControlsToJSON(
|
|
@@ -7,15 +7,37 @@ 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
|
+
AllowedScheduleError,
|
|
12
|
+
AllowedScheduleError$inboundSchema,
|
|
13
|
+
AllowedScheduleError$Outbound,
|
|
14
|
+
AllowedScheduleError$outboundSchema,
|
|
15
|
+
} from "./allowedscheduleerror.js";
|
|
10
16
|
import {
|
|
11
17
|
IssuingVelocityLimitError,
|
|
12
18
|
IssuingVelocityLimitError$inboundSchema,
|
|
13
19
|
IssuingVelocityLimitError$Outbound,
|
|
14
20
|
IssuingVelocityLimitError$outboundSchema,
|
|
15
21
|
} from "./issuingvelocitylimiterror.js";
|
|
22
|
+
import {
|
|
23
|
+
MerchantCategoryRestrictionsError,
|
|
24
|
+
MerchantCategoryRestrictionsError$inboundSchema,
|
|
25
|
+
MerchantCategoryRestrictionsError$Outbound,
|
|
26
|
+
MerchantCategoryRestrictionsError$outboundSchema,
|
|
27
|
+
} from "./merchantcategoryrestrictionserror.js";
|
|
28
|
+
import {
|
|
29
|
+
MerchantRestrictionsError,
|
|
30
|
+
MerchantRestrictionsError$inboundSchema,
|
|
31
|
+
MerchantRestrictionsError$Outbound,
|
|
32
|
+
MerchantRestrictionsError$outboundSchema,
|
|
33
|
+
} from "./merchantrestrictionserror.js";
|
|
16
34
|
|
|
17
35
|
export type IssuingControlsError = {
|
|
18
36
|
velocityLimits?: { [k: string]: IssuingVelocityLimitError } | undefined;
|
|
37
|
+
merchantCategoryRestrictions?: MerchantCategoryRestrictionsError | undefined;
|
|
38
|
+
merchantRestrictions?: MerchantRestrictionsError | undefined;
|
|
39
|
+
allowedSchedule?: AllowedScheduleError | undefined;
|
|
40
|
+
expiresOn?: string | undefined;
|
|
19
41
|
};
|
|
20
42
|
|
|
21
43
|
/** @internal */
|
|
@@ -27,12 +49,24 @@ export const IssuingControlsError$inboundSchema: z.ZodType<
|
|
|
27
49
|
velocityLimits: types.optional(
|
|
28
50
|
z.record(IssuingVelocityLimitError$inboundSchema),
|
|
29
51
|
),
|
|
52
|
+
merchantCategoryRestrictions: types.optional(
|
|
53
|
+
MerchantCategoryRestrictionsError$inboundSchema,
|
|
54
|
+
),
|
|
55
|
+
merchantRestrictions: types.optional(MerchantRestrictionsError$inboundSchema),
|
|
56
|
+
allowedSchedule: types.optional(AllowedScheduleError$inboundSchema),
|
|
57
|
+
expiresOn: types.optional(types.string()),
|
|
30
58
|
});
|
|
31
59
|
/** @internal */
|
|
32
60
|
export type IssuingControlsError$Outbound = {
|
|
33
61
|
velocityLimits?:
|
|
34
62
|
| { [k: string]: IssuingVelocityLimitError$Outbound }
|
|
35
63
|
| undefined;
|
|
64
|
+
merchantCategoryRestrictions?:
|
|
65
|
+
| MerchantCategoryRestrictionsError$Outbound
|
|
66
|
+
| undefined;
|
|
67
|
+
merchantRestrictions?: MerchantRestrictionsError$Outbound | undefined;
|
|
68
|
+
allowedSchedule?: AllowedScheduleError$Outbound | undefined;
|
|
69
|
+
expiresOn?: string | undefined;
|
|
36
70
|
};
|
|
37
71
|
|
|
38
72
|
/** @internal */
|
|
@@ -42,6 +76,11 @@ export const IssuingControlsError$outboundSchema: z.ZodType<
|
|
|
42
76
|
IssuingControlsError
|
|
43
77
|
> = z.object({
|
|
44
78
|
velocityLimits: z.record(IssuingVelocityLimitError$outboundSchema).optional(),
|
|
79
|
+
merchantCategoryRestrictions: MerchantCategoryRestrictionsError$outboundSchema
|
|
80
|
+
.optional(),
|
|
81
|
+
merchantRestrictions: MerchantRestrictionsError$outboundSchema.optional(),
|
|
82
|
+
allowedSchedule: AllowedScheduleError$outboundSchema.optional(),
|
|
83
|
+
expiresOn: z.string().optional(),
|
|
45
84
|
});
|
|
46
85
|
|
|
47
86
|
export function issuingControlsErrorToJSON(
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Whether the listed items are the only ones allowed (`allow`) or the ones to block (`block`).
|
|
11
|
+
*/
|
|
12
|
+
export const IssuingControlsRestrictionMode = {
|
|
13
|
+
Allow: "allow",
|
|
14
|
+
Block: "block",
|
|
15
|
+
} as const;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the listed items are the only ones allowed (`allow`) or the ones to block (`block`).
|
|
18
|
+
*/
|
|
19
|
+
export type IssuingControlsRestrictionMode = OpenEnum<
|
|
20
|
+
typeof IssuingControlsRestrictionMode
|
|
21
|
+
>;
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const IssuingControlsRestrictionMode$inboundSchema: z.ZodType<
|
|
25
|
+
IssuingControlsRestrictionMode,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = openEnums.inboundSchema(IssuingControlsRestrictionMode);
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const IssuingControlsRestrictionMode$outboundSchema: z.ZodType<
|
|
31
|
+
string,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
IssuingControlsRestrictionMode
|
|
34
|
+
> = openEnums.outboundSchema(IssuingControlsRestrictionMode);
|
|
@@ -3,24 +3,32 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
-
import
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
|
-
* Specifies the time frame for
|
|
10
|
+
* Specifies the time frame for a velocity limit. `per-transaction` applies to each individual authorization and never resets. Time-based intervals (where supported) reset at midnight ET.
|
|
10
11
|
*/
|
|
11
12
|
export const IssuingIntervalLimit = {
|
|
12
13
|
PerTransaction: "per-transaction",
|
|
14
|
+
Daily: "daily",
|
|
15
|
+
Weekly: "weekly",
|
|
16
|
+
Monthly: "monthly",
|
|
13
17
|
} as const;
|
|
14
18
|
/**
|
|
15
|
-
* Specifies the time frame for
|
|
19
|
+
* Specifies the time frame for a velocity limit. `per-transaction` applies to each individual authorization and never resets. Time-based intervals (where supported) reset at midnight ET.
|
|
16
20
|
*/
|
|
17
|
-
export type IssuingIntervalLimit =
|
|
21
|
+
export type IssuingIntervalLimit = OpenEnum<typeof IssuingIntervalLimit>;
|
|
18
22
|
|
|
19
23
|
/** @internal */
|
|
20
|
-
export const IssuingIntervalLimit$inboundSchema: z.
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
export const IssuingIntervalLimit$inboundSchema: z.ZodType<
|
|
25
|
+
IssuingIntervalLimit,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = openEnums.inboundSchema(IssuingIntervalLimit);
|
|
23
29
|
/** @internal */
|
|
24
|
-
export const IssuingIntervalLimit$outboundSchema: z.
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
export const IssuingIntervalLimit$outboundSchema: z.ZodType<
|
|
31
|
+
string,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
IssuingIntervalLimit
|
|
34
|
+
> = openEnums.outboundSchema(IssuingIntervalLimit);
|
|
@@ -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 * as openEnums from "../../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Predefined merchant category groups.
|
|
11
|
+
*/
|
|
12
|
+
export const IssuingMerchantCategory = {
|
|
13
|
+
Advertising: "advertising",
|
|
14
|
+
Airlines: "airlines",
|
|
15
|
+
AlcoholAndBars: "alcohol-and-bars",
|
|
16
|
+
CarRental: "car-rental",
|
|
17
|
+
Education: "education",
|
|
18
|
+
Electronics: "electronics",
|
|
19
|
+
FuelAndGas: "fuel-and-gas",
|
|
20
|
+
Gambling: "gambling",
|
|
21
|
+
Groceries: "groceries",
|
|
22
|
+
GroundTransportation: "ground-transportation",
|
|
23
|
+
HardwareAndHome: "hardware-and-home",
|
|
24
|
+
Healthcare: "healthcare",
|
|
25
|
+
LiveEntertainment: "live-entertainment",
|
|
26
|
+
Lodging: "lodging",
|
|
27
|
+
Movies: "movies",
|
|
28
|
+
OfficeSupplies: "office-supplies",
|
|
29
|
+
Parking: "parking",
|
|
30
|
+
PersonalCare: "personal-care",
|
|
31
|
+
ProfessionalServices: "professional-services",
|
|
32
|
+
RestaurantsAndDining: "restaurants-and-dining",
|
|
33
|
+
RetailGeneral: "retail-general",
|
|
34
|
+
RideshareAndTaxis: "rideshare-and-taxis",
|
|
35
|
+
SoftwareAndSaas: "software-and-saas",
|
|
36
|
+
SportsAndRecreation: "sports-and-recreation",
|
|
37
|
+
Subscriptions: "subscriptions",
|
|
38
|
+
TravelAgencies: "travel-agencies",
|
|
39
|
+
} as const;
|
|
40
|
+
/**
|
|
41
|
+
* Predefined merchant category groups.
|
|
42
|
+
*/
|
|
43
|
+
export type IssuingMerchantCategory = OpenEnum<typeof IssuingMerchantCategory>;
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const IssuingMerchantCategory$inboundSchema: z.ZodType<
|
|
47
|
+
IssuingMerchantCategory,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
unknown
|
|
50
|
+
> = openEnums.inboundSchema(IssuingMerchantCategory);
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const IssuingMerchantCategory$outboundSchema: z.ZodType<
|
|
53
|
+
string,
|
|
54
|
+
z.ZodTypeDef,
|
|
55
|
+
IssuingMerchantCategory
|
|
56
|
+
> = openEnums.outboundSchema(IssuingMerchantCategory);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const IssuingScheduleDay = {
|
|
9
|
+
Monday: "monday",
|
|
10
|
+
Tuesday: "tuesday",
|
|
11
|
+
Wednesday: "wednesday",
|
|
12
|
+
Thursday: "thursday",
|
|
13
|
+
Friday: "friday",
|
|
14
|
+
Saturday: "saturday",
|
|
15
|
+
Sunday: "sunday",
|
|
16
|
+
} as const;
|
|
17
|
+
export type IssuingScheduleDay = ClosedEnum<typeof IssuingScheduleDay>;
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const IssuingScheduleDay$inboundSchema: z.ZodNativeEnum<
|
|
21
|
+
typeof IssuingScheduleDay
|
|
22
|
+
> = z.nativeEnum(IssuingScheduleDay);
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const IssuingScheduleDay$outboundSchema: z.ZodNativeEnum<
|
|
25
|
+
typeof IssuingScheduleDay
|
|
26
|
+
> = IssuingScheduleDay$inboundSchema;
|