@moovio/sdk 0.0.0-dev.28 → 0.0.0-dev.29

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 (416) hide show
  1. package/README.md +111 -74
  2. package/bin/mcp-server.js +2111 -1146
  3. package/bin/mcp-server.js.map +95 -66
  4. package/funcs/cardIssuingListMerchantCategories.d.ts +19 -0
  5. package/funcs/cardIssuingListMerchantCategories.d.ts.map +1 -0
  6. package/funcs/cardIssuingListMerchantCategories.js +109 -0
  7. package/funcs/cardIssuingListMerchantCategories.js.map +1 -0
  8. package/funcs/transfersCreateCancellation.js +4 -1
  9. package/funcs/transfersCreateCancellation.js.map +1 -1
  10. package/funcs/transfersCreateCapture.d.ts +18 -0
  11. package/funcs/transfersCreateCapture.d.ts.map +1 -0
  12. package/funcs/transfersCreateCapture.js +132 -0
  13. package/funcs/transfersCreateCapture.js.map +1 -0
  14. package/funcs/transfersGetCapture.d.ts +17 -0
  15. package/funcs/transfersGetCapture.d.ts.map +1 -0
  16. package/funcs/transfersGetCapture.js +133 -0
  17. package/funcs/transfersGetCapture.js.map +1 -0
  18. package/funcs/transfersList.js +1 -0
  19. package/funcs/transfersList.js.map +1 -1
  20. package/funcs/transfersListCaptures.d.ts +17 -0
  21. package/funcs/transfersListCaptures.d.ts.map +1 -0
  22. package/funcs/transfersListCaptures.js +129 -0
  23. package/funcs/transfersListCaptures.js.map +1 -0
  24. package/jsr.json +1 -1
  25. package/lib/config.d.ts +2 -2
  26. package/lib/config.js +2 -2
  27. package/mcp-server/mcp-server.js +1 -1
  28. package/mcp-server/server.d.ts.map +1 -1
  29. package/mcp-server/server.js +14 -6
  30. package/mcp-server/server.js.map +1 -1
  31. package/mcp-server/tools/avatarsGet.js +1 -1
  32. package/mcp-server/tools/cardIssuingListMerchantCategories.d.ts +3 -0
  33. package/mcp-server/tools/cardIssuingListMerchantCategories.d.ts.map +1 -0
  34. package/mcp-server/tools/cardIssuingListMerchantCategories.js +29 -0
  35. package/mcp-server/tools/cardIssuingListMerchantCategories.js.map +1 -0
  36. package/mcp-server/tools/enrichedAddressGet.js +1 -1
  37. package/mcp-server/tools/enrichedProfileGet.js +1 -1
  38. package/mcp-server/tools/institutionsSearch.js +1 -1
  39. package/mcp-server/tools/transfersCreateCapture.d.ts +8 -0
  40. package/mcp-server/tools/transfersCreateCapture.d.ts.map +1 -0
  41. package/mcp-server/tools/transfersCreateCapture.js +65 -0
  42. package/mcp-server/tools/transfersCreateCapture.js.map +1 -0
  43. package/mcp-server/tools/transfersGetCapture.d.ts +8 -0
  44. package/mcp-server/tools/transfersGetCapture.d.ts.map +1 -0
  45. package/{models/components/instantbanktransactionstatus.js → mcp-server/tools/transfersGetCapture.js} +26 -15
  46. package/mcp-server/tools/transfersGetCapture.js.map +1 -0
  47. package/mcp-server/tools/transfersListCaptures.d.ts +8 -0
  48. package/mcp-server/tools/transfersListCaptures.d.ts.map +1 -0
  49. package/mcp-server/tools/transfersListCaptures.js +65 -0
  50. package/mcp-server/tools/transfersListCaptures.js.map +1 -0
  51. package/models/components/achcreditoptions.d.ts +28 -0
  52. package/models/components/achcreditoptions.d.ts.map +1 -0
  53. package/models/components/achcreditoptions.js +64 -0
  54. package/models/components/achcreditoptions.js.map +1 -0
  55. package/models/components/achcredittransferprocessingdetails.d.ts +22 -0
  56. package/models/components/achcredittransferprocessingdetails.d.ts.map +1 -0
  57. package/models/components/achcredittransferprocessingdetails.js +64 -0
  58. package/models/components/achcredittransferprocessingdetails.js.map +1 -0
  59. package/models/components/achdebitoptions.d.ts +40 -0
  60. package/models/components/achdebitoptions.d.ts.map +1 -0
  61. package/models/components/{achtransactiondetails.js → achdebitoptions.js} +10 -34
  62. package/models/components/achdebitoptions.js.map +1 -0
  63. package/models/components/achdebittransferprocessingdetails.d.ts +22 -0
  64. package/models/components/achdebittransferprocessingdetails.d.ts.map +1 -0
  65. package/models/components/achdebittransferprocessingdetails.js +64 -0
  66. package/models/components/achdebittransferprocessingdetails.js.map +1 -0
  67. package/models/components/asynccreatedrefund.d.ts +8 -3
  68. package/models/components/asynccreatedrefund.d.ts.map +1 -1
  69. package/models/components/asynccreatedrefund.js +5 -3
  70. package/models/components/asynccreatedrefund.js.map +1 -1
  71. package/models/components/capture.d.ts +77 -0
  72. package/models/components/capture.d.ts.map +1 -0
  73. package/models/components/capture.js +85 -0
  74. package/models/components/capture.js.map +1 -0
  75. package/models/components/capturestatus.d.ts +16 -0
  76. package/models/components/capturestatus.d.ts.map +1 -0
  77. package/models/components/{refundcardstatus.js → capturestatus.js} +9 -8
  78. package/models/components/capturestatus.js.map +1 -0
  79. package/models/components/cardacquiringrefund.d.ts +11 -6
  80. package/models/components/cardacquiringrefund.d.ts.map +1 -1
  81. package/models/components/cardacquiringrefund.js +8 -6
  82. package/models/components/cardacquiringrefund.js.map +1 -1
  83. package/models/components/cardpaymentoptions.d.ts +31 -0
  84. package/models/components/cardpaymentoptions.d.ts.map +1 -0
  85. package/models/components/cardpaymentoptions.js +62 -0
  86. package/models/components/cardpaymentoptions.js.map +1 -0
  87. package/models/components/cardpaymentrefundprocessingdetails.d.ts +18 -0
  88. package/models/components/cardpaymentrefundprocessingdetails.d.ts.map +1 -0
  89. package/models/components/{refundcarddetails.js → cardpaymentrefundprocessingdetails.js} +10 -23
  90. package/models/components/cardpaymentrefundprocessingdetails.js.map +1 -0
  91. package/models/components/cardpaymenttransferprocessingdetails.d.ts +24 -0
  92. package/models/components/cardpaymenttransferprocessingdetails.d.ts.map +1 -0
  93. package/models/components/cardpaymenttransferprocessingdetails.js +66 -0
  94. package/models/components/cardpaymenttransferprocessingdetails.js.map +1 -0
  95. package/models/components/createcancellation.d.ts +18 -0
  96. package/models/components/createcancellation.d.ts.map +1 -0
  97. package/models/components/{cardacquiringdispute.js → createcancellation.js} +13 -17
  98. package/models/components/createcancellation.js.map +1 -0
  99. package/models/components/createcapture.d.ts +70 -0
  100. package/models/components/createcapture.d.ts.map +1 -0
  101. package/models/components/createcapture.js +78 -0
  102. package/models/components/createcapture.js.map +1 -0
  103. package/models/components/createdtransfer.d.ts +24 -29
  104. package/models/components/createdtransfer.d.ts.map +1 -1
  105. package/models/components/createdtransfer.js +21 -23
  106. package/models/components/createdtransfer.js.map +1 -1
  107. package/models/components/createrefund.d.ts +10 -4
  108. package/models/components/createrefund.d.ts.map +1 -1
  109. package/models/components/createrefund.js +5 -2
  110. package/models/components/createrefund.js.map +1 -1
  111. package/models/components/createreversal.d.ts +4 -3
  112. package/models/components/createreversal.d.ts.map +1 -1
  113. package/models/components/createreversal.js +3 -2
  114. package/models/components/createreversal.js.map +1 -1
  115. package/models/components/createtransfer.d.ts +7 -7
  116. package/models/components/createtransfer.d.ts.map +1 -1
  117. package/models/components/createtransfer.js +6 -6
  118. package/models/components/createtransfer.js.map +1 -1
  119. package/models/components/createtransferfacilitatorfee.d.ts +29 -0
  120. package/models/components/createtransferfacilitatorfee.d.ts.map +1 -0
  121. package/models/components/createtransferfacilitatorfee.js +62 -0
  122. package/models/components/createtransferfacilitatorfee.js.map +1 -0
  123. package/models/components/createtransferoptions.d.ts +3 -3
  124. package/models/components/createtransferoptions.d.ts.map +1 -1
  125. package/models/components/createtransferoptions.js +3 -3
  126. package/models/components/createtransferoptions.js.map +1 -1
  127. package/models/components/index.d.ts +26 -10
  128. package/models/components/index.d.ts.map +1 -1
  129. package/models/components/index.js +26 -10
  130. package/models/components/index.js.map +1 -1
  131. package/models/components/instantbankcredittransferprocessingdetails.d.ts +31 -0
  132. package/models/components/instantbankcredittransferprocessingdetails.d.ts.map +1 -0
  133. package/models/components/{instantbanktransactiondetails.js → instantbankcredittransferprocessingdetails.js} +10 -21
  134. package/models/components/instantbankcredittransferprocessingdetails.js.map +1 -0
  135. package/models/components/merchantcategories.d.ts +21 -0
  136. package/models/components/merchantcategories.d.ts.map +1 -0
  137. package/models/components/{cardtransactionstatus.js → merchantcategories.js} +19 -17
  138. package/models/components/merchantcategories.js.map +1 -0
  139. package/models/components/merchantcategory.d.ts +32 -0
  140. package/models/components/merchantcategory.d.ts.map +1 -0
  141. package/models/components/merchantcategory.js +62 -0
  142. package/models/components/merchantcategory.js.map +1 -0
  143. package/models/components/moovfeedetails.d.ts +9 -8
  144. package/models/components/moovfeedetails.d.ts.map +1 -1
  145. package/models/components/moovfeedetails.js +9 -8
  146. package/models/components/moovfeedetails.js.map +1 -1
  147. package/models/components/paymentmethodswallet.d.ts +1 -0
  148. package/models/components/paymentmethodswallet.d.ts.map +1 -1
  149. package/models/components/paymentmethodswallet.js.map +1 -1
  150. package/models/components/pullfromcardoptions.d.ts +31 -0
  151. package/models/components/pullfromcardoptions.d.ts.map +1 -0
  152. package/models/components/pullfromcardoptions.js +62 -0
  153. package/models/components/pullfromcardoptions.js.map +1 -0
  154. package/models/components/pullfromcardtransferprocessingdetails.d.ts +24 -0
  155. package/models/components/pullfromcardtransferprocessingdetails.d.ts.map +1 -0
  156. package/models/components/pullfromcardtransferprocessingdetails.js +66 -0
  157. package/models/components/pullfromcardtransferprocessingdetails.js.map +1 -0
  158. package/models/components/pushtocardoptions.d.ts +20 -0
  159. package/models/components/pushtocardoptions.d.ts.map +1 -0
  160. package/models/components/{transfercapture.js → pushtocardoptions.js} +12 -14
  161. package/models/components/pushtocardoptions.js.map +1 -0
  162. package/models/components/pushtocardtransferprocessingdetails.d.ts +24 -0
  163. package/models/components/pushtocardtransferprocessingdetails.d.ts.map +1 -0
  164. package/models/components/pushtocardtransferprocessingdetails.js +66 -0
  165. package/models/components/pushtocardtransferprocessingdetails.js.map +1 -0
  166. package/models/components/refundprocessingdetails.d.ts +18 -0
  167. package/models/components/refundprocessingdetails.d.ts.map +1 -0
  168. package/models/components/refundprocessingdetails.js +60 -0
  169. package/models/components/refundprocessingdetails.js.map +1 -0
  170. package/models/components/sendfunds.d.ts +3 -0
  171. package/models/components/sendfunds.d.ts.map +1 -1
  172. package/models/components/sendfunds.js +3 -0
  173. package/models/components/sendfunds.js.map +1 -1
  174. package/models/components/sendfundserror.d.ts +3 -0
  175. package/models/components/sendfundserror.d.ts.map +1 -1
  176. package/models/components/sendfundserror.js +3 -0
  177. package/models/components/sendfundserror.js.map +1 -1
  178. package/models/components/sendfundswire.d.ts +18 -0
  179. package/models/components/sendfundswire.d.ts.map +1 -0
  180. package/models/components/sendfundswire.js +60 -0
  181. package/models/components/sendfundswire.js.map +1 -0
  182. package/models/components/sendfundswireerror.d.ts +18 -0
  183. package/models/components/sendfundswireerror.d.ts.map +1 -0
  184. package/models/components/sendfundswireerror.js +60 -0
  185. package/models/components/sendfundswireerror.js.map +1 -0
  186. package/models/components/transfer.d.ts +24 -29
  187. package/models/components/transfer.d.ts.map +1 -1
  188. package/models/components/transfer.js +21 -23
  189. package/models/components/transfer.js.map +1 -1
  190. package/models/components/transferauthorization.d.ts +28 -0
  191. package/models/components/transferauthorization.d.ts.map +1 -0
  192. package/models/components/transferauthorization.js +70 -0
  193. package/models/components/transferauthorization.js.map +1 -0
  194. package/models/components/transferdestination.d.ts +6 -24
  195. package/models/components/transferdestination.d.ts.map +1 -1
  196. package/models/components/transferdestination.js +6 -15
  197. package/models/components/transferdestination.js.map +1 -1
  198. package/models/components/transferpaymentmethodswallet.d.ts +1 -0
  199. package/models/components/transferpaymentmethodswallet.d.ts.map +1 -1
  200. package/models/components/transferpaymentmethodswallet.js.map +1 -1
  201. package/models/components/transferprocessingdetails.d.ts +33 -0
  202. package/models/components/transferprocessingdetails.d.ts.map +1 -0
  203. package/models/components/transferprocessingdetails.js +76 -0
  204. package/models/components/transferprocessingdetails.js.map +1 -0
  205. package/models/components/transferrailoptions.d.ts +30 -0
  206. package/models/components/transferrailoptions.d.ts.map +1 -0
  207. package/models/components/transferrailoptions.js +72 -0
  208. package/models/components/transferrailoptions.js.map +1 -0
  209. package/models/components/transfersource.d.ts +6 -18
  210. package/models/components/transfersource.d.ts.map +1 -1
  211. package/models/components/transfersource.js +6 -12
  212. package/models/components/transfersource.js.map +1 -1
  213. package/models/components/transferstatus.d.ts +1 -0
  214. package/models/components/transferstatus.d.ts.map +1 -1
  215. package/models/components/transferstatus.js +1 -0
  216. package/models/components/transferstatus.js.map +1 -1
  217. package/models/components/transfertype.d.ts +24 -0
  218. package/models/components/transfertype.d.ts.map +1 -0
  219. package/models/components/{achtransactionstatus.js → transfertype.js} +14 -13
  220. package/models/components/transfertype.js.map +1 -0
  221. package/models/components/wallet.d.ts +1 -0
  222. package/models/components/wallet.d.ts.map +1 -1
  223. package/models/components/wallet.js.map +1 -1
  224. package/models/components/wallettype.d.ts +3 -0
  225. package/models/components/wallettype.d.ts.map +1 -1
  226. package/models/components/wallettype.js +2 -0
  227. package/models/components/wallettype.js.map +1 -1
  228. package/models/components/webhookdatatransferstatus.d.ts +3 -0
  229. package/models/components/webhookdatatransferstatus.d.ts.map +1 -1
  230. package/models/components/webhookdatatransferstatus.js +3 -0
  231. package/models/components/webhookdatatransferstatus.js.map +1 -1
  232. package/models/errors/capturevalidationerror.d.ts +55 -0
  233. package/models/errors/capturevalidationerror.d.ts.map +1 -0
  234. package/models/errors/capturevalidationerror.js +117 -0
  235. package/models/errors/capturevalidationerror.js.map +1 -0
  236. package/models/errors/cardacquiringrefund.d.ts +15 -6
  237. package/models/errors/cardacquiringrefund.d.ts.map +1 -1
  238. package/models/errors/cardacquiringrefund.js +9 -6
  239. package/models/errors/cardacquiringrefund.js.map +1 -1
  240. package/models/errors/index.d.ts +1 -0
  241. package/models/errors/index.d.ts.map +1 -1
  242. package/models/errors/index.js +1 -0
  243. package/models/errors/index.js.map +1 -1
  244. package/models/errors/transfer.d.ts +30 -39
  245. package/models/errors/transfer.d.ts.map +1 -1
  246. package/models/errors/transfer.js +21 -29
  247. package/models/errors/transfer.js.map +1 -1
  248. package/models/operations/createcancellation.d.ts +2 -0
  249. package/models/operations/createcancellation.d.ts.map +1 -1
  250. package/models/operations/createcancellation.js +10 -0
  251. package/models/operations/createcancellation.js.map +1 -1
  252. package/models/operations/createcapture.d.ts +52 -0
  253. package/models/operations/createcapture.d.ts.map +1 -0
  254. package/models/operations/createcapture.js +105 -0
  255. package/models/operations/createcapture.js.map +1 -0
  256. package/models/operations/createreversal.d.ts +2 -2
  257. package/models/operations/createreversal.d.ts.map +1 -1
  258. package/models/operations/createreversal.js +2 -2
  259. package/models/operations/createreversal.js.map +1 -1
  260. package/models/operations/getcapture.d.ts +50 -0
  261. package/models/operations/getcapture.d.ts.map +1 -0
  262. package/models/operations/getcapture.js +93 -0
  263. package/models/operations/getcapture.js.map +1 -0
  264. package/models/operations/index.d.ts +4 -0
  265. package/models/operations/index.d.ts.map +1 -1
  266. package/models/operations/index.js +4 -0
  267. package/models/operations/index.js.map +1 -1
  268. package/models/operations/initiaterefund.d.ts +2 -2
  269. package/models/operations/initiaterefund.d.ts.map +1 -1
  270. package/models/operations/initiaterefund.js +2 -2
  271. package/models/operations/initiaterefund.js.map +1 -1
  272. package/models/operations/listcaptures.d.ts +45 -0
  273. package/models/operations/listcaptures.d.ts.map +1 -0
  274. package/models/operations/listcaptures.js +91 -0
  275. package/models/operations/listcaptures.js.map +1 -0
  276. package/models/operations/listissuingmerchantcategories.d.ts +24 -0
  277. package/models/operations/listissuingmerchantcategories.d.ts.map +1 -0
  278. package/models/operations/listissuingmerchantcategories.js +72 -0
  279. package/models/operations/listissuingmerchantcategories.js.map +1 -0
  280. package/models/operations/listtransfers.d.ts +5 -0
  281. package/models/operations/listtransfers.d.ts.map +1 -1
  282. package/models/operations/listtransfers.js +2 -0
  283. package/models/operations/listtransfers.js.map +1 -1
  284. package/package.json +1 -1
  285. package/sdk/cardissuing.d.ts +9 -0
  286. package/sdk/cardissuing.d.ts.map +1 -1
  287. package/sdk/cardissuing.js +12 -0
  288. package/sdk/cardissuing.js.map +1 -1
  289. package/sdk/sdk.d.ts +2 -2
  290. package/sdk/sdk.d.ts.map +1 -1
  291. package/sdk/sdk.js +3 -3
  292. package/sdk/sdk.js.map +1 -1
  293. package/sdk/transfers.d.ts +21 -0
  294. package/sdk/transfers.d.ts.map +1 -1
  295. package/sdk/transfers.js +30 -0
  296. package/sdk/transfers.js.map +1 -1
  297. package/src/funcs/cardIssuingListMerchantCategories.ts +155 -0
  298. package/src/funcs/transfersCreateCancellation.ts +5 -2
  299. package/src/funcs/transfersCreateCapture.ts +196 -0
  300. package/src/funcs/transfersGetCapture.ts +185 -0
  301. package/src/funcs/transfersList.ts +1 -0
  302. package/src/funcs/transfersListCaptures.ts +181 -0
  303. package/src/lib/config.ts +2 -2
  304. package/src/mcp-server/mcp-server.ts +1 -1
  305. package/src/mcp-server/server.ts +14 -6
  306. package/src/mcp-server/tools/avatarsGet.ts +1 -1
  307. package/src/mcp-server/tools/cardIssuingListMerchantCategories.ts +34 -0
  308. package/src/mcp-server/tools/enrichedAddressGet.ts +1 -1
  309. package/src/mcp-server/tools/enrichedProfileGet.ts +1 -1
  310. package/src/mcp-server/tools/institutionsSearch.ts +1 -1
  311. package/src/mcp-server/tools/transfersCreateCapture.ts +38 -0
  312. package/src/mcp-server/tools/transfersGetCapture.ts +38 -0
  313. package/src/mcp-server/tools/transfersListCaptures.ts +38 -0
  314. package/src/models/components/achcreditoptions.ts +72 -0
  315. package/src/models/components/achcredittransferprocessingdetails.ts +69 -0
  316. package/src/models/components/achdebitoptions.ts +94 -0
  317. package/src/models/components/achdebittransferprocessingdetails.ts +68 -0
  318. package/src/models/components/asynccreatedrefund.ts +16 -9
  319. package/src/models/components/capture.ts +142 -0
  320. package/src/models/components/capturestatus.ts +30 -0
  321. package/src/models/components/cardacquiringrefund.ts +25 -18
  322. package/src/models/components/cardpaymentoptions.ts +72 -0
  323. package/src/models/components/cardpaymentrefundprocessingdetails.ts +60 -0
  324. package/src/models/components/cardpaymenttransferprocessingdetails.ts +72 -0
  325. package/src/models/components/createcancellation.ts +58 -0
  326. package/src/models/components/createcapture.ts +128 -0
  327. package/src/models/components/createdtransfer.ts +62 -70
  328. package/src/models/components/createrefund.ts +19 -6
  329. package/src/models/components/createreversal.ts +11 -5
  330. package/src/models/components/createtransfer.ts +20 -20
  331. package/src/models/components/createtransferfacilitatorfee.ts +73 -0
  332. package/src/models/components/createtransferoptions.ts +9 -9
  333. package/src/models/components/index.ts +26 -10
  334. package/src/models/components/instantbankcredittransferprocessingdetails.ts +88 -0
  335. package/src/models/components/merchantcategories.ts +60 -0
  336. package/src/models/components/merchantcategory.ts +73 -0
  337. package/src/models/components/moovfeedetails.ts +22 -16
  338. package/src/models/components/paymentmethodswallet.ts +1 -0
  339. package/src/models/components/pullfromcardoptions.ts +72 -0
  340. package/src/models/components/pullfromcardtransferprocessingdetails.ts +72 -0
  341. package/src/models/components/pushtocardoptions.ts +55 -0
  342. package/src/models/components/pushtocardtransferprocessingdetails.ts +72 -0
  343. package/src/models/components/refundprocessingdetails.ts +58 -0
  344. package/src/models/components/sendfunds.ts +10 -0
  345. package/src/models/components/sendfundserror.ts +10 -0
  346. package/src/models/components/sendfundswire.ts +54 -0
  347. package/src/models/components/sendfundswireerror.ts +58 -0
  348. package/src/models/components/transfer.ts +62 -70
  349. package/src/models/components/transferauthorization.ts +78 -0
  350. package/src/models/components/transferdestination.ts +12 -53
  351. package/src/models/components/transferpaymentmethodswallet.ts +1 -0
  352. package/src/models/components/transferprocessingdetails.ts +117 -0
  353. package/src/models/components/transferrailoptions.ts +98 -0
  354. package/src/models/components/transfersource.ts +12 -38
  355. package/src/models/components/transferstatus.ts +1 -0
  356. package/src/models/components/transfertype.ts +38 -0
  357. package/src/models/components/wallet.ts +1 -0
  358. package/src/models/components/wallettype.ts +3 -0
  359. package/src/models/components/webhookdatatransferstatus.ts +3 -0
  360. package/src/models/errors/capturevalidationerror.ts +145 -0
  361. package/src/models/errors/cardacquiringrefund.ts +23 -11
  362. package/src/models/errors/index.ts +1 -0
  363. package/src/models/errors/transfer.ts +50 -67
  364. package/src/models/operations/createcancellation.ts +12 -0
  365. package/src/models/operations/createcapture.ts +142 -0
  366. package/src/models/operations/createreversal.ts +4 -4
  367. package/src/models/operations/getcapture.ts +128 -0
  368. package/src/models/operations/index.ts +4 -0
  369. package/src/models/operations/initiaterefund.ts +4 -4
  370. package/src/models/operations/listcaptures.ts +121 -0
  371. package/src/models/operations/listissuingmerchantcategories.ts +70 -0
  372. package/src/models/operations/listtransfers.ts +7 -0
  373. package/src/sdk/cardissuing.ts +18 -0
  374. package/src/sdk/sdk.ts +5 -5
  375. package/src/sdk/transfers.ts +54 -0
  376. package/models/components/achtransactiondetails.d.ts +0 -70
  377. package/models/components/achtransactiondetails.d.ts.map +0 -1
  378. package/models/components/achtransactiondetails.js.map +0 -1
  379. package/models/components/achtransactionstatus.d.ts +0 -23
  380. package/models/components/achtransactionstatus.d.ts.map +0 -1
  381. package/models/components/achtransactionstatus.js.map +0 -1
  382. package/models/components/cardacquiringdispute.d.ts +0 -25
  383. package/models/components/cardacquiringdispute.d.ts.map +0 -1
  384. package/models/components/cardacquiringdispute.js.map +0 -1
  385. package/models/components/cardtransactiondetails.d.ts +0 -79
  386. package/models/components/cardtransactiondetails.d.ts.map +0 -1
  387. package/models/components/cardtransactiondetails.js +0 -90
  388. package/models/components/cardtransactiondetails.js.map +0 -1
  389. package/models/components/cardtransactionstatus.d.ts +0 -23
  390. package/models/components/cardtransactionstatus.d.ts.map +0 -1
  391. package/models/components/cardtransactionstatus.js.map +0 -1
  392. package/models/components/instantbanktransactiondetails.d.ts +0 -51
  393. package/models/components/instantbanktransactiondetails.d.ts.map +0 -1
  394. package/models/components/instantbanktransactiondetails.js.map +0 -1
  395. package/models/components/instantbanktransactionstatus.d.ts +0 -20
  396. package/models/components/instantbanktransactionstatus.d.ts.map +0 -1
  397. package/models/components/instantbanktransactionstatus.js.map +0 -1
  398. package/models/components/refundcarddetails.d.ts +0 -31
  399. package/models/components/refundcarddetails.d.ts.map +0 -1
  400. package/models/components/refundcarddetails.js.map +0 -1
  401. package/models/components/refundcardstatus.d.ts +0 -15
  402. package/models/components/refundcardstatus.d.ts.map +0 -1
  403. package/models/components/refundcardstatus.js.map +0 -1
  404. package/models/components/transfercapture.d.ts +0 -28
  405. package/models/components/transfercapture.d.ts.map +0 -1
  406. package/models/components/transfercapture.js.map +0 -1
  407. package/src/models/components/achtransactiondetails.ts +0 -157
  408. package/src/models/components/achtransactionstatus.ts +0 -37
  409. package/src/models/components/cardacquiringdispute.ts +0 -69
  410. package/src/models/components/cardtransactiondetails.ts +0 -154
  411. package/src/models/components/cardtransactionstatus.ts +0 -37
  412. package/src/models/components/instantbanktransactiondetails.ts +0 -116
  413. package/src/models/components/instantbanktransactionstatus.ts +0 -36
  414. package/src/models/components/refundcarddetails.ts +0 -86
  415. package/src/models/components/refundcardstatus.ts +0 -29
  416. package/src/models/components/transfercapture.ts +0 -63
package/sdk/sdk.js CHANGED
@@ -154,12 +154,12 @@ class Moov extends sdks_js_1.ClientSDK {
154
154
  get institutions() {
155
155
  return (this._institutions ?? (this._institutions = new institutions_js_1.Institutions(this._options)));
156
156
  }
157
- get issuingTransactions() {
158
- return (this._issuingTransactions ?? (this._issuingTransactions = new issuingtransactions_js_1.IssuingTransactions(this._options)));
159
- }
160
157
  get cardIssuing() {
161
158
  return (this._cardIssuing ?? (this._cardIssuing = new cardissuing_js_1.CardIssuing(this._options)));
162
159
  }
160
+ get issuingTransactions() {
161
+ return (this._issuingTransactions ?? (this._issuingTransactions = new issuingtransactions_js_1.IssuingTransactions(this._options)));
162
+ }
163
163
  get authentication() {
164
164
  return (this._authentication ?? (this._authentication = new authentication_js_1.Authentication(this._options)));
165
165
  }
package/sdk/sdk.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.js","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4CAA2C;AAC3C,+CAAyC;AACzC,qFAA+E;AAC/E,qDAA+C;AAC/C,+CAAyC;AACzC,2DAAqD;AACrD,6CAAuC;AACvC,uDAAiD;AACjD,+CAAyC;AACzC,uDAAiD;AACjD,qDAA+C;AAC/C,yCAAmC;AACnC,qDAA+C;AAC/C,+CAAyC;AACzC,mEAA6D;AAC7D,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,oBAAoB,KAAzB,IAAI,CAAC,oBAAoB,GAAK,IAAI,4CAAmB,CAC3D,IAAI,CAAC,QAAQ,CACd,EAAC,CAAC;IACL,CAAC;IAGD,IAAI,cAAc;QAChB,OAAO,CAAC,IAAI,CAAC,eAAe,KAApB,IAAI,CAAC,eAAe,GAAK,IAAI,kCAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACtE,CAAC;IAGD,IAAI,UAAU;QACZ,OAAO,CAAC,IAAI,CAAC,WAAW,KAAhB,IAAI,CAAC,WAAW,GAAK,IAAI,0BAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC9D,CAAC;IAGD,IAAI,IAAI;QACN,OAAO,CAAC,IAAI,CAAC,KAAK,KAAV,IAAI,CAAC,KAAK,GAAK,IAAI,cAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAClD,CAAC;IAGD,IAAI,QAAQ;QACV,OAAO,CAAC,IAAI,CAAC,SAAS,KAAd,IAAI,CAAC,SAAS,GAAK,IAAI,sBAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC1D,CAAC;IAGD,IAAI,oBAAoB;QACtB,OAAO,CAAC,IAAI,CAAC,qBAAqB,KAA1B,IAAI,CAAC,qBAAqB,GAAK,IAAI,8CAAoB,CAC7D,IAAI,CAAC,QAAQ,CACd,EAAC,CAAC;IACL,CAAC;IAGD,IAAI,WAAW;QACb,OAAO,CAAC,IAAI,CAAC,YAAY,KAAjB,IAAI,CAAC,YAAY,GAAK,IAAI,4BAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAChE,CAAC;CACF;AA5ND,oBA4NC"}
@@ -87,6 +87,27 @@ export declare class Transfers extends ClientSDK {
87
87
  * to specify the `/accounts/{accountID}/transfers.read` scope.
88
88
  */
89
89
  getCancellation(request: operations.GetCancellationRequest, options?: RequestOptions): Promise<operations.GetCancellationResponse>;
90
+ /**
91
+ * Create a capture against an authorized transfer.
92
+ *
93
+ * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
94
+ * you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
95
+ */
96
+ createCapture(request: operations.CreateCaptureRequest, options?: RequestOptions): Promise<operations.CreateCaptureResponse>;
97
+ /**
98
+ * Get a list of captures for a transfer.
99
+ *
100
+ * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
101
+ * you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
102
+ */
103
+ listCaptures(request: operations.ListCapturesRequest, options?: RequestOptions): Promise<operations.ListCapturesResponse>;
104
+ /**
105
+ * Get details of a capture for a transfer.
106
+ *
107
+ * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
108
+ * you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
109
+ */
110
+ getCapture(request: operations.GetCaptureRequest, options?: RequestOptions): Promise<operations.GetCaptureResponse>;
90
111
  /**
91
112
  * Initiate a refund for a card transfer.
92
113
  *
@@ -1 +1 @@
1
- {"version":3,"file":"transfers.d.ts","sourceRoot":"","sources":["../src/sdk/transfers.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,SAAU,SAAQ,SAAS;IACtC;;;;;;;;;;OAUG;IACG,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQpD;;;;;;;OAOG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAQ7C;;;;;;;;;;;;OAYG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,oBAA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AAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAQ7C;;;;;OAKG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAQ1C;;;;;OAKG;IACG,SAAS,CACb,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAQxC;;;;;;;OAOG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAQ7C;;;;;;;OAOG;IACG,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC;CAOvD"}
package/sdk/transfers.js CHANGED
@@ -7,15 +7,18 @@ exports.Transfers = void 0;
7
7
  const transfersBatchGetTransfers_js_1 = require("../funcs/transfersBatchGetTransfers.js");
8
8
  const transfersCreate_js_1 = require("../funcs/transfersCreate.js");
9
9
  const transfersCreateCancellation_js_1 = require("../funcs/transfersCreateCancellation.js");
10
+ const transfersCreateCapture_js_1 = require("../funcs/transfersCreateCapture.js");
10
11
  const transfersCreateReversal_js_1 = require("../funcs/transfersCreateReversal.js");
11
12
  const transfersGenerateOptions_js_1 = require("../funcs/transfersGenerateOptions.js");
12
13
  const transfersGet_js_1 = require("../funcs/transfersGet.js");
13
14
  const transfersGetCancellation_js_1 = require("../funcs/transfersGetCancellation.js");
15
+ const transfersGetCapture_js_1 = require("../funcs/transfersGetCapture.js");
14
16
  const transfersGetRefund_js_1 = require("../funcs/transfersGetRefund.js");
15
17
  const transfersGetRiskOutcomes_js_1 = require("../funcs/transfersGetRiskOutcomes.js");
16
18
  const transfersInitiateRefund_js_1 = require("../funcs/transfersInitiateRefund.js");
17
19
  const transfersList_js_1 = require("../funcs/transfersList.js");
18
20
  const transfersListCancellations_js_1 = require("../funcs/transfersListCancellations.js");
21
+ const transfersListCaptures_js_1 = require("../funcs/transfersListCaptures.js");
19
22
  const transfersListRefunds_js_1 = require("../funcs/transfersListRefunds.js");
20
23
  const transfersUpdate_js_1 = require("../funcs/transfersUpdate.js");
21
24
  const sdks_js_1 = require("../lib/sdks.js");
@@ -125,6 +128,33 @@ class Transfers extends sdks_js_1.ClientSDK {
125
128
  async getCancellation(request, options) {
126
129
  return (0, fp_js_1.unwrapAsync)((0, transfersGetCancellation_js_1.transfersGetCancellation)(this, request, options));
127
130
  }
131
+ /**
132
+ * Create a capture against an authorized transfer.
133
+ *
134
+ * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
135
+ * you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
136
+ */
137
+ async createCapture(request, options) {
138
+ return (0, fp_js_1.unwrapAsync)((0, transfersCreateCapture_js_1.transfersCreateCapture)(this, request, options));
139
+ }
140
+ /**
141
+ * Get a list of captures for a transfer.
142
+ *
143
+ * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
144
+ * you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
145
+ */
146
+ async listCaptures(request, options) {
147
+ return (0, fp_js_1.unwrapAsync)((0, transfersListCaptures_js_1.transfersListCaptures)(this, request, options));
148
+ }
149
+ /**
150
+ * Get details of a capture for a transfer.
151
+ *
152
+ * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
153
+ * you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
154
+ */
155
+ async getCapture(request, options) {
156
+ return (0, fp_js_1.unwrapAsync)((0, transfersGetCapture_js_1.transfersGetCapture)(this, request, options));
157
+ }
128
158
  /**
129
159
  * Initiate a refund for a card transfer.
130
160
  *
@@ -1 +1 @@
1
- {"version":3,"file":"transfers.js","sourceRoot":"","sources":["../src/sdk/transfers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0FAAoF;AACpF,oEAA8D;AAC9D,4FAAsF;AACtF,oFAA8E;AAC9E,sFAAgF;AAChF,8DAAwD;AACxD,sFAAgF;AAChF,0EAAoE;AACpE,sFAAgF;AAChF,oFAA8E;AAC9E,gEAA0D;AAC1D,0FAAoF;AACpF,8EAAwE;AACxE,oEAA8D;AAC9D,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,SAAU,SAAQ,mBAAS;IACtC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,eAAe,CACnB,OAAgD,EAChD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,CACV,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oCAAe,EAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,IAAI,CACR,OAAwC,EACxC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gCAAa,EAC9B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0B,EAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,GAAG,CACP,OAAsC,EACtC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8BAAY,EAC7B,IAAI,EACJ,OAAO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AAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,eAAe,CACnB,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA5QD,8BA4QC"}
1
+ {"version":3,"file":"transfers.js","sourceRoot":"","sources":["../src/sdk/transfers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0FAAoF;AACpF,oEAA8D;AAC9D,4FAAsF;AACtF,kFAA4E;AAC5E,oFAA8E;AAC9E,sFAAgF;AAChF,8DAAwD;AACxD,sFAAgF;AAChF,4EAAsE;AACtE,0EAAoE;AACpE,sFAAgF;AAChF,oFAA8E;AAC9E,gEAA0D;AAC1D,0FAAoF;AACpF,gFAA0E;AAC1E,8EAAwE;AACxE,oEAA8D;AAC9D,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,SAAU,SAAQ,mBAAS;IACtC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,eAAe,CACnB,OAAgD,EAChD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,CACV,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oCAAe,EAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,IAAI,CACR,OAAwC,EACxC,OA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AAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA/TD,8BA+TC"}
@@ -0,0 +1,155 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { MoovCore } from "../core.js";
6
+ import { matchStatusCode } from "../lib/http.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import {
13
+ ConnectionError,
14
+ InvalidRequestError,
15
+ RequestAbortedError,
16
+ RequestTimeoutError,
17
+ UnexpectedClientError,
18
+ } from "../models/errors/httpclienterrors.js";
19
+ import { MoovError } from "../models/errors/mooverror.js";
20
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
21
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
22
+ import * as operations from "../models/operations/index.js";
23
+ import { APICall, APIPromise } from "../types/async.js";
24
+ import { Result } from "../types/fp.js";
25
+
26
+ /**
27
+ * List the predefined merchant category groups available for issued card spend controls, along with
28
+ * the merchant category codes (MCCs) each group covers. Use these category names in an issued card's
29
+ * `merchantCategoryRestrictions`.
30
+ *
31
+ * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/),
32
+ * you'll need to specify the `/issued-cards.read` scope.
33
+ */
34
+ export function cardIssuingListMerchantCategories(
35
+ client: MoovCore,
36
+ options?: RequestOptions,
37
+ ): APIPromise<
38
+ Result<
39
+ operations.ListIssuingMerchantCategoriesResponse,
40
+ | MoovError
41
+ | ResponseValidationError
42
+ | ConnectionError
43
+ | RequestAbortedError
44
+ | RequestTimeoutError
45
+ | InvalidRequestError
46
+ | UnexpectedClientError
47
+ | SDKValidationError
48
+ >
49
+ > {
50
+ return new APIPromise($do(
51
+ client,
52
+ options,
53
+ ));
54
+ }
55
+
56
+ async function $do(
57
+ client: MoovCore,
58
+ options?: RequestOptions,
59
+ ): Promise<
60
+ [
61
+ Result<
62
+ operations.ListIssuingMerchantCategoriesResponse,
63
+ | MoovError
64
+ | ResponseValidationError
65
+ | ConnectionError
66
+ | RequestAbortedError
67
+ | RequestTimeoutError
68
+ | InvalidRequestError
69
+ | UnexpectedClientError
70
+ | SDKValidationError
71
+ >,
72
+ APICall,
73
+ ]
74
+ > {
75
+ const path = pathToFunc("/issuing/merchant-categories")();
76
+
77
+ const headers = new Headers(compactMap({
78
+ Accept: "application/json",
79
+ }));
80
+
81
+ const securityInput = await extractSecurity(client._options.security);
82
+ const requestSecurity = resolveGlobalSecurity(securityInput);
83
+
84
+ const context = {
85
+ options: client._options,
86
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
87
+ operationID: "listIssuingMerchantCategories",
88
+ oAuth2Scopes: null,
89
+
90
+ resolvedSecurity: requestSecurity,
91
+
92
+ securitySource: client._options.security,
93
+ retryConfig: options?.retries
94
+ || client._options.retryConfig
95
+ || { strategy: "none" },
96
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
97
+ };
98
+
99
+ const requestRes = client._createRequest(context, {
100
+ security: requestSecurity,
101
+ method: "GET",
102
+ baseURL: options?.serverURL,
103
+ path: path,
104
+ headers: headers,
105
+ userAgent: client._options.userAgent,
106
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
107
+ }, options);
108
+ if (!requestRes.ok) {
109
+ return [requestRes, { status: "invalid" }];
110
+ }
111
+ const req = requestRes.value;
112
+
113
+ const doResult = await client._do(req, {
114
+ context,
115
+ isErrorStatusCode: (statusCode: number) =>
116
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
117
+ retryConfig: context.retryConfig,
118
+ retryCodes: context.retryCodes,
119
+ });
120
+ if (!doResult.ok) {
121
+ return [doResult, { status: "request-error", request: req }];
122
+ }
123
+ const response = doResult.value;
124
+
125
+ const responseFields = {
126
+ HttpMeta: { Response: response, Request: req },
127
+ };
128
+
129
+ const [result] = await M.match<
130
+ operations.ListIssuingMerchantCategoriesResponse,
131
+ | MoovError
132
+ | ResponseValidationError
133
+ | ConnectionError
134
+ | RequestAbortedError
135
+ | RequestTimeoutError
136
+ | InvalidRequestError
137
+ | UnexpectedClientError
138
+ | SDKValidationError
139
+ >(
140
+ M.json(
141
+ 200,
142
+ operations.ListIssuingMerchantCategoriesResponse$inboundSchema,
143
+ { hdrs: true, key: "Result" },
144
+ ),
145
+ M.fail([401, 403, 429]),
146
+ M.fail([500, 504]),
147
+ M.fail("4XX"),
148
+ M.fail("5XX"),
149
+ )(response, req, { extraFields: responseFields });
150
+ if (!result.ok) {
151
+ return [result, { status: "complete", request: req, response }];
152
+ }
153
+
154
+ return [result, { status: "complete", request: req, response }];
155
+ }
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import { MoovCore } from "../core.js";
6
- import { encodeSimple } from "../lib/encodings.js";
6
+ import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
7
  import { matchStatusCode } from "../lib/http.js";
8
8
  import * as M from "../lib/matchers.js";
9
9
  import { compactMap } from "../lib/primitives.js";
@@ -87,7 +87,9 @@ async function $do(
87
87
  return [parsed, { status: "invalid" }];
88
88
  }
89
89
  const payload = parsed.value;
90
- const body = null;
90
+ const body = encodeJSON("body", payload.CreateCancellation, {
91
+ explode: true,
92
+ });
91
93
 
92
94
  const pathParams = {
93
95
  accountID: encodeSimple("accountID", payload.accountID, {
@@ -104,6 +106,7 @@ async function $do(
104
106
  )(pathParams);
105
107
 
106
108
  const headers = new Headers(compactMap({
109
+ "Content-Type": "application/json",
107
110
  Accept: "application/json",
108
111
  }));
109
112
 
@@ -0,0 +1,196 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { MoovCore } from "../core.js";
6
+ import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import * as errors from "../models/errors/index.js";
22
+ import { MoovError } from "../models/errors/mooverror.js";
23
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
24
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
25
+ import * as operations from "../models/operations/index.js";
26
+ import { APICall, APIPromise } from "../types/async.js";
27
+ import { Result } from "../types/fp.js";
28
+
29
+ /**
30
+ * Create a capture against an authorized transfer.
31
+ *
32
+ * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
33
+ * you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
34
+ */
35
+ export function transfersCreateCapture(
36
+ client: MoovCore,
37
+ request: operations.CreateCaptureRequest,
38
+ options?: RequestOptions,
39
+ ): APIPromise<
40
+ Result<
41
+ operations.CreateCaptureResponse,
42
+ | errors.GenericError
43
+ | errors.CaptureValidationError
44
+ | MoovError
45
+ | ResponseValidationError
46
+ | ConnectionError
47
+ | RequestAbortedError
48
+ | RequestTimeoutError
49
+ | InvalidRequestError
50
+ | UnexpectedClientError
51
+ | SDKValidationError
52
+ >
53
+ > {
54
+ return new APIPromise($do(
55
+ client,
56
+ request,
57
+ options,
58
+ ));
59
+ }
60
+
61
+ async function $do(
62
+ client: MoovCore,
63
+ request: operations.CreateCaptureRequest,
64
+ options?: RequestOptions,
65
+ ): Promise<
66
+ [
67
+ Result<
68
+ operations.CreateCaptureResponse,
69
+ | errors.GenericError
70
+ | errors.CaptureValidationError
71
+ | MoovError
72
+ | ResponseValidationError
73
+ | ConnectionError
74
+ | RequestAbortedError
75
+ | RequestTimeoutError
76
+ | InvalidRequestError
77
+ | UnexpectedClientError
78
+ | SDKValidationError
79
+ >,
80
+ APICall,
81
+ ]
82
+ > {
83
+ const parsed = safeParse(
84
+ request,
85
+ (value) => operations.CreateCaptureRequest$outboundSchema.parse(value),
86
+ "Input validation failed",
87
+ );
88
+ if (!parsed.ok) {
89
+ return [parsed, { status: "invalid" }];
90
+ }
91
+ const payload = parsed.value;
92
+ const body = encodeJSON("body", payload.CreateCapture, { explode: true });
93
+
94
+ const pathParams = {
95
+ accountID: encodeSimple("accountID", payload.accountID, {
96
+ explode: false,
97
+ charEncoding: "percent",
98
+ }),
99
+ transferID: encodeSimple("transferID", payload.transferID, {
100
+ explode: false,
101
+ charEncoding: "percent",
102
+ }),
103
+ };
104
+ const path = pathToFunc(
105
+ "/accounts/{accountID}/transfers/{transferID}/captures",
106
+ )(pathParams);
107
+
108
+ const headers = new Headers(compactMap({
109
+ "Content-Type": "application/json",
110
+ Accept: "application/json",
111
+ "x-idempotency-key": encodeSimple(
112
+ "x-idempotency-key",
113
+ payload["x-idempotency-key"],
114
+ { explode: false, charEncoding: "none" },
115
+ ),
116
+ }));
117
+
118
+ const securityInput = await extractSecurity(client._options.security);
119
+ const requestSecurity = resolveGlobalSecurity(securityInput);
120
+
121
+ const context = {
122
+ options: client._options,
123
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
124
+ operationID: "createCapture",
125
+ oAuth2Scopes: null,
126
+
127
+ resolvedSecurity: requestSecurity,
128
+
129
+ securitySource: client._options.security,
130
+ retryConfig: options?.retries
131
+ || client._options.retryConfig
132
+ || { strategy: "none" },
133
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
134
+ };
135
+
136
+ const requestRes = client._createRequest(context, {
137
+ security: requestSecurity,
138
+ method: "POST",
139
+ baseURL: options?.serverURL,
140
+ path: path,
141
+ headers: headers,
142
+ body: body,
143
+ userAgent: client._options.userAgent,
144
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
145
+ }, options);
146
+ if (!requestRes.ok) {
147
+ return [requestRes, { status: "invalid" }];
148
+ }
149
+ const req = requestRes.value;
150
+
151
+ const doResult = await client._do(req, {
152
+ context,
153
+ isErrorStatusCode: (statusCode: number) =>
154
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
155
+ retryConfig: context.retryConfig,
156
+ retryCodes: context.retryCodes,
157
+ });
158
+ if (!doResult.ok) {
159
+ return [doResult, { status: "request-error", request: req }];
160
+ }
161
+ const response = doResult.value;
162
+
163
+ const responseFields = {
164
+ HttpMeta: { Response: response, Request: req },
165
+ };
166
+
167
+ const [result] = await M.match<
168
+ operations.CreateCaptureResponse,
169
+ | errors.GenericError
170
+ | errors.CaptureValidationError
171
+ | MoovError
172
+ | ResponseValidationError
173
+ | ConnectionError
174
+ | RequestAbortedError
175
+ | RequestTimeoutError
176
+ | InvalidRequestError
177
+ | UnexpectedClientError
178
+ | SDKValidationError
179
+ >(
180
+ M.json(201, operations.CreateCaptureResponse$inboundSchema, {
181
+ hdrs: true,
182
+ key: "Result",
183
+ }),
184
+ M.jsonErr([400, 409], errors.GenericError$inboundSchema, { hdrs: true }),
185
+ M.jsonErr(422, errors.CaptureValidationError$inboundSchema, { hdrs: true }),
186
+ M.fail([401, 403, 404, 429]),
187
+ M.fail([500, 504]),
188
+ M.fail("4XX"),
189
+ M.fail("5XX"),
190
+ )(response, req, { extraFields: responseFields });
191
+ if (!result.ok) {
192
+ return [result, { status: "complete", request: req, response }];
193
+ }
194
+
195
+ return [result, { status: "complete", request: req, response }];
196
+ }