@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.
Files changed (546) hide show
  1. package/README.md +107 -83
  2. package/bin/mcp-server.js +1121 -380
  3. package/bin/mcp-server.js.map +127 -101
  4. package/funcs/cardIssuingGetFull.d.ts +1 -1
  5. package/funcs/cardIssuingGetFull.js +1 -1
  6. package/funcs/cardIssuingListMerchantCategories.d.ts +19 -0
  7. package/funcs/cardIssuingListMerchantCategories.d.ts.map +1 -0
  8. package/funcs/cardIssuingListMerchantCategories.js +109 -0
  9. package/funcs/cardIssuingListMerchantCategories.js.map +1 -0
  10. package/funcs/imagesUpload.d.ts +1 -1
  11. package/funcs/imagesUpload.js +1 -1
  12. package/funcs/institutionsSearch.d.ts +1 -1
  13. package/funcs/institutionsSearch.js +1 -1
  14. package/funcs/issuingTransactionsList.js +1 -0
  15. package/funcs/issuingTransactionsList.js.map +1 -1
  16. package/funcs/transfersCreateCancellation.d.ts +3 -0
  17. package/funcs/transfersCreateCancellation.d.ts.map +1 -1
  18. package/funcs/transfersCreateCancellation.js +6 -1
  19. package/funcs/transfersCreateCancellation.js.map +1 -1
  20. package/funcs/transfersCreateReversal.d.ts +3 -0
  21. package/funcs/transfersCreateReversal.d.ts.map +1 -1
  22. package/funcs/transfersCreateReversal.js +3 -0
  23. package/funcs/transfersCreateReversal.js.map +1 -1
  24. package/funcs/transfersList.js +2 -0
  25. package/funcs/transfersList.js.map +1 -1
  26. package/funcs/transfersListCancellations.js +1 -1
  27. package/funcs/transfersListCancellations.js.map +1 -1
  28. package/funcs/transfersListRefunds.js +1 -1
  29. package/funcs/transfersListRefunds.js.map +1 -1
  30. package/jsr.json +1 -1
  31. package/lib/config.d.ts +3 -3
  32. package/lib/config.js +3 -3
  33. package/lib/encodings.d.ts +10 -9
  34. package/lib/encodings.d.ts.map +1 -1
  35. package/lib/encodings.js +29 -13
  36. package/lib/encodings.js.map +1 -1
  37. package/mcp-server/mcp-server.js +1 -1
  38. package/mcp-server/server.d.ts.map +1 -1
  39. package/mcp-server/server.js +8 -6
  40. package/mcp-server/server.js.map +1 -1
  41. package/mcp-server/tools/avatarsGet.js +1 -1
  42. package/mcp-server/tools/cardIssuingGetFull.js +1 -1
  43. package/mcp-server/tools/cardIssuingGetFull.js.map +1 -1
  44. package/mcp-server/tools/cardIssuingListMerchantCategories.d.ts +3 -0
  45. package/mcp-server/tools/cardIssuingListMerchantCategories.d.ts.map +1 -0
  46. package/mcp-server/tools/cardIssuingListMerchantCategories.js +29 -0
  47. package/mcp-server/tools/cardIssuingListMerchantCategories.js.map +1 -0
  48. package/mcp-server/tools/enrichedAddressGet.js +1 -1
  49. package/mcp-server/tools/enrichedProfileGet.js +1 -1
  50. package/mcp-server/tools/imagesUpload.js +1 -1
  51. package/mcp-server/tools/imagesUpload.js.map +1 -1
  52. package/mcp-server/tools/institutionsSearch.js +2 -2
  53. package/mcp-server/tools/transfersCreateCancellation.d.ts.map +1 -1
  54. package/mcp-server/tools/transfersCreateCancellation.js +3 -0
  55. package/mcp-server/tools/transfersCreateCancellation.js.map +1 -1
  56. package/mcp-server/tools/transfersCreateReversal.d.ts.map +1 -1
  57. package/mcp-server/tools/transfersCreateReversal.js +4 -1
  58. package/mcp-server/tools/transfersCreateReversal.js.map +1 -1
  59. package/mcp-server/tools/transfersListCancellations.js +1 -1
  60. package/models/components/adjustmentfees.d.ts +30 -0
  61. package/models/components/adjustmentfees.d.ts.map +1 -0
  62. package/models/components/adjustmentfees.js +62 -0
  63. package/models/components/adjustmentfees.js.map +1 -0
  64. package/models/components/allowedscheduleerror.d.ts +24 -0
  65. package/models/components/allowedscheduleerror.d.ts.map +1 -0
  66. package/models/components/allowedscheduleerror.js +62 -0
  67. package/models/components/allowedscheduleerror.js.map +1 -0
  68. package/models/components/amountdecimalrange.d.ts +1 -3
  69. package/models/components/amountdecimalrange.d.ts.map +1 -1
  70. package/models/components/amountdecimalrange.js.map +1 -1
  71. package/models/components/amountdecimalrangeupdate.d.ts +1 -3
  72. package/models/components/amountdecimalrangeupdate.d.ts.map +1 -1
  73. package/models/components/amountdecimalrangeupdate.js.map +1 -1
  74. package/models/components/applicationscope.d.ts +1 -1
  75. package/models/components/applicationscope.js +1 -1
  76. package/models/components/applicationscope.js.map +1 -1
  77. package/models/components/billingadjustment.d.ts +34 -0
  78. package/models/components/billingadjustment.d.ts.map +1 -0
  79. package/models/components/billingadjustment.js +64 -0
  80. package/models/components/billingadjustment.js.map +1 -0
  81. package/models/components/billingsummary.d.ts +15 -10
  82. package/models/components/billingsummary.d.ts.map +1 -1
  83. package/models/components/billingsummary.js +14 -11
  84. package/models/components/billingsummary.js.map +1 -1
  85. package/models/components/cancellation.d.ts +3 -0
  86. package/models/components/cancellation.d.ts.map +1 -1
  87. package/models/components/cancellation.js.map +1 -1
  88. package/models/components/createdtransfer.d.ts +14 -0
  89. package/models/components/createdtransfer.d.ts.map +1 -1
  90. package/models/components/createdtransfer.js +3 -0
  91. package/models/components/createdtransfer.js.map +1 -1
  92. package/models/components/createfeeplanagreement.d.ts +16 -1
  93. package/models/components/createfeeplanagreement.d.ts.map +1 -1
  94. package/models/components/createfeeplanagreement.js +2 -0
  95. package/models/components/createfeeplanagreement.js.map +1 -1
  96. package/models/components/createpaymentlink.d.ts +3 -0
  97. package/models/components/createpaymentlink.d.ts.map +1 -1
  98. package/models/components/createpaymentlink.js.map +1 -1
  99. package/models/components/createrefund.d.ts +2 -2
  100. package/models/components/createreversal.d.ts +6 -1
  101. package/models/components/createreversal.d.ts.map +1 -1
  102. package/models/components/createreversal.js.map +1 -1
  103. package/models/components/createtransfer.d.ts +1 -1
  104. package/models/components/facilitatorfee.d.ts +2 -2
  105. package/models/components/feepaidby.d.ts +0 -6
  106. package/models/components/feepaidby.d.ts.map +1 -1
  107. package/models/components/feepaidby.js +0 -3
  108. package/models/components/feepaidby.js.map +1 -1
  109. package/models/components/feeplanagreement.d.ts +10 -0
  110. package/models/components/feeplanagreement.d.ts.map +1 -1
  111. package/models/components/feeplanagreement.js +5 -0
  112. package/models/components/feeplanagreement.js.map +1 -1
  113. package/models/components/fullissuedcard.d.ts +7 -3
  114. package/models/components/fullissuedcard.d.ts.map +1 -1
  115. package/models/components/fullissuedcard.js +3 -3
  116. package/models/components/fullissuedcard.js.map +1 -1
  117. package/models/components/index.d.ts +23 -0
  118. package/models/components/index.d.ts.map +1 -1
  119. package/models/components/index.js +23 -0
  120. package/models/components/index.js.map +1 -1
  121. package/models/components/issuedcard.d.ts +7 -3
  122. package/models/components/issuedcard.d.ts.map +1 -1
  123. package/models/components/issuedcard.js +3 -3
  124. package/models/components/issuedcard.js.map +1 -1
  125. package/models/components/issuedcardstate.d.ts +3 -0
  126. package/models/components/issuedcardstate.d.ts.map +1 -1
  127. package/models/components/issuedcardstate.js +2 -0
  128. package/models/components/issuedcardstate.js.map +1 -1
  129. package/models/components/issuedcontrols.d.ts +73 -0
  130. package/models/components/issuedcontrols.d.ts.map +1 -0
  131. package/models/components/issuedcontrols.js +92 -0
  132. package/models/components/issuedcontrols.js.map +1 -0
  133. package/models/components/issuedvelocitylimit.d.ts +59 -0
  134. package/models/components/issuedvelocitylimit.d.ts.map +1 -0
  135. package/models/components/issuedvelocitylimit.js +74 -0
  136. package/models/components/issuedvelocitylimit.js.map +1 -0
  137. package/models/components/issuingcontrols.d.ts +47 -0
  138. package/models/components/issuingcontrols.d.ts.map +1 -1
  139. package/models/components/issuingcontrols.js +33 -1
  140. package/models/components/issuingcontrols.js.map +1 -1
  141. package/models/components/issuingcontrolserror.d.ts +11 -0
  142. package/models/components/issuingcontrolserror.d.ts.map +1 -1
  143. package/models/components/issuingcontrolserror.js +12 -0
  144. package/models/components/issuingcontrolserror.js.map +1 -1
  145. package/models/components/issuingcontrolsrestrictionmode.d.ts +18 -0
  146. package/models/components/issuingcontrolsrestrictionmode.d.ts.map +1 -0
  147. package/models/components/issuingcontrolsrestrictionmode.js +52 -0
  148. package/models/components/issuingcontrolsrestrictionmode.js.map +1 -0
  149. package/models/components/issuingintervallimit.d.ts +7 -4
  150. package/models/components/issuingintervallimit.d.ts.map +1 -1
  151. package/models/components/issuingintervallimit.js +6 -3
  152. package/models/components/issuingintervallimit.js.map +1 -1
  153. package/models/components/issuingmerchantcategory.d.ts +42 -0
  154. package/models/components/issuingmerchantcategory.d.ts.map +1 -0
  155. package/models/components/issuingmerchantcategory.js +76 -0
  156. package/models/components/issuingmerchantcategory.js.map +1 -0
  157. package/models/components/issuingscheduleday.d.ts +17 -0
  158. package/models/components/issuingscheduleday.d.ts.map +1 -0
  159. package/models/components/issuingscheduleday.js +54 -0
  160. package/models/components/issuingscheduleday.js.map +1 -0
  161. package/models/components/issuingvelocitylimit.d.ts +7 -2
  162. package/models/components/issuingvelocitylimit.d.ts.map +1 -1
  163. package/models/components/issuingvelocitylimit.js +4 -2
  164. package/models/components/issuingvelocitylimit.js.map +1 -1
  165. package/models/components/issuingvelocitylimiterror.d.ts +2 -0
  166. package/models/components/issuingvelocitylimiterror.d.ts.map +1 -1
  167. package/models/components/issuingvelocitylimiterror.js +2 -0
  168. package/models/components/issuingvelocitylimiterror.js.map +1 -1
  169. package/models/components/merchantcategories.d.ts +21 -0
  170. package/models/components/merchantcategories.d.ts.map +1 -0
  171. package/models/components/merchantcategories.js +59 -0
  172. package/models/components/merchantcategories.js.map +1 -0
  173. package/models/components/merchantcategory.d.ts +32 -0
  174. package/models/components/merchantcategory.d.ts.map +1 -0
  175. package/models/components/merchantcategory.js +62 -0
  176. package/models/components/merchantcategory.js.map +1 -0
  177. package/models/components/merchantcategoryrestrictions.d.ts +41 -0
  178. package/models/components/merchantcategoryrestrictions.d.ts.map +1 -0
  179. package/models/components/merchantcategoryrestrictions.js +68 -0
  180. package/models/components/merchantcategoryrestrictions.js.map +1 -0
  181. package/models/components/merchantcategoryrestrictionserror.d.ts +36 -0
  182. package/models/components/merchantcategoryrestrictionserror.d.ts.map +1 -0
  183. package/models/components/merchantcategoryrestrictionserror.js +66 -0
  184. package/models/components/merchantcategoryrestrictionserror.js.map +1 -0
  185. package/models/components/merchantentry.d.ts +33 -0
  186. package/models/components/merchantentry.d.ts.map +1 -0
  187. package/models/components/merchantentry.js +63 -0
  188. package/models/components/merchantentry.js.map +1 -0
  189. package/models/components/merchantentryerror.d.ts +19 -0
  190. package/models/components/merchantentryerror.d.ts.map +1 -0
  191. package/models/components/merchantentryerror.js +61 -0
  192. package/models/components/merchantentryerror.js.map +1 -0
  193. package/models/components/merchantrestrictions.d.ts +30 -0
  194. package/models/components/merchantrestrictions.d.ts.map +1 -0
  195. package/models/components/merchantrestrictions.js +62 -0
  196. package/models/components/merchantrestrictions.js.map +1 -0
  197. package/models/components/merchantrestrictionserror.d.ts +24 -0
  198. package/models/components/merchantrestrictionserror.d.ts.map +1 -0
  199. package/models/components/merchantrestrictionserror.js +62 -0
  200. package/models/components/merchantrestrictionserror.js.map +1 -0
  201. package/models/components/partnerpricingagreement.d.ts +12 -2
  202. package/models/components/partnerpricingagreement.d.ts.map +1 -1
  203. package/models/components/partnerpricingagreement.js +5 -0
  204. package/models/components/partnerpricingagreement.js.map +1 -1
  205. package/models/components/paymentlink.d.ts +4 -3
  206. package/models/components/paymentlink.d.ts.map +1 -1
  207. package/models/components/paymentlink.js.map +1 -1
  208. package/models/components/paymentlinkcustomamountpaymentdetails.d.ts +1 -3
  209. package/models/components/paymentlinkcustomamountpaymentdetails.d.ts.map +1 -1
  210. package/models/components/paymentlinkcustomamountpaymentdetails.js.map +1 -1
  211. package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts +1 -3
  212. package/models/components/paymentlinkcustomamountpaymentdetailsupdate.d.ts.map +1 -1
  213. package/models/components/paymentlinkcustomamountpaymentdetailsupdate.js.map +1 -1
  214. package/models/components/paymentlinkpayoutdetails.d.ts +7 -8
  215. package/models/components/paymentlinkpayoutdetails.d.ts.map +1 -1
  216. package/models/components/paymentlinkpayoutdetails.js.map +1 -1
  217. package/models/components/paymentlinkpayoutdetailsupdate.d.ts +7 -8
  218. package/models/components/paymentlinkpayoutdetailsupdate.d.ts.map +1 -1
  219. package/models/components/paymentlinkpayoutdetailsupdate.js.map +1 -1
  220. package/models/components/paymentmethodswallet.d.ts +1 -0
  221. package/models/components/paymentmethodswallet.d.ts.map +1 -1
  222. package/models/components/paymentmethodswallet.js.map +1 -1
  223. package/models/components/pushoptions.d.ts +4 -6
  224. package/models/components/pushoptions.d.ts.map +1 -1
  225. package/models/components/pushoptions.js.map +1 -1
  226. package/models/components/pushoptionsupdate.d.ts +4 -6
  227. package/models/components/pushoptionsupdate.d.ts.map +1 -1
  228. package/models/components/pushoptionsupdate.js.map +1 -1
  229. package/models/components/requestcard.d.ts +3 -0
  230. package/models/components/requestcard.d.ts.map +1 -1
  231. package/models/components/requestcard.js.map +1 -1
  232. package/models/components/requirementid.d.ts +14 -0
  233. package/models/components/requirementid.d.ts.map +1 -1
  234. package/models/components/requirementid.js +14 -0
  235. package/models/components/requirementid.js.map +1 -1
  236. package/models/components/reversalamountdetails.d.ts +5 -1
  237. package/models/components/reversalamountdetails.d.ts.map +1 -1
  238. package/models/components/reversalamountdetails.js.map +1 -1
  239. package/models/components/reversedwithcancellation.d.ts +3 -0
  240. package/models/components/reversedwithcancellation.d.ts.map +1 -1
  241. package/models/components/reversedwithcancellation.js.map +1 -1
  242. package/models/components/schedulewindow.d.ts +34 -0
  243. package/models/components/schedulewindow.d.ts.map +1 -0
  244. package/models/components/schedulewindow.js +64 -0
  245. package/models/components/schedulewindow.js.map +1 -0
  246. package/models/components/schedulewindowerror.d.ts +21 -0
  247. package/models/components/schedulewindowerror.d.ts.map +1 -0
  248. package/models/components/schedulewindowerror.js +63 -0
  249. package/models/components/schedulewindowerror.js.map +1 -0
  250. package/models/components/sendfunds.d.ts +3 -0
  251. package/models/components/sendfunds.d.ts.map +1 -1
  252. package/models/components/sendfunds.js +3 -0
  253. package/models/components/sendfunds.js.map +1 -1
  254. package/models/components/sendfundserror.d.ts +3 -0
  255. package/models/components/sendfundserror.d.ts.map +1 -1
  256. package/models/components/sendfundserror.js +3 -0
  257. package/models/components/sendfundserror.js.map +1 -1
  258. package/models/components/sendfundswire.d.ts +18 -0
  259. package/models/components/sendfundswire.d.ts.map +1 -0
  260. package/models/components/sendfundswire.js +60 -0
  261. package/models/components/sendfundswire.js.map +1 -0
  262. package/models/components/sendfundswireerror.d.ts +18 -0
  263. package/models/components/sendfundswireerror.d.ts.map +1 -0
  264. package/models/components/sendfundswireerror.js +60 -0
  265. package/models/components/sendfundswireerror.js.map +1 -0
  266. package/models/components/statement.d.ts +6 -0
  267. package/models/components/statement.d.ts.map +1 -1
  268. package/models/components/statement.js +3 -0
  269. package/models/components/statement.js.map +1 -1
  270. package/models/components/sweepconfig.d.ts +2 -2
  271. package/models/components/sweepconfigpaymentmethod.d.ts +1 -1
  272. package/models/components/transfer.d.ts +14 -0
  273. package/models/components/transfer.d.ts.map +1 -1
  274. package/models/components/transfer.js +3 -0
  275. package/models/components/transfer.js.map +1 -1
  276. package/models/components/transfercapture.d.ts +28 -0
  277. package/models/components/transfercapture.d.ts.map +1 -0
  278. package/models/components/transfercapture.js +61 -0
  279. package/models/components/transfercapture.js.map +1 -0
  280. package/models/components/transferfeepaidby.d.ts +1 -1
  281. package/models/components/transferpaymentmethodswallet.d.ts +1 -0
  282. package/models/components/transferpaymentmethodswallet.d.ts.map +1 -1
  283. package/models/components/transferpaymentmethodswallet.js.map +1 -1
  284. package/models/components/updateissuedcard.d.ts +8 -0
  285. package/models/components/updateissuedcard.d.ts.map +1 -1
  286. package/models/components/updateissuedcard.js +3 -0
  287. package/models/components/updateissuedcard.js.map +1 -1
  288. package/models/components/updateissuedcardstate.d.ts +6 -0
  289. package/models/components/updateissuedcardstate.d.ts.map +1 -1
  290. package/models/components/updateissuedcardstate.js +4 -0
  291. package/models/components/updateissuedcardstate.js.map +1 -1
  292. package/models/components/updateissuingcontrols.d.ts +130 -0
  293. package/models/components/updateissuingcontrols.d.ts.map +1 -0
  294. package/models/components/updateissuingcontrols.js +130 -0
  295. package/models/components/updateissuingcontrols.js.map +1 -0
  296. package/models/components/updateissuingcontrolserror.d.ts +33 -0
  297. package/models/components/updateissuingcontrolserror.d.ts.map +1 -0
  298. package/models/components/updateissuingcontrolserror.js +72 -0
  299. package/models/components/updateissuingcontrolserror.js.map +1 -0
  300. package/models/components/updatepaymentlink.d.ts +3 -0
  301. package/models/components/updatepaymentlink.d.ts.map +1 -1
  302. package/models/components/updatepaymentlink.js.map +1 -1
  303. package/models/components/wallet.d.ts +1 -0
  304. package/models/components/wallet.d.ts.map +1 -1
  305. package/models/components/wallet.js.map +1 -1
  306. package/models/components/wallettype.d.ts +3 -0
  307. package/models/components/wallettype.d.ts.map +1 -1
  308. package/models/components/wallettype.js +2 -0
  309. package/models/components/wallettype.js.map +1 -1
  310. package/models/components/webhookdatatransferstatus.d.ts +3 -0
  311. package/models/components/webhookdatatransferstatus.d.ts.map +1 -1
  312. package/models/components/webhookdatatransferstatus.js +3 -0
  313. package/models/components/webhookdatatransferstatus.js.map +1 -1
  314. package/models/errors/transfer.d.ts +25 -0
  315. package/models/errors/transfer.d.ts.map +1 -1
  316. package/models/errors/transfer.js +4 -0
  317. package/models/errors/transfer.js.map +1 -1
  318. package/models/errors/updateissuedcarderror.d.ts +3 -0
  319. package/models/errors/updateissuedcarderror.d.ts.map +1 -1
  320. package/models/errors/updateissuedcarderror.js +4 -0
  321. package/models/errors/updateissuedcarderror.js.map +1 -1
  322. package/models/operations/index.d.ts +1 -0
  323. package/models/operations/index.d.ts.map +1 -1
  324. package/models/operations/index.js +1 -0
  325. package/models/operations/index.js.map +1 -1
  326. package/models/operations/listaccounts.d.ts +3 -0
  327. package/models/operations/listaccounts.d.ts.map +1 -1
  328. package/models/operations/listaccounts.js.map +1 -1
  329. package/models/operations/listconnectedaccountsforaccount.d.ts +3 -0
  330. package/models/operations/listconnectedaccountsforaccount.d.ts.map +1 -1
  331. package/models/operations/listconnectedaccountsforaccount.js.map +1 -1
  332. package/models/operations/listdisputes.d.ts +3 -0
  333. package/models/operations/listdisputes.d.ts.map +1 -1
  334. package/models/operations/listdisputes.js.map +1 -1
  335. package/models/operations/listfeeplanagreements.d.ts +3 -0
  336. package/models/operations/listfeeplanagreements.d.ts.map +1 -1
  337. package/models/operations/listfeeplanagreements.js.map +1 -1
  338. package/models/operations/listfeerevenue.d.ts +3 -0
  339. package/models/operations/listfeerevenue.d.ts.map +1 -1
  340. package/models/operations/listfeerevenue.js.map +1 -1
  341. package/models/operations/listinvoices.d.ts +3 -0
  342. package/models/operations/listinvoices.d.ts.map +1 -1
  343. package/models/operations/listinvoices.js.map +1 -1
  344. package/models/operations/listissuedcardauthorizationevents.d.ts +3 -0
  345. package/models/operations/listissuedcardauthorizationevents.d.ts.map +1 -1
  346. package/models/operations/listissuedcardauthorizationevents.js.map +1 -1
  347. package/models/operations/listissuedcardauthorizations.d.ts +3 -0
  348. package/models/operations/listissuedcardauthorizations.d.ts.map +1 -1
  349. package/models/operations/listissuedcardauthorizations.js.map +1 -1
  350. package/models/operations/listissuedcards.d.ts +3 -0
  351. package/models/operations/listissuedcards.d.ts.map +1 -1
  352. package/models/operations/listissuedcards.js.map +1 -1
  353. package/models/operations/listissuedcardtransactions.d.ts +8 -0
  354. package/models/operations/listissuedcardtransactions.d.ts.map +1 -1
  355. package/models/operations/listissuedcardtransactions.js +2 -0
  356. package/models/operations/listissuedcardtransactions.js.map +1 -1
  357. package/models/operations/listissuingmerchantcategories.d.ts +24 -0
  358. package/models/operations/listissuingmerchantcategories.d.ts.map +1 -0
  359. package/models/operations/listissuingmerchantcategories.js +72 -0
  360. package/models/operations/listissuingmerchantcategories.js.map +1 -0
  361. package/models/operations/listpartnerpricingagreements.d.ts +3 -0
  362. package/models/operations/listpartnerpricingagreements.d.ts.map +1 -1
  363. package/models/operations/listpartnerpricingagreements.js.map +1 -1
  364. package/models/operations/listpaymentlinks.d.ts +3 -0
  365. package/models/operations/listpaymentlinks.d.ts.map +1 -1
  366. package/models/operations/listpaymentlinks.js.map +1 -1
  367. package/models/operations/listproducts.d.ts +3 -0
  368. package/models/operations/listproducts.d.ts.map +1 -1
  369. package/models/operations/listproducts.js.map +1 -1
  370. package/models/operations/listresidualfees.d.ts +3 -0
  371. package/models/operations/listresidualfees.d.ts.map +1 -1
  372. package/models/operations/listresidualfees.js.map +1 -1
  373. package/models/operations/listresiduals.d.ts +3 -0
  374. package/models/operations/listresiduals.d.ts.map +1 -1
  375. package/models/operations/listresiduals.js.map +1 -1
  376. package/models/operations/listschedules.d.ts +3 -0
  377. package/models/operations/listschedules.d.ts.map +1 -1
  378. package/models/operations/listschedules.js.map +1 -1
  379. package/models/operations/liststatements.d.ts +3 -0
  380. package/models/operations/liststatements.d.ts.map +1 -1
  381. package/models/operations/liststatements.js.map +1 -1
  382. package/models/operations/listsweeps.d.ts +3 -0
  383. package/models/operations/listsweeps.d.ts.map +1 -1
  384. package/models/operations/listsweeps.js.map +1 -1
  385. package/models/operations/listtickets.d.ts +3 -0
  386. package/models/operations/listtickets.d.ts.map +1 -1
  387. package/models/operations/listtickets.js.map +1 -1
  388. package/models/operations/listtransfers.d.ts +13 -0
  389. package/models/operations/listtransfers.d.ts.map +1 -1
  390. package/models/operations/listtransfers.js +4 -0
  391. package/models/operations/listtransfers.js.map +1 -1
  392. package/models/operations/listwallets.d.ts +3 -0
  393. package/models/operations/listwallets.d.ts.map +1 -1
  394. package/models/operations/listwallets.js.map +1 -1
  395. package/models/operations/listwallettransactions.d.ts +3 -0
  396. package/models/operations/listwallettransactions.d.ts.map +1 -1
  397. package/models/operations/listwallettransactions.js.map +1 -1
  398. package/models/operations/retrievefees.d.ts +3 -0
  399. package/models/operations/retrievefees.d.ts.map +1 -1
  400. package/models/operations/retrievefees.js.map +1 -1
  401. package/package.json +1 -1
  402. package/sdk/cardissuing.d.ts +10 -1
  403. package/sdk/cardissuing.d.ts.map +1 -1
  404. package/sdk/cardissuing.js +13 -1
  405. package/sdk/cardissuing.js.map +1 -1
  406. package/sdk/images.d.ts +1 -1
  407. package/sdk/images.js +1 -1
  408. package/sdk/institutions.d.ts +1 -1
  409. package/sdk/institutions.js +1 -1
  410. package/sdk/sdk.d.ts +2 -2
  411. package/sdk/sdk.d.ts.map +1 -1
  412. package/sdk/sdk.js +3 -3
  413. package/sdk/sdk.js.map +1 -1
  414. package/sdk/transfers.d.ts +6 -0
  415. package/sdk/transfers.d.ts.map +1 -1
  416. package/sdk/transfers.js +6 -0
  417. package/sdk/transfers.js.map +1 -1
  418. package/src/funcs/cardIssuingGetFull.ts +1 -1
  419. package/src/funcs/cardIssuingListMerchantCategories.ts +155 -0
  420. package/src/funcs/imagesUpload.ts +1 -1
  421. package/src/funcs/institutionsSearch.ts +1 -1
  422. package/src/funcs/issuingTransactionsList.ts +1 -0
  423. package/src/funcs/transfersCreateCancellation.ts +6 -1
  424. package/src/funcs/transfersCreateReversal.ts +3 -0
  425. package/src/funcs/transfersList.ts +2 -0
  426. package/src/funcs/transfersListCancellations.ts +1 -1
  427. package/src/funcs/transfersListRefunds.ts +1 -1
  428. package/src/lib/config.ts +3 -3
  429. package/src/lib/encodings.ts +58 -23
  430. package/src/mcp-server/mcp-server.ts +1 -1
  431. package/src/mcp-server/server.ts +8 -6
  432. package/src/mcp-server/tools/avatarsGet.ts +1 -1
  433. package/src/mcp-server/tools/cardIssuingGetFull.ts +1 -1
  434. package/src/mcp-server/tools/cardIssuingListMerchantCategories.ts +34 -0
  435. package/src/mcp-server/tools/enrichedAddressGet.ts +1 -1
  436. package/src/mcp-server/tools/enrichedProfileGet.ts +1 -1
  437. package/src/mcp-server/tools/imagesUpload.ts +1 -1
  438. package/src/mcp-server/tools/institutionsSearch.ts +2 -2
  439. package/src/mcp-server/tools/transfersCreateCancellation.ts +3 -0
  440. package/src/mcp-server/tools/transfersCreateReversal.ts +4 -1
  441. package/src/mcp-server/tools/transfersListCancellations.ts +1 -1
  442. package/src/models/components/adjustmentfees.ts +72 -0
  443. package/src/models/components/allowedscheduleerror.ts +62 -0
  444. package/src/models/components/amountdecimalrange.ts +1 -3
  445. package/src/models/components/amountdecimalrangeupdate.ts +1 -3
  446. package/src/models/components/applicationscope.ts +1 -1
  447. package/src/models/components/billingadjustment.ts +78 -0
  448. package/src/models/components/billingsummary.ts +35 -19
  449. package/src/models/components/cancellation.ts +3 -0
  450. package/src/models/components/createdtransfer.ts +21 -0
  451. package/src/models/components/createfeeplanagreement.ts +18 -1
  452. package/src/models/components/createpaymentlink.ts +3 -0
  453. package/src/models/components/createrefund.ts +2 -2
  454. package/src/models/components/createreversal.ts +6 -1
  455. package/src/models/components/createtransfer.ts +1 -1
  456. package/src/models/components/facilitatorfee.ts +2 -2
  457. package/src/models/components/feepaidby.ts +0 -6
  458. package/src/models/components/feeplanagreement.ts +15 -0
  459. package/src/models/components/fullissuedcard.ts +13 -9
  460. package/src/models/components/index.ts +23 -0
  461. package/src/models/components/issuedcard.ts +13 -9
  462. package/src/models/components/issuedcardstate.ts +3 -0
  463. package/src/models/components/issuedcontrols.ts +177 -0
  464. package/src/models/components/issuedvelocitylimit.ts +112 -0
  465. package/src/models/components/issuingcontrols.ts +107 -0
  466. package/src/models/components/issuingcontrolserror.ts +39 -0
  467. package/src/models/components/issuingcontrolsrestrictionmode.ts +34 -0
  468. package/src/models/components/issuingintervallimit.ts +16 -8
  469. package/src/models/components/issuingmerchantcategory.ts +56 -0
  470. package/src/models/components/issuingscheduleday.ts +26 -0
  471. package/src/models/components/issuingvelocitylimit.ts +11 -4
  472. package/src/models/components/issuingvelocitylimiterror.ts +4 -0
  473. package/src/models/components/merchantcategories.ts +60 -0
  474. package/src/models/components/merchantcategory.ts +73 -0
  475. package/src/models/components/merchantcategoryrestrictions.ts +97 -0
  476. package/src/models/components/merchantcategoryrestrictionserror.ts +72 -0
  477. package/src/models/components/merchantentry.ts +68 -0
  478. package/src/models/components/merchantentryerror.ts +56 -0
  479. package/src/models/components/merchantrestrictions.ts +75 -0
  480. package/src/models/components/merchantrestrictionserror.ts +62 -0
  481. package/src/models/components/partnerpricingagreement.ts +17 -2
  482. package/src/models/components/paymentlink.ts +4 -3
  483. package/src/models/components/paymentlinkcustomamountpaymentdetails.ts +1 -3
  484. package/src/models/components/paymentlinkcustomamountpaymentdetailsupdate.ts +1 -3
  485. package/src/models/components/paymentlinkpayoutdetails.ts +7 -8
  486. package/src/models/components/paymentlinkpayoutdetailsupdate.ts +7 -8
  487. package/src/models/components/paymentmethodswallet.ts +1 -0
  488. package/src/models/components/pushoptions.ts +4 -6
  489. package/src/models/components/pushoptionsupdate.ts +4 -6
  490. package/src/models/components/requestcard.ts +3 -0
  491. package/src/models/components/requirementid.ts +28 -0
  492. package/src/models/components/reversalamountdetails.ts +5 -1
  493. package/src/models/components/reversedwithcancellation.ts +3 -0
  494. package/src/models/components/schedulewindow.ts +73 -0
  495. package/src/models/components/schedulewindowerror.ts +60 -0
  496. package/src/models/components/sendfunds.ts +10 -0
  497. package/src/models/components/sendfundserror.ts +10 -0
  498. package/src/models/components/sendfundswire.ts +54 -0
  499. package/src/models/components/sendfundswireerror.ts +58 -0
  500. package/src/models/components/statement.ts +13 -0
  501. package/src/models/components/sweepconfig.ts +2 -2
  502. package/src/models/components/sweepconfigpaymentmethod.ts +1 -1
  503. package/src/models/components/transfer.ts +21 -0
  504. package/src/models/components/transfercapture.ts +63 -0
  505. package/src/models/components/transferfeepaidby.ts +1 -1
  506. package/src/models/components/transferpaymentmethodswallet.ts +1 -0
  507. package/src/models/components/updateissuedcard.ts +15 -0
  508. package/src/models/components/updateissuedcardstate.ts +6 -0
  509. package/src/models/components/updateissuingcontrols.ts +351 -0
  510. package/src/models/components/updateissuingcontrolserror.ts +101 -0
  511. package/src/models/components/updatepaymentlink.ts +3 -0
  512. package/src/models/components/wallet.ts +1 -0
  513. package/src/models/components/wallettype.ts +3 -0
  514. package/src/models/components/webhookdatatransferstatus.ts +3 -0
  515. package/src/models/errors/transfer.ts +28 -0
  516. package/src/models/errors/updateissuedcarderror.ts +6 -0
  517. package/src/models/operations/index.ts +1 -0
  518. package/src/models/operations/listaccounts.ts +3 -0
  519. package/src/models/operations/listconnectedaccountsforaccount.ts +3 -0
  520. package/src/models/operations/listdisputes.ts +3 -0
  521. package/src/models/operations/listfeeplanagreements.ts +3 -0
  522. package/src/models/operations/listfeerevenue.ts +3 -0
  523. package/src/models/operations/listinvoices.ts +3 -0
  524. package/src/models/operations/listissuedcardauthorizationevents.ts +3 -0
  525. package/src/models/operations/listissuedcardauthorizations.ts +3 -0
  526. package/src/models/operations/listissuedcards.ts +3 -0
  527. package/src/models/operations/listissuedcardtransactions.ts +10 -0
  528. package/src/models/operations/listissuingmerchantcategories.ts +70 -0
  529. package/src/models/operations/listpartnerpricingagreements.ts +3 -0
  530. package/src/models/operations/listpaymentlinks.ts +3 -0
  531. package/src/models/operations/listproducts.ts +3 -0
  532. package/src/models/operations/listresidualfees.ts +3 -0
  533. package/src/models/operations/listresiduals.ts +3 -0
  534. package/src/models/operations/listschedules.ts +3 -0
  535. package/src/models/operations/liststatements.ts +3 -0
  536. package/src/models/operations/listsweeps.ts +3 -0
  537. package/src/models/operations/listtickets.ts +3 -0
  538. package/src/models/operations/listtransfers.ts +17 -0
  539. package/src/models/operations/listwallets.ts +3 -0
  540. package/src/models/operations/listwallettransactions.ts +3 -0
  541. package/src/models/operations/retrievefees.ts +3 -0
  542. package/src/sdk/cardissuing.ts +19 -1
  543. package/src/sdk/images.ts +1 -1
  544. package/src/sdk/institutions.ts +1 -1
  545. package/src/sdk/sdk.ts +5 -5
  546. package/src/sdk/transfers.ts +6 -0
@@ -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 should be allowed (`allow`) or blocked (`block`).
11
+ */
12
+ export const IssuingControlsRestrictionMode = {
13
+ Allow: "allow",
14
+ Block: "block",
15
+ } as const;
16
+ /**
17
+ * Whether the listed items should be allowed (`allow`) or blocked (`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 { ClosedEnum } from "../../types/enums.js";
6
+ import * as openEnums from "../../types/enums.js";
7
+ import { OpenEnum } from "../../types/enums.js";
7
8
 
8
9
  /**
9
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
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 = ClosedEnum<typeof IssuingIntervalLimit>;
21
+ export type IssuingIntervalLimit = OpenEnum<typeof IssuingIntervalLimit>;
18
22
 
19
23
  /** @internal */
20
- export const IssuingIntervalLimit$inboundSchema: z.ZodNativeEnum<
21
- typeof IssuingIntervalLimit
22
- > = z.nativeEnum(IssuingIntervalLimit);
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.ZodNativeEnum<
25
- typeof IssuingIntervalLimit
26
- > = IssuingIntervalLimit$inboundSchema;
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;
@@ -17,7 +17,11 @@ export type IssuingVelocityLimit = {
17
17
  /**
18
18
  * The maximum amount in cents that can be spent in a given interval.
19
19
  */
20
- amount: number;
20
+ amount?: number | undefined;
21
+ /**
22
+ * The maximum number of transactions allowed in the given interval. At least one of `amount` or `count` must be set.
23
+ */
24
+ count?: number | undefined;
21
25
  /**
22
26
  * 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.
23
27
  */
@@ -30,12 +34,14 @@ export const IssuingVelocityLimit$inboundSchema: z.ZodType<
30
34
  z.ZodTypeDef,
31
35
  unknown
32
36
  > = z.object({
33
- amount: types.number(),
37
+ amount: types.optional(types.number()),
38
+ count: types.optional(types.number()),
34
39
  interval: IssuingIntervalLimit$inboundSchema,
35
40
  });
36
41
  /** @internal */
37
42
  export type IssuingVelocityLimit$Outbound = {
38
- amount: number;
43
+ amount?: number | undefined;
44
+ count?: number | undefined;
39
45
  interval: string;
40
46
  };
41
47
 
@@ -45,7 +51,8 @@ export const IssuingVelocityLimit$outboundSchema: z.ZodType<
45
51
  z.ZodTypeDef,
46
52
  IssuingVelocityLimit
47
53
  > = z.object({
48
- amount: z.number().int(),
54
+ amount: z.number().int().optional(),
55
+ count: z.number().int().optional(),
49
56
  interval: IssuingIntervalLimit$outboundSchema,
50
57
  });
51
58
 
@@ -10,6 +10,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  export type IssuingVelocityLimitError = {
12
12
  amount?: string | undefined;
13
+ count?: string | undefined;
13
14
  interval?: string | undefined;
14
15
  };
15
16
 
@@ -20,11 +21,13 @@ export const IssuingVelocityLimitError$inboundSchema: z.ZodType<
20
21
  unknown
21
22
  > = z.object({
22
23
  amount: types.optional(types.string()),
24
+ count: types.optional(types.string()),
23
25
  interval: types.optional(types.string()),
24
26
  });
25
27
  /** @internal */
26
28
  export type IssuingVelocityLimitError$Outbound = {
27
29
  amount?: string | undefined;
30
+ count?: string | undefined;
28
31
  interval?: string | undefined;
29
32
  };
30
33
 
@@ -35,6 +38,7 @@ export const IssuingVelocityLimitError$outboundSchema: z.ZodType<
35
38
  IssuingVelocityLimitError
36
39
  > = z.object({
37
40
  amount: z.string().optional(),
41
+ count: z.string().optional(),
38
42
  interval: z.string().optional(),
39
43
  });
40
44
 
@@ -0,0 +1,60 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ MerchantCategory,
11
+ MerchantCategory$inboundSchema,
12
+ MerchantCategory$Outbound,
13
+ MerchantCategory$outboundSchema,
14
+ } from "./merchantcategory.js";
15
+
16
+ /**
17
+ * The predefined merchant category groups available for issued card spend controls.
18
+ */
19
+ export type MerchantCategories = {
20
+ merchantCategories: Array<MerchantCategory>;
21
+ };
22
+
23
+ /** @internal */
24
+ export const MerchantCategories$inboundSchema: z.ZodType<
25
+ MerchantCategories,
26
+ z.ZodTypeDef,
27
+ unknown
28
+ > = z.object({
29
+ merchantCategories: z.array(MerchantCategory$inboundSchema),
30
+ });
31
+ /** @internal */
32
+ export type MerchantCategories$Outbound = {
33
+ merchantCategories: Array<MerchantCategory$Outbound>;
34
+ };
35
+
36
+ /** @internal */
37
+ export const MerchantCategories$outboundSchema: z.ZodType<
38
+ MerchantCategories$Outbound,
39
+ z.ZodTypeDef,
40
+ MerchantCategories
41
+ > = z.object({
42
+ merchantCategories: z.array(MerchantCategory$outboundSchema),
43
+ });
44
+
45
+ export function merchantCategoriesToJSON(
46
+ merchantCategories: MerchantCategories,
47
+ ): string {
48
+ return JSON.stringify(
49
+ MerchantCategories$outboundSchema.parse(merchantCategories),
50
+ );
51
+ }
52
+ export function merchantCategoriesFromJSON(
53
+ jsonString: string,
54
+ ): SafeParseResult<MerchantCategories, SDKValidationError> {
55
+ return safeParse(
56
+ jsonString,
57
+ (x) => MerchantCategories$inboundSchema.parse(JSON.parse(x)),
58
+ `Failed to parse 'MerchantCategories' from JSON`,
59
+ );
60
+ }
@@ -0,0 +1,73 @@
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
+ IssuingMerchantCategory,
12
+ IssuingMerchantCategory$inboundSchema,
13
+ IssuingMerchantCategory$outboundSchema,
14
+ } from "./issuingmerchantcategory.js";
15
+
16
+ /**
17
+ * A predefined merchant category group and the merchant category codes (MCCs) it covers.
18
+ */
19
+ export type MerchantCategory = {
20
+ /**
21
+ * The predefined category group.
22
+ */
23
+ category: IssuingMerchantCategory;
24
+ /**
25
+ * The merchant category codes (MCCs) covered by this category. Each entry is either a single
26
+ *
27
+ * @remarks
28
+ * 4-digit MCC, such as `4511`, or an inclusive range of MCCs, such as `3000-3299`.
29
+ */
30
+ mccs: Array<string>;
31
+ };
32
+
33
+ /** @internal */
34
+ export const MerchantCategory$inboundSchema: z.ZodType<
35
+ MerchantCategory,
36
+ z.ZodTypeDef,
37
+ unknown
38
+ > = z.object({
39
+ category: IssuingMerchantCategory$inboundSchema,
40
+ mccs: z.array(types.string()),
41
+ });
42
+ /** @internal */
43
+ export type MerchantCategory$Outbound = {
44
+ category: string;
45
+ mccs: Array<string>;
46
+ };
47
+
48
+ /** @internal */
49
+ export const MerchantCategory$outboundSchema: z.ZodType<
50
+ MerchantCategory$Outbound,
51
+ z.ZodTypeDef,
52
+ MerchantCategory
53
+ > = z.object({
54
+ category: IssuingMerchantCategory$outboundSchema,
55
+ mccs: z.array(z.string()),
56
+ });
57
+
58
+ export function merchantCategoryToJSON(
59
+ merchantCategory: MerchantCategory,
60
+ ): string {
61
+ return JSON.stringify(
62
+ MerchantCategory$outboundSchema.parse(merchantCategory),
63
+ );
64
+ }
65
+ export function merchantCategoryFromJSON(
66
+ jsonString: string,
67
+ ): SafeParseResult<MerchantCategory, SDKValidationError> {
68
+ return safeParse(
69
+ jsonString,
70
+ (x) => MerchantCategory$inboundSchema.parse(JSON.parse(x)),
71
+ `Failed to parse 'MerchantCategory' from JSON`,
72
+ );
73
+ }
@@ -0,0 +1,97 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import * as types from "../../types/primitives.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ IssuingControlsRestrictionMode,
12
+ IssuingControlsRestrictionMode$inboundSchema,
13
+ IssuingControlsRestrictionMode$outboundSchema,
14
+ } from "./issuingcontrolsrestrictionmode.js";
15
+ import {
16
+ IssuingMerchantCategory,
17
+ IssuingMerchantCategory$inboundSchema,
18
+ IssuingMerchantCategory$outboundSchema,
19
+ } from "./issuingmerchantcategory.js";
20
+ import {
21
+ MerchantEntry,
22
+ MerchantEntry$inboundSchema,
23
+ MerchantEntry$Outbound,
24
+ MerchantEntry$outboundSchema,
25
+ } from "./merchantentry.js";
26
+
27
+ /**
28
+ * Restricts card usage by merchant category. When not set, all categories are allowed.
29
+ */
30
+ export type MerchantCategoryRestrictions = {
31
+ /**
32
+ * Whether the listed items should be allowed (`allow`) or blocked (`block`).
33
+ */
34
+ mode: IssuingControlsRestrictionMode;
35
+ /**
36
+ * Predefined category groups to allow or block.
37
+ */
38
+ categories?: Array<IssuingMerchantCategory> | undefined;
39
+ /**
40
+ * Individual merchant category codes (MCCs) to allow or block, for codes not covered by a predefined category.
41
+ */
42
+ customMCCs?: Array<string> | undefined;
43
+ /**
44
+ * Merchants that are exempt from category restrictions regardless of their category.
45
+ */
46
+ exemptMerchants?: Array<MerchantEntry> | undefined;
47
+ };
48
+
49
+ /** @internal */
50
+ export const MerchantCategoryRestrictions$inboundSchema: z.ZodType<
51
+ MerchantCategoryRestrictions,
52
+ z.ZodTypeDef,
53
+ unknown
54
+ > = z.object({
55
+ mode: IssuingControlsRestrictionMode$inboundSchema,
56
+ categories: types.optional(z.array(IssuingMerchantCategory$inboundSchema)),
57
+ customMCCs: types.optional(z.array(types.string())),
58
+ exemptMerchants: types.optional(z.array(MerchantEntry$inboundSchema)),
59
+ });
60
+ /** @internal */
61
+ export type MerchantCategoryRestrictions$Outbound = {
62
+ mode: string;
63
+ categories?: Array<string> | undefined;
64
+ customMCCs?: Array<string> | undefined;
65
+ exemptMerchants?: Array<MerchantEntry$Outbound> | undefined;
66
+ };
67
+
68
+ /** @internal */
69
+ export const MerchantCategoryRestrictions$outboundSchema: z.ZodType<
70
+ MerchantCategoryRestrictions$Outbound,
71
+ z.ZodTypeDef,
72
+ MerchantCategoryRestrictions
73
+ > = z.object({
74
+ mode: IssuingControlsRestrictionMode$outboundSchema,
75
+ categories: z.array(IssuingMerchantCategory$outboundSchema).optional(),
76
+ customMCCs: z.array(z.string()).optional(),
77
+ exemptMerchants: z.array(MerchantEntry$outboundSchema).optional(),
78
+ });
79
+
80
+ export function merchantCategoryRestrictionsToJSON(
81
+ merchantCategoryRestrictions: MerchantCategoryRestrictions,
82
+ ): string {
83
+ return JSON.stringify(
84
+ MerchantCategoryRestrictions$outboundSchema.parse(
85
+ merchantCategoryRestrictions,
86
+ ),
87
+ );
88
+ }
89
+ export function merchantCategoryRestrictionsFromJSON(
90
+ jsonString: string,
91
+ ): SafeParseResult<MerchantCategoryRestrictions, SDKValidationError> {
92
+ return safeParse(
93
+ jsonString,
94
+ (x) => MerchantCategoryRestrictions$inboundSchema.parse(JSON.parse(x)),
95
+ `Failed to parse 'MerchantCategoryRestrictions' from JSON`,
96
+ );
97
+ }
@@ -0,0 +1,72 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import * as types from "../../types/primitives.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ MerchantEntryError,
12
+ MerchantEntryError$inboundSchema,
13
+ MerchantEntryError$Outbound,
14
+ MerchantEntryError$outboundSchema,
15
+ } from "./merchantentryerror.js";
16
+
17
+ export type MerchantCategoryRestrictionsError = {
18
+ mode?: string | undefined;
19
+ categories?: { [k: string]: string } | undefined;
20
+ customMCCs?: { [k: string]: string } | undefined;
21
+ exemptMerchants?: { [k: string]: MerchantEntryError } | undefined;
22
+ };
23
+
24
+ /** @internal */
25
+ export const MerchantCategoryRestrictionsError$inboundSchema: z.ZodType<
26
+ MerchantCategoryRestrictionsError,
27
+ z.ZodTypeDef,
28
+ unknown
29
+ > = z.object({
30
+ mode: types.optional(types.string()),
31
+ categories: types.optional(z.record(types.string())),
32
+ customMCCs: types.optional(z.record(types.string())),
33
+ exemptMerchants: types.optional(z.record(MerchantEntryError$inboundSchema)),
34
+ });
35
+ /** @internal */
36
+ export type MerchantCategoryRestrictionsError$Outbound = {
37
+ mode?: string | undefined;
38
+ categories?: { [k: string]: string } | undefined;
39
+ customMCCs?: { [k: string]: string } | undefined;
40
+ exemptMerchants?: { [k: string]: MerchantEntryError$Outbound } | undefined;
41
+ };
42
+
43
+ /** @internal */
44
+ export const MerchantCategoryRestrictionsError$outboundSchema: z.ZodType<
45
+ MerchantCategoryRestrictionsError$Outbound,
46
+ z.ZodTypeDef,
47
+ MerchantCategoryRestrictionsError
48
+ > = z.object({
49
+ mode: z.string().optional(),
50
+ categories: z.record(z.string()).optional(),
51
+ customMCCs: z.record(z.string()).optional(),
52
+ exemptMerchants: z.record(MerchantEntryError$outboundSchema).optional(),
53
+ });
54
+
55
+ export function merchantCategoryRestrictionsErrorToJSON(
56
+ merchantCategoryRestrictionsError: MerchantCategoryRestrictionsError,
57
+ ): string {
58
+ return JSON.stringify(
59
+ MerchantCategoryRestrictionsError$outboundSchema.parse(
60
+ merchantCategoryRestrictionsError,
61
+ ),
62
+ );
63
+ }
64
+ export function merchantCategoryRestrictionsErrorFromJSON(
65
+ jsonString: string,
66
+ ): SafeParseResult<MerchantCategoryRestrictionsError, SDKValidationError> {
67
+ return safeParse(
68
+ jsonString,
69
+ (x) => MerchantCategoryRestrictionsError$inboundSchema.parse(JSON.parse(x)),
70
+ `Failed to parse 'MerchantCategoryRestrictionsError' from JSON`,
71
+ );
72
+ }
@@ -0,0 +1,68 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import * as types from "../../types/primitives.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * Identifies a merchant by ID, descriptor pattern, or both. At least one of `networkID` or `descriptorPattern` must be set.
13
+ */
14
+ export type MerchantEntry = {
15
+ /**
16
+ * The merchant's unique identifier (ISO 8583 DE42), matched exactly.
17
+ */
18
+ networkID?: string | undefined;
19
+ /**
20
+ * A case-insensitive RE2 regular expression matched against the merchant descriptor (ISO 8583 DE43).
21
+ */
22
+ descriptorPattern?: string | undefined;
23
+ /**
24
+ * An optional label for this entry.
25
+ */
26
+ name?: string | undefined;
27
+ };
28
+
29
+ /** @internal */
30
+ export const MerchantEntry$inboundSchema: z.ZodType<
31
+ MerchantEntry,
32
+ z.ZodTypeDef,
33
+ unknown
34
+ > = z.object({
35
+ networkID: types.optional(types.string()),
36
+ descriptorPattern: types.optional(types.string()),
37
+ name: types.optional(types.string()),
38
+ });
39
+ /** @internal */
40
+ export type MerchantEntry$Outbound = {
41
+ networkID?: string | undefined;
42
+ descriptorPattern?: string | undefined;
43
+ name?: string | undefined;
44
+ };
45
+
46
+ /** @internal */
47
+ export const MerchantEntry$outboundSchema: z.ZodType<
48
+ MerchantEntry$Outbound,
49
+ z.ZodTypeDef,
50
+ MerchantEntry
51
+ > = z.object({
52
+ networkID: z.string().optional(),
53
+ descriptorPattern: z.string().optional(),
54
+ name: z.string().optional(),
55
+ });
56
+
57
+ export function merchantEntryToJSON(merchantEntry: MerchantEntry): string {
58
+ return JSON.stringify(MerchantEntry$outboundSchema.parse(merchantEntry));
59
+ }
60
+ export function merchantEntryFromJSON(
61
+ jsonString: string,
62
+ ): SafeParseResult<MerchantEntry, SDKValidationError> {
63
+ return safeParse(
64
+ jsonString,
65
+ (x) => MerchantEntry$inboundSchema.parse(JSON.parse(x)),
66
+ `Failed to parse 'MerchantEntry' from JSON`,
67
+ );
68
+ }