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
@@ -620,17 +620,15 @@ export type CreatePaymentMethodRequest = ClosedEnum<
620
620
  typeof CreatePaymentMethodRequest
621
621
  >;
622
622
 
623
- export type CreatePaymentMetadataRequest = {};
624
-
625
623
  /**
626
624
  * Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
627
625
  *
628
626
  * @remarks
629
627
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
630
628
  */
631
- export type CreatePaymentMetadataRequestUnion =
632
- | CreatePaymentMetadataRequest
629
+ export type CreatePaymentMetadataRequest =
633
630
  | string
631
+ | { [k: string]: any }
634
632
  | Array<string>;
635
633
 
636
634
  /**
@@ -1024,12 +1022,7 @@ export type CreatePaymentRequestBody = {
1024
1022
  * @remarks
1025
1023
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
1026
1024
  */
1027
- metadata?:
1028
- | CreatePaymentMetadataRequest
1029
- | string
1030
- | Array<string>
1031
- | null
1032
- | undefined;
1025
+ metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
1033
1026
  /**
1034
1027
  * 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#/)
1035
1028
  *
@@ -1884,17 +1877,15 @@ export type CreatePaymentMethodResponse = ClosedEnum<
1884
1877
  typeof CreatePaymentMethodResponse
1885
1878
  >;
1886
1879
 
1887
- export type CreatePaymentMetadataResponse = {};
1888
-
1889
1880
  /**
1890
1881
  * Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
1891
1882
  *
1892
1883
  * @remarks
1893
1884
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
1894
1885
  */
1895
- export type CreatePaymentMetadataResponseUnion =
1896
- | CreatePaymentMetadataResponse
1886
+ export type CreatePaymentMetadataResponse =
1897
1887
  | string
1888
+ | { [k: string]: any }
1898
1889
  | Array<string>;
1899
1890
 
1900
1891
  /**
@@ -2718,12 +2709,7 @@ export type CreatePaymentResponse = {
2718
2709
  * @remarks
2719
2710
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
2720
2711
  */
2721
- metadata?:
2722
- | CreatePaymentMetadataResponse
2723
- | string
2724
- | Array<string>
2725
- | null
2726
- | undefined;
2712
+ metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
2727
2713
  /**
2728
2714
  * 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#/)
2729
2715
  *
@@ -3780,17 +3766,19 @@ export const CreatePaymentMetadataRequest$inboundSchema: z.ZodType<
3780
3766
  CreatePaymentMetadataRequest,
3781
3767
  z.ZodTypeDef,
3782
3768
  unknown
3783
- > = z.object({});
3769
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
3784
3770
 
3785
3771
  /** @internal */
3786
- export type CreatePaymentMetadataRequest$Outbound = {};
3772
+ export type CreatePaymentMetadataRequest$Outbound = string | {
3773
+ [k: string]: any;
3774
+ } | Array<string>;
3787
3775
 
3788
3776
  /** @internal */
3789
3777
  export const CreatePaymentMetadataRequest$outboundSchema: z.ZodType<
3790
3778
  CreatePaymentMetadataRequest$Outbound,
3791
3779
  z.ZodTypeDef,
3792
3780
  CreatePaymentMetadataRequest
3793
- > = z.object({});
3781
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
3794
3782
 
3795
3783
  /**
3796
3784
  * @internal
@@ -3825,68 +3813,6 @@ export function createPaymentMetadataRequestFromJSON(
3825
3813
  );
3826
3814
  }
3827
3815
 
3828
- /** @internal */
3829
- export const CreatePaymentMetadataRequestUnion$inboundSchema: z.ZodType<
3830
- CreatePaymentMetadataRequestUnion,
3831
- z.ZodTypeDef,
3832
- unknown
3833
- > = z.union([
3834
- z.lazy(() => CreatePaymentMetadataRequest$inboundSchema),
3835
- z.string(),
3836
- z.array(z.string()),
3837
- ]);
3838
-
3839
- /** @internal */
3840
- export type CreatePaymentMetadataRequestUnion$Outbound =
3841
- | CreatePaymentMetadataRequest$Outbound
3842
- | string
3843
- | Array<string>;
3844
-
3845
- /** @internal */
3846
- export const CreatePaymentMetadataRequestUnion$outboundSchema: z.ZodType<
3847
- CreatePaymentMetadataRequestUnion$Outbound,
3848
- z.ZodTypeDef,
3849
- CreatePaymentMetadataRequestUnion
3850
- > = z.union([
3851
- z.lazy(() => CreatePaymentMetadataRequest$outboundSchema),
3852
- z.string(),
3853
- z.array(z.string()),
3854
- ]);
3855
-
3856
- /**
3857
- * @internal
3858
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3859
- */
3860
- export namespace CreatePaymentMetadataRequestUnion$ {
3861
- /** @deprecated use `CreatePaymentMetadataRequestUnion$inboundSchema` instead. */
3862
- export const inboundSchema = CreatePaymentMetadataRequestUnion$inboundSchema;
3863
- /** @deprecated use `CreatePaymentMetadataRequestUnion$outboundSchema` instead. */
3864
- export const outboundSchema =
3865
- CreatePaymentMetadataRequestUnion$outboundSchema;
3866
- /** @deprecated use `CreatePaymentMetadataRequestUnion$Outbound` instead. */
3867
- export type Outbound = CreatePaymentMetadataRequestUnion$Outbound;
3868
- }
3869
-
3870
- export function createPaymentMetadataRequestUnionToJSON(
3871
- createPaymentMetadataRequestUnion: CreatePaymentMetadataRequestUnion,
3872
- ): string {
3873
- return JSON.stringify(
3874
- CreatePaymentMetadataRequestUnion$outboundSchema.parse(
3875
- createPaymentMetadataRequestUnion,
3876
- ),
3877
- );
3878
- }
3879
-
3880
- export function createPaymentMetadataRequestUnionFromJSON(
3881
- jsonString: string,
3882
- ): SafeParseResult<CreatePaymentMetadataRequestUnion, SDKValidationError> {
3883
- return safeParse(
3884
- jsonString,
3885
- (x) => CreatePaymentMetadataRequestUnion$inboundSchema.parse(JSON.parse(x)),
3886
- `Failed to parse 'CreatePaymentMetadataRequestUnion' from JSON`,
3887
- );
3888
- }
3889
-
3890
3816
  /** @internal */
3891
3817
  export const CreatePaymentCaptureModeRequest$inboundSchema: z.ZodNativeEnum<
3892
3818
  typeof CreatePaymentCaptureModeRequest
@@ -4470,11 +4396,7 @@ export const CreatePaymentRequestBody$inboundSchema: z.ZodType<
4470
4396
  issuer: z.nullable(z.string()).optional(),
4471
4397
  restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
4472
4398
  metadata: z.nullable(
4473
- z.union([
4474
- z.lazy(() => CreatePaymentMetadataRequest$inboundSchema),
4475
- z.string(),
4476
- z.array(z.string()),
4477
- ]),
4399
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
4478
4400
  ).optional(),
4479
4401
  captureMode: z.nullable(CreatePaymentCaptureModeRequest$inboundSchema)
4480
4402
  .optional(),
@@ -4508,12 +4430,7 @@ export type CreatePaymentRequestBody$Outbound = {
4508
4430
  method?: string | null | undefined;
4509
4431
  issuer?: string | null | undefined;
4510
4432
  restrictPaymentMethodsToCountry?: string | null | undefined;
4511
- metadata?:
4512
- | CreatePaymentMetadataRequest$Outbound
4513
- | string
4514
- | Array<string>
4515
- | null
4516
- | undefined;
4433
+ metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
4517
4434
  captureMode?: string | null | undefined;
4518
4435
  captureDelay?: string | null | undefined;
4519
4436
  applicationFee?:
@@ -4554,11 +4471,7 @@ export const CreatePaymentRequestBody$outboundSchema: z.ZodType<
4554
4471
  issuer: z.nullable(z.string()).optional(),
4555
4472
  restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
4556
4473
  metadata: z.nullable(
4557
- z.union([
4558
- z.lazy(() => CreatePaymentMetadataRequest$outboundSchema),
4559
- z.string(),
4560
- z.array(z.string()),
4561
- ]),
4474
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
4562
4475
  ).optional(),
4563
4476
  captureMode: z.nullable(CreatePaymentCaptureModeRequest$outboundSchema)
4564
4477
  .optional(),
@@ -6081,17 +5994,19 @@ export const CreatePaymentMetadataResponse$inboundSchema: z.ZodType<
6081
5994
  CreatePaymentMetadataResponse,
6082
5995
  z.ZodTypeDef,
6083
5996
  unknown
6084
- > = z.object({});
5997
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
6085
5998
 
6086
5999
  /** @internal */
6087
- export type CreatePaymentMetadataResponse$Outbound = {};
6000
+ export type CreatePaymentMetadataResponse$Outbound = string | {
6001
+ [k: string]: any;
6002
+ } | Array<string>;
6088
6003
 
6089
6004
  /** @internal */
6090
6005
  export const CreatePaymentMetadataResponse$outboundSchema: z.ZodType<
6091
6006
  CreatePaymentMetadataResponse$Outbound,
6092
6007
  z.ZodTypeDef,
6093
6008
  CreatePaymentMetadataResponse
6094
- > = z.object({});
6009
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
6095
6010
 
6096
6011
  /**
6097
6012
  * @internal
@@ -6126,69 +6041,6 @@ export function createPaymentMetadataResponseFromJSON(
6126
6041
  );
6127
6042
  }
6128
6043
 
6129
- /** @internal */
6130
- export const CreatePaymentMetadataResponseUnion$inboundSchema: z.ZodType<
6131
- CreatePaymentMetadataResponseUnion,
6132
- z.ZodTypeDef,
6133
- unknown
6134
- > = z.union([
6135
- z.lazy(() => CreatePaymentMetadataResponse$inboundSchema),
6136
- z.string(),
6137
- z.array(z.string()),
6138
- ]);
6139
-
6140
- /** @internal */
6141
- export type CreatePaymentMetadataResponseUnion$Outbound =
6142
- | CreatePaymentMetadataResponse$Outbound
6143
- | string
6144
- | Array<string>;
6145
-
6146
- /** @internal */
6147
- export const CreatePaymentMetadataResponseUnion$outboundSchema: z.ZodType<
6148
- CreatePaymentMetadataResponseUnion$Outbound,
6149
- z.ZodTypeDef,
6150
- CreatePaymentMetadataResponseUnion
6151
- > = z.union([
6152
- z.lazy(() => CreatePaymentMetadataResponse$outboundSchema),
6153
- z.string(),
6154
- z.array(z.string()),
6155
- ]);
6156
-
6157
- /**
6158
- * @internal
6159
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6160
- */
6161
- export namespace CreatePaymentMetadataResponseUnion$ {
6162
- /** @deprecated use `CreatePaymentMetadataResponseUnion$inboundSchema` instead. */
6163
- export const inboundSchema = CreatePaymentMetadataResponseUnion$inboundSchema;
6164
- /** @deprecated use `CreatePaymentMetadataResponseUnion$outboundSchema` instead. */
6165
- export const outboundSchema =
6166
- CreatePaymentMetadataResponseUnion$outboundSchema;
6167
- /** @deprecated use `CreatePaymentMetadataResponseUnion$Outbound` instead. */
6168
- export type Outbound = CreatePaymentMetadataResponseUnion$Outbound;
6169
- }
6170
-
6171
- export function createPaymentMetadataResponseUnionToJSON(
6172
- createPaymentMetadataResponseUnion: CreatePaymentMetadataResponseUnion,
6173
- ): string {
6174
- return JSON.stringify(
6175
- CreatePaymentMetadataResponseUnion$outboundSchema.parse(
6176
- createPaymentMetadataResponseUnion,
6177
- ),
6178
- );
6179
- }
6180
-
6181
- export function createPaymentMetadataResponseUnionFromJSON(
6182
- jsonString: string,
6183
- ): SafeParseResult<CreatePaymentMetadataResponseUnion, SDKValidationError> {
6184
- return safeParse(
6185
- jsonString,
6186
- (x) =>
6187
- CreatePaymentMetadataResponseUnion$inboundSchema.parse(JSON.parse(x)),
6188
- `Failed to parse 'CreatePaymentMetadataResponseUnion' from JSON`,
6189
- );
6190
- }
6191
-
6192
6044
  /** @internal */
6193
6045
  export const CreatePaymentCaptureModeResponse$inboundSchema: z.ZodNativeEnum<
6194
6046
  typeof CreatePaymentCaptureModeResponse
@@ -7871,11 +7723,7 @@ export const CreatePaymentResponse$inboundSchema: z.ZodType<
7871
7723
  method: z.nullable(CreatePaymentMethodResponse$inboundSchema).optional(),
7872
7724
  restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
7873
7725
  metadata: z.nullable(
7874
- z.union([
7875
- z.lazy(() => CreatePaymentMetadataResponse$inboundSchema),
7876
- z.string(),
7877
- z.array(z.string()),
7878
- ]),
7726
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
7879
7727
  ).optional(),
7880
7728
  captureMode: z.nullable(CreatePaymentCaptureModeResponse$inboundSchema)
7881
7729
  .optional(),
@@ -7936,12 +7784,7 @@ export type CreatePaymentResponse$Outbound = {
7936
7784
  countryCode?: string | null | undefined;
7937
7785
  method?: string | null | undefined;
7938
7786
  restrictPaymentMethodsToCountry?: string | null | undefined;
7939
- metadata?:
7940
- | CreatePaymentMetadataResponse$Outbound
7941
- | string
7942
- | Array<string>
7943
- | null
7944
- | undefined;
7787
+ metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
7945
7788
  captureMode?: string | null | undefined;
7946
7789
  captureDelay?: string | null | undefined;
7947
7790
  captureBefore?: string | null | undefined;
@@ -8009,11 +7852,7 @@ export const CreatePaymentResponse$outboundSchema: z.ZodType<
8009
7852
  method: z.nullable(CreatePaymentMethodResponse$outboundSchema).optional(),
8010
7853
  restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
8011
7854
  metadata: z.nullable(
8012
- z.union([
8013
- z.lazy(() => CreatePaymentMetadataResponse$outboundSchema),
8014
- z.string(),
8015
- z.array(z.string()),
8016
- ]),
7855
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
8017
7856
  ).optional(),
8018
7857
  captureMode: z.nullable(CreatePaymentCaptureModeResponse$outboundSchema)
8019
7858
  .optional(),
@@ -660,6 +660,16 @@ export type CreatePaymentLinkRequest = {
660
660
  * the payment is made.
661
661
  */
662
662
  customerId?: string | null | undefined;
663
+ /**
664
+ * Whether to create the entity in test mode or live mode.
665
+ *
666
+ * @remarks
667
+ *
668
+ * Most API credentials are specifically created for either live mode or test mode, in which case this parameter can be
669
+ * omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by setting
670
+ * `testmode` to `true`.
671
+ */
672
+ testmode?: boolean | null | undefined;
663
673
  };
664
674
 
665
675
  /**
@@ -2326,6 +2336,7 @@ export const CreatePaymentLinkRequest$inboundSchema: z.ZodType<
2326
2336
  sequenceType: z.nullable(CreatePaymentLinkSequenceTypeRequest$inboundSchema)
2327
2337
  .optional(),
2328
2338
  customerId: z.nullable(z.string()).optional(),
2339
+ testmode: z.nullable(z.boolean()).optional(),
2329
2340
  });
2330
2341
 
2331
2342
  /** @internal */
@@ -2350,6 +2361,7 @@ export type CreatePaymentLinkRequest$Outbound = {
2350
2361
  applicationFee?: CreatePaymentLinkApplicationFeeRequest$Outbound | undefined;
2351
2362
  sequenceType?: string | null | undefined;
2352
2363
  customerId?: string | null | undefined;
2364
+ testmode?: boolean | null | undefined;
2353
2365
  };
2354
2366
 
2355
2367
  /** @internal */
@@ -2386,6 +2398,7 @@ export const CreatePaymentLinkRequest$outboundSchema: z.ZodType<
2386
2398
  sequenceType: z.nullable(CreatePaymentLinkSequenceTypeRequest$outboundSchema)
2387
2399
  .optional(),
2388
2400
  customerId: z.nullable(z.string()).optional(),
2401
+ testmode: z.nullable(z.boolean()).optional(),
2389
2402
  });
2390
2403
 
2391
2404
  /**
@@ -26,17 +26,15 @@ export type CreateRefundAmountRequest = {
26
26
  value: string;
27
27
  };
28
28
 
29
- export type CreateRefundMetadataRequest = {};
30
-
31
29
  /**
32
30
  * Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
33
31
  *
34
32
  * @remarks
35
33
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
36
34
  */
37
- export type CreateRefundMetadataRequestUnion =
38
- | CreateRefundMetadataRequest
35
+ export type CreateRefundMetadataRequest =
39
36
  | string
37
+ | { [k: string]: any }
40
38
  | Array<string>;
41
39
 
42
40
  /**
@@ -134,12 +132,7 @@ export type CreateRefundRequestBody = {
134
132
  * @remarks
135
133
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
136
134
  */
137
- metadata?:
138
- | CreateRefundMetadataRequest
139
- | string
140
- | Array<string>
141
- | null
142
- | undefined;
135
+ metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
143
136
  externalReference?: ExternalReferenceRequest | undefined;
144
137
  /**
145
138
  * *This feature is only available to marketplace operators.*
@@ -292,17 +285,15 @@ export type CreateRefundSettlementAmount = {
292
285
  value: string;
293
286
  };
294
287
 
295
- export type CreateRefundMetadataResponse = {};
296
-
297
288
  /**
298
289
  * Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
299
290
  *
300
291
  * @remarks
301
292
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
302
293
  */
303
- export type CreateRefundMetadataResponseUnion =
304
- | CreateRefundMetadataResponse
294
+ export type CreateRefundMetadataResponse =
305
295
  | string
296
+ | { [k: string]: any }
306
297
  | Array<string>;
307
298
 
308
299
  /**
@@ -521,12 +512,7 @@ export type CreateRefundResponse = {
521
512
  * @remarks
522
513
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
523
514
  */
524
- metadata?:
525
- | CreateRefundMetadataResponse
526
- | string
527
- | Array<string>
528
- | null
529
- | undefined;
515
+ metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
530
516
  /**
531
517
  * The unique identifier of the payment this refund was created for.
532
518
  *
@@ -631,17 +617,20 @@ export const CreateRefundMetadataRequest$inboundSchema: z.ZodType<
631
617
  CreateRefundMetadataRequest,
632
618
  z.ZodTypeDef,
633
619
  unknown
634
- > = z.object({});
620
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
635
621
 
636
622
  /** @internal */
637
- export type CreateRefundMetadataRequest$Outbound = {};
623
+ export type CreateRefundMetadataRequest$Outbound =
624
+ | string
625
+ | { [k: string]: any }
626
+ | Array<string>;
638
627
 
639
628
  /** @internal */
640
629
  export const CreateRefundMetadataRequest$outboundSchema: z.ZodType<
641
630
  CreateRefundMetadataRequest$Outbound,
642
631
  z.ZodTypeDef,
643
632
  CreateRefundMetadataRequest
644
- > = z.object({});
633
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
645
634
 
646
635
  /**
647
636
  * @internal
@@ -676,67 +665,6 @@ export function createRefundMetadataRequestFromJSON(
676
665
  );
677
666
  }
678
667
 
679
- /** @internal */
680
- export const CreateRefundMetadataRequestUnion$inboundSchema: z.ZodType<
681
- CreateRefundMetadataRequestUnion,
682
- z.ZodTypeDef,
683
- unknown
684
- > = z.union([
685
- z.lazy(() => CreateRefundMetadataRequest$inboundSchema),
686
- z.string(),
687
- z.array(z.string()),
688
- ]);
689
-
690
- /** @internal */
691
- export type CreateRefundMetadataRequestUnion$Outbound =
692
- | CreateRefundMetadataRequest$Outbound
693
- | string
694
- | Array<string>;
695
-
696
- /** @internal */
697
- export const CreateRefundMetadataRequestUnion$outboundSchema: z.ZodType<
698
- CreateRefundMetadataRequestUnion$Outbound,
699
- z.ZodTypeDef,
700
- CreateRefundMetadataRequestUnion
701
- > = z.union([
702
- z.lazy(() => CreateRefundMetadataRequest$outboundSchema),
703
- z.string(),
704
- z.array(z.string()),
705
- ]);
706
-
707
- /**
708
- * @internal
709
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
710
- */
711
- export namespace CreateRefundMetadataRequestUnion$ {
712
- /** @deprecated use `CreateRefundMetadataRequestUnion$inboundSchema` instead. */
713
- export const inboundSchema = CreateRefundMetadataRequestUnion$inboundSchema;
714
- /** @deprecated use `CreateRefundMetadataRequestUnion$outboundSchema` instead. */
715
- export const outboundSchema = CreateRefundMetadataRequestUnion$outboundSchema;
716
- /** @deprecated use `CreateRefundMetadataRequestUnion$Outbound` instead. */
717
- export type Outbound = CreateRefundMetadataRequestUnion$Outbound;
718
- }
719
-
720
- export function createRefundMetadataRequestUnionToJSON(
721
- createRefundMetadataRequestUnion: CreateRefundMetadataRequestUnion,
722
- ): string {
723
- return JSON.stringify(
724
- CreateRefundMetadataRequestUnion$outboundSchema.parse(
725
- createRefundMetadataRequestUnion,
726
- ),
727
- );
728
- }
729
-
730
- export function createRefundMetadataRequestUnionFromJSON(
731
- jsonString: string,
732
- ): SafeParseResult<CreateRefundMetadataRequestUnion, SDKValidationError> {
733
- return safeParse(
734
- jsonString,
735
- (x) => CreateRefundMetadataRequestUnion$inboundSchema.parse(JSON.parse(x)),
736
- `Failed to parse 'CreateRefundMetadataRequestUnion' from JSON`,
737
- );
738
- }
739
-
740
668
  /** @internal */
741
669
  export const TypeAcquirerReferenceRequest$inboundSchema: z.ZodNativeEnum<
742
670
  typeof TypeAcquirerReferenceRequest
@@ -1018,11 +946,7 @@ export const CreateRefundRequestBody$inboundSchema: z.ZodType<
1018
946
  description: z.string().optional(),
1019
947
  amount: z.lazy(() => CreateRefundAmountRequest$inboundSchema),
1020
948
  metadata: z.nullable(
1021
- z.union([
1022
- z.lazy(() => CreateRefundMetadataRequest$inboundSchema),
1023
- z.string(),
1024
- z.array(z.string()),
1025
- ]),
949
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
1026
950
  ).optional(),
1027
951
  externalReference: z.lazy(() => ExternalReferenceRequest$inboundSchema)
1028
952
  .optional(),
@@ -1037,12 +961,7 @@ export const CreateRefundRequestBody$inboundSchema: z.ZodType<
1037
961
  export type CreateRefundRequestBody$Outbound = {
1038
962
  description?: string | undefined;
1039
963
  amount: CreateRefundAmountRequest$Outbound;
1040
- metadata?:
1041
- | CreateRefundMetadataRequest$Outbound
1042
- | string
1043
- | Array<string>
1044
- | null
1045
- | undefined;
964
+ metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
1046
965
  externalReference?: ExternalReferenceRequest$Outbound | undefined;
1047
966
  reverseRouting?: boolean | null | undefined;
1048
967
  routingReversals?: Array<RoutingReversalRequest$Outbound> | null | undefined;
@@ -1058,11 +977,7 @@ export const CreateRefundRequestBody$outboundSchema: z.ZodType<
1058
977
  description: z.string().optional(),
1059
978
  amount: z.lazy(() => CreateRefundAmountRequest$outboundSchema),
1060
979
  metadata: z.nullable(
1061
- z.union([
1062
- z.lazy(() => CreateRefundMetadataRequest$outboundSchema),
1063
- z.string(),
1064
- z.array(z.string()),
1065
- ]),
980
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
1066
981
  ).optional(),
1067
982
  externalReference: z.lazy(() => ExternalReferenceRequest$outboundSchema)
1068
983
  .optional(),
@@ -1665,17 +1580,19 @@ export const CreateRefundMetadataResponse$inboundSchema: z.ZodType<
1665
1580
  CreateRefundMetadataResponse,
1666
1581
  z.ZodTypeDef,
1667
1582
  unknown
1668
- > = z.object({});
1583
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
1669
1584
 
1670
1585
  /** @internal */
1671
- export type CreateRefundMetadataResponse$Outbound = {};
1586
+ export type CreateRefundMetadataResponse$Outbound = string | {
1587
+ [k: string]: any;
1588
+ } | Array<string>;
1672
1589
 
1673
1590
  /** @internal */
1674
1591
  export const CreateRefundMetadataResponse$outboundSchema: z.ZodType<
1675
1592
  CreateRefundMetadataResponse$Outbound,
1676
1593
  z.ZodTypeDef,
1677
1594
  CreateRefundMetadataResponse
1678
- > = z.object({});
1595
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
1679
1596
 
1680
1597
  /**
1681
1598
  * @internal
@@ -1710,68 +1627,6 @@ export function createRefundMetadataResponseFromJSON(
1710
1627
  );
1711
1628
  }
1712
1629
 
1713
- /** @internal */
1714
- export const CreateRefundMetadataResponseUnion$inboundSchema: z.ZodType<
1715
- CreateRefundMetadataResponseUnion,
1716
- z.ZodTypeDef,
1717
- unknown
1718
- > = z.union([
1719
- z.lazy(() => CreateRefundMetadataResponse$inboundSchema),
1720
- z.string(),
1721
- z.array(z.string()),
1722
- ]);
1723
-
1724
- /** @internal */
1725
- export type CreateRefundMetadataResponseUnion$Outbound =
1726
- | CreateRefundMetadataResponse$Outbound
1727
- | string
1728
- | Array<string>;
1729
-
1730
- /** @internal */
1731
- export const CreateRefundMetadataResponseUnion$outboundSchema: z.ZodType<
1732
- CreateRefundMetadataResponseUnion$Outbound,
1733
- z.ZodTypeDef,
1734
- CreateRefundMetadataResponseUnion
1735
- > = z.union([
1736
- z.lazy(() => CreateRefundMetadataResponse$outboundSchema),
1737
- z.string(),
1738
- z.array(z.string()),
1739
- ]);
1740
-
1741
- /**
1742
- * @internal
1743
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1744
- */
1745
- export namespace CreateRefundMetadataResponseUnion$ {
1746
- /** @deprecated use `CreateRefundMetadataResponseUnion$inboundSchema` instead. */
1747
- export const inboundSchema = CreateRefundMetadataResponseUnion$inboundSchema;
1748
- /** @deprecated use `CreateRefundMetadataResponseUnion$outboundSchema` instead. */
1749
- export const outboundSchema =
1750
- CreateRefundMetadataResponseUnion$outboundSchema;
1751
- /** @deprecated use `CreateRefundMetadataResponseUnion$Outbound` instead. */
1752
- export type Outbound = CreateRefundMetadataResponseUnion$Outbound;
1753
- }
1754
-
1755
- export function createRefundMetadataResponseUnionToJSON(
1756
- createRefundMetadataResponseUnion: CreateRefundMetadataResponseUnion,
1757
- ): string {
1758
- return JSON.stringify(
1759
- CreateRefundMetadataResponseUnion$outboundSchema.parse(
1760
- createRefundMetadataResponseUnion,
1761
- ),
1762
- );
1763
- }
1764
-
1765
- export function createRefundMetadataResponseUnionFromJSON(
1766
- jsonString: string,
1767
- ): SafeParseResult<CreateRefundMetadataResponseUnion, SDKValidationError> {
1768
- return safeParse(
1769
- jsonString,
1770
- (x) => CreateRefundMetadataResponseUnion$inboundSchema.parse(JSON.parse(x)),
1771
- `Failed to parse 'CreateRefundMetadataResponseUnion' from JSON`,
1772
- );
1773
- }
1774
-
1775
1630
  /** @internal */
1776
1631
  export const CreateRefundStatus$inboundSchema: z.ZodNativeEnum<
1777
1632
  typeof CreateRefundStatus
@@ -2371,11 +2226,7 @@ export const CreateRefundResponse$inboundSchema: z.ZodType<
2371
2226
  z.lazy(() => CreateRefundSettlementAmount$inboundSchema),
2372
2227
  ).optional(),
2373
2228
  metadata: z.nullable(
2374
- z.union([
2375
- z.lazy(() => CreateRefundMetadataResponse$inboundSchema),
2376
- z.string(),
2377
- z.array(z.string()),
2378
- ]),
2229
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
2379
2230
  ).optional(),
2380
2231
  paymentId: z.string().optional(),
2381
2232
  settlementId: z.nullable(z.string()).optional(),
@@ -2402,12 +2253,7 @@ export type CreateRefundResponse$Outbound = {
2402
2253
  description?: string | undefined;
2403
2254
  amount?: CreateRefundAmountResponse$Outbound | undefined;
2404
2255
  settlementAmount?: CreateRefundSettlementAmount$Outbound | null | undefined;
2405
- metadata?:
2406
- | CreateRefundMetadataResponse$Outbound
2407
- | string
2408
- | Array<string>
2409
- | null
2410
- | undefined;
2256
+ metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
2411
2257
  paymentId?: string | undefined;
2412
2258
  settlementId?: string | null | undefined;
2413
2259
  status?: string | undefined;
@@ -2437,11 +2283,7 @@ export const CreateRefundResponse$outboundSchema: z.ZodType<
2437
2283
  z.lazy(() => CreateRefundSettlementAmount$outboundSchema),
2438
2284
  ).optional(),
2439
2285
  metadata: z.nullable(
2440
- z.union([
2441
- z.lazy(() => CreateRefundMetadataResponse$outboundSchema),
2442
- z.string(),
2443
- z.array(z.string()),
2444
- ]),
2286
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
2445
2287
  ).optional(),
2446
2288
  paymentId: z.string().optional(),
2447
2289
  settlementId: z.nullable(z.string()).optional(),