mollie-api-typescript 0.4.0 → 0.4.1

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/bin/mcp-server.js +593 -621
  2. package/bin/mcp-server.js.map +48 -45
  3. package/dist/commonjs/funcs/clientLinksCreate.d.ts +1 -1
  4. package/dist/commonjs/funcs/clientLinksCreate.d.ts.map +1 -1
  5. package/dist/commonjs/funcs/clientLinksCreate.js +1 -1
  6. package/dist/commonjs/funcs/clientLinksCreate.js.map +1 -1
  7. package/dist/commonjs/funcs/delayedRoutingCreate.js +1 -3
  8. package/dist/commonjs/funcs/delayedRoutingCreate.js.map +1 -1
  9. package/dist/commonjs/funcs/profilesCreate.d.ts +1 -1
  10. package/dist/commonjs/funcs/profilesCreate.d.ts.map +1 -1
  11. package/dist/commonjs/funcs/profilesCreate.js +1 -1
  12. package/dist/commonjs/funcs/profilesCreate.js.map +1 -1
  13. package/dist/commonjs/funcs/profilesGet.d.ts +1 -1
  14. package/dist/commonjs/funcs/profilesGet.d.ts.map +1 -1
  15. package/dist/commonjs/funcs/profilesGet.js +1 -1
  16. package/dist/commonjs/funcs/profilesGet.js.map +1 -1
  17. package/dist/commonjs/funcs/profilesGetCurrent.d.ts +1 -1
  18. package/dist/commonjs/funcs/profilesGetCurrent.d.ts.map +1 -1
  19. package/dist/commonjs/funcs/profilesGetCurrent.js +1 -1
  20. package/dist/commonjs/funcs/profilesGetCurrent.js.map +1 -1
  21. package/dist/commonjs/funcs/profilesUpdate.d.ts +1 -1
  22. package/dist/commonjs/funcs/profilesUpdate.d.ts.map +1 -1
  23. package/dist/commonjs/funcs/profilesUpdate.js +1 -1
  24. package/dist/commonjs/funcs/profilesUpdate.js.map +1 -1
  25. package/dist/commonjs/lib/config.d.ts +3 -3
  26. package/dist/commonjs/lib/config.js +3 -3
  27. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  28. package/dist/commonjs/mcp-server/server.js +1 -1
  29. package/dist/commonjs/models/address.d.ts +8 -8
  30. package/dist/commonjs/models/address.d.ts.map +1 -1
  31. package/dist/commonjs/models/address.js +8 -8
  32. package/dist/commonjs/models/address.js.map +1 -1
  33. package/dist/commonjs/models/clientlinkresponse.d.ts +87 -0
  34. package/dist/commonjs/models/clientlinkresponse.d.ts.map +1 -0
  35. package/dist/commonjs/models/clientlinkresponse.js +114 -0
  36. package/dist/commonjs/models/clientlinkresponse.js.map +1 -0
  37. package/dist/commonjs/models/entitybalance.d.ts +20 -20
  38. package/dist/commonjs/models/entitybalance.d.ts.map +1 -1
  39. package/dist/commonjs/models/entitybalance.js +20 -20
  40. package/dist/commonjs/models/entitybalance.js.map +1 -1
  41. package/dist/commonjs/models/entitybalancereport.d.ts +16 -16
  42. package/dist/commonjs/models/entitybalancereport.d.ts.map +1 -1
  43. package/dist/commonjs/models/entitybalancereport.js +16 -16
  44. package/dist/commonjs/models/entitybalancereport.js.map +1 -1
  45. package/dist/commonjs/models/entitybalancetransaction.d.ts +12 -12
  46. package/dist/commonjs/models/entitybalancetransaction.d.ts.map +1 -1
  47. package/dist/commonjs/models/entitybalancetransaction.js +12 -12
  48. package/dist/commonjs/models/entitybalancetransaction.js.map +1 -1
  49. package/dist/commonjs/models/entitycapability.d.ts +10 -10
  50. package/dist/commonjs/models/entitycapability.d.ts.map +1 -1
  51. package/dist/commonjs/models/entitycapability.js +10 -10
  52. package/dist/commonjs/models/entitycapability.js.map +1 -1
  53. package/dist/commonjs/models/entitycapabilityrequirement.d.ts +12 -53
  54. package/dist/commonjs/models/entitycapabilityrequirement.d.ts.map +1 -1
  55. package/dist/commonjs/models/entitycapabilityrequirement.js +12 -42
  56. package/dist/commonjs/models/entitycapabilityrequirement.js.map +1 -1
  57. package/dist/commonjs/models/entityinvoice.d.ts +32 -35
  58. package/dist/commonjs/models/entityinvoice.d.ts.map +1 -1
  59. package/dist/commonjs/models/entityinvoice.js +32 -32
  60. package/dist/commonjs/models/entityinvoice.js.map +1 -1
  61. package/dist/commonjs/models/entityonboardingstatus.d.ts +14 -14
  62. package/dist/commonjs/models/entityonboardingstatus.d.ts.map +1 -1
  63. package/dist/commonjs/models/entityonboardingstatus.js +14 -14
  64. package/dist/commonjs/models/entityonboardingstatus.js.map +1 -1
  65. package/dist/commonjs/models/entityorganization.d.ts +16 -19
  66. package/dist/commonjs/models/entityorganization.d.ts.map +1 -1
  67. package/dist/commonjs/models/entityorganization.js +16 -16
  68. package/dist/commonjs/models/entityorganization.js.map +1 -1
  69. package/dist/commonjs/models/entitypermission.d.ts +10 -10
  70. package/dist/commonjs/models/entitypermission.d.ts.map +1 -1
  71. package/dist/commonjs/models/entitypermission.js +10 -10
  72. package/dist/commonjs/models/entitypermission.js.map +1 -1
  73. package/dist/commonjs/models/entityroute.d.ts +92 -0
  74. package/dist/commonjs/models/entityroute.d.ts.map +1 -0
  75. package/dist/commonjs/models/entityroute.js +110 -0
  76. package/dist/commonjs/models/entityroute.js.map +1 -0
  77. package/dist/commonjs/models/entitywebhookevent.d.ts +5 -5
  78. package/dist/commonjs/models/entitywebhookevent.d.ts.map +1 -1
  79. package/dist/commonjs/models/entitywebhookevent.js +5 -8
  80. package/dist/commonjs/models/entitywebhookevent.js.map +1 -1
  81. package/dist/commonjs/models/index.d.ts +6 -3
  82. package/dist/commonjs/models/index.d.ts.map +1 -1
  83. package/dist/commonjs/models/index.js +6 -3
  84. package/dist/commonjs/models/index.js.map +1 -1
  85. package/dist/commonjs/models/methodincludewalletsparameter.d.ts +25 -0
  86. package/dist/commonjs/models/methodincludewalletsparameter.d.ts.map +1 -0
  87. package/dist/commonjs/models/methodincludewalletsparameter.js +59 -0
  88. package/dist/commonjs/models/methodincludewalletsparameter.js.map +1 -0
  89. package/dist/commonjs/models/methodresourceparameter.d.ts +28 -0
  90. package/dist/commonjs/models/methodresourceparameter.d.ts.map +1 -0
  91. package/dist/commonjs/models/methodresourceparameter.js +60 -0
  92. package/dist/commonjs/models/methodresourceparameter.js.map +1 -0
  93. package/dist/commonjs/models/onboardingvatregulation.d.ts +47 -0
  94. package/dist/commonjs/models/onboardingvatregulation.d.ts.map +1 -0
  95. package/dist/commonjs/models/onboardingvatregulation.js +69 -0
  96. package/dist/commonjs/models/onboardingvatregulation.js.map +1 -0
  97. package/dist/commonjs/models/operations/getbalancereport.d.ts +3 -48
  98. package/dist/commonjs/models/operations/getbalancereport.d.ts.map +1 -1
  99. package/dist/commonjs/models/operations/getbalancereport.js +4 -33
  100. package/dist/commonjs/models/operations/getbalancereport.js.map +1 -1
  101. package/dist/commonjs/models/operations/listallchargebacks.d.ts +8 -8
  102. package/dist/commonjs/models/operations/listallchargebacks.d.ts.map +1 -1
  103. package/dist/commonjs/models/operations/listallchargebacks.js +8 -8
  104. package/dist/commonjs/models/operations/listallchargebacks.js.map +1 -1
  105. package/dist/commonjs/models/operations/listbalances.d.ts +8 -8
  106. package/dist/commonjs/models/operations/listbalances.d.ts.map +1 -1
  107. package/dist/commonjs/models/operations/listbalances.js +8 -8
  108. package/dist/commonjs/models/operations/listbalances.js.map +1 -1
  109. package/dist/commonjs/models/operations/listbalancetransactions.d.ts +8 -8
  110. package/dist/commonjs/models/operations/listbalancetransactions.d.ts.map +1 -1
  111. package/dist/commonjs/models/operations/listbalancetransactions.js +8 -12
  112. package/dist/commonjs/models/operations/listbalancetransactions.js.map +1 -1
  113. package/dist/commonjs/models/operations/listcapabilities.d.ts +13 -37
  114. package/dist/commonjs/models/operations/listcapabilities.d.ts.map +1 -1
  115. package/dist/commonjs/models/operations/listcapabilities.js +11 -40
  116. package/dist/commonjs/models/operations/listcapabilities.js.map +1 -1
  117. package/dist/commonjs/models/operations/listchargebacks.d.ts +8 -8
  118. package/dist/commonjs/models/operations/listchargebacks.d.ts.map +1 -1
  119. package/dist/commonjs/models/operations/listchargebacks.js +8 -8
  120. package/dist/commonjs/models/operations/listchargebacks.js.map +1 -1
  121. package/dist/commonjs/models/operations/listinvoices.d.ts +8 -8
  122. package/dist/commonjs/models/operations/listinvoices.d.ts.map +1 -1
  123. package/dist/commonjs/models/operations/listinvoices.js +8 -8
  124. package/dist/commonjs/models/operations/listinvoices.js.map +1 -1
  125. package/dist/commonjs/models/operations/listmethods.d.ts +2 -84
  126. package/dist/commonjs/models/operations/listmethods.d.ts.map +1 -1
  127. package/dist/commonjs/models/operations/listmethods.js +6 -60
  128. package/dist/commonjs/models/operations/listmethods.js.map +1 -1
  129. package/dist/commonjs/models/operations/listpermissions.d.ts +8 -8
  130. package/dist/commonjs/models/operations/listpermissions.d.ts.map +1 -1
  131. package/dist/commonjs/models/operations/listpermissions.js +8 -8
  132. package/dist/commonjs/models/operations/listpermissions.js.map +1 -1
  133. package/dist/commonjs/models/operations/listprofiles.d.ts +8 -8
  134. package/dist/commonjs/models/operations/listprofiles.d.ts.map +1 -1
  135. package/dist/commonjs/models/operations/listprofiles.js +8 -8
  136. package/dist/commonjs/models/operations/listprofiles.js.map +1 -1
  137. package/dist/commonjs/models/operations/listsettlementchargebacks.d.ts +8 -8
  138. package/dist/commonjs/models/operations/listsettlementchargebacks.d.ts.map +1 -1
  139. package/dist/commonjs/models/operations/listsettlementchargebacks.js +8 -10
  140. package/dist/commonjs/models/operations/listsettlementchargebacks.js.map +1 -1
  141. package/dist/commonjs/models/operations/paymentcreateroute.d.ts +2 -2
  142. package/dist/commonjs/models/operations/paymentcreateroute.d.ts.map +1 -1
  143. package/dist/commonjs/models/operations/paymentcreateroute.js +4 -4
  144. package/dist/commonjs/models/operations/paymentcreateroute.js.map +1 -1
  145. package/dist/commonjs/models/operations/paymentlistroutes.d.ts +8 -8
  146. package/dist/commonjs/models/operations/paymentlistroutes.d.ts.map +1 -1
  147. package/dist/commonjs/models/operations/paymentlistroutes.js +8 -8
  148. package/dist/commonjs/models/operations/paymentlistroutes.js.map +1 -1
  149. package/dist/commonjs/models/operations/submitonboardingdata.d.ts +1 -46
  150. package/dist/commonjs/models/operations/submitonboardingdata.d.ts.map +1 -1
  151. package/dist/commonjs/models/operations/submitonboardingdata.js +5 -31
  152. package/dist/commonjs/models/operations/submitonboardingdata.js.map +1 -1
  153. package/dist/commonjs/models/operations/updateprofile.d.ts +0 -46
  154. package/dist/commonjs/models/operations/updateprofile.d.ts.map +1 -1
  155. package/dist/commonjs/models/operations/updateprofile.js +1 -28
  156. package/dist/commonjs/models/operations/updateprofile.js.map +1 -1
  157. package/dist/commonjs/models/{entityprofileresponse.d.ts → profileresponse.d.ts} +29 -29
  158. package/dist/commonjs/models/profileresponse.d.ts.map +1 -0
  159. package/dist/commonjs/models/{entityprofileresponse.js → profileresponse.js} +34 -34
  160. package/dist/commonjs/models/profileresponse.js.map +1 -0
  161. package/dist/commonjs/models/routecreateresponse.d.ts +14 -14
  162. package/dist/commonjs/models/routecreateresponse.d.ts.map +1 -1
  163. package/dist/commonjs/models/routecreateresponse.js +16 -14
  164. package/dist/commonjs/models/routecreateresponse.js.map +1 -1
  165. package/dist/commonjs/models/routegetresponse.d.ts +14 -14
  166. package/dist/commonjs/models/routegetresponse.d.ts.map +1 -1
  167. package/dist/commonjs/models/routegetresponse.js +16 -14
  168. package/dist/commonjs/models/routegetresponse.js.map +1 -1
  169. package/dist/commonjs/sdk/clientlinks.d.ts +1 -1
  170. package/dist/commonjs/sdk/clientlinks.d.ts.map +1 -1
  171. package/dist/commonjs/sdk/profiles.d.ts +4 -4
  172. package/dist/commonjs/sdk/profiles.d.ts.map +1 -1
  173. package/dist/esm/funcs/clientLinksCreate.d.ts +1 -1
  174. package/dist/esm/funcs/clientLinksCreate.d.ts.map +1 -1
  175. package/dist/esm/funcs/clientLinksCreate.js +1 -1
  176. package/dist/esm/funcs/clientLinksCreate.js.map +1 -1
  177. package/dist/esm/funcs/delayedRoutingCreate.js +1 -3
  178. package/dist/esm/funcs/delayedRoutingCreate.js.map +1 -1
  179. package/dist/esm/funcs/profilesCreate.d.ts +1 -1
  180. package/dist/esm/funcs/profilesCreate.d.ts.map +1 -1
  181. package/dist/esm/funcs/profilesCreate.js +1 -1
  182. package/dist/esm/funcs/profilesCreate.js.map +1 -1
  183. package/dist/esm/funcs/profilesGet.d.ts +1 -1
  184. package/dist/esm/funcs/profilesGet.d.ts.map +1 -1
  185. package/dist/esm/funcs/profilesGet.js +1 -1
  186. package/dist/esm/funcs/profilesGet.js.map +1 -1
  187. package/dist/esm/funcs/profilesGetCurrent.d.ts +1 -1
  188. package/dist/esm/funcs/profilesGetCurrent.d.ts.map +1 -1
  189. package/dist/esm/funcs/profilesGetCurrent.js +1 -1
  190. package/dist/esm/funcs/profilesGetCurrent.js.map +1 -1
  191. package/dist/esm/funcs/profilesUpdate.d.ts +1 -1
  192. package/dist/esm/funcs/profilesUpdate.d.ts.map +1 -1
  193. package/dist/esm/funcs/profilesUpdate.js +1 -1
  194. package/dist/esm/funcs/profilesUpdate.js.map +1 -1
  195. package/dist/esm/lib/config.d.ts +3 -3
  196. package/dist/esm/lib/config.js +3 -3
  197. package/dist/esm/mcp-server/mcp-server.js +1 -1
  198. package/dist/esm/mcp-server/server.js +1 -1
  199. package/dist/esm/models/address.d.ts +8 -8
  200. package/dist/esm/models/address.d.ts.map +1 -1
  201. package/dist/esm/models/address.js +8 -8
  202. package/dist/esm/models/address.js.map +1 -1
  203. package/dist/esm/models/clientlinkresponse.d.ts +87 -0
  204. package/dist/esm/models/clientlinkresponse.d.ts.map +1 -0
  205. package/dist/esm/models/clientlinkresponse.js +74 -0
  206. package/dist/esm/models/clientlinkresponse.js.map +1 -0
  207. package/dist/esm/models/entitybalance.d.ts +20 -20
  208. package/dist/esm/models/entitybalance.d.ts.map +1 -1
  209. package/dist/esm/models/entitybalance.js +20 -20
  210. package/dist/esm/models/entitybalance.js.map +1 -1
  211. package/dist/esm/models/entitybalancereport.d.ts +16 -16
  212. package/dist/esm/models/entitybalancereport.d.ts.map +1 -1
  213. package/dist/esm/models/entitybalancereport.js +16 -16
  214. package/dist/esm/models/entitybalancereport.js.map +1 -1
  215. package/dist/esm/models/entitybalancetransaction.d.ts +12 -12
  216. package/dist/esm/models/entitybalancetransaction.d.ts.map +1 -1
  217. package/dist/esm/models/entitybalancetransaction.js +12 -12
  218. package/dist/esm/models/entitybalancetransaction.js.map +1 -1
  219. package/dist/esm/models/entitycapability.d.ts +10 -10
  220. package/dist/esm/models/entitycapability.d.ts.map +1 -1
  221. package/dist/esm/models/entitycapability.js +10 -10
  222. package/dist/esm/models/entitycapability.js.map +1 -1
  223. package/dist/esm/models/entitycapabilityrequirement.d.ts +12 -53
  224. package/dist/esm/models/entitycapabilityrequirement.d.ts.map +1 -1
  225. package/dist/esm/models/entitycapabilityrequirement.js +11 -39
  226. package/dist/esm/models/entitycapabilityrequirement.js.map +1 -1
  227. package/dist/esm/models/entityinvoice.d.ts +32 -35
  228. package/dist/esm/models/entityinvoice.d.ts.map +1 -1
  229. package/dist/esm/models/entityinvoice.js +32 -32
  230. package/dist/esm/models/entityinvoice.js.map +1 -1
  231. package/dist/esm/models/entityonboardingstatus.d.ts +14 -14
  232. package/dist/esm/models/entityonboardingstatus.d.ts.map +1 -1
  233. package/dist/esm/models/entityonboardingstatus.js +14 -14
  234. package/dist/esm/models/entityonboardingstatus.js.map +1 -1
  235. package/dist/esm/models/entityorganization.d.ts +16 -19
  236. package/dist/esm/models/entityorganization.d.ts.map +1 -1
  237. package/dist/esm/models/entityorganization.js +16 -16
  238. package/dist/esm/models/entityorganization.js.map +1 -1
  239. package/dist/esm/models/entitypermission.d.ts +10 -10
  240. package/dist/esm/models/entitypermission.d.ts.map +1 -1
  241. package/dist/esm/models/entitypermission.js +10 -10
  242. package/dist/esm/models/entitypermission.js.map +1 -1
  243. package/dist/esm/models/entityroute.d.ts +92 -0
  244. package/dist/esm/models/entityroute.d.ts.map +1 -0
  245. package/dist/esm/models/entityroute.js +70 -0
  246. package/dist/esm/models/entityroute.js.map +1 -0
  247. package/dist/esm/models/entitywebhookevent.d.ts +5 -5
  248. package/dist/esm/models/entitywebhookevent.d.ts.map +1 -1
  249. package/dist/esm/models/entitywebhookevent.js +5 -8
  250. package/dist/esm/models/entitywebhookevent.js.map +1 -1
  251. package/dist/esm/models/index.d.ts +6 -3
  252. package/dist/esm/models/index.d.ts.map +1 -1
  253. package/dist/esm/models/index.js +6 -3
  254. package/dist/esm/models/index.js.map +1 -1
  255. package/dist/esm/models/methodincludewalletsparameter.d.ts +25 -0
  256. package/dist/esm/models/methodincludewalletsparameter.d.ts.map +1 -0
  257. package/dist/esm/models/methodincludewalletsparameter.js +23 -0
  258. package/dist/esm/models/methodincludewalletsparameter.js.map +1 -0
  259. package/dist/esm/models/methodresourceparameter.d.ts +28 -0
  260. package/dist/esm/models/methodresourceparameter.d.ts.map +1 -0
  261. package/dist/esm/models/methodresourceparameter.js +24 -0
  262. package/dist/esm/models/methodresourceparameter.js.map +1 -0
  263. package/dist/esm/models/onboardingvatregulation.d.ts +47 -0
  264. package/dist/esm/models/onboardingvatregulation.d.ts.map +1 -0
  265. package/dist/esm/models/onboardingvatregulation.js +33 -0
  266. package/dist/esm/models/onboardingvatregulation.js.map +1 -0
  267. package/dist/esm/models/operations/getbalancereport.d.ts +3 -48
  268. package/dist/esm/models/operations/getbalancereport.d.ts.map +1 -1
  269. package/dist/esm/models/operations/getbalancereport.js +3 -32
  270. package/dist/esm/models/operations/getbalancereport.js.map +1 -1
  271. package/dist/esm/models/operations/listallchargebacks.d.ts +8 -8
  272. package/dist/esm/models/operations/listallchargebacks.d.ts.map +1 -1
  273. package/dist/esm/models/operations/listallchargebacks.js +8 -8
  274. package/dist/esm/models/operations/listallchargebacks.js.map +1 -1
  275. package/dist/esm/models/operations/listbalances.d.ts +8 -8
  276. package/dist/esm/models/operations/listbalances.d.ts.map +1 -1
  277. package/dist/esm/models/operations/listbalances.js +8 -8
  278. package/dist/esm/models/operations/listbalances.js.map +1 -1
  279. package/dist/esm/models/operations/listbalancetransactions.d.ts +8 -8
  280. package/dist/esm/models/operations/listbalancetransactions.d.ts.map +1 -1
  281. package/dist/esm/models/operations/listbalancetransactions.js +8 -12
  282. package/dist/esm/models/operations/listbalancetransactions.js.map +1 -1
  283. package/dist/esm/models/operations/listcapabilities.d.ts +13 -37
  284. package/dist/esm/models/operations/listcapabilities.d.ts.map +1 -1
  285. package/dist/esm/models/operations/listcapabilities.js +10 -37
  286. package/dist/esm/models/operations/listcapabilities.js.map +1 -1
  287. package/dist/esm/models/operations/listchargebacks.d.ts +8 -8
  288. package/dist/esm/models/operations/listchargebacks.d.ts.map +1 -1
  289. package/dist/esm/models/operations/listchargebacks.js +8 -8
  290. package/dist/esm/models/operations/listchargebacks.js.map +1 -1
  291. package/dist/esm/models/operations/listinvoices.d.ts +8 -8
  292. package/dist/esm/models/operations/listinvoices.d.ts.map +1 -1
  293. package/dist/esm/models/operations/listinvoices.js +8 -8
  294. package/dist/esm/models/operations/listinvoices.js.map +1 -1
  295. package/dist/esm/models/operations/listmethods.d.ts +2 -84
  296. package/dist/esm/models/operations/listmethods.d.ts.map +1 -1
  297. package/dist/esm/models/operations/listmethods.js +5 -59
  298. package/dist/esm/models/operations/listmethods.js.map +1 -1
  299. package/dist/esm/models/operations/listpermissions.d.ts +8 -8
  300. package/dist/esm/models/operations/listpermissions.d.ts.map +1 -1
  301. package/dist/esm/models/operations/listpermissions.js +8 -8
  302. package/dist/esm/models/operations/listpermissions.js.map +1 -1
  303. package/dist/esm/models/operations/listprofiles.d.ts +8 -8
  304. package/dist/esm/models/operations/listprofiles.d.ts.map +1 -1
  305. package/dist/esm/models/operations/listprofiles.js +8 -8
  306. package/dist/esm/models/operations/listprofiles.js.map +1 -1
  307. package/dist/esm/models/operations/listsettlementchargebacks.d.ts +8 -8
  308. package/dist/esm/models/operations/listsettlementchargebacks.d.ts.map +1 -1
  309. package/dist/esm/models/operations/listsettlementchargebacks.js +8 -10
  310. package/dist/esm/models/operations/listsettlementchargebacks.js.map +1 -1
  311. package/dist/esm/models/operations/paymentcreateroute.d.ts +2 -2
  312. package/dist/esm/models/operations/paymentcreateroute.d.ts.map +1 -1
  313. package/dist/esm/models/operations/paymentcreateroute.js +4 -4
  314. package/dist/esm/models/operations/paymentcreateroute.js.map +1 -1
  315. package/dist/esm/models/operations/paymentlistroutes.d.ts +8 -8
  316. package/dist/esm/models/operations/paymentlistroutes.d.ts.map +1 -1
  317. package/dist/esm/models/operations/paymentlistroutes.js +8 -8
  318. package/dist/esm/models/operations/paymentlistroutes.js.map +1 -1
  319. package/dist/esm/models/operations/submitonboardingdata.d.ts +1 -46
  320. package/dist/esm/models/operations/submitonboardingdata.d.ts.map +1 -1
  321. package/dist/esm/models/operations/submitonboardingdata.js +4 -30
  322. package/dist/esm/models/operations/submitonboardingdata.js.map +1 -1
  323. package/dist/esm/models/operations/updateprofile.d.ts +0 -46
  324. package/dist/esm/models/operations/updateprofile.d.ts.map +1 -1
  325. package/dist/esm/models/operations/updateprofile.js +0 -27
  326. package/dist/esm/models/operations/updateprofile.js.map +1 -1
  327. package/dist/esm/models/{entityprofileresponse.d.ts → profileresponse.d.ts} +29 -29
  328. package/dist/esm/models/profileresponse.d.ts.map +1 -0
  329. package/dist/esm/models/{entityprofileresponse.js → profileresponse.js} +29 -29
  330. package/dist/esm/models/profileresponse.js.map +1 -0
  331. package/dist/esm/models/routecreateresponse.d.ts +14 -14
  332. package/dist/esm/models/routecreateresponse.d.ts.map +1 -1
  333. package/dist/esm/models/routecreateresponse.js +16 -14
  334. package/dist/esm/models/routecreateresponse.js.map +1 -1
  335. package/dist/esm/models/routegetresponse.d.ts +14 -14
  336. package/dist/esm/models/routegetresponse.d.ts.map +1 -1
  337. package/dist/esm/models/routegetresponse.js +16 -14
  338. package/dist/esm/models/routegetresponse.js.map +1 -1
  339. package/dist/esm/sdk/clientlinks.d.ts +1 -1
  340. package/dist/esm/sdk/clientlinks.d.ts.map +1 -1
  341. package/dist/esm/sdk/profiles.d.ts +4 -4
  342. package/dist/esm/sdk/profiles.d.ts.map +1 -1
  343. package/docs/sdks/clientlinks/README.md +1 -1
  344. package/docs/sdks/delayedrouting/README.md +2 -2
  345. package/docs/sdks/profiles/README.md +4 -6
  346. package/examples/package-lock.json +1 -1
  347. package/jsr.json +1 -1
  348. package/package.json +1 -1
  349. package/src/funcs/clientLinksCreate.ts +4 -4
  350. package/src/funcs/delayedRoutingCreate.ts +1 -3
  351. package/src/funcs/profilesCreate.ts +4 -4
  352. package/src/funcs/profilesGet.ts +4 -4
  353. package/src/funcs/profilesGetCurrent.ts +4 -4
  354. package/src/funcs/profilesUpdate.ts +4 -4
  355. package/src/lib/config.ts +3 -3
  356. package/src/mcp-server/mcp-server.ts +1 -1
  357. package/src/mcp-server/server.ts +1 -1
  358. package/src/models/address.ts +16 -16
  359. package/src/models/{entityclientlinkresponse.ts → clientlinkresponse.ts} +46 -48
  360. package/src/models/entitybalance.ts +40 -40
  361. package/src/models/entitybalancereport.ts +32 -32
  362. package/src/models/entitybalancetransaction.ts +24 -24
  363. package/src/models/entitycapability.ts +20 -20
  364. package/src/models/entitycapabilityrequirement.ts +27 -96
  365. package/src/models/entityinvoice.ts +64 -67
  366. package/src/models/entityonboardingstatus.ts +28 -28
  367. package/src/models/entityorganization.ts +32 -35
  368. package/src/models/entitypermission.ts +20 -20
  369. package/src/models/entityroute.ts +179 -0
  370. package/src/models/entitywebhookevent.ts +14 -20
  371. package/src/models/index.ts +6 -3
  372. package/src/models/methodincludewalletsparameter.ts +34 -0
  373. package/src/models/methodresourceparameter.ts +35 -0
  374. package/src/models/onboardingvatregulation.ts +52 -0
  375. package/src/models/operations/getbalancereport.ts +5 -50
  376. package/src/models/operations/listallchargebacks.ts +16 -16
  377. package/src/models/operations/listbalances.ts +16 -16
  378. package/src/models/operations/listbalancetransactions.ts +16 -22
  379. package/src/models/operations/listcapabilities.ts +23 -78
  380. package/src/models/operations/listchargebacks.ts +16 -16
  381. package/src/models/operations/listinvoices.ts +16 -16
  382. package/src/models/operations/listmethods.ts +7 -92
  383. package/src/models/operations/listpermissions.ts +16 -16
  384. package/src/models/operations/listprofiles.ts +16 -16
  385. package/src/models/operations/listsettlementchargebacks.ts +16 -18
  386. package/src/models/operations/paymentcreateroute.ts +6 -6
  387. package/src/models/operations/paymentlistroutes.ts +16 -16
  388. package/src/models/operations/submitonboardingdata.ts +5 -48
  389. package/src/models/operations/updateprofile.ts +0 -49
  390. package/src/models/{entityprofileresponse.ts → profileresponse.ts} +46 -48
  391. package/src/models/routecreateresponse.ts +30 -28
  392. package/src/models/routegetresponse.ts +30 -28
  393. package/src/sdk/clientlinks.ts +1 -1
  394. package/src/sdk/profiles.ts +4 -4
  395. package/dist/commonjs/models/entityclientlinkresponse.d.ts +0 -87
  396. package/dist/commonjs/models/entityclientlinkresponse.d.ts.map +0 -1
  397. package/dist/commonjs/models/entityclientlinkresponse.js +0 -114
  398. package/dist/commonjs/models/entityclientlinkresponse.js.map +0 -1
  399. package/dist/commonjs/models/entityprofileresponse.d.ts.map +0 -1
  400. package/dist/commonjs/models/entityprofileresponse.js.map +0 -1
  401. package/dist/commonjs/models/routecreaterequest.d.ts +0 -92
  402. package/dist/commonjs/models/routecreaterequest.d.ts.map +0 -1
  403. package/dist/commonjs/models/routecreaterequest.js +0 -112
  404. package/dist/commonjs/models/routecreaterequest.js.map +0 -1
  405. package/dist/esm/models/entityclientlinkresponse.d.ts +0 -87
  406. package/dist/esm/models/entityclientlinkresponse.d.ts.map +0 -1
  407. package/dist/esm/models/entityclientlinkresponse.js +0 -74
  408. package/dist/esm/models/entityclientlinkresponse.js.map +0 -1
  409. package/dist/esm/models/entityprofileresponse.d.ts.map +0 -1
  410. package/dist/esm/models/entityprofileresponse.js.map +0 -1
  411. package/dist/esm/models/routecreaterequest.d.ts +0 -92
  412. package/dist/esm/models/routecreaterequest.d.ts.map +0 -1
  413. package/dist/esm/models/routecreaterequest.js +0 -72
  414. package/dist/esm/models/routecreaterequest.js.map +0 -1
  415. package/src/models/routecreaterequest.ts +0 -187
@@ -84,25 +84,25 @@ export type EntityBalance = {
84
84
  /**
85
85
  * Indicates the response contains a balance object. Will always contain the string `balance` for this endpoint.
86
86
  */
87
- resource?: string | undefined;
88
- id?: string | undefined;
87
+ resource: string;
88
+ id: string;
89
89
  /**
90
90
  * Whether this entity was created in live mode or in test mode.
91
91
  */
92
- mode?: Mode | undefined;
92
+ mode: Mode;
93
93
  /**
94
94
  * The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
95
95
  */
96
- createdAt?: string | undefined;
97
- currency?: Currencies | undefined;
96
+ createdAt: string;
97
+ currency: Currencies;
98
98
  /**
99
99
  * The description or name of the balance. Can be used to denote the purpose of the balance.
100
100
  */
101
- description?: string | undefined;
101
+ description: string;
102
102
  /**
103
103
  * The status of the balance.
104
104
  */
105
- status?: BalanceStatus | undefined;
105
+ status: BalanceStatus;
106
106
  /**
107
107
  * The frequency with which the available amount on the balance will be settled to the configured transfer
108
108
  *
@@ -130,15 +130,15 @@ export type EntityBalance = {
130
130
  /**
131
131
  * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
132
132
  */
133
- availableAmount?: Amount | undefined;
133
+ availableAmount: Amount;
134
134
  /**
135
135
  * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
136
136
  */
137
- pendingAmount?: Amount | undefined;
137
+ pendingAmount: Amount;
138
138
  /**
139
139
  * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
140
140
  */
141
- links?: EntityBalanceLinks | undefined;
141
+ links: EntityBalanceLinks;
142
142
  };
143
143
 
144
144
  /** @internal */
@@ -264,22 +264,22 @@ export const EntityBalance$inboundSchema: z.ZodType<
264
264
  z.ZodTypeDef,
265
265
  unknown
266
266
  > = z.object({
267
- resource: z.string().optional(),
268
- id: z.string().optional(),
269
- mode: Mode$inboundSchema.optional(),
270
- createdAt: z.string().optional(),
271
- currency: Currencies$inboundSchema.optional(),
272
- description: z.string().optional(),
273
- status: BalanceStatus$inboundSchema.optional(),
267
+ resource: z.string(),
268
+ id: z.string(),
269
+ mode: Mode$inboundSchema,
270
+ createdAt: z.string(),
271
+ currency: Currencies$inboundSchema,
272
+ description: z.string(),
273
+ status: BalanceStatus$inboundSchema,
274
274
  transferFrequency: BalanceTransferFrequency$inboundSchema.optional(),
275
275
  transferThreshold: Amount$inboundSchema.optional(),
276
276
  transferReference: z.nullable(z.string()).optional(),
277
277
  transferDestination: z.nullable(
278
278
  z.lazy(() => TransferDestination$inboundSchema),
279
279
  ).optional(),
280
- availableAmount: Amount$inboundSchema.optional(),
281
- pendingAmount: Amount$inboundSchema.optional(),
282
- _links: z.lazy(() => EntityBalanceLinks$inboundSchema).optional(),
280
+ availableAmount: Amount$inboundSchema,
281
+ pendingAmount: Amount$inboundSchema,
282
+ _links: z.lazy(() => EntityBalanceLinks$inboundSchema),
283
283
  }).transform((v) => {
284
284
  return remap$(v, {
285
285
  "_links": "links",
@@ -288,20 +288,20 @@ export const EntityBalance$inboundSchema: z.ZodType<
288
288
 
289
289
  /** @internal */
290
290
  export type EntityBalance$Outbound = {
291
- resource?: string | undefined;
292
- id?: string | undefined;
293
- mode?: string | undefined;
294
- createdAt?: string | undefined;
295
- currency?: string | undefined;
296
- description?: string | undefined;
297
- status?: string | undefined;
291
+ resource: string;
292
+ id: string;
293
+ mode: string;
294
+ createdAt: string;
295
+ currency: string;
296
+ description: string;
297
+ status: string;
298
298
  transferFrequency?: string | undefined;
299
299
  transferThreshold?: Amount$Outbound | undefined;
300
300
  transferReference?: string | null | undefined;
301
301
  transferDestination?: TransferDestination$Outbound | null | undefined;
302
- availableAmount?: Amount$Outbound | undefined;
303
- pendingAmount?: Amount$Outbound | undefined;
304
- _links?: EntityBalanceLinks$Outbound | undefined;
302
+ availableAmount: Amount$Outbound;
303
+ pendingAmount: Amount$Outbound;
304
+ _links: EntityBalanceLinks$Outbound;
305
305
  };
306
306
 
307
307
  /** @internal */
@@ -310,22 +310,22 @@ export const EntityBalance$outboundSchema: z.ZodType<
310
310
  z.ZodTypeDef,
311
311
  EntityBalance
312
312
  > = z.object({
313
- resource: z.string().optional(),
314
- id: z.string().optional(),
315
- mode: Mode$outboundSchema.optional(),
316
- createdAt: z.string().optional(),
317
- currency: Currencies$outboundSchema.optional(),
318
- description: z.string().optional(),
319
- status: BalanceStatus$outboundSchema.optional(),
313
+ resource: z.string(),
314
+ id: z.string(),
315
+ mode: Mode$outboundSchema,
316
+ createdAt: z.string(),
317
+ currency: Currencies$outboundSchema,
318
+ description: z.string(),
319
+ status: BalanceStatus$outboundSchema,
320
320
  transferFrequency: BalanceTransferFrequency$outboundSchema.optional(),
321
321
  transferThreshold: Amount$outboundSchema.optional(),
322
322
  transferReference: z.nullable(z.string()).optional(),
323
323
  transferDestination: z.nullable(
324
324
  z.lazy(() => TransferDestination$outboundSchema),
325
325
  ).optional(),
326
- availableAmount: Amount$outboundSchema.optional(),
327
- pendingAmount: Amount$outboundSchema.optional(),
328
- links: z.lazy(() => EntityBalanceLinks$outboundSchema).optional(),
326
+ availableAmount: Amount$outboundSchema,
327
+ pendingAmount: Amount$outboundSchema,
328
+ links: z.lazy(() => EntityBalanceLinks$outboundSchema),
329
329
  }).transform((v) => {
330
330
  return remap$(v, {
331
331
  links: "_links",
@@ -229,12 +229,12 @@ export type EntityBalanceReport = {
229
229
  * @remarks
230
230
  * endpoint.
231
231
  */
232
- resource?: string | undefined;
233
- balanceId?: string | undefined;
232
+ resource: string;
233
+ balanceId: string;
234
234
  /**
235
235
  * The time zone used for the from and until parameters. Currently only time zone `Europe/Amsterdam` is supported.
236
236
  */
237
- timeZone?: string | undefined;
237
+ timeZone: string;
238
238
  /**
239
239
  * The start date of the report, in `YYYY-MM-DD` format. The from date is 'inclusive', and in Central European Time.
240
240
  *
@@ -242,15 +242,15 @@ export type EntityBalanceReport = {
242
242
  * This means a report with for example `from=2024-01-01` will include movements of 2024-01-01 00:00:00 CET and
243
243
  * onwards.
244
244
  */
245
- from?: string | undefined;
245
+ from: string;
246
246
  /**
247
247
  * The end date of the report, in `YYYY-MM-DD` format. The until date is 'exclusive', and in Central European Time.
248
248
  *
249
249
  * @remarks
250
250
  * This means a report with for example `until=2024-02-01` will include movements up until 2024-01-31 23:59:59 CET.
251
251
  */
252
- until?: string | undefined;
253
- grouping?: BalanceReportGrouping | undefined;
252
+ until: string;
253
+ grouping: BalanceReportGrouping;
254
254
  /**
255
255
  * Totals are grouped according to the chosen grouping rule. The example response should give a good idea of what a
256
256
  *
@@ -275,11 +275,11 @@ export type EntityBalanceReport = {
275
275
  * * A `count` integer if relevant (for example, counting the number of refunds)
276
276
  * * A `subtotals` array containing more sub-group objects if applicable
277
277
  */
278
- totals?: Totals | undefined;
278
+ totals: Totals;
279
279
  /**
280
280
  * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
281
281
  */
282
- links?: EntityBalanceReportLinks | undefined;
282
+ links: EntityBalanceReportLinks;
283
283
  };
284
284
 
285
285
  /** @internal */
@@ -1095,14 +1095,14 @@ export const EntityBalanceReport$inboundSchema: z.ZodType<
1095
1095
  z.ZodTypeDef,
1096
1096
  unknown
1097
1097
  > = z.object({
1098
- resource: z.string().optional(),
1099
- balanceId: z.string().optional(),
1100
- timeZone: z.string().optional(),
1101
- from: z.string().optional(),
1102
- until: z.string().optional(),
1103
- grouping: BalanceReportGrouping$inboundSchema.optional(),
1104
- totals: z.lazy(() => Totals$inboundSchema).optional(),
1105
- _links: z.lazy(() => EntityBalanceReportLinks$inboundSchema).optional(),
1098
+ resource: z.string(),
1099
+ balanceId: z.string(),
1100
+ timeZone: z.string(),
1101
+ from: z.string(),
1102
+ until: z.string(),
1103
+ grouping: BalanceReportGrouping$inboundSchema,
1104
+ totals: z.lazy(() => Totals$inboundSchema),
1105
+ _links: z.lazy(() => EntityBalanceReportLinks$inboundSchema),
1106
1106
  }).transform((v) => {
1107
1107
  return remap$(v, {
1108
1108
  "_links": "links",
@@ -1111,14 +1111,14 @@ export const EntityBalanceReport$inboundSchema: z.ZodType<
1111
1111
 
1112
1112
  /** @internal */
1113
1113
  export type EntityBalanceReport$Outbound = {
1114
- resource?: string | undefined;
1115
- balanceId?: string | undefined;
1116
- timeZone?: string | undefined;
1117
- from?: string | undefined;
1118
- until?: string | undefined;
1119
- grouping?: string | undefined;
1120
- totals?: Totals$Outbound | undefined;
1121
- _links?: EntityBalanceReportLinks$Outbound | undefined;
1114
+ resource: string;
1115
+ balanceId: string;
1116
+ timeZone: string;
1117
+ from: string;
1118
+ until: string;
1119
+ grouping: string;
1120
+ totals: Totals$Outbound;
1121
+ _links: EntityBalanceReportLinks$Outbound;
1122
1122
  };
1123
1123
 
1124
1124
  /** @internal */
@@ -1127,14 +1127,14 @@ export const EntityBalanceReport$outboundSchema: z.ZodType<
1127
1127
  z.ZodTypeDef,
1128
1128
  EntityBalanceReport
1129
1129
  > = z.object({
1130
- resource: z.string().optional(),
1131
- balanceId: z.string().optional(),
1132
- timeZone: z.string().optional(),
1133
- from: z.string().optional(),
1134
- until: z.string().optional(),
1135
- grouping: BalanceReportGrouping$outboundSchema.optional(),
1136
- totals: z.lazy(() => Totals$outboundSchema).optional(),
1137
- links: z.lazy(() => EntityBalanceReportLinks$outboundSchema).optional(),
1130
+ resource: z.string(),
1131
+ balanceId: z.string(),
1132
+ timeZone: z.string(),
1133
+ from: z.string(),
1134
+ until: z.string(),
1135
+ grouping: BalanceReportGrouping$outboundSchema,
1136
+ totals: z.lazy(() => Totals$outboundSchema),
1137
+ links: z.lazy(() => EntityBalanceReportLinks$outboundSchema),
1138
1138
  }).transform((v) => {
1139
1139
  return remap$(v, {
1140
1140
  links: "_links",
@@ -314,17 +314,17 @@ export type EntityBalanceTransaction = {
314
314
  * @remarks
315
315
  * for this endpoint.
316
316
  */
317
- resource?: string | undefined;
318
- id?: string | undefined;
319
- type?: BalanceTransactionType | undefined;
317
+ resource: string;
318
+ id: string;
319
+ type: BalanceTransactionType;
320
320
  /**
321
321
  * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
322
322
  */
323
- resultAmount?: Amount | undefined;
323
+ resultAmount: Amount;
324
324
  /**
325
325
  * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
326
326
  */
327
- initialAmount?: Amount | undefined;
327
+ initialAmount: Amount;
328
328
  /**
329
329
  * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
330
330
  */
@@ -383,7 +383,7 @@ export type EntityBalanceTransaction = {
383
383
  /**
384
384
  * The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
385
385
  */
386
- createdAt?: string | undefined;
386
+ createdAt: string;
387
387
  };
388
388
 
389
389
  /** @internal */
@@ -2543,26 +2543,26 @@ export const EntityBalanceTransaction$inboundSchema: z.ZodType<
2543
2543
  z.ZodTypeDef,
2544
2544
  unknown
2545
2545
  > = z.object({
2546
- resource: z.string().optional(),
2547
- id: z.string().optional(),
2548
- type: BalanceTransactionType$inboundSchema.optional(),
2549
- resultAmount: Amount$inboundSchema.optional(),
2550
- initialAmount: Amount$inboundSchema.optional(),
2546
+ resource: z.string(),
2547
+ id: z.string(),
2548
+ type: BalanceTransactionType$inboundSchema,
2549
+ resultAmount: Amount$inboundSchema,
2550
+ initialAmount: Amount$inboundSchema,
2551
2551
  deductions: z.nullable(AmountNullable$inboundSchema).optional(),
2552
2552
  context: z.lazy(() => Context$inboundSchema).optional(),
2553
- createdAt: z.string().optional(),
2553
+ createdAt: z.string(),
2554
2554
  });
2555
2555
 
2556
2556
  /** @internal */
2557
2557
  export type EntityBalanceTransaction$Outbound = {
2558
- resource?: string | undefined;
2559
- id?: string | undefined;
2560
- type?: string | undefined;
2561
- resultAmount?: Amount$Outbound | undefined;
2562
- initialAmount?: Amount$Outbound | undefined;
2558
+ resource: string;
2559
+ id: string;
2560
+ type: string;
2561
+ resultAmount: Amount$Outbound;
2562
+ initialAmount: Amount$Outbound;
2563
2563
  deductions?: AmountNullable$Outbound | null | undefined;
2564
2564
  context?: Context$Outbound | undefined;
2565
- createdAt?: string | undefined;
2565
+ createdAt: string;
2566
2566
  };
2567
2567
 
2568
2568
  /** @internal */
@@ -2571,14 +2571,14 @@ export const EntityBalanceTransaction$outboundSchema: z.ZodType<
2571
2571
  z.ZodTypeDef,
2572
2572
  EntityBalanceTransaction
2573
2573
  > = z.object({
2574
- resource: z.string().optional(),
2575
- id: z.string().optional(),
2576
- type: BalanceTransactionType$outboundSchema.optional(),
2577
- resultAmount: Amount$outboundSchema.optional(),
2578
- initialAmount: Amount$outboundSchema.optional(),
2574
+ resource: z.string(),
2575
+ id: z.string(),
2576
+ type: BalanceTransactionType$outboundSchema,
2577
+ resultAmount: Amount$outboundSchema,
2578
+ initialAmount: Amount$outboundSchema,
2579
2579
  deductions: z.nullable(AmountNullable$outboundSchema).optional(),
2580
2580
  context: z.lazy(() => Context$outboundSchema).optional(),
2581
- createdAt: z.string().optional(),
2581
+ createdAt: z.string(),
2582
2582
  });
2583
2583
 
2584
2584
  /**
@@ -27,14 +27,14 @@ export type EntityCapability = {
27
27
  /**
28
28
  * Always the word `capability` for this resource type.
29
29
  */
30
- resource?: string | undefined;
30
+ resource: string;
31
31
  /**
32
32
  * A unique name for this capability like `payments` / `settlements`.
33
33
  */
34
- name?: string | undefined;
35
- status?: CapabilityStatus | undefined;
36
- statusReason?: CapabilityStatusReason | undefined;
37
- requirements?: Array<EntityCapabilityRequirement> | undefined;
34
+ name: string;
35
+ status: CapabilityStatus;
36
+ statusReason: CapabilityStatusReason | null;
37
+ requirements: Array<EntityCapabilityRequirement>;
38
38
  };
39
39
 
40
40
  /** @internal */
@@ -43,20 +43,20 @@ export const EntityCapability$inboundSchema: z.ZodType<
43
43
  z.ZodTypeDef,
44
44
  unknown
45
45
  > = z.object({
46
- resource: z.string().optional(),
47
- name: z.string().optional(),
48
- status: CapabilityStatus$inboundSchema.optional(),
49
- statusReason: CapabilityStatusReason$inboundSchema.optional(),
50
- requirements: z.array(EntityCapabilityRequirement$inboundSchema).optional(),
46
+ resource: z.string(),
47
+ name: z.string(),
48
+ status: CapabilityStatus$inboundSchema,
49
+ statusReason: z.nullable(CapabilityStatusReason$inboundSchema),
50
+ requirements: z.array(EntityCapabilityRequirement$inboundSchema),
51
51
  });
52
52
 
53
53
  /** @internal */
54
54
  export type EntityCapability$Outbound = {
55
- resource?: string | undefined;
56
- name?: string | undefined;
57
- status?: string | undefined;
58
- statusReason?: string | undefined;
59
- requirements?: Array<EntityCapabilityRequirement$Outbound> | undefined;
55
+ resource: string;
56
+ name: string;
57
+ status: string;
58
+ statusReason: string | null;
59
+ requirements: Array<EntityCapabilityRequirement$Outbound>;
60
60
  };
61
61
 
62
62
  /** @internal */
@@ -65,11 +65,11 @@ export const EntityCapability$outboundSchema: z.ZodType<
65
65
  z.ZodTypeDef,
66
66
  EntityCapability
67
67
  > = z.object({
68
- resource: z.string().optional(),
69
- name: z.string().optional(),
70
- status: CapabilityStatus$outboundSchema.optional(),
71
- statusReason: CapabilityStatusReason$outboundSchema.optional(),
72
- requirements: z.array(EntityCapabilityRequirement$outboundSchema).optional(),
68
+ resource: z.string(),
69
+ name: z.string(),
70
+ status: CapabilityStatus$outboundSchema,
71
+ statusReason: z.nullable(CapabilityStatusReason$outboundSchema),
72
+ requirements: z.array(EntityCapabilityRequirement$outboundSchema),
73
73
  });
74
74
 
75
75
  /**
@@ -12,32 +12,18 @@ import {
12
12
  CapabilityRequirementStatus$outboundSchema,
13
13
  } from "./capabilityrequirementstatus.js";
14
14
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
15
-
16
- /**
17
- * If known, a deep link to the Mollie dashboard of the client, where the requirement can be fulfilled.
18
- *
19
- * @remarks
20
- * For example, where necessary documents are to be uploaded.
21
- */
22
- export type Dashboard = {
23
- /**
24
- * The actual URL string.
25
- */
26
- href?: string | undefined;
27
- /**
28
- * The content type of the page or endpoint the URL points to.
29
- */
30
- type?: string | undefined;
31
- };
15
+ import {
16
+ Url,
17
+ Url$inboundSchema,
18
+ Url$Outbound,
19
+ Url$outboundSchema,
20
+ } from "./url.js";
32
21
 
33
22
  export type EntityCapabilityRequirementLinks = {
34
23
  /**
35
- * If known, a deep link to the Mollie dashboard of the client, where the requirement can be fulfilled.
36
- *
37
- * @remarks
38
- * For example, where necessary documents are to be uploaded.
24
+ * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
39
25
  */
40
- dashboard?: Dashboard | undefined;
26
+ dashboard?: Url | undefined;
41
27
  };
42
28
 
43
29
  export type EntityCapabilityRequirement = {
@@ -48,86 +34,33 @@ export type EntityCapabilityRequirement = {
48
34
  * to enable or re-enable the capability. The name is unique among other requirements
49
35
  * of the same capability.
50
36
  */
51
- id?: string | undefined;
37
+ id: string;
52
38
  /**
53
39
  * The status of the requirement depends on its due date.
54
40
  *
55
41
  * @remarks
56
42
  * If no due date is given, the status will be `requested`.
57
43
  */
58
- status?: CapabilityRequirementStatus | undefined;
44
+ status: CapabilityRequirementStatus;
59
45
  /**
60
46
  * Due date until the requirement must be fulfilled, if any. The date is shown in ISO-8601 format.
61
47
  */
62
- dueDate?: string | null | undefined;
63
- links?: EntityCapabilityRequirementLinks | undefined;
64
- };
65
-
66
- /** @internal */
67
- export const Dashboard$inboundSchema: z.ZodType<
68
- Dashboard,
69
- z.ZodTypeDef,
70
- unknown
71
- > = z.object({
72
- href: z.string().optional(),
73
- type: z.string().optional(),
74
- });
75
-
76
- /** @internal */
77
- export type Dashboard$Outbound = {
78
- href?: string | undefined;
79
- type?: string | undefined;
48
+ dueDate: string | null;
49
+ links: EntityCapabilityRequirementLinks;
80
50
  };
81
51
 
82
- /** @internal */
83
- export const Dashboard$outboundSchema: z.ZodType<
84
- Dashboard$Outbound,
85
- z.ZodTypeDef,
86
- Dashboard
87
- > = z.object({
88
- href: z.string().optional(),
89
- type: z.string().optional(),
90
- });
91
-
92
- /**
93
- * @internal
94
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
95
- */
96
- export namespace Dashboard$ {
97
- /** @deprecated use `Dashboard$inboundSchema` instead. */
98
- export const inboundSchema = Dashboard$inboundSchema;
99
- /** @deprecated use `Dashboard$outboundSchema` instead. */
100
- export const outboundSchema = Dashboard$outboundSchema;
101
- /** @deprecated use `Dashboard$Outbound` instead. */
102
- export type Outbound = Dashboard$Outbound;
103
- }
104
-
105
- export function dashboardToJSON(dashboard: Dashboard): string {
106
- return JSON.stringify(Dashboard$outboundSchema.parse(dashboard));
107
- }
108
-
109
- export function dashboardFromJSON(
110
- jsonString: string,
111
- ): SafeParseResult<Dashboard, SDKValidationError> {
112
- return safeParse(
113
- jsonString,
114
- (x) => Dashboard$inboundSchema.parse(JSON.parse(x)),
115
- `Failed to parse 'Dashboard' from JSON`,
116
- );
117
- }
118
-
119
52
  /** @internal */
120
53
  export const EntityCapabilityRequirementLinks$inboundSchema: z.ZodType<
121
54
  EntityCapabilityRequirementLinks,
122
55
  z.ZodTypeDef,
123
56
  unknown
124
57
  > = z.object({
125
- dashboard: z.lazy(() => Dashboard$inboundSchema).optional(),
58
+ dashboard: Url$inboundSchema.optional(),
126
59
  });
127
60
 
128
61
  /** @internal */
129
62
  export type EntityCapabilityRequirementLinks$Outbound = {
130
- dashboard?: Dashboard$Outbound | undefined;
63
+ dashboard?: Url$Outbound | undefined;
131
64
  };
132
65
 
133
66
  /** @internal */
@@ -136,7 +69,7 @@ export const EntityCapabilityRequirementLinks$outboundSchema: z.ZodType<
136
69
  z.ZodTypeDef,
137
70
  EntityCapabilityRequirementLinks
138
71
  > = z.object({
139
- dashboard: z.lazy(() => Dashboard$outboundSchema).optional(),
72
+ dashboard: Url$outboundSchema.optional(),
140
73
  });
141
74
 
142
75
  /**
@@ -178,11 +111,10 @@ export const EntityCapabilityRequirement$inboundSchema: z.ZodType<
178
111
  z.ZodTypeDef,
179
112
  unknown
180
113
  > = z.object({
181
- id: z.string().optional(),
182
- status: CapabilityRequirementStatus$inboundSchema.optional(),
183
- dueDate: z.nullable(z.string()).optional(),
184
- _links: z.lazy(() => EntityCapabilityRequirementLinks$inboundSchema)
185
- .optional(),
114
+ id: z.string(),
115
+ status: CapabilityRequirementStatus$inboundSchema,
116
+ dueDate: z.nullable(z.string()),
117
+ _links: z.lazy(() => EntityCapabilityRequirementLinks$inboundSchema),
186
118
  }).transform((v) => {
187
119
  return remap$(v, {
188
120
  "_links": "links",
@@ -191,10 +123,10 @@ export const EntityCapabilityRequirement$inboundSchema: z.ZodType<
191
123
 
192
124
  /** @internal */
193
125
  export type EntityCapabilityRequirement$Outbound = {
194
- id?: string | undefined;
195
- status?: string | undefined;
196
- dueDate?: string | null | undefined;
197
- _links?: EntityCapabilityRequirementLinks$Outbound | undefined;
126
+ id: string;
127
+ status: string;
128
+ dueDate: string | null;
129
+ _links: EntityCapabilityRequirementLinks$Outbound;
198
130
  };
199
131
 
200
132
  /** @internal */
@@ -203,11 +135,10 @@ export const EntityCapabilityRequirement$outboundSchema: z.ZodType<
203
135
  z.ZodTypeDef,
204
136
  EntityCapabilityRequirement
205
137
  > = z.object({
206
- id: z.string().optional(),
207
- status: CapabilityRequirementStatus$outboundSchema.optional(),
208
- dueDate: z.nullable(z.string()).optional(),
209
- links: z.lazy(() => EntityCapabilityRequirementLinks$outboundSchema)
210
- .optional(),
138
+ id: z.string(),
139
+ status: CapabilityRequirementStatus$outboundSchema,
140
+ dueDate: z.nullable(z.string()),
141
+ links: z.lazy(() => EntityCapabilityRequirementLinks$outboundSchema),
211
142
  }).transform((v) => {
212
143
  return remap$(v, {
213
144
  links: "_links",