@moovio/sdk 26.7.0 → 26.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +107 -83
- package/bin/mcp-server.js +1121 -380
- package/bin/mcp-server.js.map +127 -101
- package/funcs/cardIssuingGetFull.d.ts +1 -1
- package/funcs/cardIssuingGetFull.js +1 -1
- package/funcs/cardIssuingListMerchantCategories.d.ts +19 -0
- package/funcs/cardIssuingListMerchantCategories.d.ts.map +1 -0
- package/funcs/cardIssuingListMerchantCategories.js +109 -0
- package/funcs/cardIssuingListMerchantCategories.js.map +1 -0
- package/funcs/imagesUpload.d.ts +1 -1
- package/funcs/imagesUpload.js +1 -1
- package/funcs/institutionsSearch.d.ts +1 -1
- package/funcs/institutionsSearch.js +1 -1
- package/funcs/issuingTransactionsList.js +1 -0
- package/funcs/issuingTransactionsList.js.map +1 -1
- package/funcs/transfersCreateCancellation.d.ts +3 -0
- package/funcs/transfersCreateCancellation.d.ts.map +1 -1
- package/funcs/transfersCreateCancellation.js +6 -1
- package/funcs/transfersCreateCancellation.js.map +1 -1
- package/funcs/transfersCreateReversal.d.ts +3 -0
- package/funcs/transfersCreateReversal.d.ts.map +1 -1
- package/funcs/transfersCreateReversal.js +3 -0
- package/funcs/transfersCreateReversal.js.map +1 -1
- package/funcs/transfersList.js +2 -0
- package/funcs/transfersList.js.map +1 -1
- package/funcs/transfersListCancellations.js +1 -1
- package/funcs/transfersListCancellations.js.map +1 -1
- package/funcs/transfersListRefunds.js +1 -1
- package/funcs/transfersListRefunds.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/encodings.d.ts +10 -9
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +29 -13
- package/lib/encodings.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +8 -6
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/avatarsGet.js +1 -1
- package/mcp-server/tools/cardIssuingGetFull.js +1 -1
- package/mcp-server/tools/cardIssuingGetFull.js.map +1 -1
- package/mcp-server/tools/cardIssuingListMerchantCategories.d.ts +3 -0
- package/mcp-server/tools/cardIssuingListMerchantCategories.d.ts.map +1 -0
- package/mcp-server/tools/cardIssuingListMerchantCategories.js +29 -0
- package/mcp-server/tools/cardIssuingListMerchantCategories.js.map +1 -0
- package/mcp-server/tools/enrichedAddressGet.js +1 -1
- package/mcp-server/tools/enrichedProfileGet.js +1 -1
- package/mcp-server/tools/imagesUpload.js +1 -1
- package/mcp-server/tools/imagesUpload.js.map +1 -1
- package/mcp-server/tools/institutionsSearch.js +2 -2
- package/mcp-server/tools/transfersCreateCancellation.d.ts.map +1 -1
- package/mcp-server/tools/transfersCreateCancellation.js +3 -0
- package/mcp-server/tools/transfersCreateCancellation.js.map +1 -1
- package/mcp-server/tools/transfersCreateReversal.d.ts.map +1 -1
- package/mcp-server/tools/transfersCreateReversal.js +4 -1
- package/mcp-server/tools/transfersCreateReversal.js.map +1 -1
- package/mcp-server/tools/transfersListCancellations.js +1 -1
- package/models/components/adjustmentfees.d.ts +30 -0
- package/models/components/adjustmentfees.d.ts.map +1 -0
- package/models/components/adjustmentfees.js +62 -0
- package/models/components/adjustmentfees.js.map +1 -0
- package/models/components/allowedscheduleerror.d.ts +24 -0
- package/models/components/allowedscheduleerror.d.ts.map +1 -0
- package/models/components/allowedscheduleerror.js +62 -0
- package/models/components/allowedscheduleerror.js.map +1 -0
- package/models/components/amountdecimalrange.d.ts +1 -3
- package/models/components/amountdecimalrange.d.ts.map +1 -1
- package/models/components/amountdecimalrange.js.map +1 -1
- package/models/components/amountdecimalrangeupdate.d.ts +1 -3
- package/models/components/amountdecimalrangeupdate.d.ts.map +1 -1
- package/models/components/amountdecimalrangeupdate.js.map +1 -1
- package/models/components/applicationscope.d.ts +1 -1
- package/models/components/applicationscope.js +1 -1
- package/models/components/applicationscope.js.map +1 -1
- package/models/components/billingadjustment.d.ts +34 -0
- package/models/components/billingadjustment.d.ts.map +1 -0
- package/models/components/billingadjustment.js +64 -0
- package/models/components/billingadjustment.js.map +1 -0
- package/models/components/billingsummary.d.ts +15 -10
- package/models/components/billingsummary.d.ts.map +1 -1
- package/models/components/billingsummary.js +14 -11
- package/models/components/billingsummary.js.map +1 -1
- package/models/components/cancellation.d.ts +3 -0
- package/models/components/cancellation.d.ts.map +1 -1
- package/models/components/cancellation.js.map +1 -1
- package/models/components/createdtransfer.d.ts +14 -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/createfeeplanagreement.d.ts +16 -1
- package/models/components/createfeeplanagreement.d.ts.map +1 -1
- package/models/components/createfeeplanagreement.js +2 -0
- package/models/components/createfeeplanagreement.js.map +1 -1
- package/models/components/createpaymentlink.d.ts +3 -0
- package/models/components/createpaymentlink.d.ts.map +1 -1
- package/models/components/createpaymentlink.js.map +1 -1
- package/models/components/createrefund.d.ts +2 -2
- package/models/components/createreversal.d.ts +6 -1
- package/models/components/createreversal.d.ts.map +1 -1
- package/models/components/createreversal.js.map +1 -1
- package/models/components/createtransfer.d.ts +1 -1
- package/models/components/facilitatorfee.d.ts +2 -2
- package/models/components/feepaidby.d.ts +0 -6
- package/models/components/feepaidby.d.ts.map +1 -1
- package/models/components/feepaidby.js +0 -3
- package/models/components/feepaidby.js.map +1 -1
- package/models/components/feeplanagreement.d.ts +10 -0
- package/models/components/feeplanagreement.d.ts.map +1 -1
- package/models/components/feeplanagreement.js +5 -0
- package/models/components/feeplanagreement.js.map +1 -1
- package/models/components/fullissuedcard.d.ts +7 -3
- package/models/components/fullissuedcard.d.ts.map +1 -1
- package/models/components/fullissuedcard.js +3 -3
- package/models/components/fullissuedcard.js.map +1 -1
- package/models/components/index.d.ts +23 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +23 -0
- package/models/components/index.js.map +1 -1
- package/models/components/issuedcard.d.ts +7 -3
- package/models/components/issuedcard.d.ts.map +1 -1
- package/models/components/issuedcard.js +3 -3
- package/models/components/issuedcard.js.map +1 -1
- package/models/components/issuedcardstate.d.ts +3 -0
- package/models/components/issuedcardstate.d.ts.map +1 -1
- package/models/components/issuedcardstate.js +2 -0
- package/models/components/issuedcardstate.js.map +1 -1
- package/models/components/issuedcontrols.d.ts +73 -0
- package/models/components/issuedcontrols.d.ts.map +1 -0
- package/models/components/issuedcontrols.js +92 -0
- package/models/components/issuedcontrols.js.map +1 -0
- package/models/components/issuedvelocitylimit.d.ts +59 -0
- package/models/components/issuedvelocitylimit.d.ts.map +1 -0
- package/models/components/issuedvelocitylimit.js +74 -0
- package/models/components/issuedvelocitylimit.js.map +1 -0
- package/models/components/issuingcontrols.d.ts +47 -0
- package/models/components/issuingcontrols.d.ts.map +1 -1
- package/models/components/issuingcontrols.js +33 -1
- package/models/components/issuingcontrols.js.map +1 -1
- package/models/components/issuingcontrolserror.d.ts +11 -0
- package/models/components/issuingcontrolserror.d.ts.map +1 -1
- package/models/components/issuingcontrolserror.js +12 -0
- package/models/components/issuingcontrolserror.js.map +1 -1
- package/models/components/issuingcontrolsrestrictionmode.d.ts +18 -0
- package/models/components/issuingcontrolsrestrictionmode.d.ts.map +1 -0
- package/models/components/issuingcontrolsrestrictionmode.js +52 -0
- package/models/components/issuingcontrolsrestrictionmode.js.map +1 -0
- package/models/components/issuingintervallimit.d.ts +7 -4
- package/models/components/issuingintervallimit.d.ts.map +1 -1
- package/models/components/issuingintervallimit.js +6 -3
- package/models/components/issuingintervallimit.js.map +1 -1
- package/models/components/issuingmerchantcategory.d.ts +42 -0
- package/models/components/issuingmerchantcategory.d.ts.map +1 -0
- package/models/components/issuingmerchantcategory.js +76 -0
- package/models/components/issuingmerchantcategory.js.map +1 -0
- package/models/components/issuingscheduleday.d.ts +17 -0
- package/models/components/issuingscheduleday.d.ts.map +1 -0
- package/models/components/issuingscheduleday.js +54 -0
- package/models/components/issuingscheduleday.js.map +1 -0
- package/models/components/issuingvelocitylimit.d.ts +7 -2
- package/models/components/issuingvelocitylimit.d.ts.map +1 -1
- package/models/components/issuingvelocitylimit.js +4 -2
- package/models/components/issuingvelocitylimit.js.map +1 -1
- package/models/components/issuingvelocitylimiterror.d.ts +2 -0
- package/models/components/issuingvelocitylimiterror.d.ts.map +1 -1
- package/models/components/issuingvelocitylimiterror.js +2 -0
- package/models/components/issuingvelocitylimiterror.js.map +1 -1
- package/models/components/merchantcategories.d.ts +21 -0
- package/models/components/merchantcategories.d.ts.map +1 -0
- package/models/components/merchantcategories.js +59 -0
- package/models/components/merchantcategories.js.map +1 -0
- package/models/components/merchantcategory.d.ts +32 -0
- package/models/components/merchantcategory.d.ts.map +1 -0
- package/models/components/merchantcategory.js +62 -0
- package/models/components/merchantcategory.js.map +1 -0
- package/models/components/merchantcategoryrestrictions.d.ts +41 -0
- package/models/components/merchantcategoryrestrictions.d.ts.map +1 -0
- package/models/components/merchantcategoryrestrictions.js +68 -0
- package/models/components/merchantcategoryrestrictions.js.map +1 -0
- package/models/components/merchantcategoryrestrictionserror.d.ts +36 -0
- package/models/components/merchantcategoryrestrictionserror.d.ts.map +1 -0
- package/models/components/merchantcategoryrestrictionserror.js +66 -0
- package/models/components/merchantcategoryrestrictionserror.js.map +1 -0
- package/models/components/merchantentry.d.ts +33 -0
- package/models/components/merchantentry.d.ts.map +1 -0
- package/models/components/merchantentry.js +63 -0
- package/models/components/merchantentry.js.map +1 -0
- package/models/components/merchantentryerror.d.ts +19 -0
- package/models/components/merchantentryerror.d.ts.map +1 -0
- package/models/components/merchantentryerror.js +61 -0
- package/models/components/merchantentryerror.js.map +1 -0
- package/models/components/merchantrestrictions.d.ts +30 -0
- package/models/components/merchantrestrictions.d.ts.map +1 -0
- package/models/components/merchantrestrictions.js +62 -0
- package/models/components/merchantrestrictions.js.map +1 -0
- package/models/components/merchantrestrictionserror.d.ts +24 -0
- package/models/components/merchantrestrictionserror.d.ts.map +1 -0
- package/models/components/merchantrestrictionserror.js +62 -0
- package/models/components/merchantrestrictionserror.js.map +1 -0
- package/models/components/partnerpricingagreement.d.ts +12 -2
- package/models/components/partnerpricingagreement.d.ts.map +1 -1
- package/models/components/partnerpricingagreement.js +5 -0
- package/models/components/partnerpricingagreement.js.map +1 -1
- package/models/components/paymentlink.d.ts +4 -3
- package/models/components/paymentlink.d.ts.map +1 -1
- package/models/components/paymentlink.js.map +1 -1
- package/models/components/paymentlinkcustomamountpaymentdetails.d.ts +1 -3
- package/models/components/paymentlinkcustomamountpaymentdetails.d.ts.map +1 -1
- package/models/components/paymentlinkcustomamountpaymentdetails.js.map +1 -1
- package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts +1 -3
- package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts.map +1 -1
- package/models/components/paymentlinkcustomamountpaymentdetailsupdate.js.map +1 -1
- package/models/components/paymentlinkpayoutdetails.d.ts +7 -8
- package/models/components/paymentlinkpayoutdetails.d.ts.map +1 -1
- package/models/components/paymentlinkpayoutdetails.js.map +1 -1
- package/models/components/paymentlinkpayoutdetailsupdate.d.ts +7 -8
- package/models/components/paymentlinkpayoutdetailsupdate.d.ts.map +1 -1
- package/models/components/paymentlinkpayoutdetailsupdate.js.map +1 -1
- package/models/components/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/pushoptions.d.ts +4 -6
- package/models/components/pushoptions.d.ts.map +1 -1
- package/models/components/pushoptions.js.map +1 -1
- package/models/components/pushoptionsupdate.d.ts +4 -6
- package/models/components/pushoptionsupdate.d.ts.map +1 -1
- package/models/components/pushoptionsupdate.js.map +1 -1
- package/models/components/requestcard.d.ts +3 -0
- package/models/components/requestcard.d.ts.map +1 -1
- package/models/components/requestcard.js.map +1 -1
- package/models/components/requirementid.d.ts +14 -0
- package/models/components/requirementid.d.ts.map +1 -1
- package/models/components/requirementid.js +14 -0
- package/models/components/requirementid.js.map +1 -1
- package/models/components/reversalamountdetails.d.ts +5 -1
- package/models/components/reversalamountdetails.d.ts.map +1 -1
- package/models/components/reversalamountdetails.js.map +1 -1
- package/models/components/reversedwithcancellation.d.ts +3 -0
- package/models/components/reversedwithcancellation.d.ts.map +1 -1
- package/models/components/reversedwithcancellation.js.map +1 -1
- package/models/components/schedulewindow.d.ts +34 -0
- package/models/components/schedulewindow.d.ts.map +1 -0
- package/models/components/schedulewindow.js +64 -0
- package/models/components/schedulewindow.js.map +1 -0
- package/models/components/schedulewindowerror.d.ts +21 -0
- package/models/components/schedulewindowerror.d.ts.map +1 -0
- package/models/components/schedulewindowerror.js +63 -0
- package/models/components/schedulewindowerror.js.map +1 -0
- package/models/components/sendfunds.d.ts +3 -0
- package/models/components/sendfunds.d.ts.map +1 -1
- package/models/components/sendfunds.js +3 -0
- package/models/components/sendfunds.js.map +1 -1
- package/models/components/sendfundserror.d.ts +3 -0
- package/models/components/sendfundserror.d.ts.map +1 -1
- package/models/components/sendfundserror.js +3 -0
- package/models/components/sendfundserror.js.map +1 -1
- package/models/components/sendfundswire.d.ts +18 -0
- package/models/components/sendfundswire.d.ts.map +1 -0
- package/models/components/sendfundswire.js +60 -0
- package/models/components/sendfundswire.js.map +1 -0
- package/models/components/sendfundswireerror.d.ts +18 -0
- package/models/components/sendfundswireerror.d.ts.map +1 -0
- package/models/components/sendfundswireerror.js +60 -0
- package/models/components/sendfundswireerror.js.map +1 -0
- package/models/components/statement.d.ts +6 -0
- package/models/components/statement.d.ts.map +1 -1
- package/models/components/statement.js +3 -0
- package/models/components/statement.js.map +1 -1
- package/models/components/sweepconfig.d.ts +2 -2
- package/models/components/sweepconfigpaymentmethod.d.ts +1 -1
- package/models/components/transfer.d.ts +14 -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 +1 -1
- package/models/components/transferpaymentmethodswallet.d.ts +1 -0
- package/models/components/transferpaymentmethodswallet.d.ts.map +1 -1
- package/models/components/transferpaymentmethodswallet.js.map +1 -1
- package/models/components/updateissuedcard.d.ts +8 -0
- package/models/components/updateissuedcard.d.ts.map +1 -1
- package/models/components/updateissuedcard.js +3 -0
- package/models/components/updateissuedcard.js.map +1 -1
- package/models/components/updateissuedcardstate.d.ts +6 -0
- package/models/components/updateissuedcardstate.d.ts.map +1 -1
- package/models/components/updateissuedcardstate.js +4 -0
- package/models/components/updateissuedcardstate.js.map +1 -1
- package/models/components/updateissuingcontrols.d.ts +130 -0
- package/models/components/updateissuingcontrols.d.ts.map +1 -0
- package/models/components/updateissuingcontrols.js +130 -0
- package/models/components/updateissuingcontrols.js.map +1 -0
- package/models/components/updateissuingcontrolserror.d.ts +33 -0
- package/models/components/updateissuingcontrolserror.d.ts.map +1 -0
- package/models/components/updateissuingcontrolserror.js +72 -0
- package/models/components/updateissuingcontrolserror.js.map +1 -0
- package/models/components/updatepaymentlink.d.ts +3 -0
- package/models/components/updatepaymentlink.d.ts.map +1 -1
- package/models/components/updatepaymentlink.js.map +1 -1
- package/models/components/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/transfer.d.ts +25 -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/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listaccounts.d.ts +3 -0
- package/models/operations/listaccounts.d.ts.map +1 -1
- package/models/operations/listaccounts.js.map +1 -1
- package/models/operations/listconnectedaccountsforaccount.d.ts +3 -0
- package/models/operations/listconnectedaccountsforaccount.d.ts.map +1 -1
- package/models/operations/listconnectedaccountsforaccount.js.map +1 -1
- package/models/operations/listdisputes.d.ts +3 -0
- package/models/operations/listdisputes.d.ts.map +1 -1
- package/models/operations/listdisputes.js.map +1 -1
- package/models/operations/listfeeplanagreements.d.ts +3 -0
- package/models/operations/listfeeplanagreements.d.ts.map +1 -1
- package/models/operations/listfeeplanagreements.js.map +1 -1
- package/models/operations/listfeerevenue.d.ts +3 -0
- package/models/operations/listfeerevenue.d.ts.map +1 -1
- package/models/operations/listfeerevenue.js.map +1 -1
- package/models/operations/listinvoices.d.ts +3 -0
- package/models/operations/listinvoices.d.ts.map +1 -1
- package/models/operations/listinvoices.js.map +1 -1
- package/models/operations/listissuedcardauthorizationevents.d.ts +3 -0
- package/models/operations/listissuedcardauthorizationevents.d.ts.map +1 -1
- package/models/operations/listissuedcardauthorizationevents.js.map +1 -1
- package/models/operations/listissuedcardauthorizations.d.ts +3 -0
- package/models/operations/listissuedcardauthorizations.d.ts.map +1 -1
- package/models/operations/listissuedcardauthorizations.js.map +1 -1
- package/models/operations/listissuedcards.d.ts +3 -0
- package/models/operations/listissuedcards.d.ts.map +1 -1
- package/models/operations/listissuedcards.js.map +1 -1
- package/models/operations/listissuedcardtransactions.d.ts +8 -0
- package/models/operations/listissuedcardtransactions.d.ts.map +1 -1
- package/models/operations/listissuedcardtransactions.js +2 -0
- package/models/operations/listissuedcardtransactions.js.map +1 -1
- package/models/operations/listissuingmerchantcategories.d.ts +24 -0
- package/models/operations/listissuingmerchantcategories.d.ts.map +1 -0
- package/models/operations/listissuingmerchantcategories.js +72 -0
- package/models/operations/listissuingmerchantcategories.js.map +1 -0
- package/models/operations/listpartnerpricingagreements.d.ts +3 -0
- package/models/operations/listpartnerpricingagreements.d.ts.map +1 -1
- package/models/operations/listpartnerpricingagreements.js.map +1 -1
- package/models/operations/listpaymentlinks.d.ts +3 -0
- package/models/operations/listpaymentlinks.d.ts.map +1 -1
- package/models/operations/listpaymentlinks.js.map +1 -1
- package/models/operations/listproducts.d.ts +3 -0
- package/models/operations/listproducts.d.ts.map +1 -1
- package/models/operations/listproducts.js.map +1 -1
- package/models/operations/listresidualfees.d.ts +3 -0
- package/models/operations/listresidualfees.d.ts.map +1 -1
- package/models/operations/listresidualfees.js.map +1 -1
- package/models/operations/listresiduals.d.ts +3 -0
- package/models/operations/listresiduals.d.ts.map +1 -1
- package/models/operations/listresiduals.js.map +1 -1
- package/models/operations/listschedules.d.ts +3 -0
- package/models/operations/listschedules.d.ts.map +1 -1
- package/models/operations/listschedules.js.map +1 -1
- package/models/operations/liststatements.d.ts +3 -0
- package/models/operations/liststatements.d.ts.map +1 -1
- package/models/operations/liststatements.js.map +1 -1
- package/models/operations/listsweeps.d.ts +3 -0
- package/models/operations/listsweeps.d.ts.map +1 -1
- package/models/operations/listsweeps.js.map +1 -1
- package/models/operations/listtickets.d.ts +3 -0
- package/models/operations/listtickets.d.ts.map +1 -1
- package/models/operations/listtickets.js.map +1 -1
- package/models/operations/listtransfers.d.ts +13 -0
- package/models/operations/listtransfers.d.ts.map +1 -1
- package/models/operations/listtransfers.js +4 -0
- package/models/operations/listtransfers.js.map +1 -1
- package/models/operations/listwallets.d.ts +3 -0
- package/models/operations/listwallets.d.ts.map +1 -1
- package/models/operations/listwallets.js.map +1 -1
- package/models/operations/listwallettransactions.d.ts +3 -0
- package/models/operations/listwallettransactions.d.ts.map +1 -1
- package/models/operations/listwallettransactions.js.map +1 -1
- package/models/operations/retrievefees.d.ts +3 -0
- package/models/operations/retrievefees.d.ts.map +1 -1
- package/models/operations/retrievefees.js.map +1 -1
- package/package.json +1 -1
- package/sdk/cardissuing.d.ts +10 -1
- package/sdk/cardissuing.d.ts.map +1 -1
- package/sdk/cardissuing.js +13 -1
- package/sdk/cardissuing.js.map +1 -1
- package/sdk/images.d.ts +1 -1
- package/sdk/images.js +1 -1
- package/sdk/institutions.d.ts +1 -1
- package/sdk/institutions.js +1 -1
- package/sdk/sdk.d.ts +2 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -3
- package/sdk/sdk.js.map +1 -1
- package/sdk/transfers.d.ts +6 -0
- package/sdk/transfers.d.ts.map +1 -1
- package/sdk/transfers.js +6 -0
- package/sdk/transfers.js.map +1 -1
- package/src/funcs/cardIssuingGetFull.ts +1 -1
- package/src/funcs/cardIssuingListMerchantCategories.ts +155 -0
- package/src/funcs/imagesUpload.ts +1 -1
- package/src/funcs/institutionsSearch.ts +1 -1
- package/src/funcs/issuingTransactionsList.ts +1 -0
- package/src/funcs/transfersCreateCancellation.ts +6 -1
- package/src/funcs/transfersCreateReversal.ts +3 -0
- package/src/funcs/transfersList.ts +2 -0
- package/src/funcs/transfersListCancellations.ts +1 -1
- package/src/funcs/transfersListRefunds.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +58 -23
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +8 -6
- package/src/mcp-server/tools/avatarsGet.ts +1 -1
- package/src/mcp-server/tools/cardIssuingGetFull.ts +1 -1
- package/src/mcp-server/tools/cardIssuingListMerchantCategories.ts +34 -0
- package/src/mcp-server/tools/enrichedAddressGet.ts +1 -1
- package/src/mcp-server/tools/enrichedProfileGet.ts +1 -1
- package/src/mcp-server/tools/imagesUpload.ts +1 -1
- package/src/mcp-server/tools/institutionsSearch.ts +2 -2
- package/src/mcp-server/tools/transfersCreateCancellation.ts +3 -0
- package/src/mcp-server/tools/transfersCreateReversal.ts +4 -1
- package/src/mcp-server/tools/transfersListCancellations.ts +1 -1
- package/src/models/components/adjustmentfees.ts +72 -0
- package/src/models/components/allowedscheduleerror.ts +62 -0
- package/src/models/components/amountdecimalrange.ts +1 -3
- package/src/models/components/amountdecimalrangeupdate.ts +1 -3
- package/src/models/components/applicationscope.ts +1 -1
- package/src/models/components/billingadjustment.ts +78 -0
- package/src/models/components/billingsummary.ts +35 -19
- package/src/models/components/cancellation.ts +3 -0
- package/src/models/components/createdtransfer.ts +21 -0
- package/src/models/components/createfeeplanagreement.ts +18 -1
- package/src/models/components/createpaymentlink.ts +3 -0
- package/src/models/components/createrefund.ts +2 -2
- package/src/models/components/createreversal.ts +6 -1
- package/src/models/components/createtransfer.ts +1 -1
- package/src/models/components/facilitatorfee.ts +2 -2
- package/src/models/components/feepaidby.ts +0 -6
- package/src/models/components/feeplanagreement.ts +15 -0
- package/src/models/components/fullissuedcard.ts +13 -9
- package/src/models/components/index.ts +23 -0
- package/src/models/components/issuedcard.ts +13 -9
- package/src/models/components/issuedcardstate.ts +3 -0
- package/src/models/components/issuedcontrols.ts +177 -0
- package/src/models/components/issuedvelocitylimit.ts +112 -0
- package/src/models/components/issuingcontrols.ts +107 -0
- package/src/models/components/issuingcontrolserror.ts +39 -0
- package/src/models/components/issuingcontrolsrestrictionmode.ts +34 -0
- package/src/models/components/issuingintervallimit.ts +16 -8
- package/src/models/components/issuingmerchantcategory.ts +56 -0
- package/src/models/components/issuingscheduleday.ts +26 -0
- package/src/models/components/issuingvelocitylimit.ts +11 -4
- package/src/models/components/issuingvelocitylimiterror.ts +4 -0
- package/src/models/components/merchantcategories.ts +60 -0
- package/src/models/components/merchantcategory.ts +73 -0
- package/src/models/components/merchantcategoryrestrictions.ts +97 -0
- package/src/models/components/merchantcategoryrestrictionserror.ts +72 -0
- package/src/models/components/merchantentry.ts +68 -0
- package/src/models/components/merchantentryerror.ts +56 -0
- package/src/models/components/merchantrestrictions.ts +75 -0
- package/src/models/components/merchantrestrictionserror.ts +62 -0
- package/src/models/components/partnerpricingagreement.ts +17 -2
- package/src/models/components/paymentlink.ts +4 -3
- package/src/models/components/paymentlinkcustomamountpaymentdetails.ts +1 -3
- package/src/models/components/paymentlinkcustomamountpaymentdetailsupdate.ts +1 -3
- package/src/models/components/paymentlinkpayoutdetails.ts +7 -8
- package/src/models/components/paymentlinkpayoutdetailsupdate.ts +7 -8
- package/src/models/components/paymentmethodswallet.ts +1 -0
- package/src/models/components/pushoptions.ts +4 -6
- package/src/models/components/pushoptionsupdate.ts +4 -6
- package/src/models/components/requestcard.ts +3 -0
- package/src/models/components/requirementid.ts +28 -0
- package/src/models/components/reversalamountdetails.ts +5 -1
- package/src/models/components/reversedwithcancellation.ts +3 -0
- package/src/models/components/schedulewindow.ts +73 -0
- package/src/models/components/schedulewindowerror.ts +60 -0
- package/src/models/components/sendfunds.ts +10 -0
- package/src/models/components/sendfundserror.ts +10 -0
- package/src/models/components/sendfundswire.ts +54 -0
- package/src/models/components/sendfundswireerror.ts +58 -0
- package/src/models/components/statement.ts +13 -0
- package/src/models/components/sweepconfig.ts +2 -2
- package/src/models/components/sweepconfigpaymentmethod.ts +1 -1
- package/src/models/components/transfer.ts +21 -0
- package/src/models/components/transfercapture.ts +63 -0
- package/src/models/components/transferfeepaidby.ts +1 -1
- package/src/models/components/transferpaymentmethodswallet.ts +1 -0
- package/src/models/components/updateissuedcard.ts +15 -0
- package/src/models/components/updateissuedcardstate.ts +6 -0
- package/src/models/components/updateissuingcontrols.ts +351 -0
- package/src/models/components/updateissuingcontrolserror.ts +101 -0
- package/src/models/components/updatepaymentlink.ts +3 -0
- package/src/models/components/wallet.ts +1 -0
- package/src/models/components/wallettype.ts +3 -0
- package/src/models/components/webhookdatatransferstatus.ts +3 -0
- package/src/models/errors/transfer.ts +28 -0
- package/src/models/errors/updateissuedcarderror.ts +6 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listaccounts.ts +3 -0
- package/src/models/operations/listconnectedaccountsforaccount.ts +3 -0
- package/src/models/operations/listdisputes.ts +3 -0
- package/src/models/operations/listfeeplanagreements.ts +3 -0
- package/src/models/operations/listfeerevenue.ts +3 -0
- package/src/models/operations/listinvoices.ts +3 -0
- package/src/models/operations/listissuedcardauthorizationevents.ts +3 -0
- package/src/models/operations/listissuedcardauthorizations.ts +3 -0
- package/src/models/operations/listissuedcards.ts +3 -0
- package/src/models/operations/listissuedcardtransactions.ts +10 -0
- package/src/models/operations/listissuingmerchantcategories.ts +70 -0
- package/src/models/operations/listpartnerpricingagreements.ts +3 -0
- package/src/models/operations/listpaymentlinks.ts +3 -0
- package/src/models/operations/listproducts.ts +3 -0
- package/src/models/operations/listresidualfees.ts +3 -0
- package/src/models/operations/listresiduals.ts +3 -0
- package/src/models/operations/listschedules.ts +3 -0
- package/src/models/operations/liststatements.ts +3 -0
- package/src/models/operations/listsweeps.ts +3 -0
- package/src/models/operations/listtickets.ts +3 -0
- package/src/models/operations/listtransfers.ts +17 -0
- package/src/models/operations/listwallets.ts +3 -0
- package/src/models/operations/listwallettransactions.ts +3 -0
- package/src/models/operations/retrievefees.ts +3 -0
- package/src/sdk/cardissuing.ts +19 -1
- package/src/sdk/images.ts +1 -1
- package/src/sdk/institutions.ts +1 -1
- package/src/sdk/sdk.ts +5 -5
- package/src/sdk/transfers.ts +6 -0
|
@@ -35,11 +35,11 @@ import {
|
|
|
35
35
|
IssuedCardState$outboundSchema,
|
|
36
36
|
} from "./issuedcardstate.js";
|
|
37
37
|
import {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
} from "./
|
|
38
|
+
IssuedControls,
|
|
39
|
+
IssuedControls$inboundSchema,
|
|
40
|
+
IssuedControls$Outbound,
|
|
41
|
+
IssuedControls$outboundSchema,
|
|
42
|
+
} from "./issuedcontrols.js";
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The full details of an issued card, including PAN and CVV.
|
|
@@ -81,6 +81,7 @@ export type FullIssuedCard = {
|
|
|
81
81
|
* @remarks
|
|
82
82
|
*
|
|
83
83
|
* - `active`: The card is operational and can approve authorizations.
|
|
84
|
+
* - `frozen`: The card is temporarily suspended and cannot approve authorizations. A frozen card can be reactivated by setting its state back to `active`.
|
|
84
85
|
* - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
|
|
85
86
|
*/
|
|
86
87
|
state: IssuedCardState;
|
|
@@ -88,7 +89,10 @@ export type FullIssuedCard = {
|
|
|
88
89
|
* Specifies the type of spend card to be issued. Presently supports virtual only, providing a digital number without a physical card.
|
|
89
90
|
*/
|
|
90
91
|
formFactor: IssuedCardFormFactor;
|
|
91
|
-
|
|
92
|
+
/**
|
|
93
|
+
* Spend controls applied to an issued card, including velocity runtime state.
|
|
94
|
+
*/
|
|
95
|
+
controls?: IssuedControls | undefined;
|
|
92
96
|
createdOn: Date;
|
|
93
97
|
updatedOn: Date;
|
|
94
98
|
/**
|
|
@@ -118,7 +122,7 @@ export const FullIssuedCard$inboundSchema: z.ZodType<
|
|
|
118
122
|
billingAddress: types.optional(Address$inboundSchema),
|
|
119
123
|
state: IssuedCardState$inboundSchema,
|
|
120
124
|
formFactor: IssuedCardFormFactor$inboundSchema,
|
|
121
|
-
controls: types.optional(
|
|
125
|
+
controls: types.optional(IssuedControls$inboundSchema),
|
|
122
126
|
createdOn: types.date(),
|
|
123
127
|
updatedOn: types.date(),
|
|
124
128
|
pan: types.string(),
|
|
@@ -137,7 +141,7 @@ export type FullIssuedCard$Outbound = {
|
|
|
137
141
|
billingAddress?: Address$Outbound | undefined;
|
|
138
142
|
state: string;
|
|
139
143
|
formFactor: string;
|
|
140
|
-
controls?:
|
|
144
|
+
controls?: IssuedControls$Outbound | undefined;
|
|
141
145
|
createdOn: string;
|
|
142
146
|
updatedOn: string;
|
|
143
147
|
pan: string;
|
|
@@ -161,7 +165,7 @@ export const FullIssuedCard$outboundSchema: z.ZodType<
|
|
|
161
165
|
billingAddress: Address$outboundSchema.optional(),
|
|
162
166
|
state: IssuedCardState$outboundSchema,
|
|
163
167
|
formFactor: IssuedCardFormFactor$outboundSchema,
|
|
164
|
-
controls:
|
|
168
|
+
controls: IssuedControls$outboundSchema.optional(),
|
|
165
169
|
createdOn: z.date().transform(v => v.toISOString()),
|
|
166
170
|
updatedOn: z.date().transform(v => v.toISOString()),
|
|
167
171
|
pan: z.string(),
|
|
@@ -35,6 +35,8 @@ export * from "./addresserror.js";
|
|
|
35
35
|
export * from "./addresssuggestion.js";
|
|
36
36
|
export * from "./addressupdate.js";
|
|
37
37
|
export * from "./adjustment.js";
|
|
38
|
+
export * from "./adjustmentfees.js";
|
|
39
|
+
export * from "./allowedscheduleerror.js";
|
|
38
40
|
export * from "./amount.js";
|
|
39
41
|
export * from "./amountdecimal.js";
|
|
40
42
|
export * from "./amountdecimalrange.js";
|
|
@@ -76,6 +78,7 @@ export * from "./bankaccountwaitfor.js";
|
|
|
76
78
|
export * from "./basicpaymentmethod.js";
|
|
77
79
|
export * from "./batchgettransfersrequest.js";
|
|
78
80
|
export * from "./billablefee.js";
|
|
81
|
+
export * from "./billingadjustment.js";
|
|
79
82
|
export * from "./billingcountandamount.js";
|
|
80
83
|
export * from "./billinginterchangeprogramfee.js";
|
|
81
84
|
export * from "./billingsummary.js";
|
|
@@ -321,11 +324,16 @@ export * from "./issuedcardeventtype.js";
|
|
|
321
324
|
export * from "./issuedcardformfactor.js";
|
|
322
325
|
export * from "./issuedcardstate.js";
|
|
323
326
|
export * from "./issuedcardtransaction.js";
|
|
327
|
+
export * from "./issuedcontrols.js";
|
|
328
|
+
export * from "./issuedvelocitylimit.js";
|
|
324
329
|
export * from "./issuingauthorizationstatus.js";
|
|
325
330
|
export * from "./issuingcontrols.js";
|
|
326
331
|
export * from "./issuingcontrolserror.js";
|
|
332
|
+
export * from "./issuingcontrolsrestrictionmode.js";
|
|
327
333
|
export * from "./issuingintervallimit.js";
|
|
334
|
+
export * from "./issuingmerchantcategory.js";
|
|
328
335
|
export * from "./issuingmerchantdata.js";
|
|
336
|
+
export * from "./issuingscheduleday.js";
|
|
329
337
|
export * from "./issuingvelocitylimit.js";
|
|
330
338
|
export * from "./issuingvelocitylimiterror.js";
|
|
331
339
|
export * from "./itemlistnextpage.js";
|
|
@@ -344,6 +352,14 @@ export * from "./linkgooglepay.js";
|
|
|
344
352
|
export * from "./listfeesfetchrequest.js";
|
|
345
353
|
export * from "./manualtermsofservice.js";
|
|
346
354
|
export * from "./manualtermsofserviceupdate.js";
|
|
355
|
+
export * from "./merchantcategories.js";
|
|
356
|
+
export * from "./merchantcategory.js";
|
|
357
|
+
export * from "./merchantcategoryrestrictions.js";
|
|
358
|
+
export * from "./merchantcategoryrestrictionserror.js";
|
|
359
|
+
export * from "./merchantentry.js";
|
|
360
|
+
export * from "./merchantentryerror.js";
|
|
361
|
+
export * from "./merchantrestrictions.js";
|
|
362
|
+
export * from "./merchantrestrictionserror.js";
|
|
347
363
|
export * from "./microdepositstatus.js";
|
|
348
364
|
export * from "./minimumcommitment.js";
|
|
349
365
|
export * from "./mode.js";
|
|
@@ -486,6 +502,8 @@ export * from "./scheduledtransferlineitems.js";
|
|
|
486
502
|
export * from "./schedulelistresponse.js";
|
|
487
503
|
export * from "./schedulepaymentmethod.js";
|
|
488
504
|
export * from "./scheduleresponse.js";
|
|
505
|
+
export * from "./schedulewindow.js";
|
|
506
|
+
export * from "./schedulewindowerror.js";
|
|
489
507
|
export * from "./seccode.js";
|
|
490
508
|
export * from "./security.js";
|
|
491
509
|
export * from "./sendfunds.js";
|
|
@@ -498,6 +516,8 @@ export * from "./sendfundspushtocard.js";
|
|
|
498
516
|
export * from "./sendfundspushtocarderror.js";
|
|
499
517
|
export * from "./sendfundsrtp.js";
|
|
500
518
|
export * from "./sendfundsrtperror.js";
|
|
519
|
+
export * from "./sendfundswire.js";
|
|
520
|
+
export * from "./sendfundswireerror.js";
|
|
501
521
|
export * from "./sentreceipt.js";
|
|
502
522
|
export * from "./settings.js";
|
|
503
523
|
export * from "./sharescopes.js";
|
|
@@ -536,6 +556,7 @@ export * from "./transfer.js";
|
|
|
536
556
|
export * from "./transferaccount.js";
|
|
537
557
|
export * from "./transferachaddendarecord.js";
|
|
538
558
|
export * from "./transferamountdetails.js";
|
|
559
|
+
export * from "./transfercapture.js";
|
|
539
560
|
export * from "./transferconfig.js";
|
|
540
561
|
export * from "./transfercontrols.js";
|
|
541
562
|
export * from "./transferdestination.js";
|
|
@@ -567,6 +588,8 @@ export * from "./updateevidence.js";
|
|
|
567
588
|
export * from "./updateinvoice.js";
|
|
568
589
|
export * from "./updateissuedcard.js";
|
|
569
590
|
export * from "./updateissuedcardstate.js";
|
|
591
|
+
export * from "./updateissuingcontrols.js";
|
|
592
|
+
export * from "./updateissuingcontrolserror.js";
|
|
570
593
|
export * from "./updatepaymentlink.js";
|
|
571
594
|
export * from "./updatepaymentlinkamountdetails.js";
|
|
572
595
|
export * from "./updatepaymentlinkamountdetailsvalidationerror.js";
|
|
@@ -35,11 +35,11 @@ import {
|
|
|
35
35
|
IssuedCardState$outboundSchema,
|
|
36
36
|
} from "./issuedcardstate.js";
|
|
37
37
|
import {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
} from "./
|
|
38
|
+
IssuedControls,
|
|
39
|
+
IssuedControls$inboundSchema,
|
|
40
|
+
IssuedControls$Outbound,
|
|
41
|
+
IssuedControls$outboundSchema,
|
|
42
|
+
} from "./issuedcontrols.js";
|
|
43
43
|
|
|
44
44
|
export type IssuedCard = {
|
|
45
45
|
issuedCardID: string;
|
|
@@ -78,6 +78,7 @@ export type IssuedCard = {
|
|
|
78
78
|
* @remarks
|
|
79
79
|
*
|
|
80
80
|
* - `active`: The card is operational and can approve authorizations.
|
|
81
|
+
* - `frozen`: The card is temporarily suspended and cannot approve authorizations. A frozen card can be reactivated by setting its state back to `active`.
|
|
81
82
|
* - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
|
|
82
83
|
*/
|
|
83
84
|
state: IssuedCardState;
|
|
@@ -85,7 +86,10 @@ export type IssuedCard = {
|
|
|
85
86
|
* Specifies the type of spend card to be issued. Presently supports virtual only, providing a digital number without a physical card.
|
|
86
87
|
*/
|
|
87
88
|
formFactor: IssuedCardFormFactor;
|
|
88
|
-
|
|
89
|
+
/**
|
|
90
|
+
* Spend controls applied to an issued card, including velocity runtime state.
|
|
91
|
+
*/
|
|
92
|
+
controls?: IssuedControls | undefined;
|
|
89
93
|
createdOn: Date;
|
|
90
94
|
updatedOn: Date;
|
|
91
95
|
};
|
|
@@ -107,7 +111,7 @@ export const IssuedCard$inboundSchema: z.ZodType<
|
|
|
107
111
|
billingAddress: types.optional(Address$inboundSchema),
|
|
108
112
|
state: IssuedCardState$inboundSchema,
|
|
109
113
|
formFactor: IssuedCardFormFactor$inboundSchema,
|
|
110
|
-
controls: types.optional(
|
|
114
|
+
controls: types.optional(IssuedControls$inboundSchema),
|
|
111
115
|
createdOn: types.date(),
|
|
112
116
|
updatedOn: types.date(),
|
|
113
117
|
});
|
|
@@ -124,7 +128,7 @@ export type IssuedCard$Outbound = {
|
|
|
124
128
|
billingAddress?: Address$Outbound | undefined;
|
|
125
129
|
state: string;
|
|
126
130
|
formFactor: string;
|
|
127
|
-
controls?:
|
|
131
|
+
controls?: IssuedControls$Outbound | undefined;
|
|
128
132
|
createdOn: string;
|
|
129
133
|
updatedOn: string;
|
|
130
134
|
};
|
|
@@ -146,7 +150,7 @@ export const IssuedCard$outboundSchema: z.ZodType<
|
|
|
146
150
|
billingAddress: Address$outboundSchema.optional(),
|
|
147
151
|
state: IssuedCardState$outboundSchema,
|
|
148
152
|
formFactor: IssuedCardFormFactor$outboundSchema,
|
|
149
|
-
controls:
|
|
153
|
+
controls: IssuedControls$outboundSchema.optional(),
|
|
150
154
|
createdOn: z.date().transform(v => v.toISOString()),
|
|
151
155
|
updatedOn: z.date().transform(v => v.toISOString()),
|
|
152
156
|
});
|
|
@@ -12,10 +12,12 @@ import { OpenEnum } from "../../types/enums.js";
|
|
|
12
12
|
* @remarks
|
|
13
13
|
*
|
|
14
14
|
* - `active`: The card is operational and can approve authorizations.
|
|
15
|
+
* - `frozen`: The card is temporarily suspended and cannot approve authorizations. A frozen card can be reactivated by setting its state back to `active`.
|
|
15
16
|
* - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
|
|
16
17
|
*/
|
|
17
18
|
export const IssuedCardState = {
|
|
18
19
|
Active: "active",
|
|
20
|
+
Frozen: "frozen",
|
|
19
21
|
Closed: "closed",
|
|
20
22
|
} as const;
|
|
21
23
|
/**
|
|
@@ -24,6 +26,7 @@ export const IssuedCardState = {
|
|
|
24
26
|
* @remarks
|
|
25
27
|
*
|
|
26
28
|
* - `active`: The card is operational and can approve authorizations.
|
|
29
|
+
* - `frozen`: The card is temporarily suspended and cannot approve authorizations. A frozen card can be reactivated by setting its state back to `active`.
|
|
27
30
|
* - `closed`: The card is permanently deactivated and cannot approve authorizations. A card can be closed by request or when it expires.
|
|
28
31
|
*/
|
|
29
32
|
export type IssuedCardState = OpenEnum<typeof IssuedCardState>;
|
|
@@ -0,0 +1,177 @@
|
|
|
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, independent of merchant category.
|
|
67
|
+
*/
|
|
68
|
+
merchantRestrictions?: MerchantRestrictions | undefined;
|
|
69
|
+
allowedSchedule?: IssuedControlsAllowedSchedule | null | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* A spend cutoff date and time. When set, all authorizations after this datetime are declined regardless of other controls.
|
|
72
|
+
*/
|
|
73
|
+
expiresOn?: Date | null | undefined;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const IssuedControlsAllowedSchedule$inboundSchema: z.ZodType<
|
|
78
|
+
IssuedControlsAllowedSchedule,
|
|
79
|
+
z.ZodTypeDef,
|
|
80
|
+
unknown
|
|
81
|
+
> = z.object({
|
|
82
|
+
timezone: types.string(),
|
|
83
|
+
windows: z.array(ScheduleWindow$inboundSchema),
|
|
84
|
+
});
|
|
85
|
+
/** @internal */
|
|
86
|
+
export type IssuedControlsAllowedSchedule$Outbound = {
|
|
87
|
+
timezone: string;
|
|
88
|
+
windows: Array<ScheduleWindow$Outbound>;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const IssuedControlsAllowedSchedule$outboundSchema: z.ZodType<
|
|
93
|
+
IssuedControlsAllowedSchedule$Outbound,
|
|
94
|
+
z.ZodTypeDef,
|
|
95
|
+
IssuedControlsAllowedSchedule
|
|
96
|
+
> = z.object({
|
|
97
|
+
timezone: z.string(),
|
|
98
|
+
windows: z.array(ScheduleWindow$outboundSchema),
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
export function issuedControlsAllowedScheduleToJSON(
|
|
102
|
+
issuedControlsAllowedSchedule: IssuedControlsAllowedSchedule,
|
|
103
|
+
): string {
|
|
104
|
+
return JSON.stringify(
|
|
105
|
+
IssuedControlsAllowedSchedule$outboundSchema.parse(
|
|
106
|
+
issuedControlsAllowedSchedule,
|
|
107
|
+
),
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
export function issuedControlsAllowedScheduleFromJSON(
|
|
111
|
+
jsonString: string,
|
|
112
|
+
): SafeParseResult<IssuedControlsAllowedSchedule, SDKValidationError> {
|
|
113
|
+
return safeParse(
|
|
114
|
+
jsonString,
|
|
115
|
+
(x) => IssuedControlsAllowedSchedule$inboundSchema.parse(JSON.parse(x)),
|
|
116
|
+
`Failed to parse 'IssuedControlsAllowedSchedule' from JSON`,
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export const IssuedControls$inboundSchema: z.ZodType<
|
|
122
|
+
IssuedControls,
|
|
123
|
+
z.ZodTypeDef,
|
|
124
|
+
unknown
|
|
125
|
+
> = z.object({
|
|
126
|
+
singleUse: types.optional(types.boolean()),
|
|
127
|
+
velocityLimits: types.optional(z.array(IssuedVelocityLimit$inboundSchema)),
|
|
128
|
+
merchantCategoryRestrictions: types.optional(
|
|
129
|
+
MerchantCategoryRestrictions$inboundSchema,
|
|
130
|
+
),
|
|
131
|
+
merchantRestrictions: types.optional(MerchantRestrictions$inboundSchema),
|
|
132
|
+
allowedSchedule: z.nullable(
|
|
133
|
+
z.lazy(() => IssuedControlsAllowedSchedule$inboundSchema),
|
|
134
|
+
).optional(),
|
|
135
|
+
expiresOn: z.nullable(types.date()).optional(),
|
|
136
|
+
});
|
|
137
|
+
/** @internal */
|
|
138
|
+
export type IssuedControls$Outbound = {
|
|
139
|
+
singleUse?: boolean | undefined;
|
|
140
|
+
velocityLimits?: Array<IssuedVelocityLimit$Outbound> | undefined;
|
|
141
|
+
merchantCategoryRestrictions?:
|
|
142
|
+
| MerchantCategoryRestrictions$Outbound
|
|
143
|
+
| undefined;
|
|
144
|
+
merchantRestrictions?: MerchantRestrictions$Outbound | undefined;
|
|
145
|
+
allowedSchedule?: IssuedControlsAllowedSchedule$Outbound | null | undefined;
|
|
146
|
+
expiresOn?: string | null | undefined;
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
/** @internal */
|
|
150
|
+
export const IssuedControls$outboundSchema: z.ZodType<
|
|
151
|
+
IssuedControls$Outbound,
|
|
152
|
+
z.ZodTypeDef,
|
|
153
|
+
IssuedControls
|
|
154
|
+
> = z.object({
|
|
155
|
+
singleUse: z.boolean().optional(),
|
|
156
|
+
velocityLimits: z.array(IssuedVelocityLimit$outboundSchema).optional(),
|
|
157
|
+
merchantCategoryRestrictions: MerchantCategoryRestrictions$outboundSchema
|
|
158
|
+
.optional(),
|
|
159
|
+
merchantRestrictions: MerchantRestrictions$outboundSchema.optional(),
|
|
160
|
+
allowedSchedule: z.nullable(
|
|
161
|
+
z.lazy(() => IssuedControlsAllowedSchedule$outboundSchema),
|
|
162
|
+
).optional(),
|
|
163
|
+
expiresOn: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
export function issuedControlsToJSON(issuedControls: IssuedControls): string {
|
|
167
|
+
return JSON.stringify(IssuedControls$outboundSchema.parse(issuedControls));
|
|
168
|
+
}
|
|
169
|
+
export function issuedControlsFromJSON(
|
|
170
|
+
jsonString: string,
|
|
171
|
+
): SafeParseResult<IssuedControls, SDKValidationError> {
|
|
172
|
+
return safeParse(
|
|
173
|
+
jsonString,
|
|
174
|
+
(x) => IssuedControls$inboundSchema.parse(JSON.parse(x)),
|
|
175
|
+
`Failed to parse 'IssuedControls' from JSON`,
|
|
176
|
+
);
|
|
177
|
+
}
|
|
@@ -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,7 +13,42 @@ 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.
|
|
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
|
|
|
49
|
+
/**
|
|
50
|
+
* Mutable spend controls for the card.
|
|
51
|
+
*/
|
|
17
52
|
export type IssuingControls = {
|
|
18
53
|
/**
|
|
19
54
|
* Indicates if the card is single-use. If true, the card closes after the first authorization.
|
|
@@ -23,8 +58,61 @@ export type IssuingControls = {
|
|
|
23
58
|
* Sets the spending limit per time interval. Only one limit per interval is supported.
|
|
24
59
|
*/
|
|
25
60
|
velocityLimits?: Array<IssuingVelocityLimit> | 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, independent of merchant category.
|
|
67
|
+
*/
|
|
68
|
+
merchantRestrictions?: MerchantRestrictions | undefined;
|
|
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;
|
|
74
|
+
};
|
|
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>;
|
|
26
89
|
};
|
|
27
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(
|