mollie-api-typescript 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (311) hide show
  1. package/bin/mcp-server.js +223 -1057
  2. package/bin/mcp-server.js.map +38 -38
  3. package/dist/commonjs/lib/config.d.ts +3 -3
  4. package/dist/commonjs/lib/config.js +3 -3
  5. package/dist/commonjs/lib/security.d.ts.map +1 -1
  6. package/dist/commonjs/lib/security.js.map +1 -1
  7. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  8. package/dist/commonjs/mcp-server/server.js +1 -1
  9. package/dist/commonjs/models/operations/cancelpayment.d.ts +12 -25
  10. package/dist/commonjs/models/operations/cancelpayment.d.ts.map +1 -1
  11. package/dist/commonjs/models/operations/cancelpayment.js +7 -46
  12. package/dist/commonjs/models/operations/cancelpayment.js.map +1 -1
  13. package/dist/commonjs/models/operations/cancelsubscription.d.ts +12 -25
  14. package/dist/commonjs/models/operations/cancelsubscription.d.ts.map +1 -1
  15. package/dist/commonjs/models/operations/cancelsubscription.js +6 -45
  16. package/dist/commonjs/models/operations/cancelsubscription.js.map +1 -1
  17. package/dist/commonjs/models/operations/createcapture.d.ts +24 -50
  18. package/dist/commonjs/models/operations/createcapture.d.ts.map +1 -1
  19. package/dist/commonjs/models/operations/createcapture.js +10 -88
  20. package/dist/commonjs/models/operations/createcapture.js.map +1 -1
  21. package/dist/commonjs/models/operations/createcustomer.d.ts +24 -50
  22. package/dist/commonjs/models/operations/createcustomer.d.ts.map +1 -1
  23. package/dist/commonjs/models/operations/createcustomer.js +10 -88
  24. package/dist/commonjs/models/operations/createcustomer.js.map +1 -1
  25. package/dist/commonjs/models/operations/createcustomerpayment.d.ts +24 -50
  26. package/dist/commonjs/models/operations/createcustomerpayment.d.ts.map +1 -1
  27. package/dist/commonjs/models/operations/createcustomerpayment.js +13 -91
  28. package/dist/commonjs/models/operations/createcustomerpayment.js.map +1 -1
  29. package/dist/commonjs/models/operations/createpayment.d.ts +24 -50
  30. package/dist/commonjs/models/operations/createpayment.d.ts.map +1 -1
  31. package/dist/commonjs/models/operations/createpayment.js +13 -91
  32. package/dist/commonjs/models/operations/createpayment.js.map +1 -1
  33. package/dist/commonjs/models/operations/createpaymentlink.d.ts +11 -0
  34. package/dist/commonjs/models/operations/createpaymentlink.d.ts.map +1 -1
  35. package/dist/commonjs/models/operations/createpaymentlink.js +2 -0
  36. package/dist/commonjs/models/operations/createpaymentlink.js.map +1 -1
  37. package/dist/commonjs/models/operations/createrefund.d.ts +24 -50
  38. package/dist/commonjs/models/operations/createrefund.d.ts.map +1 -1
  39. package/dist/commonjs/models/operations/createrefund.js +11 -89
  40. package/dist/commonjs/models/operations/createrefund.js.map +1 -1
  41. package/dist/commonjs/models/operations/createsubscription.d.ts +24 -50
  42. package/dist/commonjs/models/operations/createsubscription.d.ts.map +1 -1
  43. package/dist/commonjs/models/operations/createsubscription.js +10 -88
  44. package/dist/commonjs/models/operations/createsubscription.js.map +1 -1
  45. package/dist/commonjs/models/operations/getcapture.d.ts +12 -25
  46. package/dist/commonjs/models/operations/getcapture.d.ts.map +1 -1
  47. package/dist/commonjs/models/operations/getcapture.js +6 -45
  48. package/dist/commonjs/models/operations/getcapture.js.map +1 -1
  49. package/dist/commonjs/models/operations/getcustomer.d.ts +12 -25
  50. package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
  51. package/dist/commonjs/models/operations/getcustomer.js +6 -45
  52. package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
  53. package/dist/commonjs/models/operations/getpayment.d.ts +12 -25
  54. package/dist/commonjs/models/operations/getpayment.d.ts.map +1 -1
  55. package/dist/commonjs/models/operations/getpayment.js +7 -46
  56. package/dist/commonjs/models/operations/getpayment.js.map +1 -1
  57. package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts +18 -31
  58. package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
  59. package/dist/commonjs/models/operations/getpaymentlinkpayments.js +14 -55
  60. package/dist/commonjs/models/operations/getpaymentlinkpayments.js.map +1 -1
  61. package/dist/commonjs/models/operations/getrefund.d.ts +12 -25
  62. package/dist/commonjs/models/operations/getrefund.d.ts.map +1 -1
  63. package/dist/commonjs/models/operations/getrefund.js +6 -45
  64. package/dist/commonjs/models/operations/getrefund.js.map +1 -1
  65. package/dist/commonjs/models/operations/getsubscription.d.ts +12 -25
  66. package/dist/commonjs/models/operations/getsubscription.d.ts.map +1 -1
  67. package/dist/commonjs/models/operations/getsubscription.js +6 -45
  68. package/dist/commonjs/models/operations/getsubscription.js.map +1 -1
  69. package/dist/commonjs/models/operations/getwebhookevent.d.ts +17 -17
  70. package/dist/commonjs/models/operations/getwebhookevent.d.ts.map +1 -1
  71. package/dist/commonjs/models/operations/getwebhookevent.js +20 -20
  72. package/dist/commonjs/models/operations/getwebhookevent.js.map +1 -1
  73. package/dist/commonjs/models/operations/listallrefunds.d.ts +12 -25
  74. package/dist/commonjs/models/operations/listallrefunds.d.ts.map +1 -1
  75. package/dist/commonjs/models/operations/listallrefunds.js +6 -45
  76. package/dist/commonjs/models/operations/listallrefunds.js.map +1 -1
  77. package/dist/commonjs/models/operations/listallsubscriptions.d.ts +12 -25
  78. package/dist/commonjs/models/operations/listallsubscriptions.d.ts.map +1 -1
  79. package/dist/commonjs/models/operations/listallsubscriptions.js +6 -45
  80. package/dist/commonjs/models/operations/listallsubscriptions.js.map +1 -1
  81. package/dist/commonjs/models/operations/listcaptures.d.ts +12 -25
  82. package/dist/commonjs/models/operations/listcaptures.d.ts.map +1 -1
  83. package/dist/commonjs/models/operations/listcaptures.js +6 -45
  84. package/dist/commonjs/models/operations/listcaptures.js.map +1 -1
  85. package/dist/commonjs/models/operations/listcustomerpayments.d.ts +12 -25
  86. package/dist/commonjs/models/operations/listcustomerpayments.d.ts.map +1 -1
  87. package/dist/commonjs/models/operations/listcustomerpayments.js +8 -47
  88. package/dist/commonjs/models/operations/listcustomerpayments.js.map +1 -1
  89. package/dist/commonjs/models/operations/listcustomers.d.ts +12 -25
  90. package/dist/commonjs/models/operations/listcustomers.d.ts.map +1 -1
  91. package/dist/commonjs/models/operations/listcustomers.js +6 -45
  92. package/dist/commonjs/models/operations/listcustomers.js.map +1 -1
  93. package/dist/commonjs/models/operations/listpaymentlinks.d.ts +21 -21
  94. package/dist/commonjs/models/operations/listpaymentlinks.d.ts.map +1 -1
  95. package/dist/commonjs/models/operations/listpaymentlinks.js +24 -24
  96. package/dist/commonjs/models/operations/listpaymentlinks.js.map +1 -1
  97. package/dist/commonjs/models/operations/listpayments.d.ts +12 -25
  98. package/dist/commonjs/models/operations/listpayments.d.ts.map +1 -1
  99. package/dist/commonjs/models/operations/listpayments.js +8 -47
  100. package/dist/commonjs/models/operations/listpayments.js.map +1 -1
  101. package/dist/commonjs/models/operations/listrefunds.d.ts +12 -25
  102. package/dist/commonjs/models/operations/listrefunds.d.ts.map +1 -1
  103. package/dist/commonjs/models/operations/listrefunds.js +6 -45
  104. package/dist/commonjs/models/operations/listrefunds.js.map +1 -1
  105. package/dist/commonjs/models/operations/listsettlementcaptures.d.ts +12 -25
  106. package/dist/commonjs/models/operations/listsettlementcaptures.d.ts.map +1 -1
  107. package/dist/commonjs/models/operations/listsettlementcaptures.js +6 -45
  108. package/dist/commonjs/models/operations/listsettlementcaptures.js.map +1 -1
  109. package/dist/commonjs/models/operations/listsettlementpayments.d.ts +12 -25
  110. package/dist/commonjs/models/operations/listsettlementpayments.d.ts.map +1 -1
  111. package/dist/commonjs/models/operations/listsettlementpayments.js +8 -47
  112. package/dist/commonjs/models/operations/listsettlementpayments.js.map +1 -1
  113. package/dist/commonjs/models/operations/listsettlementrefunds.d.ts +12 -25
  114. package/dist/commonjs/models/operations/listsettlementrefunds.d.ts.map +1 -1
  115. package/dist/commonjs/models/operations/listsettlementrefunds.js +6 -45
  116. package/dist/commonjs/models/operations/listsettlementrefunds.js.map +1 -1
  117. package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts +12 -25
  118. package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts.map +1 -1
  119. package/dist/commonjs/models/operations/listsubscriptionpayments.js +8 -47
  120. package/dist/commonjs/models/operations/listsubscriptionpayments.js.map +1 -1
  121. package/dist/commonjs/models/operations/listsubscriptions.d.ts +12 -25
  122. package/dist/commonjs/models/operations/listsubscriptions.d.ts.map +1 -1
  123. package/dist/commonjs/models/operations/listsubscriptions.js +6 -45
  124. package/dist/commonjs/models/operations/listsubscriptions.js.map +1 -1
  125. package/dist/commonjs/models/operations/updatecustomer.d.ts +24 -50
  126. package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
  127. package/dist/commonjs/models/operations/updatecustomer.js +10 -88
  128. package/dist/commonjs/models/operations/updatecustomer.js.map +1 -1
  129. package/dist/commonjs/models/operations/updatepayment.d.ts +24 -50
  130. package/dist/commonjs/models/operations/updatepayment.d.ts.map +1 -1
  131. package/dist/commonjs/models/operations/updatepayment.js +13 -91
  132. package/dist/commonjs/models/operations/updatepayment.js.map +1 -1
  133. package/dist/commonjs/models/operations/updatesubscription.d.ts +24 -50
  134. package/dist/commonjs/models/operations/updatesubscription.d.ts.map +1 -1
  135. package/dist/commonjs/models/operations/updatesubscription.js +10 -88
  136. package/dist/commonjs/models/operations/updatesubscription.js.map +1 -1
  137. package/dist/esm/lib/config.d.ts +3 -3
  138. package/dist/esm/lib/config.js +3 -3
  139. package/dist/esm/lib/security.d.ts.map +1 -1
  140. package/dist/esm/lib/security.js.map +1 -1
  141. package/dist/esm/mcp-server/mcp-server.js +1 -1
  142. package/dist/esm/mcp-server/server.js +1 -1
  143. package/dist/esm/models/operations/cancelpayment.d.ts +12 -25
  144. package/dist/esm/models/operations/cancelpayment.d.ts.map +1 -1
  145. package/dist/esm/models/operations/cancelpayment.js +4 -41
  146. package/dist/esm/models/operations/cancelpayment.js.map +1 -1
  147. package/dist/esm/models/operations/cancelsubscription.d.ts +12 -25
  148. package/dist/esm/models/operations/cancelsubscription.d.ts.map +1 -1
  149. package/dist/esm/models/operations/cancelsubscription.js +4 -41
  150. package/dist/esm/models/operations/cancelsubscription.js.map +1 -1
  151. package/dist/esm/models/operations/createcapture.d.ts +24 -50
  152. package/dist/esm/models/operations/createcapture.d.ts.map +1 -1
  153. package/dist/esm/models/operations/createcapture.js +8 -82
  154. package/dist/esm/models/operations/createcapture.js.map +1 -1
  155. package/dist/esm/models/operations/createcustomer.d.ts +24 -50
  156. package/dist/esm/models/operations/createcustomer.d.ts.map +1 -1
  157. package/dist/esm/models/operations/createcustomer.js +8 -82
  158. package/dist/esm/models/operations/createcustomer.js.map +1 -1
  159. package/dist/esm/models/operations/createcustomerpayment.d.ts +24 -50
  160. package/dist/esm/models/operations/createcustomerpayment.d.ts.map +1 -1
  161. package/dist/esm/models/operations/createcustomerpayment.js +8 -82
  162. package/dist/esm/models/operations/createcustomerpayment.js.map +1 -1
  163. package/dist/esm/models/operations/createpayment.d.ts +24 -50
  164. package/dist/esm/models/operations/createpayment.d.ts.map +1 -1
  165. package/dist/esm/models/operations/createpayment.js +8 -82
  166. package/dist/esm/models/operations/createpayment.js.map +1 -1
  167. package/dist/esm/models/operations/createpaymentlink.d.ts +11 -0
  168. package/dist/esm/models/operations/createpaymentlink.d.ts.map +1 -1
  169. package/dist/esm/models/operations/createpaymentlink.js +2 -0
  170. package/dist/esm/models/operations/createpaymentlink.js.map +1 -1
  171. package/dist/esm/models/operations/createrefund.d.ts +24 -50
  172. package/dist/esm/models/operations/createrefund.d.ts.map +1 -1
  173. package/dist/esm/models/operations/createrefund.js +8 -82
  174. package/dist/esm/models/operations/createrefund.js.map +1 -1
  175. package/dist/esm/models/operations/createsubscription.d.ts +24 -50
  176. package/dist/esm/models/operations/createsubscription.d.ts.map +1 -1
  177. package/dist/esm/models/operations/createsubscription.js +8 -82
  178. package/dist/esm/models/operations/createsubscription.js.map +1 -1
  179. package/dist/esm/models/operations/getcapture.d.ts +12 -25
  180. package/dist/esm/models/operations/getcapture.d.ts.map +1 -1
  181. package/dist/esm/models/operations/getcapture.js +4 -41
  182. package/dist/esm/models/operations/getcapture.js.map +1 -1
  183. package/dist/esm/models/operations/getcustomer.d.ts +12 -25
  184. package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
  185. package/dist/esm/models/operations/getcustomer.js +4 -41
  186. package/dist/esm/models/operations/getcustomer.js.map +1 -1
  187. package/dist/esm/models/operations/getpayment.d.ts +12 -25
  188. package/dist/esm/models/operations/getpayment.d.ts.map +1 -1
  189. package/dist/esm/models/operations/getpayment.js +4 -41
  190. package/dist/esm/models/operations/getpayment.js.map +1 -1
  191. package/dist/esm/models/operations/getpaymentlinkpayments.d.ts +18 -31
  192. package/dist/esm/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
  193. package/dist/esm/models/operations/getpaymentlinkpayments.js +10 -49
  194. package/dist/esm/models/operations/getpaymentlinkpayments.js.map +1 -1
  195. package/dist/esm/models/operations/getrefund.d.ts +12 -25
  196. package/dist/esm/models/operations/getrefund.d.ts.map +1 -1
  197. package/dist/esm/models/operations/getrefund.js +4 -41
  198. package/dist/esm/models/operations/getrefund.js.map +1 -1
  199. package/dist/esm/models/operations/getsubscription.d.ts +12 -25
  200. package/dist/esm/models/operations/getsubscription.d.ts.map +1 -1
  201. package/dist/esm/models/operations/getsubscription.js +4 -41
  202. package/dist/esm/models/operations/getsubscription.js.map +1 -1
  203. package/dist/esm/models/operations/getwebhookevent.d.ts +17 -17
  204. package/dist/esm/models/operations/getwebhookevent.d.ts.map +1 -1
  205. package/dist/esm/models/operations/getwebhookevent.js +17 -17
  206. package/dist/esm/models/operations/getwebhookevent.js.map +1 -1
  207. package/dist/esm/models/operations/listallrefunds.d.ts +12 -25
  208. package/dist/esm/models/operations/listallrefunds.d.ts.map +1 -1
  209. package/dist/esm/models/operations/listallrefunds.js +4 -41
  210. package/dist/esm/models/operations/listallrefunds.js.map +1 -1
  211. package/dist/esm/models/operations/listallsubscriptions.d.ts +12 -25
  212. package/dist/esm/models/operations/listallsubscriptions.d.ts.map +1 -1
  213. package/dist/esm/models/operations/listallsubscriptions.js +4 -41
  214. package/dist/esm/models/operations/listallsubscriptions.js.map +1 -1
  215. package/dist/esm/models/operations/listcaptures.d.ts +12 -25
  216. package/dist/esm/models/operations/listcaptures.d.ts.map +1 -1
  217. package/dist/esm/models/operations/listcaptures.js +4 -41
  218. package/dist/esm/models/operations/listcaptures.js.map +1 -1
  219. package/dist/esm/models/operations/listcustomerpayments.d.ts +12 -25
  220. package/dist/esm/models/operations/listcustomerpayments.d.ts.map +1 -1
  221. package/dist/esm/models/operations/listcustomerpayments.js +4 -41
  222. package/dist/esm/models/operations/listcustomerpayments.js.map +1 -1
  223. package/dist/esm/models/operations/listcustomers.d.ts +12 -25
  224. package/dist/esm/models/operations/listcustomers.d.ts.map +1 -1
  225. package/dist/esm/models/operations/listcustomers.js +4 -41
  226. package/dist/esm/models/operations/listcustomers.js.map +1 -1
  227. package/dist/esm/models/operations/listpaymentlinks.d.ts +21 -21
  228. package/dist/esm/models/operations/listpaymentlinks.d.ts.map +1 -1
  229. package/dist/esm/models/operations/listpaymentlinks.js +21 -21
  230. package/dist/esm/models/operations/listpaymentlinks.js.map +1 -1
  231. package/dist/esm/models/operations/listpayments.d.ts +12 -25
  232. package/dist/esm/models/operations/listpayments.d.ts.map +1 -1
  233. package/dist/esm/models/operations/listpayments.js +4 -41
  234. package/dist/esm/models/operations/listpayments.js.map +1 -1
  235. package/dist/esm/models/operations/listrefunds.d.ts +12 -25
  236. package/dist/esm/models/operations/listrefunds.d.ts.map +1 -1
  237. package/dist/esm/models/operations/listrefunds.js +4 -41
  238. package/dist/esm/models/operations/listrefunds.js.map +1 -1
  239. package/dist/esm/models/operations/listsettlementcaptures.d.ts +12 -25
  240. package/dist/esm/models/operations/listsettlementcaptures.d.ts.map +1 -1
  241. package/dist/esm/models/operations/listsettlementcaptures.js +4 -41
  242. package/dist/esm/models/operations/listsettlementcaptures.js.map +1 -1
  243. package/dist/esm/models/operations/listsettlementpayments.d.ts +12 -25
  244. package/dist/esm/models/operations/listsettlementpayments.d.ts.map +1 -1
  245. package/dist/esm/models/operations/listsettlementpayments.js +4 -41
  246. package/dist/esm/models/operations/listsettlementpayments.js.map +1 -1
  247. package/dist/esm/models/operations/listsettlementrefunds.d.ts +12 -25
  248. package/dist/esm/models/operations/listsettlementrefunds.d.ts.map +1 -1
  249. package/dist/esm/models/operations/listsettlementrefunds.js +4 -41
  250. package/dist/esm/models/operations/listsettlementrefunds.js.map +1 -1
  251. package/dist/esm/models/operations/listsubscriptionpayments.d.ts +12 -25
  252. package/dist/esm/models/operations/listsubscriptionpayments.d.ts.map +1 -1
  253. package/dist/esm/models/operations/listsubscriptionpayments.js +4 -41
  254. package/dist/esm/models/operations/listsubscriptionpayments.js.map +1 -1
  255. package/dist/esm/models/operations/listsubscriptions.d.ts +12 -25
  256. package/dist/esm/models/operations/listsubscriptions.d.ts.map +1 -1
  257. package/dist/esm/models/operations/listsubscriptions.js +4 -41
  258. package/dist/esm/models/operations/listsubscriptions.js.map +1 -1
  259. package/dist/esm/models/operations/updatecustomer.d.ts +24 -50
  260. package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
  261. package/dist/esm/models/operations/updatecustomer.js +8 -82
  262. package/dist/esm/models/operations/updatecustomer.js.map +1 -1
  263. package/dist/esm/models/operations/updatepayment.d.ts +24 -50
  264. package/dist/esm/models/operations/updatepayment.d.ts.map +1 -1
  265. package/dist/esm/models/operations/updatepayment.js +8 -82
  266. package/dist/esm/models/operations/updatepayment.js.map +1 -1
  267. package/dist/esm/models/operations/updatesubscription.d.ts +24 -50
  268. package/dist/esm/models/operations/updatesubscription.d.ts.map +1 -1
  269. package/dist/esm/models/operations/updatesubscription.js +8 -82
  270. package/dist/esm/models/operations/updatesubscription.js.map +1 -1
  271. package/docs/sdks/paymentlinks/README.md +2 -0
  272. package/examples/package-lock.json +1 -1
  273. package/examples/paymentsCreate.example.ts +1 -1
  274. package/jsr.json +1 -1
  275. package/package.json +1 -1
  276. package/src/lib/config.ts +3 -3
  277. package/src/lib/security.ts +4 -1
  278. package/src/mcp-server/mcp-server.ts +1 -1
  279. package/src/mcp-server/server.ts +1 -1
  280. package/src/models/operations/cancelpayment.ts +12 -83
  281. package/src/models/operations/cancelsubscription.ts +12 -80
  282. package/src/models/operations/createcapture.ts +22 -183
  283. package/src/models/operations/createcustomer.ts +22 -179
  284. package/src/models/operations/createcustomerpayment.ts +23 -200
  285. package/src/models/operations/createpayment.ts +22 -183
  286. package/src/models/operations/createpaymentlink.ts +13 -0
  287. package/src/models/operations/createrefund.ts +23 -181
  288. package/src/models/operations/createsubscription.ts +22 -187
  289. package/src/models/operations/getcapture.ts +11 -85
  290. package/src/models/operations/getcustomer.ts +11 -80
  291. package/src/models/operations/getpayment.ts +11 -85
  292. package/src/models/operations/getpaymentlinkpayments.ts +23 -107
  293. package/src/models/operations/getrefund.ts +11 -82
  294. package/src/models/operations/getsubscription.ts +12 -80
  295. package/src/models/operations/getwebhookevent.ts +34 -29
  296. package/src/models/operations/listallrefunds.ts +12 -85
  297. package/src/models/operations/listallsubscriptions.ts +11 -85
  298. package/src/models/operations/listcaptures.ts +12 -83
  299. package/src/models/operations/listcustomerpayments.ts +11 -91
  300. package/src/models/operations/listcustomers.ts +12 -78
  301. package/src/models/operations/listpaymentlinks.ts +39 -38
  302. package/src/models/operations/listpayments.ts +12 -83
  303. package/src/models/operations/listrefunds.ts +11 -85
  304. package/src/models/operations/listsettlementcaptures.ts +11 -93
  305. package/src/models/operations/listsettlementpayments.ts +11 -93
  306. package/src/models/operations/listsettlementrefunds.ts +11 -92
  307. package/src/models/operations/listsubscriptionpayments.ts +11 -93
  308. package/src/models/operations/listsubscriptions.ts +12 -80
  309. package/src/models/operations/updatecustomer.ts +22 -179
  310. package/src/models/operations/updatepayment.ts +22 -183
  311. package/src/models/operations/updatesubscription.ts +22 -187
@@ -779,17 +779,15 @@ export type ListCustomerPaymentsMethod = ClosedEnum<
779
779
  typeof ListCustomerPaymentsMethod
780
780
  >;
781
781
 
782
- export type ListCustomerPaymentsMetadata = {};
783
-
784
782
  /**
785
783
  * Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
786
784
  *
787
785
  * @remarks
788
786
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
789
787
  */
790
- export type ListCustomerPaymentsMetadataUnion =
791
- | ListCustomerPaymentsMetadata
788
+ export type ListCustomerPaymentsMetadata =
792
789
  | string
790
+ | { [k: string]: any }
793
791
  | Array<string>;
794
792
 
795
793
  /**
@@ -1612,12 +1610,7 @@ export type ListCustomerPaymentsPaymentOutput = {
1612
1610
  * @remarks
1613
1611
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
1614
1612
  */
1615
- metadata?:
1616
- | ListCustomerPaymentsMetadata
1617
- | string
1618
- | Array<string>
1619
- | null
1620
- | undefined;
1613
+ metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
1621
1614
  /**
1622
1615
  * Indicate if the funds should be captured immediately or if you want to [place a hold](https://docs.mollie.com/docs/place-a-hold-for-a-payment#/)
1623
1616
  *
@@ -3313,17 +3306,19 @@ export const ListCustomerPaymentsMetadata$inboundSchema: z.ZodType<
3313
3306
  ListCustomerPaymentsMetadata,
3314
3307
  z.ZodTypeDef,
3315
3308
  unknown
3316
- > = z.object({});
3309
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
3317
3310
 
3318
3311
  /** @internal */
3319
- export type ListCustomerPaymentsMetadata$Outbound = {};
3312
+ export type ListCustomerPaymentsMetadata$Outbound = string | {
3313
+ [k: string]: any;
3314
+ } | Array<string>;
3320
3315
 
3321
3316
  /** @internal */
3322
3317
  export const ListCustomerPaymentsMetadata$outboundSchema: z.ZodType<
3323
3318
  ListCustomerPaymentsMetadata$Outbound,
3324
3319
  z.ZodTypeDef,
3325
3320
  ListCustomerPaymentsMetadata
3326
- > = z.object({});
3321
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
3327
3322
 
3328
3323
  /**
3329
3324
  * @internal
@@ -3358,68 +3353,6 @@ export function listCustomerPaymentsMetadataFromJSON(
3358
3353
  );
3359
3354
  }
3360
3355
 
3361
- /** @internal */
3362
- export const ListCustomerPaymentsMetadataUnion$inboundSchema: z.ZodType<
3363
- ListCustomerPaymentsMetadataUnion,
3364
- z.ZodTypeDef,
3365
- unknown
3366
- > = z.union([
3367
- z.lazy(() => ListCustomerPaymentsMetadata$inboundSchema),
3368
- z.string(),
3369
- z.array(z.string()),
3370
- ]);
3371
-
3372
- /** @internal */
3373
- export type ListCustomerPaymentsMetadataUnion$Outbound =
3374
- | ListCustomerPaymentsMetadata$Outbound
3375
- | string
3376
- | Array<string>;
3377
-
3378
- /** @internal */
3379
- export const ListCustomerPaymentsMetadataUnion$outboundSchema: z.ZodType<
3380
- ListCustomerPaymentsMetadataUnion$Outbound,
3381
- z.ZodTypeDef,
3382
- ListCustomerPaymentsMetadataUnion
3383
- > = z.union([
3384
- z.lazy(() => ListCustomerPaymentsMetadata$outboundSchema),
3385
- z.string(),
3386
- z.array(z.string()),
3387
- ]);
3388
-
3389
- /**
3390
- * @internal
3391
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3392
- */
3393
- export namespace ListCustomerPaymentsMetadataUnion$ {
3394
- /** @deprecated use `ListCustomerPaymentsMetadataUnion$inboundSchema` instead. */
3395
- export const inboundSchema = ListCustomerPaymentsMetadataUnion$inboundSchema;
3396
- /** @deprecated use `ListCustomerPaymentsMetadataUnion$outboundSchema` instead. */
3397
- export const outboundSchema =
3398
- ListCustomerPaymentsMetadataUnion$outboundSchema;
3399
- /** @deprecated use `ListCustomerPaymentsMetadataUnion$Outbound` instead. */
3400
- export type Outbound = ListCustomerPaymentsMetadataUnion$Outbound;
3401
- }
3402
-
3403
- export function listCustomerPaymentsMetadataUnionToJSON(
3404
- listCustomerPaymentsMetadataUnion: ListCustomerPaymentsMetadataUnion,
3405
- ): string {
3406
- return JSON.stringify(
3407
- ListCustomerPaymentsMetadataUnion$outboundSchema.parse(
3408
- listCustomerPaymentsMetadataUnion,
3409
- ),
3410
- );
3411
- }
3412
-
3413
- export function listCustomerPaymentsMetadataUnionFromJSON(
3414
- jsonString: string,
3415
- ): SafeParseResult<ListCustomerPaymentsMetadataUnion, SDKValidationError> {
3416
- return safeParse(
3417
- jsonString,
3418
- (x) => ListCustomerPaymentsMetadataUnion$inboundSchema.parse(JSON.parse(x)),
3419
- `Failed to parse 'ListCustomerPaymentsMetadataUnion' from JSON`,
3420
- );
3421
- }
3422
-
3423
3356
  /** @internal */
3424
3357
  export const ListCustomerPaymentsCaptureMode$inboundSchema: z.ZodNativeEnum<
3425
3358
  typeof ListCustomerPaymentsCaptureMode
@@ -5161,11 +5094,7 @@ export const ListCustomerPaymentsPaymentOutput$inboundSchema: z.ZodType<
5161
5094
  method: z.nullable(ListCustomerPaymentsMethod$inboundSchema).optional(),
5162
5095
  restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
5163
5096
  metadata: z.nullable(
5164
- z.union([
5165
- z.lazy(() => ListCustomerPaymentsMetadata$inboundSchema),
5166
- z.string(),
5167
- z.array(z.string()),
5168
- ]),
5097
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
5169
5098
  ).optional(),
5170
5099
  captureMode: z.nullable(ListCustomerPaymentsCaptureMode$inboundSchema)
5171
5100
  .optional(),
@@ -5228,12 +5157,7 @@ export type ListCustomerPaymentsPaymentOutput$Outbound = {
5228
5157
  countryCode?: string | null | undefined;
5229
5158
  method?: string | null | undefined;
5230
5159
  restrictPaymentMethodsToCountry?: string | null | undefined;
5231
- metadata?:
5232
- | ListCustomerPaymentsMetadata$Outbound
5233
- | string
5234
- | Array<string>
5235
- | null
5236
- | undefined;
5160
+ metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
5237
5161
  captureMode?: string | null | undefined;
5238
5162
  captureDelay?: string | null | undefined;
5239
5163
  captureBefore?: string | null | undefined;
@@ -5306,11 +5230,7 @@ export const ListCustomerPaymentsPaymentOutput$outboundSchema: z.ZodType<
5306
5230
  method: z.nullable(ListCustomerPaymentsMethod$outboundSchema).optional(),
5307
5231
  restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
5308
5232
  metadata: z.nullable(
5309
- z.union([
5310
- z.lazy(() => ListCustomerPaymentsMetadata$outboundSchema),
5311
- z.string(),
5312
- z.array(z.string()),
5313
- ]),
5233
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
5314
5234
  ).optional(),
5315
5235
  captureMode: z.nullable(ListCustomerPaymentsCaptureMode$outboundSchema)
5316
5236
  .optional(),
@@ -138,17 +138,15 @@ export const ListCustomersLocale = {
138
138
  */
139
139
  export type ListCustomersLocale = ClosedEnum<typeof ListCustomersLocale>;
140
140
 
141
- export type ListCustomersMetadata = {};
142
-
143
141
  /**
144
142
  * Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
145
143
  *
146
144
  * @remarks
147
145
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
148
146
  */
149
- export type ListCustomersMetadataUnion =
150
- | ListCustomersMetadata
147
+ export type ListCustomersMetadata =
151
148
  | string
149
+ | { [k: string]: any }
152
150
  | Array<string>;
153
151
 
154
152
  /**
@@ -317,7 +315,7 @@ export type ListCustomersCustomer = {
317
315
  * @remarks
318
316
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
319
317
  */
320
- metadata: ListCustomersMetadata | string | Array<string> | null;
318
+ metadata: string | { [k: string]: any } | Array<string> | null;
321
319
  /**
322
320
  * The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
323
321
  */
@@ -804,17 +802,20 @@ export const ListCustomersMetadata$inboundSchema: z.ZodType<
804
802
  ListCustomersMetadata,
805
803
  z.ZodTypeDef,
806
804
  unknown
807
- > = z.object({});
805
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
808
806
 
809
807
  /** @internal */
810
- export type ListCustomersMetadata$Outbound = {};
808
+ export type ListCustomersMetadata$Outbound =
809
+ | string
810
+ | { [k: string]: any }
811
+ | Array<string>;
811
812
 
812
813
  /** @internal */
813
814
  export const ListCustomersMetadata$outboundSchema: z.ZodType<
814
815
  ListCustomersMetadata$Outbound,
815
816
  z.ZodTypeDef,
816
817
  ListCustomersMetadata
817
- > = z.object({});
818
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
818
819
 
819
820
  /**
820
821
  * @internal
@@ -847,65 +848,6 @@ export function listCustomersMetadataFromJSON(
847
848
  );
848
849
  }
849
850
 
850
- /** @internal */
851
- export const ListCustomersMetadataUnion$inboundSchema: z.ZodType<
852
- ListCustomersMetadataUnion,
853
- z.ZodTypeDef,
854
- unknown
855
- > = z.union([
856
- z.lazy(() => ListCustomersMetadata$inboundSchema),
857
- z.string(),
858
- z.array(z.string()),
859
- ]);
860
-
861
- /** @internal */
862
- export type ListCustomersMetadataUnion$Outbound =
863
- | ListCustomersMetadata$Outbound
864
- | string
865
- | Array<string>;
866
-
867
- /** @internal */
868
- export const ListCustomersMetadataUnion$outboundSchema: z.ZodType<
869
- ListCustomersMetadataUnion$Outbound,
870
- z.ZodTypeDef,
871
- ListCustomersMetadataUnion
872
- > = z.union([
873
- z.lazy(() => ListCustomersMetadata$outboundSchema),
874
- z.string(),
875
- z.array(z.string()),
876
- ]);
877
-
878
- /**
879
- * @internal
880
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
881
- */
882
- export namespace ListCustomersMetadataUnion$ {
883
- /** @deprecated use `ListCustomersMetadataUnion$inboundSchema` instead. */
884
- export const inboundSchema = ListCustomersMetadataUnion$inboundSchema;
885
- /** @deprecated use `ListCustomersMetadataUnion$outboundSchema` instead. */
886
- export const outboundSchema = ListCustomersMetadataUnion$outboundSchema;
887
- /** @deprecated use `ListCustomersMetadataUnion$Outbound` instead. */
888
- export type Outbound = ListCustomersMetadataUnion$Outbound;
889
- }
890
-
891
- export function listCustomersMetadataUnionToJSON(
892
- listCustomersMetadataUnion: ListCustomersMetadataUnion,
893
- ): string {
894
- return JSON.stringify(
895
- ListCustomersMetadataUnion$outboundSchema.parse(listCustomersMetadataUnion),
896
- );
897
- }
898
-
899
- export function listCustomersMetadataUnionFromJSON(
900
- jsonString: string,
901
- ): SafeParseResult<ListCustomersMetadataUnion, SDKValidationError> {
902
- return safeParse(
903
- jsonString,
904
- (x) => ListCustomersMetadataUnion$inboundSchema.parse(JSON.parse(x)),
905
- `Failed to parse 'ListCustomersMetadataUnion' from JSON`,
906
- );
907
- }
908
-
909
851
  /** @internal */
910
852
  export const CustomerSelf$inboundSchema: z.ZodType<
911
853
  CustomerSelf,
@@ -1330,11 +1272,7 @@ export const ListCustomersCustomer$inboundSchema: z.ZodType<
1330
1272
  email: z.nullable(z.string()),
1331
1273
  locale: z.nullable(ListCustomersLocale$inboundSchema),
1332
1274
  metadata: z.nullable(
1333
- z.union([
1334
- z.lazy(() => ListCustomersMetadata$inboundSchema),
1335
- z.string(),
1336
- z.array(z.string()),
1337
- ]),
1275
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
1338
1276
  ),
1339
1277
  createdAt: z.string(),
1340
1278
  _links: z.lazy(() => CustomerLinks$inboundSchema),
@@ -1352,7 +1290,7 @@ export type ListCustomersCustomer$Outbound = {
1352
1290
  name: string | null;
1353
1291
  email: string | null;
1354
1292
  locale: string | null;
1355
- metadata: ListCustomersMetadata$Outbound | string | Array<string> | null;
1293
+ metadata: string | { [k: string]: any } | Array<string> | null;
1356
1294
  createdAt: string;
1357
1295
  _links: CustomerLinks$Outbound;
1358
1296
  };
@@ -1370,11 +1308,7 @@ export const ListCustomersCustomer$outboundSchema: z.ZodType<
1370
1308
  email: z.nullable(z.string()),
1371
1309
  locale: z.nullable(ListCustomersLocale$outboundSchema),
1372
1310
  metadata: z.nullable(
1373
- z.union([
1374
- z.lazy(() => ListCustomersMetadata$outboundSchema),
1375
- z.string(),
1376
- z.array(z.string()),
1377
- ]),
1311
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
1378
1312
  ),
1379
1313
  createdAt: z.string(),
1380
1314
  links: z.lazy(() => CustomerLinks$outboundSchema),
@@ -607,7 +607,7 @@ export type PaymentLinkLinks = {
607
607
  paymentLink: ListPaymentLinksLinksPaymentLink;
608
608
  };
609
609
 
610
- export type ListPaymentLinksPaymentLink = {
610
+ export type ListPaymentLinksPaymentLinkOutput = {
611
611
  /**
612
612
  * Indicates the response contains a payment link object. Will always contain the string `payment-link` for this
613
613
  *
@@ -788,7 +788,7 @@ export type ListPaymentLinksEmbedded = {
788
788
  /**
789
789
  * An array of payment link objects.
790
790
  */
791
- paymentLinks?: Array<ListPaymentLinksPaymentLink> | undefined;
791
+ paymentLinks?: Array<ListPaymentLinksPaymentLinkOutput> | undefined;
792
792
  };
793
793
 
794
794
  /**
@@ -882,12 +882,12 @@ export type ListPaymentLinksResponse = {
882
882
  * The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
883
883
  * limit is 50 items.
884
884
  */
885
- count?: number | undefined;
886
- embedded?: ListPaymentLinksEmbedded | undefined;
885
+ count: number;
886
+ embedded: ListPaymentLinksEmbedded;
887
887
  /**
888
888
  * Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
889
889
  */
890
- links?: ListPaymentLinksLinks | undefined;
890
+ links: ListPaymentLinksLinks;
891
891
  };
892
892
 
893
893
  /** @internal */
@@ -2073,8 +2073,8 @@ export function paymentLinkLinksFromJSON(
2073
2073
  }
2074
2074
 
2075
2075
  /** @internal */
2076
- export const ListPaymentLinksPaymentLink$inboundSchema: z.ZodType<
2077
- ListPaymentLinksPaymentLink,
2076
+ export const ListPaymentLinksPaymentLinkOutput$inboundSchema: z.ZodType<
2077
+ ListPaymentLinksPaymentLinkOutput,
2078
2078
  z.ZodTypeDef,
2079
2079
  unknown
2080
2080
  > = z.object({
@@ -2114,7 +2114,7 @@ export const ListPaymentLinksPaymentLink$inboundSchema: z.ZodType<
2114
2114
  });
2115
2115
 
2116
2116
  /** @internal */
2117
- export type ListPaymentLinksPaymentLink$Outbound = {
2117
+ export type ListPaymentLinksPaymentLinkOutput$Outbound = {
2118
2118
  resource: string;
2119
2119
  id: string;
2120
2120
  mode: string;
@@ -2140,10 +2140,10 @@ export type ListPaymentLinksPaymentLink$Outbound = {
2140
2140
  };
2141
2141
 
2142
2142
  /** @internal */
2143
- export const ListPaymentLinksPaymentLink$outboundSchema: z.ZodType<
2144
- ListPaymentLinksPaymentLink$Outbound,
2143
+ export const ListPaymentLinksPaymentLinkOutput$outboundSchema: z.ZodType<
2144
+ ListPaymentLinksPaymentLinkOutput$Outbound,
2145
2145
  z.ZodTypeDef,
2146
- ListPaymentLinksPaymentLink
2146
+ ListPaymentLinksPaymentLinkOutput
2147
2147
  > = z.object({
2148
2148
  resource: z.string(),
2149
2149
  id: z.string(),
@@ -2184,32 +2184,33 @@ export const ListPaymentLinksPaymentLink$outboundSchema: z.ZodType<
2184
2184
  * @internal
2185
2185
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2186
2186
  */
2187
- export namespace ListPaymentLinksPaymentLink$ {
2188
- /** @deprecated use `ListPaymentLinksPaymentLink$inboundSchema` instead. */
2189
- export const inboundSchema = ListPaymentLinksPaymentLink$inboundSchema;
2190
- /** @deprecated use `ListPaymentLinksPaymentLink$outboundSchema` instead. */
2191
- export const outboundSchema = ListPaymentLinksPaymentLink$outboundSchema;
2192
- /** @deprecated use `ListPaymentLinksPaymentLink$Outbound` instead. */
2193
- export type Outbound = ListPaymentLinksPaymentLink$Outbound;
2187
+ export namespace ListPaymentLinksPaymentLinkOutput$ {
2188
+ /** @deprecated use `ListPaymentLinksPaymentLinkOutput$inboundSchema` instead. */
2189
+ export const inboundSchema = ListPaymentLinksPaymentLinkOutput$inboundSchema;
2190
+ /** @deprecated use `ListPaymentLinksPaymentLinkOutput$outboundSchema` instead. */
2191
+ export const outboundSchema =
2192
+ ListPaymentLinksPaymentLinkOutput$outboundSchema;
2193
+ /** @deprecated use `ListPaymentLinksPaymentLinkOutput$Outbound` instead. */
2194
+ export type Outbound = ListPaymentLinksPaymentLinkOutput$Outbound;
2194
2195
  }
2195
2196
 
2196
- export function listPaymentLinksPaymentLinkToJSON(
2197
- listPaymentLinksPaymentLink: ListPaymentLinksPaymentLink,
2197
+ export function listPaymentLinksPaymentLinkOutputToJSON(
2198
+ listPaymentLinksPaymentLinkOutput: ListPaymentLinksPaymentLinkOutput,
2198
2199
  ): string {
2199
2200
  return JSON.stringify(
2200
- ListPaymentLinksPaymentLink$outboundSchema.parse(
2201
- listPaymentLinksPaymentLink,
2201
+ ListPaymentLinksPaymentLinkOutput$outboundSchema.parse(
2202
+ listPaymentLinksPaymentLinkOutput,
2202
2203
  ),
2203
2204
  );
2204
2205
  }
2205
2206
 
2206
- export function listPaymentLinksPaymentLinkFromJSON(
2207
+ export function listPaymentLinksPaymentLinkOutputFromJSON(
2207
2208
  jsonString: string,
2208
- ): SafeParseResult<ListPaymentLinksPaymentLink, SDKValidationError> {
2209
+ ): SafeParseResult<ListPaymentLinksPaymentLinkOutput, SDKValidationError> {
2209
2210
  return safeParse(
2210
2211
  jsonString,
2211
- (x) => ListPaymentLinksPaymentLink$inboundSchema.parse(JSON.parse(x)),
2212
- `Failed to parse 'ListPaymentLinksPaymentLink' from JSON`,
2212
+ (x) => ListPaymentLinksPaymentLinkOutput$inboundSchema.parse(JSON.parse(x)),
2213
+ `Failed to parse 'ListPaymentLinksPaymentLinkOutput' from JSON`,
2213
2214
  );
2214
2215
  }
2215
2216
 
@@ -2220,7 +2221,7 @@ export const ListPaymentLinksEmbedded$inboundSchema: z.ZodType<
2220
2221
  unknown
2221
2222
  > = z.object({
2222
2223
  payment_links: z.array(
2223
- z.lazy(() => ListPaymentLinksPaymentLink$inboundSchema),
2224
+ z.lazy(() => ListPaymentLinksPaymentLinkOutput$inboundSchema),
2224
2225
  ).optional(),
2225
2226
  }).transform((v) => {
2226
2227
  return remap$(v, {
@@ -2230,7 +2231,7 @@ export const ListPaymentLinksEmbedded$inboundSchema: z.ZodType<
2230
2231
 
2231
2232
  /** @internal */
2232
2233
  export type ListPaymentLinksEmbedded$Outbound = {
2233
- payment_links?: Array<ListPaymentLinksPaymentLink$Outbound> | undefined;
2234
+ payment_links?: Array<ListPaymentLinksPaymentLinkOutput$Outbound> | undefined;
2234
2235
  };
2235
2236
 
2236
2237
  /** @internal */
@@ -2240,7 +2241,7 @@ export const ListPaymentLinksEmbedded$outboundSchema: z.ZodType<
2240
2241
  ListPaymentLinksEmbedded
2241
2242
  > = z.object({
2242
2243
  paymentLinks: z.array(
2243
- z.lazy(() => ListPaymentLinksPaymentLink$outboundSchema),
2244
+ z.lazy(() => ListPaymentLinksPaymentLinkOutput$outboundSchema),
2244
2245
  ).optional(),
2245
2246
  }).transform((v) => {
2246
2247
  return remap$(v, {
@@ -2583,9 +2584,9 @@ export const ListPaymentLinksResponse$inboundSchema: z.ZodType<
2583
2584
  z.ZodTypeDef,
2584
2585
  unknown
2585
2586
  > = z.object({
2586
- count: z.number().int().optional(),
2587
- _embedded: z.lazy(() => ListPaymentLinksEmbedded$inboundSchema).optional(),
2588
- _links: z.lazy(() => ListPaymentLinksLinks$inboundSchema).optional(),
2587
+ count: z.number().int(),
2588
+ _embedded: z.lazy(() => ListPaymentLinksEmbedded$inboundSchema),
2589
+ _links: z.lazy(() => ListPaymentLinksLinks$inboundSchema),
2589
2590
  }).transform((v) => {
2590
2591
  return remap$(v, {
2591
2592
  "_embedded": "embedded",
@@ -2595,9 +2596,9 @@ export const ListPaymentLinksResponse$inboundSchema: z.ZodType<
2595
2596
 
2596
2597
  /** @internal */
2597
2598
  export type ListPaymentLinksResponse$Outbound = {
2598
- count?: number | undefined;
2599
- _embedded?: ListPaymentLinksEmbedded$Outbound | undefined;
2600
- _links?: ListPaymentLinksLinks$Outbound | undefined;
2599
+ count: number;
2600
+ _embedded: ListPaymentLinksEmbedded$Outbound;
2601
+ _links: ListPaymentLinksLinks$Outbound;
2601
2602
  };
2602
2603
 
2603
2604
  /** @internal */
@@ -2606,9 +2607,9 @@ export const ListPaymentLinksResponse$outboundSchema: z.ZodType<
2606
2607
  z.ZodTypeDef,
2607
2608
  ListPaymentLinksResponse
2608
2609
  > = z.object({
2609
- count: z.number().int().optional(),
2610
- embedded: z.lazy(() => ListPaymentLinksEmbedded$outboundSchema).optional(),
2611
- links: z.lazy(() => ListPaymentLinksLinks$outboundSchema).optional(),
2610
+ count: z.number().int(),
2611
+ embedded: z.lazy(() => ListPaymentLinksEmbedded$outboundSchema),
2612
+ links: z.lazy(() => ListPaymentLinksLinks$outboundSchema),
2612
2613
  }).transform((v) => {
2613
2614
  return remap$(v, {
2614
2615
  embedded: "_embedded",
@@ -761,17 +761,15 @@ export const ListPaymentsMethod = {
761
761
  */
762
762
  export type ListPaymentsMethod = ClosedEnum<typeof ListPaymentsMethod>;
763
763
 
764
- export type ListPaymentsMetadata = {};
765
-
766
764
  /**
767
765
  * Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
768
766
  *
769
767
  * @remarks
770
768
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
771
769
  */
772
- export type ListPaymentsMetadataUnion =
773
- | ListPaymentsMetadata
770
+ export type ListPaymentsMetadata =
774
771
  | string
772
+ | { [k: string]: any }
775
773
  | Array<string>;
776
774
 
777
775
  /**
@@ -1592,7 +1590,7 @@ export type ListPaymentsPaymentOutput = {
1592
1590
  * @remarks
1593
1591
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
1594
1592
  */
1595
- metadata?: ListPaymentsMetadata | string | Array<string> | null | undefined;
1593
+ metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
1596
1594
  /**
1597
1595
  * Indicate if the funds should be captured immediately or if you want to [place a hold](https://docs.mollie.com/docs/place-a-hold-for-a-payment#/)
1598
1596
  *
@@ -3226,17 +3224,20 @@ export const ListPaymentsMetadata$inboundSchema: z.ZodType<
3226
3224
  ListPaymentsMetadata,
3227
3225
  z.ZodTypeDef,
3228
3226
  unknown
3229
- > = z.object({});
3227
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
3230
3228
 
3231
3229
  /** @internal */
3232
- export type ListPaymentsMetadata$Outbound = {};
3230
+ export type ListPaymentsMetadata$Outbound =
3231
+ | string
3232
+ | { [k: string]: any }
3233
+ | Array<string>;
3233
3234
 
3234
3235
  /** @internal */
3235
3236
  export const ListPaymentsMetadata$outboundSchema: z.ZodType<
3236
3237
  ListPaymentsMetadata$Outbound,
3237
3238
  z.ZodTypeDef,
3238
3239
  ListPaymentsMetadata
3239
- > = z.object({});
3240
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
3240
3241
 
3241
3242
  /**
3242
3243
  * @internal
@@ -3269,65 +3270,6 @@ export function listPaymentsMetadataFromJSON(
3269
3270
  );
3270
3271
  }
3271
3272
 
3272
- /** @internal */
3273
- export const ListPaymentsMetadataUnion$inboundSchema: z.ZodType<
3274
- ListPaymentsMetadataUnion,
3275
- z.ZodTypeDef,
3276
- unknown
3277
- > = z.union([
3278
- z.lazy(() => ListPaymentsMetadata$inboundSchema),
3279
- z.string(),
3280
- z.array(z.string()),
3281
- ]);
3282
-
3283
- /** @internal */
3284
- export type ListPaymentsMetadataUnion$Outbound =
3285
- | ListPaymentsMetadata$Outbound
3286
- | string
3287
- | Array<string>;
3288
-
3289
- /** @internal */
3290
- export const ListPaymentsMetadataUnion$outboundSchema: z.ZodType<
3291
- ListPaymentsMetadataUnion$Outbound,
3292
- z.ZodTypeDef,
3293
- ListPaymentsMetadataUnion
3294
- > = z.union([
3295
- z.lazy(() => ListPaymentsMetadata$outboundSchema),
3296
- z.string(),
3297
- z.array(z.string()),
3298
- ]);
3299
-
3300
- /**
3301
- * @internal
3302
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3303
- */
3304
- export namespace ListPaymentsMetadataUnion$ {
3305
- /** @deprecated use `ListPaymentsMetadataUnion$inboundSchema` instead. */
3306
- export const inboundSchema = ListPaymentsMetadataUnion$inboundSchema;
3307
- /** @deprecated use `ListPaymentsMetadataUnion$outboundSchema` instead. */
3308
- export const outboundSchema = ListPaymentsMetadataUnion$outboundSchema;
3309
- /** @deprecated use `ListPaymentsMetadataUnion$Outbound` instead. */
3310
- export type Outbound = ListPaymentsMetadataUnion$Outbound;
3311
- }
3312
-
3313
- export function listPaymentsMetadataUnionToJSON(
3314
- listPaymentsMetadataUnion: ListPaymentsMetadataUnion,
3315
- ): string {
3316
- return JSON.stringify(
3317
- ListPaymentsMetadataUnion$outboundSchema.parse(listPaymentsMetadataUnion),
3318
- );
3319
- }
3320
-
3321
- export function listPaymentsMetadataUnionFromJSON(
3322
- jsonString: string,
3323
- ): SafeParseResult<ListPaymentsMetadataUnion, SDKValidationError> {
3324
- return safeParse(
3325
- jsonString,
3326
- (x) => ListPaymentsMetadataUnion$inboundSchema.parse(JSON.parse(x)),
3327
- `Failed to parse 'ListPaymentsMetadataUnion' from JSON`,
3328
- );
3329
- }
3330
-
3331
3273
  /** @internal */
3332
3274
  export const ListPaymentsCaptureMode$inboundSchema: z.ZodNativeEnum<
3333
3275
  typeof ListPaymentsCaptureMode
@@ -4976,11 +4918,7 @@ export const ListPaymentsPaymentOutput$inboundSchema: z.ZodType<
4976
4918
  method: z.nullable(ListPaymentsMethod$inboundSchema).optional(),
4977
4919
  restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
4978
4920
  metadata: z.nullable(
4979
- z.union([
4980
- z.lazy(() => ListPaymentsMetadata$inboundSchema),
4981
- z.string(),
4982
- z.array(z.string()),
4983
- ]),
4921
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
4984
4922
  ).optional(),
4985
4923
  captureMode: z.nullable(ListPaymentsCaptureMode$inboundSchema).optional(),
4986
4924
  captureDelay: z.nullable(z.string()).optional(),
@@ -5038,12 +4976,7 @@ export type ListPaymentsPaymentOutput$Outbound = {
5038
4976
  countryCode?: string | null | undefined;
5039
4977
  method?: string | null | undefined;
5040
4978
  restrictPaymentMethodsToCountry?: string | null | undefined;
5041
- metadata?:
5042
- | ListPaymentsMetadata$Outbound
5043
- | string
5044
- | Array<string>
5045
- | null
5046
- | undefined;
4979
+ metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
5047
4980
  captureMode?: string | null | undefined;
5048
4981
  captureDelay?: string | null | undefined;
5049
4982
  captureBefore?: string | null | undefined;
@@ -5105,11 +5038,7 @@ export const ListPaymentsPaymentOutput$outboundSchema: z.ZodType<
5105
5038
  method: z.nullable(ListPaymentsMethod$outboundSchema).optional(),
5106
5039
  restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
5107
5040
  metadata: z.nullable(
5108
- z.union([
5109
- z.lazy(() => ListPaymentsMetadata$outboundSchema),
5110
- z.string(),
5111
- z.array(z.string()),
5112
- ]),
5041
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
5113
5042
  ).optional(),
5114
5043
  captureMode: z.nullable(ListPaymentsCaptureMode$outboundSchema).optional(),
5115
5044
  captureDelay: z.nullable(z.string()).optional(),