mollie-api-typescript 1.3.6 → 1.3.8

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 (415) hide show
  1. package/README.md +22 -0
  2. package/bin/mcp-server.js +5624 -3703
  3. package/bin/mcp-server.js.map +50 -13
  4. package/dist/commonjs/funcs/accountsGet.d.ts +22 -0
  5. package/dist/commonjs/funcs/accountsGet.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/accountsGet.js +147 -0
  7. package/dist/commonjs/funcs/accountsGet.js.map +1 -0
  8. package/dist/commonjs/funcs/accountsGetAccount.d.ts +22 -0
  9. package/dist/commonjs/funcs/accountsGetAccount.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/accountsGetAccount.js +143 -0
  11. package/dist/commonjs/funcs/accountsGetAccount.js.map +1 -0
  12. package/dist/commonjs/funcs/accountsList.d.ts +27 -0
  13. package/dist/commonjs/funcs/accountsList.d.ts.map +1 -0
  14. package/dist/commonjs/funcs/accountsList.js +178 -0
  15. package/dist/commonjs/funcs/accountsList.js.map +1 -0
  16. package/dist/commonjs/funcs/accountsListAccounts.d.ts +27 -0
  17. package/dist/commonjs/funcs/accountsListAccounts.d.ts.map +1 -0
  18. package/dist/commonjs/funcs/accountsListAccounts.js +178 -0
  19. package/dist/commonjs/funcs/accountsListAccounts.js.map +1 -0
  20. package/dist/commonjs/funcs/unmatchedCreditTransfersGet.d.ts +23 -0
  21. package/dist/commonjs/funcs/unmatchedCreditTransfersGet.d.ts.map +1 -0
  22. package/dist/commonjs/funcs/unmatchedCreditTransfersGet.js +140 -0
  23. package/dist/commonjs/funcs/unmatchedCreditTransfersGet.js.map +1 -0
  24. package/dist/commonjs/funcs/unmatchedCreditTransfersList.d.ts +29 -0
  25. package/dist/commonjs/funcs/unmatchedCreditTransfersList.d.ts.map +1 -0
  26. package/dist/commonjs/funcs/unmatchedCreditTransfersList.js +179 -0
  27. package/dist/commonjs/funcs/unmatchedCreditTransfersList.js.map +1 -0
  28. package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.d.ts +23 -0
  29. package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.d.ts.map +1 -0
  30. package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.js +141 -0
  31. package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.js.map +1 -0
  32. package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.d.ts +23 -0
  33. package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.d.ts.map +1 -0
  34. package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.js +140 -0
  35. package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.js.map +1 -0
  36. package/dist/commonjs/lib/config.d.ts +3 -3
  37. package/dist/commonjs/lib/config.js +3 -3
  38. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  39. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  40. package/dist/commonjs/mcp-server/server.js +17 -1
  41. package/dist/commonjs/mcp-server/server.js.map +1 -1
  42. package/dist/commonjs/mcp-server/tools/accountsGet.d.ts +8 -0
  43. package/dist/commonjs/mcp-server/tools/accountsGet.d.ts.map +1 -0
  44. package/dist/commonjs/mcp-server/tools/accountsGet.js +66 -0
  45. package/dist/commonjs/mcp-server/tools/accountsGet.js.map +1 -0
  46. package/dist/commonjs/mcp-server/tools/accountsGetAccount.d.ts +8 -0
  47. package/dist/commonjs/mcp-server/tools/accountsGetAccount.d.ts.map +1 -0
  48. package/dist/commonjs/mcp-server/tools/accountsGetAccount.js +66 -0
  49. package/dist/commonjs/mcp-server/tools/accountsGetAccount.js.map +1 -0
  50. package/dist/commonjs/mcp-server/tools/accountsList.d.ts +8 -0
  51. package/dist/commonjs/mcp-server/tools/accountsList.d.ts.map +1 -0
  52. package/dist/commonjs/mcp-server/tools/accountsList.js +67 -0
  53. package/dist/commonjs/mcp-server/tools/accountsList.js.map +1 -0
  54. package/dist/commonjs/mcp-server/tools/accountsListAccounts.d.ts +8 -0
  55. package/dist/commonjs/mcp-server/tools/accountsListAccounts.d.ts.map +1 -0
  56. package/dist/commonjs/mcp-server/tools/accountsListAccounts.js +67 -0
  57. package/dist/commonjs/mcp-server/tools/accountsListAccounts.js.map +1 -0
  58. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersGet.d.ts +8 -0
  59. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersGet.d.ts.map +1 -0
  60. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersGet.js +69 -0
  61. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersGet.js.map +1 -0
  62. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersList.d.ts +8 -0
  63. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersList.d.ts.map +1 -0
  64. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersList.js +72 -0
  65. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersList.js.map +1 -0
  66. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersMatch.d.ts +8 -0
  67. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersMatch.d.ts.map +1 -0
  68. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersMatch.js +69 -0
  69. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersMatch.js.map +1 -0
  70. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersReturn.d.ts +8 -0
  71. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersReturn.d.ts.map +1 -0
  72. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersReturn.js +69 -0
  73. package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersReturn.js.map +1 -0
  74. package/dist/commonjs/models/accountdetails.d.ts +43 -0
  75. package/dist/commonjs/models/accountdetails.d.ts.map +1 -0
  76. package/dist/commonjs/models/accountdetails.js +67 -0
  77. package/dist/commonjs/models/accountdetails.js.map +1 -0
  78. package/dist/commonjs/models/accountstatus.d.ts +19 -0
  79. package/dist/commonjs/models/accountstatus.d.ts.map +1 -0
  80. package/dist/commonjs/models/accountstatus.js +54 -0
  81. package/dist/commonjs/models/accountstatus.js.map +1 -0
  82. package/dist/commonjs/models/afterbalance.d.ts +24 -0
  83. package/dist/commonjs/models/afterbalance.d.ts.map +1 -0
  84. package/dist/commonjs/models/afterbalance.js +60 -0
  85. package/dist/commonjs/models/afterbalance.js.map +1 -0
  86. package/dist/commonjs/models/balance.d.ts +24 -0
  87. package/dist/commonjs/models/balance.d.ts.map +1 -0
  88. package/dist/commonjs/models/balance.js +60 -0
  89. package/dist/commonjs/models/balance.js.map +1 -0
  90. package/dist/commonjs/models/businessaccountresponse.d.ts +60 -0
  91. package/dist/commonjs/models/businessaccountresponse.d.ts.map +1 -0
  92. package/dist/commonjs/models/businessaccountresponse.js +75 -0
  93. package/dist/commonjs/models/businessaccountresponse.js.map +1 -0
  94. package/dist/commonjs/models/counterparty.d.ts +28 -0
  95. package/dist/commonjs/models/counterparty.d.ts.map +1 -0
  96. package/dist/commonjs/models/counterparty.js +61 -0
  97. package/dist/commonjs/models/counterparty.js.map +1 -0
  98. package/dist/commonjs/models/creditdebitindicator.d.ts +2 -2
  99. package/dist/commonjs/models/creditdebitindicator.js +1 -1
  100. package/dist/commonjs/models/entityunmatchedcredittransfer.d.ts +214 -0
  101. package/dist/commonjs/models/entityunmatchedcredittransfer.d.ts.map +1 -0
  102. package/dist/commonjs/models/entityunmatchedcredittransfer.js +204 -0
  103. package/dist/commonjs/models/entityunmatchedcredittransfer.js.map +1 -0
  104. package/dist/commonjs/models/errorresponse.d.ts +8 -8
  105. package/dist/commonjs/models/errorresponse.d.ts.map +1 -1
  106. package/dist/commonjs/models/errorresponse.js +11 -11
  107. package/dist/commonjs/models/errorresponse.js.map +1 -1
  108. package/dist/commonjs/models/index.d.ts +13 -0
  109. package/dist/commonjs/models/index.d.ts.map +1 -1
  110. package/dist/commonjs/models/index.js +13 -0
  111. package/dist/commonjs/models/index.js.map +1 -1
  112. package/dist/commonjs/models/listentityunmatchedcredittransfer.d.ts +191 -0
  113. package/dist/commonjs/models/listentityunmatchedcredittransfer.d.ts.map +1 -0
  114. package/dist/commonjs/models/listentityunmatchedcredittransfer.js +185 -0
  115. package/dist/commonjs/models/listentityunmatchedcredittransfer.js.map +1 -0
  116. package/dist/commonjs/models/operations/getbusinessaccount.d.ts +58 -0
  117. package/dist/commonjs/models/operations/getbusinessaccount.d.ts.map +1 -0
  118. package/dist/commonjs/models/operations/getbusinessaccount.js +88 -0
  119. package/dist/commonjs/models/operations/getbusinessaccount.js.map +1 -0
  120. package/dist/commonjs/models/operations/getbusinessaccounttransaction.d.ts +63 -0
  121. package/dist/commonjs/models/operations/getbusinessaccounttransaction.d.ts.map +1 -0
  122. package/dist/commonjs/models/operations/getbusinessaccounttransaction.js +90 -0
  123. package/dist/commonjs/models/operations/getbusinessaccounttransaction.js.map +1 -0
  124. package/dist/commonjs/models/operations/getunmatchedcredittransfer.d.ts +25 -0
  125. package/dist/commonjs/models/operations/getunmatchedcredittransfer.d.ts.map +1 -0
  126. package/dist/commonjs/models/operations/getunmatchedcredittransfer.js +70 -0
  127. package/dist/commonjs/models/operations/getunmatchedcredittransfer.js.map +1 -0
  128. package/dist/commonjs/models/operations/index.d.ts +8 -0
  129. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  130. package/dist/commonjs/models/operations/index.js +8 -0
  131. package/dist/commonjs/models/operations/index.js.map +1 -1
  132. package/dist/commonjs/models/operations/listbusinessaccounts.d.ts +131 -0
  133. package/dist/commonjs/models/operations/listbusinessaccounts.d.ts.map +1 -0
  134. package/dist/commonjs/models/operations/listbusinessaccounts.js +161 -0
  135. package/dist/commonjs/models/operations/listbusinessaccounts.js.map +1 -0
  136. package/dist/commonjs/models/operations/listbusinessaccounttransactions.d.ts +136 -0
  137. package/dist/commonjs/models/operations/listbusinessaccounttransactions.d.ts.map +1 -0
  138. package/dist/commonjs/models/operations/listbusinessaccounttransactions.js +161 -0
  139. package/dist/commonjs/models/operations/listbusinessaccounttransactions.js.map +1 -0
  140. package/dist/commonjs/models/operations/listunmatchedcredittransfers.d.ts +95 -0
  141. package/dist/commonjs/models/operations/listunmatchedcredittransfers.d.ts.map +1 -0
  142. package/dist/commonjs/models/operations/listunmatchedcredittransfers.js +151 -0
  143. package/dist/commonjs/models/operations/listunmatchedcredittransfers.js.map +1 -0
  144. package/dist/commonjs/models/operations/matchunmatchedcredittransfer.d.ts +28 -0
  145. package/dist/commonjs/models/operations/matchunmatchedcredittransfer.d.ts.map +1 -0
  146. package/dist/commonjs/models/operations/matchunmatchedcredittransfer.js +77 -0
  147. package/dist/commonjs/models/operations/matchunmatchedcredittransfer.js.map +1 -0
  148. package/dist/commonjs/models/operations/returnunmatchedcredittransfer.d.ts +25 -0
  149. package/dist/commonjs/models/operations/returnunmatchedcredittransfer.d.ts.map +1 -0
  150. package/dist/commonjs/models/operations/returnunmatchedcredittransfer.js +70 -0
  151. package/dist/commonjs/models/operations/returnunmatchedcredittransfer.js.map +1 -0
  152. package/dist/commonjs/models/transactionresponse.d.ts +92 -0
  153. package/dist/commonjs/models/transactionresponse.d.ts.map +1 -0
  154. package/dist/commonjs/models/transactionresponse.js +87 -0
  155. package/dist/commonjs/models/transactionresponse.js.map +1 -0
  156. package/dist/commonjs/models/transactiontype.d.ts +35 -0
  157. package/dist/commonjs/models/transactiontype.d.ts.map +1 -0
  158. package/dist/commonjs/models/transactiontype.js +65 -0
  159. package/dist/commonjs/models/transactiontype.js.map +1 -0
  160. package/dist/commonjs/models/transferresponse.d.ts +1 -1
  161. package/dist/commonjs/models/unmatchedcredittransferactionresponse.d.ts +164 -0
  162. package/dist/commonjs/models/unmatchedcredittransferactionresponse.d.ts.map +1 -0
  163. package/dist/commonjs/models/unmatchedcredittransferactionresponse.js +175 -0
  164. package/dist/commonjs/models/unmatchedcredittransferactionresponse.js.map +1 -0
  165. package/dist/commonjs/models/unmatchedcredittransfermatchrequest.d.ts +20 -0
  166. package/dist/commonjs/models/unmatchedcredittransfermatchrequest.d.ts.map +1 -0
  167. package/dist/commonjs/models/unmatchedcredittransfermatchrequest.js +59 -0
  168. package/dist/commonjs/models/unmatchedcredittransfermatchrequest.js.map +1 -0
  169. package/dist/commonjs/models/unmatchedcredittransferstatus.d.ts +14 -0
  170. package/dist/commonjs/models/unmatchedcredittransferstatus.d.ts.map +1 -0
  171. package/dist/commonjs/models/unmatchedcredittransferstatus.js +52 -0
  172. package/dist/commonjs/models/unmatchedcredittransferstatus.js.map +1 -0
  173. package/dist/commonjs/sdk/accounts.d.ts +45 -0
  174. package/dist/commonjs/sdk/accounts.d.ts.map +1 -0
  175. package/dist/commonjs/sdk/accounts.js +60 -0
  176. package/dist/commonjs/sdk/accounts.js.map +1 -0
  177. package/dist/commonjs/sdk/sdk.d.ts +6 -0
  178. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  179. package/dist/commonjs/sdk/sdk.js +8 -0
  180. package/dist/commonjs/sdk/sdk.js.map +1 -1
  181. package/dist/commonjs/sdk/unmatchedcredittransfers.d.ts +55 -0
  182. package/dist/commonjs/sdk/unmatchedcredittransfers.d.ts.map +1 -0
  183. package/dist/commonjs/sdk/unmatchedcredittransfers.js +72 -0
  184. package/dist/commonjs/sdk/unmatchedcredittransfers.js.map +1 -0
  185. package/dist/esm/funcs/accountsGet.d.ts +22 -0
  186. package/dist/esm/funcs/accountsGet.d.ts.map +1 -0
  187. package/dist/esm/funcs/accountsGet.js +111 -0
  188. package/dist/esm/funcs/accountsGet.js.map +1 -0
  189. package/dist/esm/funcs/accountsGetAccount.d.ts +22 -0
  190. package/dist/esm/funcs/accountsGetAccount.d.ts.map +1 -0
  191. package/dist/esm/funcs/accountsGetAccount.js +107 -0
  192. package/dist/esm/funcs/accountsGetAccount.js.map +1 -0
  193. package/dist/esm/funcs/accountsList.d.ts +27 -0
  194. package/dist/esm/funcs/accountsList.d.ts.map +1 -0
  195. package/dist/esm/funcs/accountsList.js +142 -0
  196. package/dist/esm/funcs/accountsList.js.map +1 -0
  197. package/dist/esm/funcs/accountsListAccounts.d.ts +27 -0
  198. package/dist/esm/funcs/accountsListAccounts.d.ts.map +1 -0
  199. package/dist/esm/funcs/accountsListAccounts.js +142 -0
  200. package/dist/esm/funcs/accountsListAccounts.js.map +1 -0
  201. package/dist/esm/funcs/unmatchedCreditTransfersGet.d.ts +23 -0
  202. package/dist/esm/funcs/unmatchedCreditTransfersGet.d.ts.map +1 -0
  203. package/dist/esm/funcs/unmatchedCreditTransfersGet.js +104 -0
  204. package/dist/esm/funcs/unmatchedCreditTransfersGet.js.map +1 -0
  205. package/dist/esm/funcs/unmatchedCreditTransfersList.d.ts +29 -0
  206. package/dist/esm/funcs/unmatchedCreditTransfersList.d.ts.map +1 -0
  207. package/dist/esm/funcs/unmatchedCreditTransfersList.js +143 -0
  208. package/dist/esm/funcs/unmatchedCreditTransfersList.js.map +1 -0
  209. package/dist/esm/funcs/unmatchedCreditTransfersMatch.d.ts +23 -0
  210. package/dist/esm/funcs/unmatchedCreditTransfersMatch.d.ts.map +1 -0
  211. package/dist/esm/funcs/unmatchedCreditTransfersMatch.js +105 -0
  212. package/dist/esm/funcs/unmatchedCreditTransfersMatch.js.map +1 -0
  213. package/dist/esm/funcs/unmatchedCreditTransfersReturn.d.ts +23 -0
  214. package/dist/esm/funcs/unmatchedCreditTransfersReturn.d.ts.map +1 -0
  215. package/dist/esm/funcs/unmatchedCreditTransfersReturn.js +104 -0
  216. package/dist/esm/funcs/unmatchedCreditTransfersReturn.js.map +1 -0
  217. package/dist/esm/lib/config.d.ts +3 -3
  218. package/dist/esm/lib/config.js +3 -3
  219. package/dist/esm/mcp-server/mcp-server.js +1 -1
  220. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  221. package/dist/esm/mcp-server/server.js +17 -1
  222. package/dist/esm/mcp-server/server.js.map +1 -1
  223. package/dist/esm/mcp-server/tools/accountsGet.d.ts +8 -0
  224. package/dist/esm/mcp-server/tools/accountsGet.d.ts.map +1 -0
  225. package/dist/esm/mcp-server/tools/accountsGet.js +30 -0
  226. package/dist/esm/mcp-server/tools/accountsGet.js.map +1 -0
  227. package/dist/esm/mcp-server/tools/accountsGetAccount.d.ts +8 -0
  228. package/dist/esm/mcp-server/tools/accountsGetAccount.d.ts.map +1 -0
  229. package/dist/esm/mcp-server/tools/accountsGetAccount.js +30 -0
  230. package/dist/esm/mcp-server/tools/accountsGetAccount.js.map +1 -0
  231. package/dist/esm/mcp-server/tools/accountsList.d.ts +8 -0
  232. package/dist/esm/mcp-server/tools/accountsList.d.ts.map +1 -0
  233. package/dist/esm/mcp-server/tools/accountsList.js +31 -0
  234. package/dist/esm/mcp-server/tools/accountsList.js.map +1 -0
  235. package/dist/esm/mcp-server/tools/accountsListAccounts.d.ts +8 -0
  236. package/dist/esm/mcp-server/tools/accountsListAccounts.d.ts.map +1 -0
  237. package/dist/esm/mcp-server/tools/accountsListAccounts.js +31 -0
  238. package/dist/esm/mcp-server/tools/accountsListAccounts.js.map +1 -0
  239. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersGet.d.ts +8 -0
  240. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersGet.d.ts.map +1 -0
  241. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersGet.js +33 -0
  242. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersGet.js.map +1 -0
  243. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersList.d.ts +8 -0
  244. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersList.d.ts.map +1 -0
  245. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersList.js +36 -0
  246. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersList.js.map +1 -0
  247. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersMatch.d.ts +8 -0
  248. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersMatch.d.ts.map +1 -0
  249. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersMatch.js +33 -0
  250. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersMatch.js.map +1 -0
  251. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersReturn.d.ts +8 -0
  252. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersReturn.d.ts.map +1 -0
  253. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersReturn.js +33 -0
  254. package/dist/esm/mcp-server/tools/unmatchedCreditTransfersReturn.js.map +1 -0
  255. package/dist/esm/models/accountdetails.d.ts +43 -0
  256. package/dist/esm/models/accountdetails.d.ts.map +1 -0
  257. package/dist/esm/models/accountdetails.js +29 -0
  258. package/dist/esm/models/accountdetails.js.map +1 -0
  259. package/dist/esm/models/accountstatus.d.ts +19 -0
  260. package/dist/esm/models/accountstatus.d.ts.map +1 -0
  261. package/dist/esm/models/accountstatus.js +18 -0
  262. package/dist/esm/models/accountstatus.js.map +1 -0
  263. package/dist/esm/models/afterbalance.d.ts +24 -0
  264. package/dist/esm/models/afterbalance.d.ts.map +1 -0
  265. package/dist/esm/models/afterbalance.js +22 -0
  266. package/dist/esm/models/afterbalance.js.map +1 -0
  267. package/dist/esm/models/balance.d.ts +24 -0
  268. package/dist/esm/models/balance.d.ts.map +1 -0
  269. package/dist/esm/models/balance.js +22 -0
  270. package/dist/esm/models/balance.js.map +1 -0
  271. package/dist/esm/models/businessaccountresponse.d.ts +60 -0
  272. package/dist/esm/models/businessaccountresponse.d.ts.map +1 -0
  273. package/dist/esm/models/businessaccountresponse.js +37 -0
  274. package/dist/esm/models/businessaccountresponse.js.map +1 -0
  275. package/dist/esm/models/counterparty.d.ts +28 -0
  276. package/dist/esm/models/counterparty.d.ts.map +1 -0
  277. package/dist/esm/models/counterparty.js +23 -0
  278. package/dist/esm/models/counterparty.js.map +1 -0
  279. package/dist/esm/models/creditdebitindicator.d.ts +2 -2
  280. package/dist/esm/models/creditdebitindicator.js +1 -1
  281. package/dist/esm/models/entityunmatchedcredittransfer.d.ts +214 -0
  282. package/dist/esm/models/entityunmatchedcredittransfer.d.ts.map +1 -0
  283. package/dist/esm/models/entityunmatchedcredittransfer.js +154 -0
  284. package/dist/esm/models/entityunmatchedcredittransfer.js.map +1 -0
  285. package/dist/esm/models/errorresponse.d.ts +8 -8
  286. package/dist/esm/models/errorresponse.d.ts.map +1 -1
  287. package/dist/esm/models/errorresponse.js +8 -8
  288. package/dist/esm/models/errorresponse.js.map +1 -1
  289. package/dist/esm/models/index.d.ts +13 -0
  290. package/dist/esm/models/index.d.ts.map +1 -1
  291. package/dist/esm/models/index.js +13 -0
  292. package/dist/esm/models/index.js.map +1 -1
  293. package/dist/esm/models/listentityunmatchedcredittransfer.d.ts +191 -0
  294. package/dist/esm/models/listentityunmatchedcredittransfer.d.ts.map +1 -0
  295. package/dist/esm/models/listentityunmatchedcredittransfer.js +137 -0
  296. package/dist/esm/models/listentityunmatchedcredittransfer.js.map +1 -0
  297. package/dist/esm/models/operations/getbusinessaccount.d.ts +58 -0
  298. package/dist/esm/models/operations/getbusinessaccount.d.ts.map +1 -0
  299. package/dist/esm/models/operations/getbusinessaccount.js +48 -0
  300. package/dist/esm/models/operations/getbusinessaccount.js.map +1 -0
  301. package/dist/esm/models/operations/getbusinessaccounttransaction.d.ts +63 -0
  302. package/dist/esm/models/operations/getbusinessaccounttransaction.d.ts.map +1 -0
  303. package/dist/esm/models/operations/getbusinessaccounttransaction.js +50 -0
  304. package/dist/esm/models/operations/getbusinessaccounttransaction.js.map +1 -0
  305. package/dist/esm/models/operations/getunmatchedcredittransfer.d.ts +25 -0
  306. package/dist/esm/models/operations/getunmatchedcredittransfer.d.ts.map +1 -0
  307. package/dist/esm/models/operations/getunmatchedcredittransfer.js +32 -0
  308. package/dist/esm/models/operations/getunmatchedcredittransfer.js.map +1 -0
  309. package/dist/esm/models/operations/index.d.ts +8 -0
  310. package/dist/esm/models/operations/index.d.ts.map +1 -1
  311. package/dist/esm/models/operations/index.js +8 -0
  312. package/dist/esm/models/operations/index.js.map +1 -1
  313. package/dist/esm/models/operations/listbusinessaccounts.d.ts +131 -0
  314. package/dist/esm/models/operations/listbusinessaccounts.d.ts.map +1 -0
  315. package/dist/esm/models/operations/listbusinessaccounts.js +115 -0
  316. package/dist/esm/models/operations/listbusinessaccounts.js.map +1 -0
  317. package/dist/esm/models/operations/listbusinessaccounttransactions.d.ts +136 -0
  318. package/dist/esm/models/operations/listbusinessaccounttransactions.d.ts.map +1 -0
  319. package/dist/esm/models/operations/listbusinessaccounttransactions.js +115 -0
  320. package/dist/esm/models/operations/listbusinessaccounttransactions.js.map +1 -0
  321. package/dist/esm/models/operations/listunmatchedcredittransfers.d.ts +95 -0
  322. package/dist/esm/models/operations/listunmatchedcredittransfers.d.ts.map +1 -0
  323. package/dist/esm/models/operations/listunmatchedcredittransfers.js +107 -0
  324. package/dist/esm/models/operations/listunmatchedcredittransfers.js.map +1 -0
  325. package/dist/esm/models/operations/matchunmatchedcredittransfer.d.ts +28 -0
  326. package/dist/esm/models/operations/matchunmatchedcredittransfer.d.ts.map +1 -0
  327. package/dist/esm/models/operations/matchunmatchedcredittransfer.js +39 -0
  328. package/dist/esm/models/operations/matchunmatchedcredittransfer.js.map +1 -0
  329. package/dist/esm/models/operations/returnunmatchedcredittransfer.d.ts +25 -0
  330. package/dist/esm/models/operations/returnunmatchedcredittransfer.d.ts.map +1 -0
  331. package/dist/esm/models/operations/returnunmatchedcredittransfer.js +32 -0
  332. package/dist/esm/models/operations/returnunmatchedcredittransfer.js.map +1 -0
  333. package/dist/esm/models/transactionresponse.d.ts +92 -0
  334. package/dist/esm/models/transactionresponse.d.ts.map +1 -0
  335. package/dist/esm/models/transactionresponse.js +49 -0
  336. package/dist/esm/models/transactionresponse.js.map +1 -0
  337. package/dist/esm/models/transactiontype.d.ts +35 -0
  338. package/dist/esm/models/transactiontype.d.ts.map +1 -0
  339. package/dist/esm/models/transactiontype.js +29 -0
  340. package/dist/esm/models/transactiontype.js.map +1 -0
  341. package/dist/esm/models/transferresponse.d.ts +1 -1
  342. package/dist/esm/models/unmatchedcredittransferactionresponse.d.ts +164 -0
  343. package/dist/esm/models/unmatchedcredittransferactionresponse.d.ts.map +1 -0
  344. package/dist/esm/models/unmatchedcredittransferactionresponse.js +129 -0
  345. package/dist/esm/models/unmatchedcredittransferactionresponse.js.map +1 -0
  346. package/dist/esm/models/unmatchedcredittransfermatchrequest.d.ts +20 -0
  347. package/dist/esm/models/unmatchedcredittransfermatchrequest.d.ts.map +1 -0
  348. package/dist/esm/models/unmatchedcredittransfermatchrequest.js +21 -0
  349. package/dist/esm/models/unmatchedcredittransfermatchrequest.js.map +1 -0
  350. package/dist/esm/models/unmatchedcredittransferstatus.d.ts +14 -0
  351. package/dist/esm/models/unmatchedcredittransferstatus.d.ts.map +1 -0
  352. package/dist/esm/models/unmatchedcredittransferstatus.js +16 -0
  353. package/dist/esm/models/unmatchedcredittransferstatus.js.map +1 -0
  354. package/dist/esm/sdk/accounts.d.ts +45 -0
  355. package/dist/esm/sdk/accounts.d.ts.map +1 -0
  356. package/dist/esm/sdk/accounts.js +56 -0
  357. package/dist/esm/sdk/accounts.js.map +1 -0
  358. package/dist/esm/sdk/sdk.d.ts +6 -0
  359. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  360. package/dist/esm/sdk/sdk.js +8 -0
  361. package/dist/esm/sdk/sdk.js.map +1 -1
  362. package/dist/esm/sdk/unmatchedcredittransfers.d.ts +55 -0
  363. package/dist/esm/sdk/unmatchedcredittransfers.d.ts.map +1 -0
  364. package/dist/esm/sdk/unmatchedcredittransfers.js +68 -0
  365. package/dist/esm/sdk/unmatchedcredittransfers.js.map +1 -0
  366. package/jsr.json +1 -1
  367. package/package.json +1 -1
  368. package/src/funcs/accountsGet.ts +212 -0
  369. package/src/funcs/accountsGetAccount.ts +205 -0
  370. package/src/funcs/accountsList.ts +285 -0
  371. package/src/funcs/accountsListAccounts.ts +275 -0
  372. package/src/funcs/unmatchedCreditTransfersGet.ts +202 -0
  373. package/src/funcs/unmatchedCreditTransfersList.ts +274 -0
  374. package/src/funcs/unmatchedCreditTransfersMatch.ts +209 -0
  375. package/src/funcs/unmatchedCreditTransfersReturn.ts +204 -0
  376. package/src/lib/config.ts +3 -3
  377. package/src/mcp-server/mcp-server.ts +1 -1
  378. package/src/mcp-server/server.ts +17 -1
  379. package/src/mcp-server/tools/accountsGet.ts +39 -0
  380. package/src/mcp-server/tools/accountsGetAccount.ts +39 -0
  381. package/src/mcp-server/tools/accountsList.ts +40 -0
  382. package/src/mcp-server/tools/accountsListAccounts.ts +40 -0
  383. package/src/mcp-server/tools/unmatchedCreditTransfersGet.ts +42 -0
  384. package/src/mcp-server/tools/unmatchedCreditTransfersList.ts +45 -0
  385. package/src/mcp-server/tools/unmatchedCreditTransfersMatch.ts +42 -0
  386. package/src/mcp-server/tools/unmatchedCreditTransfersReturn.ts +43 -0
  387. package/src/models/accountdetails.ts +82 -0
  388. package/src/models/accountstatus.ts +34 -0
  389. package/src/models/afterbalance.ts +60 -0
  390. package/src/models/balance.ts +57 -0
  391. package/src/models/businessaccountresponse.ts +121 -0
  392. package/src/models/counterparty.ts +61 -0
  393. package/src/models/creditdebitindicator.ts +2 -2
  394. package/src/models/entityunmatchedcredittransfer.ts +538 -0
  395. package/src/models/errorresponse.ts +21 -17
  396. package/src/models/index.ts +13 -0
  397. package/src/models/listentityunmatchedcredittransfer.ts +476 -0
  398. package/src/models/operations/getbusinessaccount.ts +136 -0
  399. package/src/models/operations/getbusinessaccounttransaction.ts +149 -0
  400. package/src/models/operations/getunmatchedcredittransfer.ts +73 -0
  401. package/src/models/operations/index.ts +8 -0
  402. package/src/models/operations/listbusinessaccounts.ts +333 -0
  403. package/src/models/operations/listbusinessaccounttransactions.ts +373 -0
  404. package/src/models/operations/listunmatchedcredittransfers.ts +287 -0
  405. package/src/models/operations/matchunmatchedcredittransfer.ts +89 -0
  406. package/src/models/operations/returnunmatchedcredittransfer.ts +74 -0
  407. package/src/models/transactionresponse.ts +172 -0
  408. package/src/models/transactiontype.ts +50 -0
  409. package/src/models/transferresponse.ts +1 -1
  410. package/src/models/unmatchedcredittransferactionresponse.ts +426 -0
  411. package/src/models/unmatchedcredittransfermatchrequest.ts +58 -0
  412. package/src/models/unmatchedcredittransferstatus.ts +31 -0
  413. package/src/sdk/accounts.ts +97 -0
  414. package/src/sdk/sdk.ts +14 -0
  415. package/src/sdk/unmatchedcredittransfers.ts +107 -0
@@ -14,6 +14,10 @@ import {
14
14
  } from "./resources.js";
15
15
  import { MCPScope } from "./scopes.js";
16
16
  import { createRegisterTool } from "./tools.js";
17
+ import { tool$accountsGet } from "./tools/accountsGet.js";
18
+ import { tool$accountsGetAccount } from "./tools/accountsGetAccount.js";
19
+ import { tool$accountsList } from "./tools/accountsList.js";
20
+ import { tool$accountsListAccounts } from "./tools/accountsListAccounts.js";
17
21
  import { tool$balancesGet } from "./tools/balancesGet.js";
18
22
  import { tool$balancesGetPrimary } from "./tools/balancesGetPrimary.js";
19
23
  import { tool$balancesGetReport } from "./tools/balancesGetReport.js";
@@ -107,6 +111,10 @@ import { tool$terminalsGet } from "./tools/terminalsGet.js";
107
111
  import { tool$terminalsList } from "./tools/terminalsList.js";
108
112
  import { tool$transfersCreate } from "./tools/transfersCreate.js";
109
113
  import { tool$transfersGet } from "./tools/transfersGet.js";
114
+ import { tool$unmatchedCreditTransfersGet } from "./tools/unmatchedCreditTransfersGet.js";
115
+ import { tool$unmatchedCreditTransfersList } from "./tools/unmatchedCreditTransfersList.js";
116
+ import { tool$unmatchedCreditTransfersMatch } from "./tools/unmatchedCreditTransfersMatch.js";
117
+ import { tool$unmatchedCreditTransfersReturn } from "./tools/unmatchedCreditTransfersReturn.js";
110
118
  import { tool$verifyPayeesCreate } from "./tools/verifyPayeesCreate.js";
111
119
  import { tool$walletsRequestApplePaySession } from "./tools/walletsRequestApplePaySession.js";
112
120
  import { tool$webhookEventsGet } from "./tools/webhookEventsGet.js";
@@ -130,7 +138,7 @@ export function createMCPServer(deps: {
130
138
  }) {
131
139
  const server = new McpServer({
132
140
  name: "Client",
133
- version: "1.3.6",
141
+ version: "1.3.8",
134
142
  });
135
143
 
136
144
  const client = new ClientCore({
@@ -211,6 +219,10 @@ export function createMCPServer(deps: {
211
219
  tool(tool$paymentsUpdate);
212
220
  tool(tool$paymentsCancel);
213
221
  tool(tool$paymentsReleaseAuthorization);
222
+ tool(tool$unmatchedCreditTransfersList);
223
+ tool(tool$unmatchedCreditTransfersGet);
224
+ tool(tool$unmatchedCreditTransfersMatch);
225
+ tool(tool$unmatchedCreditTransfersReturn);
214
226
  tool(tool$sessionsCreate);
215
227
  tool(tool$sessionsGet);
216
228
  tool(tool$methodsList);
@@ -262,6 +274,10 @@ export function createMCPServer(deps: {
262
274
  tool(tool$salesInvoicesGet);
263
275
  tool(tool$salesInvoicesUpdate);
264
276
  tool(tool$salesInvoicesDelete);
277
+ tool(tool$accountsListAccounts);
278
+ tool(tool$accountsGetAccount);
279
+ tool(tool$accountsList);
280
+ tool(tool$accountsGet);
265
281
  tool(tool$transfersCreate);
266
282
  tool(tool$transfersGet);
267
283
  tool(tool$verifyPayeesCreate);
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 2ab8577922e3
4
+ */
5
+
6
+ import { accountsGet } from "../../funcs/accountsGet.js";
7
+ import * as operations from "../../models/operations/index.js";
8
+ import { formatResult, ToolDefinition } from "../tools.js";
9
+
10
+ const args = {
11
+ request: operations.GetBusinessAccountTransactionRequest$inboundSchema,
12
+ };
13
+
14
+ export const tool$accountsGet: ToolDefinition<typeof args> = {
15
+ name: "accounts-get",
16
+ description: `Get transaction
17
+
18
+ Retrieve a single transaction object by its transaction ID. This allows you to check the details,
19
+ amount, counterparty, and balance impact of a specific transaction.`,
20
+ args,
21
+ tool: async (client, args, ctx) => {
22
+ const [result, apiCall] = await accountsGet(
23
+ client,
24
+ args.request,
25
+ { fetchOptions: { signal: ctx.signal } },
26
+ ).$inspect();
27
+
28
+ if (!result.ok) {
29
+ return {
30
+ content: [{ type: "text", text: result.error.message }],
31
+ isError: true,
32
+ };
33
+ }
34
+
35
+ const value = result.value;
36
+
37
+ return formatResult(value, apiCall);
38
+ },
39
+ };
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: a51d0b6181e7
4
+ */
5
+
6
+ import { accountsGetAccount } from "../../funcs/accountsGetAccount.js";
7
+ import * as operations from "../../models/operations/index.js";
8
+ import { formatResult, ToolDefinition } from "../tools.js";
9
+
10
+ const args = {
11
+ request: operations.GetBusinessAccountRequest$inboundSchema,
12
+ };
13
+
14
+ export const tool$accountsGetAccount: ToolDefinition<typeof args> = {
15
+ name: "accounts-get-account",
16
+ description: `Get business account
17
+
18
+ Retrieve a single business account object by its account ID. This allows you to check the current status,
19
+ balance, and account details.`,
20
+ args,
21
+ tool: async (client, args, ctx) => {
22
+ const [result, apiCall] = await accountsGetAccount(
23
+ client,
24
+ args.request,
25
+ { fetchOptions: { signal: ctx.signal } },
26
+ ).$inspect();
27
+
28
+ if (!result.ok) {
29
+ return {
30
+ content: [{ type: "text", text: result.error.message }],
31
+ isError: true,
32
+ };
33
+ }
34
+
35
+ const value = result.value;
36
+
37
+ return formatResult(value, apiCall);
38
+ },
39
+ };
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 9ff942e2a41a
4
+ */
5
+
6
+ import { accountsList } from "../../funcs/accountsList.js";
7
+ import * as operations from "../../models/operations/index.js";
8
+ import { formatResult, ToolDefinition } from "../tools.js";
9
+
10
+ const args = {
11
+ request: operations.ListBusinessAccountTransactionsRequest$inboundSchema,
12
+ };
13
+
14
+ export const tool$accountsList: ToolDefinition<typeof args> = {
15
+ name: "accounts-list",
16
+ description: `List transactions
17
+
18
+ Retrieve all transactions for a specific business account.
19
+
20
+ The results are paginated.`,
21
+ args,
22
+ tool: async (client, args, ctx) => {
23
+ const [result, apiCall] = await accountsList(
24
+ client,
25
+ args.request,
26
+ { fetchOptions: { signal: ctx.signal } },
27
+ ).$inspect();
28
+
29
+ if (!result.ok) {
30
+ return {
31
+ content: [{ type: "text", text: result.error.message }],
32
+ isError: true,
33
+ };
34
+ }
35
+
36
+ const value = result.value.result;
37
+
38
+ return formatResult(value, apiCall);
39
+ },
40
+ };
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: ac4b5e79e0c6
4
+ */
5
+
6
+ import { accountsListAccounts } from "../../funcs/accountsListAccounts.js";
7
+ import * as operations from "../../models/operations/index.js";
8
+ import { formatResult, ToolDefinition } from "../tools.js";
9
+
10
+ const args = {
11
+ request: operations.ListBusinessAccountsRequest$inboundSchema.optional(),
12
+ };
13
+
14
+ export const tool$accountsListAccounts: ToolDefinition<typeof args> = {
15
+ name: "accounts-list-accounts",
16
+ description: `List business accounts
17
+
18
+ Retrieve all business accounts for the authenticated organization.
19
+
20
+ The results are paginated.`,
21
+ args,
22
+ tool: async (client, args, ctx) => {
23
+ const [result, apiCall] = await accountsListAccounts(
24
+ client,
25
+ args.request,
26
+ { fetchOptions: { signal: ctx.signal } },
27
+ ).$inspect();
28
+
29
+ if (!result.ok) {
30
+ return {
31
+ content: [{ type: "text", text: result.error.message }],
32
+ isError: true,
33
+ };
34
+ }
35
+
36
+ const value = result.value.result;
37
+
38
+ return formatResult(value, apiCall);
39
+ },
40
+ };
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 8f7d7f81d0ae
4
+ */
5
+
6
+ import { unmatchedCreditTransfersGet } from "../../funcs/unmatchedCreditTransfersGet.js";
7
+ import * as operations from "../../models/operations/index.js";
8
+ import { formatResult, ToolDefinition } from "../tools.js";
9
+
10
+ const args = {
11
+ request: operations.GetUnmatchedCreditTransferRequest$inboundSchema,
12
+ };
13
+
14
+ export const tool$unmatchedCreditTransfersGet: ToolDefinition<typeof args> = {
15
+ name: "unmatched-credit-transfers-get",
16
+ description: `Get unmatched credit transfer
17
+
18
+ > 🚧 Beta feature
19
+ >
20
+ > This feature is currently in private beta, and the final specification may still change.
21
+
22
+ Retrieves a single unmatched credit transfer by its identifier.`,
23
+ args,
24
+ tool: async (client, args, ctx) => {
25
+ const [result, apiCall] = await unmatchedCreditTransfersGet(
26
+ client,
27
+ args.request,
28
+ { fetchOptions: { signal: ctx.signal } },
29
+ ).$inspect();
30
+
31
+ if (!result.ok) {
32
+ return {
33
+ content: [{ type: "text", text: result.error.message }],
34
+ isError: true,
35
+ };
36
+ }
37
+
38
+ const value = result.value;
39
+
40
+ return formatResult(value, apiCall);
41
+ },
42
+ };
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 8e87d00f4b98
4
+ */
5
+
6
+ import { unmatchedCreditTransfersList } from "../../funcs/unmatchedCreditTransfersList.js";
7
+ import * as operations from "../../models/operations/index.js";
8
+ import { formatResult, ToolDefinition } from "../tools.js";
9
+
10
+ const args = {
11
+ request: operations.ListUnmatchedCreditTransfersRequest$inboundSchema
12
+ .optional(),
13
+ };
14
+
15
+ export const tool$unmatchedCreditTransfersList: ToolDefinition<typeof args> = {
16
+ name: "unmatched-credit-transfers-list",
17
+ description: `List unmatched credit transfers
18
+
19
+ > 🚧 Beta feature
20
+ >
21
+ > This feature is currently in private beta, and the final specification may still change.
22
+
23
+ Retrieves a list of unmatched credit transfers for the profile.
24
+
25
+ The results are paginated.`,
26
+ args,
27
+ tool: async (client, args, ctx) => {
28
+ const [result, apiCall] = await unmatchedCreditTransfersList(
29
+ client,
30
+ args.request,
31
+ { fetchOptions: { signal: ctx.signal } },
32
+ ).$inspect();
33
+
34
+ if (!result.ok) {
35
+ return {
36
+ content: [{ type: "text", text: result.error.message }],
37
+ isError: true,
38
+ };
39
+ }
40
+
41
+ const value = result.value.result;
42
+
43
+ return formatResult(value, apiCall);
44
+ },
45
+ };
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 119c1043258b
4
+ */
5
+
6
+ import { unmatchedCreditTransfersMatch } from "../../funcs/unmatchedCreditTransfersMatch.js";
7
+ import * as operations from "../../models/operations/index.js";
8
+ import { formatResult, ToolDefinition } from "../tools.js";
9
+
10
+ const args = {
11
+ request: operations.MatchUnmatchedCreditTransferRequest$inboundSchema,
12
+ };
13
+
14
+ export const tool$unmatchedCreditTransfersMatch: ToolDefinition<typeof args> = {
15
+ name: "unmatched-credit-transfers-match",
16
+ description: `Match unmatched credit transfer
17
+
18
+ > 🚧 Beta feature
19
+ >
20
+ > This feature is currently in private beta, and the final specification may still change.
21
+
22
+ Matches an unmatched credit transfer to one or more payments, settling the funds accordingly.`,
23
+ args,
24
+ tool: async (client, args, ctx) => {
25
+ const [result, apiCall] = await unmatchedCreditTransfersMatch(
26
+ client,
27
+ args.request,
28
+ { fetchOptions: { signal: ctx.signal } },
29
+ ).$inspect();
30
+
31
+ if (!result.ok) {
32
+ return {
33
+ content: [{ type: "text", text: result.error.message }],
34
+ isError: true,
35
+ };
36
+ }
37
+
38
+ const value = result.value;
39
+
40
+ return formatResult(value, apiCall);
41
+ },
42
+ };
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 8cbf46735dd2
4
+ */
5
+
6
+ import { unmatchedCreditTransfersReturn } from "../../funcs/unmatchedCreditTransfersReturn.js";
7
+ import * as operations from "../../models/operations/index.js";
8
+ import { formatResult, ToolDefinition } from "../tools.js";
9
+
10
+ const args = {
11
+ request: operations.ReturnUnmatchedCreditTransferRequest$inboundSchema,
12
+ };
13
+
14
+ export const tool$unmatchedCreditTransfersReturn: ToolDefinition<typeof args> =
15
+ {
16
+ name: "unmatched-credit-transfers-return",
17
+ description: `Return unmatched credit transfer
18
+
19
+ > 🚧 Beta feature
20
+ >
21
+ > This feature is currently in private beta, and the final specification may still change.
22
+
23
+ Returns an unmatched credit transfer, sending the funds back to the original sender.`,
24
+ args,
25
+ tool: async (client, args, ctx) => {
26
+ const [result, apiCall] = await unmatchedCreditTransfersReturn(
27
+ client,
28
+ args.request,
29
+ { fetchOptions: { signal: ctx.signal } },
30
+ ).$inspect();
31
+
32
+ if (!result.ok) {
33
+ return {
34
+ content: [{ type: "text", text: result.error.message }],
35
+ isError: true,
36
+ };
37
+ }
38
+
39
+ const value = result.value;
40
+
41
+ return formatResult(value, apiCall);
42
+ },
43
+ };
@@ -0,0 +1,82 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 2517099beaa4
4
+ */
5
+
6
+ import * as z from "zod/v3";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../types/fp.js";
9
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * The account holder details and bank account information for the business account.
13
+ */
14
+ export type AccountDetails = {
15
+ /**
16
+ * The name of the account holder.
17
+ */
18
+ accountHolderName: string;
19
+ /**
20
+ * A name of the account.
21
+ */
22
+ name?: string | undefined;
23
+ /**
24
+ * The currency of the account in ISO 4217 format.
25
+ */
26
+ currency: string;
27
+ /**
28
+ * The IBAN (International Bank Account Number) of the account.
29
+ */
30
+ iban: string;
31
+ /**
32
+ * The BIC (Bank Identifier Code) of the account.
33
+ */
34
+ bic?: string | undefined;
35
+ };
36
+
37
+ /** @internal */
38
+ export const AccountDetails$inboundSchema: z.ZodType<
39
+ AccountDetails,
40
+ z.ZodTypeDef,
41
+ unknown
42
+ > = z.object({
43
+ accountHolderName: z.string(),
44
+ name: z.string().optional(),
45
+ currency: z.string(),
46
+ iban: z.string(),
47
+ bic: z.string().optional(),
48
+ });
49
+ /** @internal */
50
+ export type AccountDetails$Outbound = {
51
+ accountHolderName: string;
52
+ name?: string | undefined;
53
+ currency: string;
54
+ iban: string;
55
+ bic?: string | undefined;
56
+ };
57
+
58
+ /** @internal */
59
+ export const AccountDetails$outboundSchema: z.ZodType<
60
+ AccountDetails$Outbound,
61
+ z.ZodTypeDef,
62
+ AccountDetails
63
+ > = z.object({
64
+ accountHolderName: z.string(),
65
+ name: z.string().optional(),
66
+ currency: z.string(),
67
+ iban: z.string(),
68
+ bic: z.string().optional(),
69
+ });
70
+
71
+ export function accountDetailsToJSON(accountDetails: AccountDetails): string {
72
+ return JSON.stringify(AccountDetails$outboundSchema.parse(accountDetails));
73
+ }
74
+ export function accountDetailsFromJSON(
75
+ jsonString: string,
76
+ ): SafeParseResult<AccountDetails, SDKValidationError> {
77
+ return safeParse(
78
+ jsonString,
79
+ (x) => AccountDetails$inboundSchema.parse(JSON.parse(x)),
80
+ `Failed to parse 'AccountDetails' from JSON`,
81
+ );
82
+ }
@@ -0,0 +1,34 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 7123d83ecb5d
4
+ */
5
+
6
+ import * as z from "zod/v3";
7
+ import * as openEnums from "../types/enums.js";
8
+ import { OpenEnum } from "../types/enums.js";
9
+
10
+ /**
11
+ * The status of the business account.
12
+ */
13
+ export const AccountStatus = {
14
+ Active: "active",
15
+ Blocked: "blocked",
16
+ Closed: "closed",
17
+ } as const;
18
+ /**
19
+ * The status of the business account.
20
+ */
21
+ export type AccountStatus = OpenEnum<typeof AccountStatus>;
22
+
23
+ /** @internal */
24
+ export const AccountStatus$inboundSchema: z.ZodType<
25
+ AccountStatus,
26
+ z.ZodTypeDef,
27
+ unknown
28
+ > = openEnums.inboundSchema(AccountStatus);
29
+ /** @internal */
30
+ export const AccountStatus$outboundSchema: z.ZodType<
31
+ string,
32
+ z.ZodTypeDef,
33
+ AccountStatus
34
+ > = openEnums.outboundSchema(AccountStatus);
@@ -0,0 +1,60 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 358a6fc12256
4
+ */
5
+
6
+ import * as z from "zod/v3";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../types/fp.js";
9
+ import {
10
+ Amount,
11
+ Amount$inboundSchema,
12
+ Amount$Outbound,
13
+ Amount$outboundSchema,
14
+ } from "./amount.js";
15
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
16
+
17
+ /**
18
+ * The balance of the business account after this transaction was processed.
19
+ */
20
+ export type AfterBalance = {
21
+ /**
22
+ * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
23
+ */
24
+ total: Amount;
25
+ };
26
+
27
+ /** @internal */
28
+ export const AfterBalance$inboundSchema: z.ZodType<
29
+ AfterBalance,
30
+ z.ZodTypeDef,
31
+ unknown
32
+ > = z.object({
33
+ total: Amount$inboundSchema,
34
+ });
35
+ /** @internal */
36
+ export type AfterBalance$Outbound = {
37
+ total: Amount$Outbound;
38
+ };
39
+
40
+ /** @internal */
41
+ export const AfterBalance$outboundSchema: z.ZodType<
42
+ AfterBalance$Outbound,
43
+ z.ZodTypeDef,
44
+ AfterBalance
45
+ > = z.object({
46
+ total: Amount$outboundSchema,
47
+ });
48
+
49
+ export function afterBalanceToJSON(afterBalance: AfterBalance): string {
50
+ return JSON.stringify(AfterBalance$outboundSchema.parse(afterBalance));
51
+ }
52
+ export function afterBalanceFromJSON(
53
+ jsonString: string,
54
+ ): SafeParseResult<AfterBalance, SDKValidationError> {
55
+ return safeParse(
56
+ jsonString,
57
+ (x) => AfterBalance$inboundSchema.parse(JSON.parse(x)),
58
+ `Failed to parse 'AfterBalance' from JSON`,
59
+ );
60
+ }
@@ -0,0 +1,57 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: d7bbe0a7b446
4
+ */
5
+
6
+ import * as z from "zod/v3";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../types/fp.js";
9
+ import {
10
+ Amount,
11
+ Amount$inboundSchema,
12
+ Amount$Outbound,
13
+ Amount$outboundSchema,
14
+ } from "./amount.js";
15
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
16
+
17
+ /**
18
+ * The balance of the business account.
19
+ */
20
+ export type Balance = {
21
+ /**
22
+ * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
23
+ */
24
+ total: Amount;
25
+ };
26
+
27
+ /** @internal */
28
+ export const Balance$inboundSchema: z.ZodType<Balance, z.ZodTypeDef, unknown> =
29
+ z.object({
30
+ total: Amount$inboundSchema,
31
+ });
32
+ /** @internal */
33
+ export type Balance$Outbound = {
34
+ total: Amount$Outbound;
35
+ };
36
+
37
+ /** @internal */
38
+ export const Balance$outboundSchema: z.ZodType<
39
+ Balance$Outbound,
40
+ z.ZodTypeDef,
41
+ Balance
42
+ > = z.object({
43
+ total: Amount$outboundSchema,
44
+ });
45
+
46
+ export function balanceToJSON(balance: Balance): string {
47
+ return JSON.stringify(Balance$outboundSchema.parse(balance));
48
+ }
49
+ export function balanceFromJSON(
50
+ jsonString: string,
51
+ ): SafeParseResult<Balance, SDKValidationError> {
52
+ return safeParse(
53
+ jsonString,
54
+ (x) => Balance$inboundSchema.parse(JSON.parse(x)),
55
+ `Failed to parse 'Balance' from JSON`,
56
+ );
57
+ }