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
@@ -896,7 +896,7 @@ export type EntityLinks1 = {
896
896
  paymentLink: GetWebhookEventLinksPaymentLink;
897
897
  };
898
898
 
899
- export type GetWebhookEventPaymentLink = {
899
+ export type GetWebhookEventPaymentLinkOutput = {
900
900
  /**
901
901
  * Indicates the response contains a payment link object. Will always contain the string `payment-link` for this
902
902
  *
@@ -1073,13 +1073,16 @@ export type GetWebhookEventPaymentLink = {
1073
1073
  links: EntityLinks1;
1074
1074
  };
1075
1075
 
1076
- export type Entity = GetWebhookEventPaymentLink | GetWebhookEventProfile;
1076
+ export type Entity = GetWebhookEventPaymentLinkOutput | GetWebhookEventProfile;
1077
1077
 
1078
1078
  /**
1079
1079
  * Full payload of the event.
1080
1080
  */
1081
1081
  export type GetWebhookEventEmbedded = {
1082
- entity?: GetWebhookEventPaymentLink | GetWebhookEventProfile | undefined;
1082
+ entity?:
1083
+ | GetWebhookEventPaymentLinkOutput
1084
+ | GetWebhookEventProfile
1085
+ | undefined;
1083
1086
  };
1084
1087
 
1085
1088
  /**
@@ -3092,8 +3095,8 @@ export function entityLinks1FromJSON(
3092
3095
  }
3093
3096
 
3094
3097
  /** @internal */
3095
- export const GetWebhookEventPaymentLink$inboundSchema: z.ZodType<
3096
- GetWebhookEventPaymentLink,
3098
+ export const GetWebhookEventPaymentLinkOutput$inboundSchema: z.ZodType<
3099
+ GetWebhookEventPaymentLinkOutput,
3097
3100
  z.ZodTypeDef,
3098
3101
  unknown
3099
3102
  > = z.object({
@@ -3133,7 +3136,7 @@ export const GetWebhookEventPaymentLink$inboundSchema: z.ZodType<
3133
3136
  });
3134
3137
 
3135
3138
  /** @internal */
3136
- export type GetWebhookEventPaymentLink$Outbound = {
3139
+ export type GetWebhookEventPaymentLinkOutput$Outbound = {
3137
3140
  resource: string;
3138
3141
  id: string;
3139
3142
  mode: string;
@@ -3159,10 +3162,10 @@ export type GetWebhookEventPaymentLink$Outbound = {
3159
3162
  };
3160
3163
 
3161
3164
  /** @internal */
3162
- export const GetWebhookEventPaymentLink$outboundSchema: z.ZodType<
3163
- GetWebhookEventPaymentLink$Outbound,
3165
+ export const GetWebhookEventPaymentLinkOutput$outboundSchema: z.ZodType<
3166
+ GetWebhookEventPaymentLinkOutput$Outbound,
3164
3167
  z.ZodTypeDef,
3165
- GetWebhookEventPaymentLink
3168
+ GetWebhookEventPaymentLinkOutput
3166
3169
  > = z.object({
3167
3170
  resource: z.string(),
3168
3171
  id: z.string(),
@@ -3203,43 +3206,45 @@ export const GetWebhookEventPaymentLink$outboundSchema: z.ZodType<
3203
3206
  * @internal
3204
3207
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3205
3208
  */
3206
- export namespace GetWebhookEventPaymentLink$ {
3207
- /** @deprecated use `GetWebhookEventPaymentLink$inboundSchema` instead. */
3208
- export const inboundSchema = GetWebhookEventPaymentLink$inboundSchema;
3209
- /** @deprecated use `GetWebhookEventPaymentLink$outboundSchema` instead. */
3210
- export const outboundSchema = GetWebhookEventPaymentLink$outboundSchema;
3211
- /** @deprecated use `GetWebhookEventPaymentLink$Outbound` instead. */
3212
- export type Outbound = GetWebhookEventPaymentLink$Outbound;
3209
+ export namespace GetWebhookEventPaymentLinkOutput$ {
3210
+ /** @deprecated use `GetWebhookEventPaymentLinkOutput$inboundSchema` instead. */
3211
+ export const inboundSchema = GetWebhookEventPaymentLinkOutput$inboundSchema;
3212
+ /** @deprecated use `GetWebhookEventPaymentLinkOutput$outboundSchema` instead. */
3213
+ export const outboundSchema = GetWebhookEventPaymentLinkOutput$outboundSchema;
3214
+ /** @deprecated use `GetWebhookEventPaymentLinkOutput$Outbound` instead. */
3215
+ export type Outbound = GetWebhookEventPaymentLinkOutput$Outbound;
3213
3216
  }
3214
3217
 
3215
- export function getWebhookEventPaymentLinkToJSON(
3216
- getWebhookEventPaymentLink: GetWebhookEventPaymentLink,
3218
+ export function getWebhookEventPaymentLinkOutputToJSON(
3219
+ getWebhookEventPaymentLinkOutput: GetWebhookEventPaymentLinkOutput,
3217
3220
  ): string {
3218
3221
  return JSON.stringify(
3219
- GetWebhookEventPaymentLink$outboundSchema.parse(getWebhookEventPaymentLink),
3222
+ GetWebhookEventPaymentLinkOutput$outboundSchema.parse(
3223
+ getWebhookEventPaymentLinkOutput,
3224
+ ),
3220
3225
  );
3221
3226
  }
3222
3227
 
3223
- export function getWebhookEventPaymentLinkFromJSON(
3228
+ export function getWebhookEventPaymentLinkOutputFromJSON(
3224
3229
  jsonString: string,
3225
- ): SafeParseResult<GetWebhookEventPaymentLink, SDKValidationError> {
3230
+ ): SafeParseResult<GetWebhookEventPaymentLinkOutput, SDKValidationError> {
3226
3231
  return safeParse(
3227
3232
  jsonString,
3228
- (x) => GetWebhookEventPaymentLink$inboundSchema.parse(JSON.parse(x)),
3229
- `Failed to parse 'GetWebhookEventPaymentLink' from JSON`,
3233
+ (x) => GetWebhookEventPaymentLinkOutput$inboundSchema.parse(JSON.parse(x)),
3234
+ `Failed to parse 'GetWebhookEventPaymentLinkOutput' from JSON`,
3230
3235
  );
3231
3236
  }
3232
3237
 
3233
3238
  /** @internal */
3234
3239
  export const Entity$inboundSchema: z.ZodType<Entity, z.ZodTypeDef, unknown> = z
3235
3240
  .union([
3236
- z.lazy(() => GetWebhookEventPaymentLink$inboundSchema),
3241
+ z.lazy(() => GetWebhookEventPaymentLinkOutput$inboundSchema),
3237
3242
  z.lazy(() => GetWebhookEventProfile$inboundSchema),
3238
3243
  ]);
3239
3244
 
3240
3245
  /** @internal */
3241
3246
  export type Entity$Outbound =
3242
- | GetWebhookEventPaymentLink$Outbound
3247
+ | GetWebhookEventPaymentLinkOutput$Outbound
3243
3248
  | GetWebhookEventProfile$Outbound;
3244
3249
 
3245
3250
  /** @internal */
@@ -3248,7 +3253,7 @@ export const Entity$outboundSchema: z.ZodType<
3248
3253
  z.ZodTypeDef,
3249
3254
  Entity
3250
3255
  > = z.union([
3251
- z.lazy(() => GetWebhookEventPaymentLink$outboundSchema),
3256
+ z.lazy(() => GetWebhookEventPaymentLinkOutput$outboundSchema),
3252
3257
  z.lazy(() => GetWebhookEventProfile$outboundSchema),
3253
3258
  ]);
3254
3259
 
@@ -3286,7 +3291,7 @@ export const GetWebhookEventEmbedded$inboundSchema: z.ZodType<
3286
3291
  unknown
3287
3292
  > = z.object({
3288
3293
  entity: z.union([
3289
- z.lazy(() => GetWebhookEventPaymentLink$inboundSchema),
3294
+ z.lazy(() => GetWebhookEventPaymentLinkOutput$inboundSchema),
3290
3295
  z.lazy(() => GetWebhookEventProfile$inboundSchema),
3291
3296
  ]).optional(),
3292
3297
  });
@@ -3294,7 +3299,7 @@ export const GetWebhookEventEmbedded$inboundSchema: z.ZodType<
3294
3299
  /** @internal */
3295
3300
  export type GetWebhookEventEmbedded$Outbound = {
3296
3301
  entity?:
3297
- | GetWebhookEventPaymentLink$Outbound
3302
+ | GetWebhookEventPaymentLinkOutput$Outbound
3298
3303
  | GetWebhookEventProfile$Outbound
3299
3304
  | undefined;
3300
3305
  };
@@ -3306,7 +3311,7 @@ export const GetWebhookEventEmbedded$outboundSchema: z.ZodType<
3306
3311
  GetWebhookEventEmbedded
3307
3312
  > = z.object({
3308
3313
  entity: z.union([
3309
- z.lazy(() => GetWebhookEventPaymentLink$outboundSchema),
3314
+ z.lazy(() => GetWebhookEventPaymentLinkOutput$outboundSchema),
3310
3315
  z.lazy(() => GetWebhookEventProfile$outboundSchema),
3311
3316
  ]).optional(),
3312
3317
  });
@@ -164,17 +164,15 @@ export type ListAllRefundsSettlementAmount = {
164
164
  value: string;
165
165
  };
166
166
 
167
- export type ListAllRefundsMetadata = {};
168
-
169
167
  /**
170
168
  * Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
171
169
  *
172
170
  * @remarks
173
171
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
174
172
  */
175
- export type ListAllRefundsMetadataUnion =
176
- | ListAllRefundsMetadata
173
+ export type ListAllRefundsMetadata =
177
174
  | string
175
+ | { [k: string]: any }
178
176
  | Array<string>;
179
177
 
180
178
  /**
@@ -388,7 +386,7 @@ export type ListAllRefundsRefund = {
388
386
  * @remarks
389
387
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
390
388
  */
391
- metadata?: ListAllRefundsMetadata | string | Array<string> | null | undefined;
389
+ metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
392
390
  /**
393
391
  * The unique identifier of the payment this refund was created for.
394
392
  *
@@ -909,17 +907,20 @@ export const ListAllRefundsMetadata$inboundSchema: z.ZodType<
909
907
  ListAllRefundsMetadata,
910
908
  z.ZodTypeDef,
911
909
  unknown
912
- > = z.object({});
910
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
913
911
 
914
912
  /** @internal */
915
- export type ListAllRefundsMetadata$Outbound = {};
913
+ export type ListAllRefundsMetadata$Outbound =
914
+ | string
915
+ | { [k: string]: any }
916
+ | Array<string>;
916
917
 
917
918
  /** @internal */
918
919
  export const ListAllRefundsMetadata$outboundSchema: z.ZodType<
919
920
  ListAllRefundsMetadata$Outbound,
920
921
  z.ZodTypeDef,
921
922
  ListAllRefundsMetadata
922
- > = z.object({});
923
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
923
924
 
924
925
  /**
925
926
  * @internal
@@ -952,67 +953,6 @@ export function listAllRefundsMetadataFromJSON(
952
953
  );
953
954
  }
954
955
 
955
- /** @internal */
956
- export const ListAllRefundsMetadataUnion$inboundSchema: z.ZodType<
957
- ListAllRefundsMetadataUnion,
958
- z.ZodTypeDef,
959
- unknown
960
- > = z.union([
961
- z.lazy(() => ListAllRefundsMetadata$inboundSchema),
962
- z.string(),
963
- z.array(z.string()),
964
- ]);
965
-
966
- /** @internal */
967
- export type ListAllRefundsMetadataUnion$Outbound =
968
- | ListAllRefundsMetadata$Outbound
969
- | string
970
- | Array<string>;
971
-
972
- /** @internal */
973
- export const ListAllRefundsMetadataUnion$outboundSchema: z.ZodType<
974
- ListAllRefundsMetadataUnion$Outbound,
975
- z.ZodTypeDef,
976
- ListAllRefundsMetadataUnion
977
- > = z.union([
978
- z.lazy(() => ListAllRefundsMetadata$outboundSchema),
979
- z.string(),
980
- z.array(z.string()),
981
- ]);
982
-
983
- /**
984
- * @internal
985
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
986
- */
987
- export namespace ListAllRefundsMetadataUnion$ {
988
- /** @deprecated use `ListAllRefundsMetadataUnion$inboundSchema` instead. */
989
- export const inboundSchema = ListAllRefundsMetadataUnion$inboundSchema;
990
- /** @deprecated use `ListAllRefundsMetadataUnion$outboundSchema` instead. */
991
- export const outboundSchema = ListAllRefundsMetadataUnion$outboundSchema;
992
- /** @deprecated use `ListAllRefundsMetadataUnion$Outbound` instead. */
993
- export type Outbound = ListAllRefundsMetadataUnion$Outbound;
994
- }
995
-
996
- export function listAllRefundsMetadataUnionToJSON(
997
- listAllRefundsMetadataUnion: ListAllRefundsMetadataUnion,
998
- ): string {
999
- return JSON.stringify(
1000
- ListAllRefundsMetadataUnion$outboundSchema.parse(
1001
- listAllRefundsMetadataUnion,
1002
- ),
1003
- );
1004
- }
1005
-
1006
- export function listAllRefundsMetadataUnionFromJSON(
1007
- jsonString: string,
1008
- ): SafeParseResult<ListAllRefundsMetadataUnion, SDKValidationError> {
1009
- return safeParse(
1010
- jsonString,
1011
- (x) => ListAllRefundsMetadataUnion$inboundSchema.parse(JSON.parse(x)),
1012
- `Failed to parse 'ListAllRefundsMetadataUnion' from JSON`,
1013
- );
1014
- }
1015
-
1016
956
  /** @internal */
1017
957
  export const ListAllRefundsStatus$inboundSchema: z.ZodNativeEnum<
1018
958
  typeof ListAllRefundsStatus
@@ -1602,11 +1542,7 @@ export const ListAllRefundsRefund$inboundSchema: z.ZodType<
1602
1542
  z.lazy(() => ListAllRefundsSettlementAmount$inboundSchema),
1603
1543
  ).optional(),
1604
1544
  metadata: z.nullable(
1605
- z.union([
1606
- z.lazy(() => ListAllRefundsMetadata$inboundSchema),
1607
- z.string(),
1608
- z.array(z.string()),
1609
- ]),
1545
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
1610
1546
  ).optional(),
1611
1547
  paymentId: z.string().optional(),
1612
1548
  settlementId: z.nullable(z.string()).optional(),
@@ -1632,12 +1568,7 @@ export type ListAllRefundsRefund$Outbound = {
1632
1568
  description?: string | undefined;
1633
1569
  amount?: ListAllRefundsAmount$Outbound | undefined;
1634
1570
  settlementAmount?: ListAllRefundsSettlementAmount$Outbound | null | undefined;
1635
- metadata?:
1636
- | ListAllRefundsMetadata$Outbound
1637
- | string
1638
- | Array<string>
1639
- | null
1640
- | undefined;
1571
+ metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
1641
1572
  paymentId?: string | undefined;
1642
1573
  settlementId?: string | null | undefined;
1643
1574
  status?: string | undefined;
@@ -1665,11 +1596,7 @@ export const ListAllRefundsRefund$outboundSchema: z.ZodType<
1665
1596
  z.lazy(() => ListAllRefundsSettlementAmount$outboundSchema),
1666
1597
  ).optional(),
1667
1598
  metadata: z.nullable(
1668
- z.union([
1669
- z.lazy(() => ListAllRefundsMetadata$outboundSchema),
1670
- z.string(),
1671
- z.array(z.string()),
1672
- ]),
1599
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
1673
1600
  ).optional(),
1674
1601
  paymentId: z.string().optional(),
1675
1602
  settlementId: z.nullable(z.string()).optional(),
@@ -199,8 +199,6 @@ export type ListAllSubscriptionsApplicationFee = {
199
199
  description: string;
200
200
  };
201
201
 
202
- export type ListAllSubscriptionsMetadata = {};
203
-
204
202
  /**
205
203
  * Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity.
206
204
  *
@@ -210,9 +208,9 @@ export type ListAllSubscriptionsMetadata = {};
210
208
  *
211
209
  * Any metadata added to the subscription will be automatically forwarded to the payments generated for it.
212
210
  */
213
- export type ListAllSubscriptionsMetadataUnion =
214
- | ListAllSubscriptionsMetadata
211
+ export type ListAllSubscriptionsMetadata =
215
212
  | string
213
+ | { [k: string]: any }
216
214
  | Array<string>;
217
215
 
218
216
  /**
@@ -431,7 +429,7 @@ export type ListAllSubscriptionsSubscription = {
431
429
  *
432
430
  * Any metadata added to the subscription will be automatically forwarded to the payments generated for it.
433
431
  */
434
- metadata: ListAllSubscriptionsMetadata | string | Array<string> | null;
432
+ metadata: string | { [k: string]: any } | Array<string> | null;
435
433
  /**
436
434
  * We will call this URL for any payment status changes of payments resulting from this subscription.
437
435
  *
@@ -1175,17 +1173,19 @@ export const ListAllSubscriptionsMetadata$inboundSchema: z.ZodType<
1175
1173
  ListAllSubscriptionsMetadata,
1176
1174
  z.ZodTypeDef,
1177
1175
  unknown
1178
- > = z.object({});
1176
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
1179
1177
 
1180
1178
  /** @internal */
1181
- export type ListAllSubscriptionsMetadata$Outbound = {};
1179
+ export type ListAllSubscriptionsMetadata$Outbound = string | {
1180
+ [k: string]: any;
1181
+ } | Array<string>;
1182
1182
 
1183
1183
  /** @internal */
1184
1184
  export const ListAllSubscriptionsMetadata$outboundSchema: z.ZodType<
1185
1185
  ListAllSubscriptionsMetadata$Outbound,
1186
1186
  z.ZodTypeDef,
1187
1187
  ListAllSubscriptionsMetadata
1188
- > = z.object({});
1188
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
1189
1189
 
1190
1190
  /**
1191
1191
  * @internal
@@ -1220,68 +1220,6 @@ export function listAllSubscriptionsMetadataFromJSON(
1220
1220
  );
1221
1221
  }
1222
1222
 
1223
- /** @internal */
1224
- export const ListAllSubscriptionsMetadataUnion$inboundSchema: z.ZodType<
1225
- ListAllSubscriptionsMetadataUnion,
1226
- z.ZodTypeDef,
1227
- unknown
1228
- > = z.union([
1229
- z.lazy(() => ListAllSubscriptionsMetadata$inboundSchema),
1230
- z.string(),
1231
- z.array(z.string()),
1232
- ]);
1233
-
1234
- /** @internal */
1235
- export type ListAllSubscriptionsMetadataUnion$Outbound =
1236
- | ListAllSubscriptionsMetadata$Outbound
1237
- | string
1238
- | Array<string>;
1239
-
1240
- /** @internal */
1241
- export const ListAllSubscriptionsMetadataUnion$outboundSchema: z.ZodType<
1242
- ListAllSubscriptionsMetadataUnion$Outbound,
1243
- z.ZodTypeDef,
1244
- ListAllSubscriptionsMetadataUnion
1245
- > = z.union([
1246
- z.lazy(() => ListAllSubscriptionsMetadata$outboundSchema),
1247
- z.string(),
1248
- z.array(z.string()),
1249
- ]);
1250
-
1251
- /**
1252
- * @internal
1253
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1254
- */
1255
- export namespace ListAllSubscriptionsMetadataUnion$ {
1256
- /** @deprecated use `ListAllSubscriptionsMetadataUnion$inboundSchema` instead. */
1257
- export const inboundSchema = ListAllSubscriptionsMetadataUnion$inboundSchema;
1258
- /** @deprecated use `ListAllSubscriptionsMetadataUnion$outboundSchema` instead. */
1259
- export const outboundSchema =
1260
- ListAllSubscriptionsMetadataUnion$outboundSchema;
1261
- /** @deprecated use `ListAllSubscriptionsMetadataUnion$Outbound` instead. */
1262
- export type Outbound = ListAllSubscriptionsMetadataUnion$Outbound;
1263
- }
1264
-
1265
- export function listAllSubscriptionsMetadataUnionToJSON(
1266
- listAllSubscriptionsMetadataUnion: ListAllSubscriptionsMetadataUnion,
1267
- ): string {
1268
- return JSON.stringify(
1269
- ListAllSubscriptionsMetadataUnion$outboundSchema.parse(
1270
- listAllSubscriptionsMetadataUnion,
1271
- ),
1272
- );
1273
- }
1274
-
1275
- export function listAllSubscriptionsMetadataUnionFromJSON(
1276
- jsonString: string,
1277
- ): SafeParseResult<ListAllSubscriptionsMetadataUnion, SDKValidationError> {
1278
- return safeParse(
1279
- jsonString,
1280
- (x) => ListAllSubscriptionsMetadataUnion$inboundSchema.parse(JSON.parse(x)),
1281
- `Failed to parse 'ListAllSubscriptionsMetadataUnion' from JSON`,
1282
- );
1283
- }
1284
-
1285
1223
  /** @internal */
1286
1224
  export const ListAllSubscriptionsSubscriptionSelf$inboundSchema: z.ZodType<
1287
1225
  ListAllSubscriptionsSubscriptionSelf,
@@ -1758,11 +1696,7 @@ export const ListAllSubscriptionsSubscription$inboundSchema: z.ZodType<
1758
1696
  applicationFee: z.lazy(() => ListAllSubscriptionsApplicationFee$inboundSchema)
1759
1697
  .optional(),
1760
1698
  metadata: z.nullable(
1761
- z.union([
1762
- z.lazy(() => ListAllSubscriptionsMetadata$inboundSchema),
1763
- z.string(),
1764
- z.array(z.string()),
1765
- ]),
1699
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
1766
1700
  ),
1767
1701
  webhookUrl: z.string(),
1768
1702
  customerId: z.string(),
@@ -1792,11 +1726,7 @@ export type ListAllSubscriptionsSubscription$Outbound = {
1792
1726
  description: string;
1793
1727
  method: string | null;
1794
1728
  applicationFee?: ListAllSubscriptionsApplicationFee$Outbound | undefined;
1795
- metadata:
1796
- | ListAllSubscriptionsMetadata$Outbound
1797
- | string
1798
- | Array<string>
1799
- | null;
1729
+ metadata: string | { [k: string]: any } | Array<string> | null;
1800
1730
  webhookUrl: string;
1801
1731
  customerId: string;
1802
1732
  mandateId?: string | null | undefined;
@@ -1827,11 +1757,7 @@ export const ListAllSubscriptionsSubscription$outboundSchema: z.ZodType<
1827
1757
  ListAllSubscriptionsApplicationFee$outboundSchema
1828
1758
  ).optional(),
1829
1759
  metadata: z.nullable(
1830
- z.union([
1831
- z.lazy(() => ListAllSubscriptionsMetadata$outboundSchema),
1832
- z.string(),
1833
- z.array(z.string()),
1834
- ]),
1760
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
1835
1761
  ),
1836
1762
  webhookUrl: z.string(),
1837
1763
  customerId: z.string(),
@@ -151,17 +151,15 @@ export const ListCapturesStatus = {
151
151
  */
152
152
  export type ListCapturesStatus = ClosedEnum<typeof ListCapturesStatus>;
153
153
 
154
- export type ListCapturesMetadata = {};
155
-
156
154
  /**
157
155
  * Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
158
156
  *
159
157
  * @remarks
160
158
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
161
159
  */
162
- export type ListCapturesMetadataUnion =
163
- | ListCapturesMetadata
160
+ export type ListCapturesMetadata =
164
161
  | string
162
+ | { [k: string]: any }
165
163
  | Array<string>;
166
164
 
167
165
  /**
@@ -314,7 +312,7 @@ export type ListCapturesCapture = {
314
312
  * @remarks
315
313
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
316
314
  */
317
- metadata?: ListCapturesMetadata | string | Array<string> | null | undefined;
315
+ metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
318
316
  /**
319
317
  * The unique identifier of the payment this capture was created for. For example: `tr_5B8cwPMGnU6qLbRvo7qEZo`.
320
318
  *
@@ -938,17 +936,20 @@ export const ListCapturesMetadata$inboundSchema: z.ZodType<
938
936
  ListCapturesMetadata,
939
937
  z.ZodTypeDef,
940
938
  unknown
941
- > = z.object({});
939
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
942
940
 
943
941
  /** @internal */
944
- export type ListCapturesMetadata$Outbound = {};
942
+ export type ListCapturesMetadata$Outbound =
943
+ | string
944
+ | { [k: string]: any }
945
+ | Array<string>;
945
946
 
946
947
  /** @internal */
947
948
  export const ListCapturesMetadata$outboundSchema: z.ZodType<
948
949
  ListCapturesMetadata$Outbound,
949
950
  z.ZodTypeDef,
950
951
  ListCapturesMetadata
951
- > = z.object({});
952
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
952
953
 
953
954
  /**
954
955
  * @internal
@@ -981,65 +982,6 @@ export function listCapturesMetadataFromJSON(
981
982
  );
982
983
  }
983
984
 
984
- /** @internal */
985
- export const ListCapturesMetadataUnion$inboundSchema: z.ZodType<
986
- ListCapturesMetadataUnion,
987
- z.ZodTypeDef,
988
- unknown
989
- > = z.union([
990
- z.lazy(() => ListCapturesMetadata$inboundSchema),
991
- z.string(),
992
- z.array(z.string()),
993
- ]);
994
-
995
- /** @internal */
996
- export type ListCapturesMetadataUnion$Outbound =
997
- | ListCapturesMetadata$Outbound
998
- | string
999
- | Array<string>;
1000
-
1001
- /** @internal */
1002
- export const ListCapturesMetadataUnion$outboundSchema: z.ZodType<
1003
- ListCapturesMetadataUnion$Outbound,
1004
- z.ZodTypeDef,
1005
- ListCapturesMetadataUnion
1006
- > = z.union([
1007
- z.lazy(() => ListCapturesMetadata$outboundSchema),
1008
- z.string(),
1009
- z.array(z.string()),
1010
- ]);
1011
-
1012
- /**
1013
- * @internal
1014
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1015
- */
1016
- export namespace ListCapturesMetadataUnion$ {
1017
- /** @deprecated use `ListCapturesMetadataUnion$inboundSchema` instead. */
1018
- export const inboundSchema = ListCapturesMetadataUnion$inboundSchema;
1019
- /** @deprecated use `ListCapturesMetadataUnion$outboundSchema` instead. */
1020
- export const outboundSchema = ListCapturesMetadataUnion$outboundSchema;
1021
- /** @deprecated use `ListCapturesMetadataUnion$Outbound` instead. */
1022
- export type Outbound = ListCapturesMetadataUnion$Outbound;
1023
- }
1024
-
1025
- export function listCapturesMetadataUnionToJSON(
1026
- listCapturesMetadataUnion: ListCapturesMetadataUnion,
1027
- ): string {
1028
- return JSON.stringify(
1029
- ListCapturesMetadataUnion$outboundSchema.parse(listCapturesMetadataUnion),
1030
- );
1031
- }
1032
-
1033
- export function listCapturesMetadataUnionFromJSON(
1034
- jsonString: string,
1035
- ): SafeParseResult<ListCapturesMetadataUnion, SDKValidationError> {
1036
- return safeParse(
1037
- jsonString,
1038
- (x) => ListCapturesMetadataUnion$inboundSchema.parse(JSON.parse(x)),
1039
- `Failed to parse 'ListCapturesMetadataUnion' from JSON`,
1040
- );
1041
- }
1042
-
1043
985
  /** @internal */
1044
986
  export const ListCapturesCaptureSelf$inboundSchema: z.ZodType<
1045
987
  ListCapturesCaptureSelf,
@@ -1413,11 +1355,7 @@ export const ListCapturesCapture$inboundSchema: z.ZodType<
1413
1355
  ).optional(),
1414
1356
  status: ListCapturesStatus$inboundSchema,
1415
1357
  metadata: z.nullable(
1416
- z.union([
1417
- z.lazy(() => ListCapturesMetadata$inboundSchema),
1418
- z.string(),
1419
- z.array(z.string()),
1420
- ]),
1358
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
1421
1359
  ).optional(),
1422
1360
  paymentId: z.string(),
1423
1361
  shipmentId: z.nullable(z.string()).optional(),
@@ -1439,12 +1377,7 @@ export type ListCapturesCapture$Outbound = {
1439
1377
  amount: ListCapturesAmount$Outbound | null;
1440
1378
  settlementAmount?: ListCapturesSettlementAmount$Outbound | null | undefined;
1441
1379
  status: string;
1442
- metadata?:
1443
- | ListCapturesMetadata$Outbound
1444
- | string
1445
- | Array<string>
1446
- | null
1447
- | undefined;
1380
+ metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
1448
1381
  paymentId: string;
1449
1382
  shipmentId?: string | null | undefined;
1450
1383
  settlementId?: string | null | undefined;
@@ -1468,11 +1401,7 @@ export const ListCapturesCapture$outboundSchema: z.ZodType<
1468
1401
  ).optional(),
1469
1402
  status: ListCapturesStatus$outboundSchema,
1470
1403
  metadata: z.nullable(
1471
- z.union([
1472
- z.lazy(() => ListCapturesMetadata$outboundSchema),
1473
- z.string(),
1474
- z.array(z.string()),
1475
- ]),
1404
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
1476
1405
  ).optional(),
1477
1406
  paymentId: z.string(),
1478
1407
  shipmentId: z.nullable(z.string()).optional(),