@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
@@ -35,11 +35,11 @@ import {
35
35
  IssuedCardState$outboundSchema,
36
36
  } from "./issuedcardstate.js";
37
37
  import {
38
- IssuingControls,
39
- IssuingControls$inboundSchema,
40
- IssuingControls$Outbound,
41
- IssuingControls$outboundSchema,
42
- } from "./issuingcontrols.js";
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
- controls?: IssuingControls | undefined;
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(IssuingControls$inboundSchema),
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?: IssuingControls$Outbound | undefined;
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: IssuingControls$outboundSchema.optional(),
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
- IssuingControls,
39
- IssuingControls$inboundSchema,
40
- IssuingControls$Outbound,
41
- IssuingControls$outboundSchema,
42
- } from "./issuingcontrols.js";
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
- controls?: IssuingControls | undefined;
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(IssuingControls$inboundSchema),
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?: IssuingControls$Outbound | undefined;
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: IssuingControls$outboundSchema.optional(),
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(