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
@@ -0,0 +1,426 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 70f9c8054155
4
+ */
5
+
6
+ import * as z from "zod/v3";
7
+ import { remap as remap$ } from "../lib/primitives.js";
8
+ import { safeParse } from "../lib/schemas.js";
9
+ import * as openEnums from "../types/enums.js";
10
+ import { OpenEnum } from "../types/enums.js";
11
+ import { Result as SafeParseResult } from "../types/fp.js";
12
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
13
+
14
+ /**
15
+ * The action performed on the unmatched credit transfer.
16
+ */
17
+ export const Action = {
18
+ Match: "match",
19
+ Return: "return",
20
+ } as const;
21
+ /**
22
+ * The action performed on the unmatched credit transfer.
23
+ */
24
+ export type Action = OpenEnum<typeof Action>;
25
+
26
+ /**
27
+ * The current status of the action.
28
+ */
29
+ export const UnmatchedCreditTransferActionResponseStatus = {
30
+ Pending: "pending",
31
+ } as const;
32
+ /**
33
+ * The current status of the action.
34
+ */
35
+ export type UnmatchedCreditTransferActionResponseStatus = OpenEnum<
36
+ typeof UnmatchedCreditTransferActionResponseStatus
37
+ >;
38
+
39
+ /**
40
+ * Additional details about the action.
41
+ */
42
+ export type UnmatchedCreditTransferActionResponseDetails = {
43
+ /**
44
+ * The IDs of the payments matched to the unmatched credit transfer.
45
+ */
46
+ paymentIds?: Array<string> | undefined;
47
+ };
48
+
49
+ /**
50
+ * The URL to this action.
51
+ */
52
+ export type UnmatchedCreditTransferActionResponseSelf = {
53
+ href?: string | undefined;
54
+ type?: string | undefined;
55
+ };
56
+
57
+ /**
58
+ * The URL to the documentation of this endpoint.
59
+ */
60
+ export type UnmatchedCreditTransferActionResponseDocumentation = {
61
+ href?: string | undefined;
62
+ type?: string | undefined;
63
+ };
64
+
65
+ /**
66
+ * Links to related resources.
67
+ */
68
+ export type UnmatchedCreditTransferActionResponseLinks = {
69
+ /**
70
+ * The URL to this action.
71
+ */
72
+ self?: UnmatchedCreditTransferActionResponseSelf | undefined;
73
+ /**
74
+ * The URL to the documentation of this endpoint.
75
+ */
76
+ documentation?:
77
+ | UnmatchedCreditTransferActionResponseDocumentation
78
+ | undefined;
79
+ };
80
+
81
+ export type UnmatchedCreditTransferActionResponse = {
82
+ /**
83
+ * The resource type of the object.
84
+ */
85
+ resource: string;
86
+ /**
87
+ * The identifier uniquely referring to this unmatched credit transfer action.
88
+ */
89
+ id: string;
90
+ /**
91
+ * The identifier of the unmatched credit transfer this action belongs to.
92
+ */
93
+ unmatchedCreditTransferId: string;
94
+ /**
95
+ * The action performed on the unmatched credit transfer.
96
+ */
97
+ action: Action;
98
+ /**
99
+ * The current status of the action.
100
+ */
101
+ status: UnmatchedCreditTransferActionResponseStatus;
102
+ /**
103
+ * The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
104
+ */
105
+ createdAt: string;
106
+ /**
107
+ * Additional details about the action.
108
+ */
109
+ details?: UnmatchedCreditTransferActionResponseDetails | undefined;
110
+ /**
111
+ * Links to related resources.
112
+ */
113
+ links: UnmatchedCreditTransferActionResponseLinks;
114
+ };
115
+
116
+ /** @internal */
117
+ export const Action$inboundSchema: z.ZodType<Action, z.ZodTypeDef, unknown> =
118
+ openEnums.inboundSchema(Action);
119
+ /** @internal */
120
+ export const Action$outboundSchema: z.ZodType<string, z.ZodTypeDef, Action> =
121
+ openEnums.outboundSchema(Action);
122
+
123
+ /** @internal */
124
+ export const UnmatchedCreditTransferActionResponseStatus$inboundSchema:
125
+ z.ZodType<
126
+ UnmatchedCreditTransferActionResponseStatus,
127
+ z.ZodTypeDef,
128
+ unknown
129
+ > = openEnums.inboundSchema(UnmatchedCreditTransferActionResponseStatus);
130
+ /** @internal */
131
+ export const UnmatchedCreditTransferActionResponseStatus$outboundSchema:
132
+ z.ZodType<string, z.ZodTypeDef, UnmatchedCreditTransferActionResponseStatus> =
133
+ openEnums.outboundSchema(UnmatchedCreditTransferActionResponseStatus);
134
+
135
+ /** @internal */
136
+ export const UnmatchedCreditTransferActionResponseDetails$inboundSchema:
137
+ z.ZodType<
138
+ UnmatchedCreditTransferActionResponseDetails,
139
+ z.ZodTypeDef,
140
+ unknown
141
+ > = z.object({
142
+ paymentIds: z.array(z.string()).optional(),
143
+ });
144
+ /** @internal */
145
+ export type UnmatchedCreditTransferActionResponseDetails$Outbound = {
146
+ paymentIds?: Array<string> | undefined;
147
+ };
148
+
149
+ /** @internal */
150
+ export const UnmatchedCreditTransferActionResponseDetails$outboundSchema:
151
+ z.ZodType<
152
+ UnmatchedCreditTransferActionResponseDetails$Outbound,
153
+ z.ZodTypeDef,
154
+ UnmatchedCreditTransferActionResponseDetails
155
+ > = z.object({
156
+ paymentIds: z.array(z.string()).optional(),
157
+ });
158
+
159
+ export function unmatchedCreditTransferActionResponseDetailsToJSON(
160
+ unmatchedCreditTransferActionResponseDetails:
161
+ UnmatchedCreditTransferActionResponseDetails,
162
+ ): string {
163
+ return JSON.stringify(
164
+ UnmatchedCreditTransferActionResponseDetails$outboundSchema.parse(
165
+ unmatchedCreditTransferActionResponseDetails,
166
+ ),
167
+ );
168
+ }
169
+ export function unmatchedCreditTransferActionResponseDetailsFromJSON(
170
+ jsonString: string,
171
+ ): SafeParseResult<
172
+ UnmatchedCreditTransferActionResponseDetails,
173
+ SDKValidationError
174
+ > {
175
+ return safeParse(
176
+ jsonString,
177
+ (x) =>
178
+ UnmatchedCreditTransferActionResponseDetails$inboundSchema.parse(
179
+ JSON.parse(x),
180
+ ),
181
+ `Failed to parse 'UnmatchedCreditTransferActionResponseDetails' from JSON`,
182
+ );
183
+ }
184
+
185
+ /** @internal */
186
+ export const UnmatchedCreditTransferActionResponseSelf$inboundSchema: z.ZodType<
187
+ UnmatchedCreditTransferActionResponseSelf,
188
+ z.ZodTypeDef,
189
+ unknown
190
+ > = z.object({
191
+ href: z.string().optional(),
192
+ type: z.string().optional(),
193
+ });
194
+ /** @internal */
195
+ export type UnmatchedCreditTransferActionResponseSelf$Outbound = {
196
+ href?: string | undefined;
197
+ type?: string | undefined;
198
+ };
199
+
200
+ /** @internal */
201
+ export const UnmatchedCreditTransferActionResponseSelf$outboundSchema:
202
+ z.ZodType<
203
+ UnmatchedCreditTransferActionResponseSelf$Outbound,
204
+ z.ZodTypeDef,
205
+ UnmatchedCreditTransferActionResponseSelf
206
+ > = z.object({
207
+ href: z.string().optional(),
208
+ type: z.string().optional(),
209
+ });
210
+
211
+ export function unmatchedCreditTransferActionResponseSelfToJSON(
212
+ unmatchedCreditTransferActionResponseSelf:
213
+ UnmatchedCreditTransferActionResponseSelf,
214
+ ): string {
215
+ return JSON.stringify(
216
+ UnmatchedCreditTransferActionResponseSelf$outboundSchema.parse(
217
+ unmatchedCreditTransferActionResponseSelf,
218
+ ),
219
+ );
220
+ }
221
+ export function unmatchedCreditTransferActionResponseSelfFromJSON(
222
+ jsonString: string,
223
+ ): SafeParseResult<
224
+ UnmatchedCreditTransferActionResponseSelf,
225
+ SDKValidationError
226
+ > {
227
+ return safeParse(
228
+ jsonString,
229
+ (x) =>
230
+ UnmatchedCreditTransferActionResponseSelf$inboundSchema.parse(
231
+ JSON.parse(x),
232
+ ),
233
+ `Failed to parse 'UnmatchedCreditTransferActionResponseSelf' from JSON`,
234
+ );
235
+ }
236
+
237
+ /** @internal */
238
+ export const UnmatchedCreditTransferActionResponseDocumentation$inboundSchema:
239
+ z.ZodType<
240
+ UnmatchedCreditTransferActionResponseDocumentation,
241
+ z.ZodTypeDef,
242
+ unknown
243
+ > = z.object({
244
+ href: z.string().optional(),
245
+ type: z.string().optional(),
246
+ });
247
+ /** @internal */
248
+ export type UnmatchedCreditTransferActionResponseDocumentation$Outbound = {
249
+ href?: string | undefined;
250
+ type?: string | undefined;
251
+ };
252
+
253
+ /** @internal */
254
+ export const UnmatchedCreditTransferActionResponseDocumentation$outboundSchema:
255
+ z.ZodType<
256
+ UnmatchedCreditTransferActionResponseDocumentation$Outbound,
257
+ z.ZodTypeDef,
258
+ UnmatchedCreditTransferActionResponseDocumentation
259
+ > = z.object({
260
+ href: z.string().optional(),
261
+ type: z.string().optional(),
262
+ });
263
+
264
+ export function unmatchedCreditTransferActionResponseDocumentationToJSON(
265
+ unmatchedCreditTransferActionResponseDocumentation:
266
+ UnmatchedCreditTransferActionResponseDocumentation,
267
+ ): string {
268
+ return JSON.stringify(
269
+ UnmatchedCreditTransferActionResponseDocumentation$outboundSchema.parse(
270
+ unmatchedCreditTransferActionResponseDocumentation,
271
+ ),
272
+ );
273
+ }
274
+ export function unmatchedCreditTransferActionResponseDocumentationFromJSON(
275
+ jsonString: string,
276
+ ): SafeParseResult<
277
+ UnmatchedCreditTransferActionResponseDocumentation,
278
+ SDKValidationError
279
+ > {
280
+ return safeParse(
281
+ jsonString,
282
+ (x) =>
283
+ UnmatchedCreditTransferActionResponseDocumentation$inboundSchema.parse(
284
+ JSON.parse(x),
285
+ ),
286
+ `Failed to parse 'UnmatchedCreditTransferActionResponseDocumentation' from JSON`,
287
+ );
288
+ }
289
+
290
+ /** @internal */
291
+ export const UnmatchedCreditTransferActionResponseLinks$inboundSchema:
292
+ z.ZodType<UnmatchedCreditTransferActionResponseLinks, z.ZodTypeDef, unknown> =
293
+ z.object({
294
+ self: z.lazy(() =>
295
+ UnmatchedCreditTransferActionResponseSelf$inboundSchema
296
+ ).optional(),
297
+ documentation: z.lazy(() =>
298
+ UnmatchedCreditTransferActionResponseDocumentation$inboundSchema
299
+ ).optional(),
300
+ });
301
+ /** @internal */
302
+ export type UnmatchedCreditTransferActionResponseLinks$Outbound = {
303
+ self?: UnmatchedCreditTransferActionResponseSelf$Outbound | undefined;
304
+ documentation?:
305
+ | UnmatchedCreditTransferActionResponseDocumentation$Outbound
306
+ | undefined;
307
+ };
308
+
309
+ /** @internal */
310
+ export const UnmatchedCreditTransferActionResponseLinks$outboundSchema:
311
+ z.ZodType<
312
+ UnmatchedCreditTransferActionResponseLinks$Outbound,
313
+ z.ZodTypeDef,
314
+ UnmatchedCreditTransferActionResponseLinks
315
+ > = z.object({
316
+ self: z.lazy(() => UnmatchedCreditTransferActionResponseSelf$outboundSchema)
317
+ .optional(),
318
+ documentation: z.lazy(() =>
319
+ UnmatchedCreditTransferActionResponseDocumentation$outboundSchema
320
+ ).optional(),
321
+ });
322
+
323
+ export function unmatchedCreditTransferActionResponseLinksToJSON(
324
+ unmatchedCreditTransferActionResponseLinks:
325
+ UnmatchedCreditTransferActionResponseLinks,
326
+ ): string {
327
+ return JSON.stringify(
328
+ UnmatchedCreditTransferActionResponseLinks$outboundSchema.parse(
329
+ unmatchedCreditTransferActionResponseLinks,
330
+ ),
331
+ );
332
+ }
333
+ export function unmatchedCreditTransferActionResponseLinksFromJSON(
334
+ jsonString: string,
335
+ ): SafeParseResult<
336
+ UnmatchedCreditTransferActionResponseLinks,
337
+ SDKValidationError
338
+ > {
339
+ return safeParse(
340
+ jsonString,
341
+ (x) =>
342
+ UnmatchedCreditTransferActionResponseLinks$inboundSchema.parse(
343
+ JSON.parse(x),
344
+ ),
345
+ `Failed to parse 'UnmatchedCreditTransferActionResponseLinks' from JSON`,
346
+ );
347
+ }
348
+
349
+ /** @internal */
350
+ export const UnmatchedCreditTransferActionResponse$inboundSchema: z.ZodType<
351
+ UnmatchedCreditTransferActionResponse,
352
+ z.ZodTypeDef,
353
+ unknown
354
+ > = z.object({
355
+ resource: z.string(),
356
+ id: z.string(),
357
+ unmatchedCreditTransferId: z.string(),
358
+ action: Action$inboundSchema,
359
+ status: UnmatchedCreditTransferActionResponseStatus$inboundSchema,
360
+ createdAt: z.string(),
361
+ details: z.lazy(() =>
362
+ UnmatchedCreditTransferActionResponseDetails$inboundSchema
363
+ ).optional(),
364
+ _links: z.lazy(() =>
365
+ UnmatchedCreditTransferActionResponseLinks$inboundSchema
366
+ ),
367
+ }).transform((v) => {
368
+ return remap$(v, {
369
+ "_links": "links",
370
+ });
371
+ });
372
+ /** @internal */
373
+ export type UnmatchedCreditTransferActionResponse$Outbound = {
374
+ resource: string;
375
+ id: string;
376
+ unmatchedCreditTransferId: string;
377
+ action: string;
378
+ status: string;
379
+ createdAt: string;
380
+ details?: UnmatchedCreditTransferActionResponseDetails$Outbound | undefined;
381
+ _links: UnmatchedCreditTransferActionResponseLinks$Outbound;
382
+ };
383
+
384
+ /** @internal */
385
+ export const UnmatchedCreditTransferActionResponse$outboundSchema: z.ZodType<
386
+ UnmatchedCreditTransferActionResponse$Outbound,
387
+ z.ZodTypeDef,
388
+ UnmatchedCreditTransferActionResponse
389
+ > = z.object({
390
+ resource: z.string(),
391
+ id: z.string(),
392
+ unmatchedCreditTransferId: z.string(),
393
+ action: Action$outboundSchema,
394
+ status: UnmatchedCreditTransferActionResponseStatus$outboundSchema,
395
+ createdAt: z.string(),
396
+ details: z.lazy(() =>
397
+ UnmatchedCreditTransferActionResponseDetails$outboundSchema
398
+ ).optional(),
399
+ links: z.lazy(() =>
400
+ UnmatchedCreditTransferActionResponseLinks$outboundSchema
401
+ ),
402
+ }).transform((v) => {
403
+ return remap$(v, {
404
+ links: "_links",
405
+ });
406
+ });
407
+
408
+ export function unmatchedCreditTransferActionResponseToJSON(
409
+ unmatchedCreditTransferActionResponse: UnmatchedCreditTransferActionResponse,
410
+ ): string {
411
+ return JSON.stringify(
412
+ UnmatchedCreditTransferActionResponse$outboundSchema.parse(
413
+ unmatchedCreditTransferActionResponse,
414
+ ),
415
+ );
416
+ }
417
+ export function unmatchedCreditTransferActionResponseFromJSON(
418
+ jsonString: string,
419
+ ): SafeParseResult<UnmatchedCreditTransferActionResponse, SDKValidationError> {
420
+ return safeParse(
421
+ jsonString,
422
+ (x) =>
423
+ UnmatchedCreditTransferActionResponse$inboundSchema.parse(JSON.parse(x)),
424
+ `Failed to parse 'UnmatchedCreditTransferActionResponse' from JSON`,
425
+ );
426
+ }
@@ -0,0 +1,58 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 62d67e484ffd
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
+ export type UnmatchedCreditTransferMatchRequest = {
12
+ /**
13
+ * The IDs of the payments to match against the unmatched credit transfer.
14
+ */
15
+ paymentIds: Array<string>;
16
+ };
17
+
18
+ /** @internal */
19
+ export const UnmatchedCreditTransferMatchRequest$inboundSchema: z.ZodType<
20
+ UnmatchedCreditTransferMatchRequest,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ paymentIds: z.array(z.string()),
25
+ });
26
+ /** @internal */
27
+ export type UnmatchedCreditTransferMatchRequest$Outbound = {
28
+ paymentIds: Array<string>;
29
+ };
30
+
31
+ /** @internal */
32
+ export const UnmatchedCreditTransferMatchRequest$outboundSchema: z.ZodType<
33
+ UnmatchedCreditTransferMatchRequest$Outbound,
34
+ z.ZodTypeDef,
35
+ UnmatchedCreditTransferMatchRequest
36
+ > = z.object({
37
+ paymentIds: z.array(z.string()),
38
+ });
39
+
40
+ export function unmatchedCreditTransferMatchRequestToJSON(
41
+ unmatchedCreditTransferMatchRequest: UnmatchedCreditTransferMatchRequest,
42
+ ): string {
43
+ return JSON.stringify(
44
+ UnmatchedCreditTransferMatchRequest$outboundSchema.parse(
45
+ unmatchedCreditTransferMatchRequest,
46
+ ),
47
+ );
48
+ }
49
+ export function unmatchedCreditTransferMatchRequestFromJSON(
50
+ jsonString: string,
51
+ ): SafeParseResult<UnmatchedCreditTransferMatchRequest, SDKValidationError> {
52
+ return safeParse(
53
+ jsonString,
54
+ (x) =>
55
+ UnmatchedCreditTransferMatchRequest$inboundSchema.parse(JSON.parse(x)),
56
+ `Failed to parse 'UnmatchedCreditTransferMatchRequest' from JSON`,
57
+ );
58
+ }
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: e2b8ffb2feac
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
+ export const UnmatchedCreditTransferStatus = {
11
+ Received: "received",
12
+ Matched: "matched",
13
+ Returned: "returned",
14
+ Expired: "expired",
15
+ } as const;
16
+ export type UnmatchedCreditTransferStatus = OpenEnum<
17
+ typeof UnmatchedCreditTransferStatus
18
+ >;
19
+
20
+ /** @internal */
21
+ export const UnmatchedCreditTransferStatus$inboundSchema: z.ZodType<
22
+ UnmatchedCreditTransferStatus,
23
+ z.ZodTypeDef,
24
+ unknown
25
+ > = openEnums.inboundSchema(UnmatchedCreditTransferStatus);
26
+ /** @internal */
27
+ export const UnmatchedCreditTransferStatus$outboundSchema: z.ZodType<
28
+ string,
29
+ z.ZodTypeDef,
30
+ UnmatchedCreditTransferStatus
31
+ > = openEnums.outboundSchema(UnmatchedCreditTransferStatus);
@@ -0,0 +1,97 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: a4031260e046
4
+ */
5
+
6
+ import { accountsGet } from "../funcs/accountsGet.js";
7
+ import { accountsGetAccount } from "../funcs/accountsGetAccount.js";
8
+ import { accountsList } from "../funcs/accountsList.js";
9
+ import { accountsListAccounts } from "../funcs/accountsListAccounts.js";
10
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
11
+ import * as models from "../models/index.js";
12
+ import * as operations from "../models/operations/index.js";
13
+ import { unwrapAsync } from "../types/fp.js";
14
+ import { PageIterator, unwrapResultIterator } from "../types/operations.js";
15
+
16
+ export class Accounts extends ClientSDK {
17
+ /**
18
+ * List business accounts
19
+ *
20
+ * @remarks
21
+ * Retrieve all business accounts for the authenticated organization.
22
+ *
23
+ * The results are paginated.
24
+ */
25
+ async listAccounts(
26
+ request?: operations.ListBusinessAccountsRequest | undefined,
27
+ options?: RequestOptions,
28
+ ): Promise<
29
+ PageIterator<operations.ListBusinessAccountsResponse, { url: string }>
30
+ > {
31
+ return unwrapResultIterator(accountsListAccounts(
32
+ this,
33
+ request,
34
+ options,
35
+ ));
36
+ }
37
+
38
+ /**
39
+ * Get business account
40
+ *
41
+ * @remarks
42
+ * Retrieve a single business account object by its account ID. This allows you to check the current status,
43
+ * balance, and account details.
44
+ */
45
+ async getAccount(
46
+ request: operations.GetBusinessAccountRequest,
47
+ options?: RequestOptions,
48
+ ): Promise<models.BusinessAccountResponse> {
49
+ return unwrapAsync(accountsGetAccount(
50
+ this,
51
+ request,
52
+ options,
53
+ ));
54
+ }
55
+
56
+ /**
57
+ * List transactions
58
+ *
59
+ * @remarks
60
+ * Retrieve all transactions for a specific business account.
61
+ *
62
+ * The results are paginated.
63
+ */
64
+ async list(
65
+ request: operations.ListBusinessAccountTransactionsRequest,
66
+ options?: RequestOptions,
67
+ ): Promise<
68
+ PageIterator<
69
+ operations.ListBusinessAccountTransactionsResponse,
70
+ { url: string }
71
+ >
72
+ > {
73
+ return unwrapResultIterator(accountsList(
74
+ this,
75
+ request,
76
+ options,
77
+ ));
78
+ }
79
+
80
+ /**
81
+ * Get transaction
82
+ *
83
+ * @remarks
84
+ * Retrieve a single transaction object by its transaction ID. This allows you to check the details,
85
+ * amount, counterparty, and balance impact of a specific transaction.
86
+ */
87
+ async get(
88
+ request: operations.GetBusinessAccountTransactionRequest,
89
+ options?: RequestOptions,
90
+ ): Promise<models.TransactionResponse> {
91
+ return unwrapAsync(accountsGet(
92
+ this,
93
+ request,
94
+ options,
95
+ ));
96
+ }
97
+ }
package/src/sdk/sdk.ts CHANGED
@@ -4,6 +4,7 @@
4
4
  */
5
5
 
6
6
  import { ClientSDK } from "../lib/sdks.js";
7
+ import { Accounts } from "./accounts.js";
7
8
  import { Balances } from "./balances.js";
8
9
  import { BalanceTransfers } from "./balancetransfers.js";
9
10
  import { Capabilities } from "./capabilities.js";
@@ -29,6 +30,7 @@ import { Settlements } from "./settlements.js";
29
30
  import { Subscriptions } from "./subscriptions.js";
30
31
  import { Terminals } from "./terminals.js";
31
32
  import { Transfers } from "./transfers.js";
33
+ import { UnmatchedCreditTransfers } from "./unmatchedcredittransfers.js";
32
34
  import { VerifyPayees } from "./verifypayees.js";
33
35
  import { Wallets } from "./wallets.js";
34
36
  import { WebhookEvents } from "./webhookevents.js";
@@ -105,6 +107,13 @@ export class Client extends ClientSDK {
105
107
  return (this._payments ??= new Payments(this._options));
106
108
  }
107
109
 
110
+ private _unmatchedCreditTransfers?: UnmatchedCreditTransfers;
111
+ get unmatchedCreditTransfers(): UnmatchedCreditTransfers {
112
+ return (this._unmatchedCreditTransfers ??= new UnmatchedCreditTransfers(
113
+ this._options,
114
+ ));
115
+ }
116
+
108
117
  private _sessions?: Sessions;
109
118
  get sessions(): Sessions {
110
119
  return (this._sessions ??= new Sessions(this._options));
@@ -170,6 +179,11 @@ export class Client extends ClientSDK {
170
179
  return (this._salesInvoices ??= new SalesInvoices(this._options));
171
180
  }
172
181
 
182
+ private _accounts?: Accounts;
183
+ get accounts(): Accounts {
184
+ return (this._accounts ??= new Accounts(this._options));
185
+ }
186
+
173
187
  private _transfers?: Transfers;
174
188
  get transfers(): Transfers {
175
189
  return (this._transfers ??= new Transfers(this._options));