mollie-api-typescript 0.1.1 → 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 (282) hide show
  1. package/bin/mcp-server.js +187 -1023
  2. package/bin/mcp-server.js.map +35 -35
  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/createrefund.d.ts +24 -50
  34. package/dist/commonjs/models/operations/createrefund.d.ts.map +1 -1
  35. package/dist/commonjs/models/operations/createrefund.js +11 -89
  36. package/dist/commonjs/models/operations/createrefund.js.map +1 -1
  37. package/dist/commonjs/models/operations/createsubscription.d.ts +24 -50
  38. package/dist/commonjs/models/operations/createsubscription.d.ts.map +1 -1
  39. package/dist/commonjs/models/operations/createsubscription.js +10 -88
  40. package/dist/commonjs/models/operations/createsubscription.js.map +1 -1
  41. package/dist/commonjs/models/operations/getcapture.d.ts +12 -25
  42. package/dist/commonjs/models/operations/getcapture.d.ts.map +1 -1
  43. package/dist/commonjs/models/operations/getcapture.js +6 -45
  44. package/dist/commonjs/models/operations/getcapture.js.map +1 -1
  45. package/dist/commonjs/models/operations/getcustomer.d.ts +12 -25
  46. package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
  47. package/dist/commonjs/models/operations/getcustomer.js +6 -45
  48. package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
  49. package/dist/commonjs/models/operations/getpayment.d.ts +12 -25
  50. package/dist/commonjs/models/operations/getpayment.d.ts.map +1 -1
  51. package/dist/commonjs/models/operations/getpayment.js +7 -46
  52. package/dist/commonjs/models/operations/getpayment.js.map +1 -1
  53. package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts +12 -25
  54. package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
  55. package/dist/commonjs/models/operations/getpaymentlinkpayments.js +8 -47
  56. package/dist/commonjs/models/operations/getpaymentlinkpayments.js.map +1 -1
  57. package/dist/commonjs/models/operations/getrefund.d.ts +12 -25
  58. package/dist/commonjs/models/operations/getrefund.d.ts.map +1 -1
  59. package/dist/commonjs/models/operations/getrefund.js +6 -45
  60. package/dist/commonjs/models/operations/getrefund.js.map +1 -1
  61. package/dist/commonjs/models/operations/getsubscription.d.ts +12 -25
  62. package/dist/commonjs/models/operations/getsubscription.d.ts.map +1 -1
  63. package/dist/commonjs/models/operations/getsubscription.js +6 -45
  64. package/dist/commonjs/models/operations/getsubscription.js.map +1 -1
  65. package/dist/commonjs/models/operations/listallrefunds.d.ts +12 -25
  66. package/dist/commonjs/models/operations/listallrefunds.d.ts.map +1 -1
  67. package/dist/commonjs/models/operations/listallrefunds.js +6 -45
  68. package/dist/commonjs/models/operations/listallrefunds.js.map +1 -1
  69. package/dist/commonjs/models/operations/listallsubscriptions.d.ts +12 -25
  70. package/dist/commonjs/models/operations/listallsubscriptions.d.ts.map +1 -1
  71. package/dist/commonjs/models/operations/listallsubscriptions.js +6 -45
  72. package/dist/commonjs/models/operations/listallsubscriptions.js.map +1 -1
  73. package/dist/commonjs/models/operations/listcaptures.d.ts +12 -25
  74. package/dist/commonjs/models/operations/listcaptures.d.ts.map +1 -1
  75. package/dist/commonjs/models/operations/listcaptures.js +6 -45
  76. package/dist/commonjs/models/operations/listcaptures.js.map +1 -1
  77. package/dist/commonjs/models/operations/listcustomerpayments.d.ts +12 -25
  78. package/dist/commonjs/models/operations/listcustomerpayments.d.ts.map +1 -1
  79. package/dist/commonjs/models/operations/listcustomerpayments.js +8 -47
  80. package/dist/commonjs/models/operations/listcustomerpayments.js.map +1 -1
  81. package/dist/commonjs/models/operations/listcustomers.d.ts +12 -25
  82. package/dist/commonjs/models/operations/listcustomers.d.ts.map +1 -1
  83. package/dist/commonjs/models/operations/listcustomers.js +6 -45
  84. package/dist/commonjs/models/operations/listcustomers.js.map +1 -1
  85. package/dist/commonjs/models/operations/listpayments.d.ts +12 -25
  86. package/dist/commonjs/models/operations/listpayments.d.ts.map +1 -1
  87. package/dist/commonjs/models/operations/listpayments.js +8 -47
  88. package/dist/commonjs/models/operations/listpayments.js.map +1 -1
  89. package/dist/commonjs/models/operations/listrefunds.d.ts +12 -25
  90. package/dist/commonjs/models/operations/listrefunds.d.ts.map +1 -1
  91. package/dist/commonjs/models/operations/listrefunds.js +6 -45
  92. package/dist/commonjs/models/operations/listrefunds.js.map +1 -1
  93. package/dist/commonjs/models/operations/listsettlementcaptures.d.ts +12 -25
  94. package/dist/commonjs/models/operations/listsettlementcaptures.d.ts.map +1 -1
  95. package/dist/commonjs/models/operations/listsettlementcaptures.js +6 -45
  96. package/dist/commonjs/models/operations/listsettlementcaptures.js.map +1 -1
  97. package/dist/commonjs/models/operations/listsettlementpayments.d.ts +12 -25
  98. package/dist/commonjs/models/operations/listsettlementpayments.d.ts.map +1 -1
  99. package/dist/commonjs/models/operations/listsettlementpayments.js +8 -47
  100. package/dist/commonjs/models/operations/listsettlementpayments.js.map +1 -1
  101. package/dist/commonjs/models/operations/listsettlementrefunds.d.ts +12 -25
  102. package/dist/commonjs/models/operations/listsettlementrefunds.d.ts.map +1 -1
  103. package/dist/commonjs/models/operations/listsettlementrefunds.js +6 -45
  104. package/dist/commonjs/models/operations/listsettlementrefunds.js.map +1 -1
  105. package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts +12 -25
  106. package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts.map +1 -1
  107. package/dist/commonjs/models/operations/listsubscriptionpayments.js +8 -47
  108. package/dist/commonjs/models/operations/listsubscriptionpayments.js.map +1 -1
  109. package/dist/commonjs/models/operations/listsubscriptions.d.ts +12 -25
  110. package/dist/commonjs/models/operations/listsubscriptions.d.ts.map +1 -1
  111. package/dist/commonjs/models/operations/listsubscriptions.js +6 -45
  112. package/dist/commonjs/models/operations/listsubscriptions.js.map +1 -1
  113. package/dist/commonjs/models/operations/updatecustomer.d.ts +24 -50
  114. package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
  115. package/dist/commonjs/models/operations/updatecustomer.js +10 -88
  116. package/dist/commonjs/models/operations/updatecustomer.js.map +1 -1
  117. package/dist/commonjs/models/operations/updatepayment.d.ts +24 -50
  118. package/dist/commonjs/models/operations/updatepayment.d.ts.map +1 -1
  119. package/dist/commonjs/models/operations/updatepayment.js +13 -91
  120. package/dist/commonjs/models/operations/updatepayment.js.map +1 -1
  121. package/dist/commonjs/models/operations/updatesubscription.d.ts +24 -50
  122. package/dist/commonjs/models/operations/updatesubscription.d.ts.map +1 -1
  123. package/dist/commonjs/models/operations/updatesubscription.js +10 -88
  124. package/dist/commonjs/models/operations/updatesubscription.js.map +1 -1
  125. package/dist/esm/lib/config.d.ts +3 -3
  126. package/dist/esm/lib/config.js +3 -3
  127. package/dist/esm/lib/security.d.ts.map +1 -1
  128. package/dist/esm/lib/security.js.map +1 -1
  129. package/dist/esm/mcp-server/mcp-server.js +1 -1
  130. package/dist/esm/mcp-server/server.js +1 -1
  131. package/dist/esm/models/operations/cancelpayment.d.ts +12 -25
  132. package/dist/esm/models/operations/cancelpayment.d.ts.map +1 -1
  133. package/dist/esm/models/operations/cancelpayment.js +4 -41
  134. package/dist/esm/models/operations/cancelpayment.js.map +1 -1
  135. package/dist/esm/models/operations/cancelsubscription.d.ts +12 -25
  136. package/dist/esm/models/operations/cancelsubscription.d.ts.map +1 -1
  137. package/dist/esm/models/operations/cancelsubscription.js +4 -41
  138. package/dist/esm/models/operations/cancelsubscription.js.map +1 -1
  139. package/dist/esm/models/operations/createcapture.d.ts +24 -50
  140. package/dist/esm/models/operations/createcapture.d.ts.map +1 -1
  141. package/dist/esm/models/operations/createcapture.js +8 -82
  142. package/dist/esm/models/operations/createcapture.js.map +1 -1
  143. package/dist/esm/models/operations/createcustomer.d.ts +24 -50
  144. package/dist/esm/models/operations/createcustomer.d.ts.map +1 -1
  145. package/dist/esm/models/operations/createcustomer.js +8 -82
  146. package/dist/esm/models/operations/createcustomer.js.map +1 -1
  147. package/dist/esm/models/operations/createcustomerpayment.d.ts +24 -50
  148. package/dist/esm/models/operations/createcustomerpayment.d.ts.map +1 -1
  149. package/dist/esm/models/operations/createcustomerpayment.js +8 -82
  150. package/dist/esm/models/operations/createcustomerpayment.js.map +1 -1
  151. package/dist/esm/models/operations/createpayment.d.ts +24 -50
  152. package/dist/esm/models/operations/createpayment.d.ts.map +1 -1
  153. package/dist/esm/models/operations/createpayment.js +8 -82
  154. package/dist/esm/models/operations/createpayment.js.map +1 -1
  155. package/dist/esm/models/operations/createrefund.d.ts +24 -50
  156. package/dist/esm/models/operations/createrefund.d.ts.map +1 -1
  157. package/dist/esm/models/operations/createrefund.js +8 -82
  158. package/dist/esm/models/operations/createrefund.js.map +1 -1
  159. package/dist/esm/models/operations/createsubscription.d.ts +24 -50
  160. package/dist/esm/models/operations/createsubscription.d.ts.map +1 -1
  161. package/dist/esm/models/operations/createsubscription.js +8 -82
  162. package/dist/esm/models/operations/createsubscription.js.map +1 -1
  163. package/dist/esm/models/operations/getcapture.d.ts +12 -25
  164. package/dist/esm/models/operations/getcapture.d.ts.map +1 -1
  165. package/dist/esm/models/operations/getcapture.js +4 -41
  166. package/dist/esm/models/operations/getcapture.js.map +1 -1
  167. package/dist/esm/models/operations/getcustomer.d.ts +12 -25
  168. package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
  169. package/dist/esm/models/operations/getcustomer.js +4 -41
  170. package/dist/esm/models/operations/getcustomer.js.map +1 -1
  171. package/dist/esm/models/operations/getpayment.d.ts +12 -25
  172. package/dist/esm/models/operations/getpayment.d.ts.map +1 -1
  173. package/dist/esm/models/operations/getpayment.js +4 -41
  174. package/dist/esm/models/operations/getpayment.js.map +1 -1
  175. package/dist/esm/models/operations/getpaymentlinkpayments.d.ts +12 -25
  176. package/dist/esm/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
  177. package/dist/esm/models/operations/getpaymentlinkpayments.js +4 -41
  178. package/dist/esm/models/operations/getpaymentlinkpayments.js.map +1 -1
  179. package/dist/esm/models/operations/getrefund.d.ts +12 -25
  180. package/dist/esm/models/operations/getrefund.d.ts.map +1 -1
  181. package/dist/esm/models/operations/getrefund.js +4 -41
  182. package/dist/esm/models/operations/getrefund.js.map +1 -1
  183. package/dist/esm/models/operations/getsubscription.d.ts +12 -25
  184. package/dist/esm/models/operations/getsubscription.d.ts.map +1 -1
  185. package/dist/esm/models/operations/getsubscription.js +4 -41
  186. package/dist/esm/models/operations/getsubscription.js.map +1 -1
  187. package/dist/esm/models/operations/listallrefunds.d.ts +12 -25
  188. package/dist/esm/models/operations/listallrefunds.d.ts.map +1 -1
  189. package/dist/esm/models/operations/listallrefunds.js +4 -41
  190. package/dist/esm/models/operations/listallrefunds.js.map +1 -1
  191. package/dist/esm/models/operations/listallsubscriptions.d.ts +12 -25
  192. package/dist/esm/models/operations/listallsubscriptions.d.ts.map +1 -1
  193. package/dist/esm/models/operations/listallsubscriptions.js +4 -41
  194. package/dist/esm/models/operations/listallsubscriptions.js.map +1 -1
  195. package/dist/esm/models/operations/listcaptures.d.ts +12 -25
  196. package/dist/esm/models/operations/listcaptures.d.ts.map +1 -1
  197. package/dist/esm/models/operations/listcaptures.js +4 -41
  198. package/dist/esm/models/operations/listcaptures.js.map +1 -1
  199. package/dist/esm/models/operations/listcustomerpayments.d.ts +12 -25
  200. package/dist/esm/models/operations/listcustomerpayments.d.ts.map +1 -1
  201. package/dist/esm/models/operations/listcustomerpayments.js +4 -41
  202. package/dist/esm/models/operations/listcustomerpayments.js.map +1 -1
  203. package/dist/esm/models/operations/listcustomers.d.ts +12 -25
  204. package/dist/esm/models/operations/listcustomers.d.ts.map +1 -1
  205. package/dist/esm/models/operations/listcustomers.js +4 -41
  206. package/dist/esm/models/operations/listcustomers.js.map +1 -1
  207. package/dist/esm/models/operations/listpayments.d.ts +12 -25
  208. package/dist/esm/models/operations/listpayments.d.ts.map +1 -1
  209. package/dist/esm/models/operations/listpayments.js +4 -41
  210. package/dist/esm/models/operations/listpayments.js.map +1 -1
  211. package/dist/esm/models/operations/listrefunds.d.ts +12 -25
  212. package/dist/esm/models/operations/listrefunds.d.ts.map +1 -1
  213. package/dist/esm/models/operations/listrefunds.js +4 -41
  214. package/dist/esm/models/operations/listrefunds.js.map +1 -1
  215. package/dist/esm/models/operations/listsettlementcaptures.d.ts +12 -25
  216. package/dist/esm/models/operations/listsettlementcaptures.d.ts.map +1 -1
  217. package/dist/esm/models/operations/listsettlementcaptures.js +4 -41
  218. package/dist/esm/models/operations/listsettlementcaptures.js.map +1 -1
  219. package/dist/esm/models/operations/listsettlementpayments.d.ts +12 -25
  220. package/dist/esm/models/operations/listsettlementpayments.d.ts.map +1 -1
  221. package/dist/esm/models/operations/listsettlementpayments.js +4 -41
  222. package/dist/esm/models/operations/listsettlementpayments.js.map +1 -1
  223. package/dist/esm/models/operations/listsettlementrefunds.d.ts +12 -25
  224. package/dist/esm/models/operations/listsettlementrefunds.d.ts.map +1 -1
  225. package/dist/esm/models/operations/listsettlementrefunds.js +4 -41
  226. package/dist/esm/models/operations/listsettlementrefunds.js.map +1 -1
  227. package/dist/esm/models/operations/listsubscriptionpayments.d.ts +12 -25
  228. package/dist/esm/models/operations/listsubscriptionpayments.d.ts.map +1 -1
  229. package/dist/esm/models/operations/listsubscriptionpayments.js +4 -41
  230. package/dist/esm/models/operations/listsubscriptionpayments.js.map +1 -1
  231. package/dist/esm/models/operations/listsubscriptions.d.ts +12 -25
  232. package/dist/esm/models/operations/listsubscriptions.d.ts.map +1 -1
  233. package/dist/esm/models/operations/listsubscriptions.js +4 -41
  234. package/dist/esm/models/operations/listsubscriptions.js.map +1 -1
  235. package/dist/esm/models/operations/updatecustomer.d.ts +24 -50
  236. package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
  237. package/dist/esm/models/operations/updatecustomer.js +8 -82
  238. package/dist/esm/models/operations/updatecustomer.js.map +1 -1
  239. package/dist/esm/models/operations/updatepayment.d.ts +24 -50
  240. package/dist/esm/models/operations/updatepayment.d.ts.map +1 -1
  241. package/dist/esm/models/operations/updatepayment.js +8 -82
  242. package/dist/esm/models/operations/updatepayment.js.map +1 -1
  243. package/dist/esm/models/operations/updatesubscription.d.ts +24 -50
  244. package/dist/esm/models/operations/updatesubscription.d.ts.map +1 -1
  245. package/dist/esm/models/operations/updatesubscription.js +8 -82
  246. package/dist/esm/models/operations/updatesubscription.js.map +1 -1
  247. package/examples/package-lock.json +1 -1
  248. package/jsr.json +1 -1
  249. package/package.json +1 -1
  250. package/src/lib/config.ts +3 -3
  251. package/src/lib/security.ts +4 -1
  252. package/src/mcp-server/mcp-server.ts +1 -1
  253. package/src/mcp-server/server.ts +1 -1
  254. package/src/models/operations/cancelpayment.ts +12 -83
  255. package/src/models/operations/cancelsubscription.ts +12 -80
  256. package/src/models/operations/createcapture.ts +22 -183
  257. package/src/models/operations/createcustomer.ts +22 -179
  258. package/src/models/operations/createcustomerpayment.ts +23 -200
  259. package/src/models/operations/createpayment.ts +22 -183
  260. package/src/models/operations/createrefund.ts +23 -181
  261. package/src/models/operations/createsubscription.ts +22 -187
  262. package/src/models/operations/getcapture.ts +11 -85
  263. package/src/models/operations/getcustomer.ts +11 -80
  264. package/src/models/operations/getpayment.ts +11 -85
  265. package/src/models/operations/getpaymentlinkpayments.ts +11 -93
  266. package/src/models/operations/getrefund.ts +11 -82
  267. package/src/models/operations/getsubscription.ts +12 -80
  268. package/src/models/operations/listallrefunds.ts +12 -85
  269. package/src/models/operations/listallsubscriptions.ts +11 -85
  270. package/src/models/operations/listcaptures.ts +12 -83
  271. package/src/models/operations/listcustomerpayments.ts +11 -91
  272. package/src/models/operations/listcustomers.ts +12 -78
  273. package/src/models/operations/listpayments.ts +12 -83
  274. package/src/models/operations/listrefunds.ts +11 -85
  275. package/src/models/operations/listsettlementcaptures.ts +11 -93
  276. package/src/models/operations/listsettlementpayments.ts +11 -93
  277. package/src/models/operations/listsettlementrefunds.ts +11 -92
  278. package/src/models/operations/listsubscriptionpayments.ts +11 -93
  279. package/src/models/operations/listsubscriptions.ts +12 -80
  280. package/src/models/operations/updatecustomer.ts +22 -179
  281. package/src/models/operations/updatepayment.ts +22 -183
  282. package/src/models/operations/updatesubscription.ts +22 -187
@@ -126,15 +126,13 @@ export type GetRefundSettlementAmount = {
126
126
  value: string;
127
127
  };
128
128
 
129
- export type GetRefundMetadata = {};
130
-
131
129
  /**
132
130
  * Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
133
131
  *
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
- export type GetRefundMetadataUnion = GetRefundMetadata | string | Array<string>;
135
+ export type GetRefundMetadata = string | { [k: string]: any } | Array<string>;
138
136
 
139
137
  /**
140
138
  * Refunds may take some time to get confirmed.
@@ -350,7 +348,7 @@ export type GetRefundResponse = {
350
348
  * @remarks
351
349
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
352
350
  */
353
- metadata?: GetRefundMetadata | string | Array<string> | null | undefined;
351
+ metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
354
352
  /**
355
353
  * The unique identifier of the payment this refund was created for.
356
354
  *
@@ -725,17 +723,20 @@ export const GetRefundMetadata$inboundSchema: z.ZodType<
725
723
  GetRefundMetadata,
726
724
  z.ZodTypeDef,
727
725
  unknown
728
- > = z.object({});
726
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
729
727
 
730
728
  /** @internal */
731
- export type GetRefundMetadata$Outbound = {};
729
+ export type GetRefundMetadata$Outbound =
730
+ | string
731
+ | { [k: string]: any }
732
+ | Array<string>;
732
733
 
733
734
  /** @internal */
734
735
  export const GetRefundMetadata$outboundSchema: z.ZodType<
735
736
  GetRefundMetadata$Outbound,
736
737
  z.ZodTypeDef,
737
738
  GetRefundMetadata
738
- > = z.object({});
739
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
739
740
 
740
741
  /**
741
742
  * @internal
@@ -768,65 +769,6 @@ export function getRefundMetadataFromJSON(
768
769
  );
769
770
  }
770
771
 
771
- /** @internal */
772
- export const GetRefundMetadataUnion$inboundSchema: z.ZodType<
773
- GetRefundMetadataUnion,
774
- z.ZodTypeDef,
775
- unknown
776
- > = z.union([
777
- z.lazy(() => GetRefundMetadata$inboundSchema),
778
- z.string(),
779
- z.array(z.string()),
780
- ]);
781
-
782
- /** @internal */
783
- export type GetRefundMetadataUnion$Outbound =
784
- | GetRefundMetadata$Outbound
785
- | string
786
- | Array<string>;
787
-
788
- /** @internal */
789
- export const GetRefundMetadataUnion$outboundSchema: z.ZodType<
790
- GetRefundMetadataUnion$Outbound,
791
- z.ZodTypeDef,
792
- GetRefundMetadataUnion
793
- > = z.union([
794
- z.lazy(() => GetRefundMetadata$outboundSchema),
795
- z.string(),
796
- z.array(z.string()),
797
- ]);
798
-
799
- /**
800
- * @internal
801
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
802
- */
803
- export namespace GetRefundMetadataUnion$ {
804
- /** @deprecated use `GetRefundMetadataUnion$inboundSchema` instead. */
805
- export const inboundSchema = GetRefundMetadataUnion$inboundSchema;
806
- /** @deprecated use `GetRefundMetadataUnion$outboundSchema` instead. */
807
- export const outboundSchema = GetRefundMetadataUnion$outboundSchema;
808
- /** @deprecated use `GetRefundMetadataUnion$Outbound` instead. */
809
- export type Outbound = GetRefundMetadataUnion$Outbound;
810
- }
811
-
812
- export function getRefundMetadataUnionToJSON(
813
- getRefundMetadataUnion: GetRefundMetadataUnion,
814
- ): string {
815
- return JSON.stringify(
816
- GetRefundMetadataUnion$outboundSchema.parse(getRefundMetadataUnion),
817
- );
818
- }
819
-
820
- export function getRefundMetadataUnionFromJSON(
821
- jsonString: string,
822
- ): SafeParseResult<GetRefundMetadataUnion, SDKValidationError> {
823
- return safeParse(
824
- jsonString,
825
- (x) => GetRefundMetadataUnion$inboundSchema.parse(JSON.parse(x)),
826
- `Failed to parse 'GetRefundMetadataUnion' from JSON`,
827
- );
828
- }
829
-
830
772
  /** @internal */
831
773
  export const GetRefundStatus$inboundSchema: z.ZodNativeEnum<
832
774
  typeof GetRefundStatus
@@ -1395,11 +1337,7 @@ export const GetRefundResponse$inboundSchema: z.ZodType<
1395
1337
  z.lazy(() => GetRefundSettlementAmount$inboundSchema),
1396
1338
  ).optional(),
1397
1339
  metadata: z.nullable(
1398
- z.union([
1399
- z.lazy(() => GetRefundMetadata$inboundSchema),
1400
- z.string(),
1401
- z.array(z.string()),
1402
- ]),
1340
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
1403
1341
  ).optional(),
1404
1342
  paymentId: z.string().optional(),
1405
1343
  settlementId: z.nullable(z.string()).optional(),
@@ -1425,12 +1363,7 @@ export type GetRefundResponse$Outbound = {
1425
1363
  description?: string | undefined;
1426
1364
  amount?: GetRefundAmount$Outbound | undefined;
1427
1365
  settlementAmount?: GetRefundSettlementAmount$Outbound | null | undefined;
1428
- metadata?:
1429
- | GetRefundMetadata$Outbound
1430
- | string
1431
- | Array<string>
1432
- | null
1433
- | undefined;
1366
+ metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
1434
1367
  paymentId?: string | undefined;
1435
1368
  settlementId?: string | null | undefined;
1436
1369
  status?: string | undefined;
@@ -1458,11 +1391,7 @@ export const GetRefundResponse$outboundSchema: z.ZodType<
1458
1391
  z.lazy(() => GetRefundSettlementAmount$outboundSchema),
1459
1392
  ).optional(),
1460
1393
  metadata: z.nullable(
1461
- z.union([
1462
- z.lazy(() => GetRefundMetadata$outboundSchema),
1463
- z.string(),
1464
- z.array(z.string()),
1465
- ]),
1394
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
1466
1395
  ).optional(),
1467
1396
  paymentId: z.string().optional(),
1468
1397
  settlementId: z.nullable(z.string()).optional(),
@@ -164,8 +164,6 @@ export type GetSubscriptionApplicationFee = {
164
164
  description: string;
165
165
  };
166
166
 
167
- export type GetSubscriptionMetadata = {};
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.
171
169
  *
@@ -175,9 +173,9 @@ export type GetSubscriptionMetadata = {};
175
173
  *
176
174
  * Any metadata added to the subscription will be automatically forwarded to the payments generated for it.
177
175
  */
178
- export type GetSubscriptionMetadataUnion =
179
- | GetSubscriptionMetadata
176
+ export type GetSubscriptionMetadata =
180
177
  | string
178
+ | { [k: string]: any }
181
179
  | Array<string>;
182
180
 
183
181
  /**
@@ -399,7 +397,7 @@ export type GetSubscriptionResponse = {
399
397
  *
400
398
  * Any metadata added to the subscription will be automatically forwarded to the payments generated for it.
401
399
  */
402
- metadata: GetSubscriptionMetadata | string | Array<string> | null;
400
+ metadata: string | { [k: string]: any } | Array<string> | null;
403
401
  /**
404
402
  * We will call this URL for any payment status changes of payments resulting from this subscription.
405
403
  *
@@ -883,17 +881,20 @@ export const GetSubscriptionMetadata$inboundSchema: z.ZodType<
883
881
  GetSubscriptionMetadata,
884
882
  z.ZodTypeDef,
885
883
  unknown
886
- > = z.object({});
884
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
887
885
 
888
886
  /** @internal */
889
- export type GetSubscriptionMetadata$Outbound = {};
887
+ export type GetSubscriptionMetadata$Outbound =
888
+ | string
889
+ | { [k: string]: any }
890
+ | Array<string>;
890
891
 
891
892
  /** @internal */
892
893
  export const GetSubscriptionMetadata$outboundSchema: z.ZodType<
893
894
  GetSubscriptionMetadata$Outbound,
894
895
  z.ZodTypeDef,
895
896
  GetSubscriptionMetadata
896
- > = z.object({});
897
+ > = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
897
898
 
898
899
  /**
899
900
  * @internal
@@ -926,67 +927,6 @@ export function getSubscriptionMetadataFromJSON(
926
927
  );
927
928
  }
928
929
 
929
- /** @internal */
930
- export const GetSubscriptionMetadataUnion$inboundSchema: z.ZodType<
931
- GetSubscriptionMetadataUnion,
932
- z.ZodTypeDef,
933
- unknown
934
- > = z.union([
935
- z.lazy(() => GetSubscriptionMetadata$inboundSchema),
936
- z.string(),
937
- z.array(z.string()),
938
- ]);
939
-
940
- /** @internal */
941
- export type GetSubscriptionMetadataUnion$Outbound =
942
- | GetSubscriptionMetadata$Outbound
943
- | string
944
- | Array<string>;
945
-
946
- /** @internal */
947
- export const GetSubscriptionMetadataUnion$outboundSchema: z.ZodType<
948
- GetSubscriptionMetadataUnion$Outbound,
949
- z.ZodTypeDef,
950
- GetSubscriptionMetadataUnion
951
- > = z.union([
952
- z.lazy(() => GetSubscriptionMetadata$outboundSchema),
953
- z.string(),
954
- z.array(z.string()),
955
- ]);
956
-
957
- /**
958
- * @internal
959
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
960
- */
961
- export namespace GetSubscriptionMetadataUnion$ {
962
- /** @deprecated use `GetSubscriptionMetadataUnion$inboundSchema` instead. */
963
- export const inboundSchema = GetSubscriptionMetadataUnion$inboundSchema;
964
- /** @deprecated use `GetSubscriptionMetadataUnion$outboundSchema` instead. */
965
- export const outboundSchema = GetSubscriptionMetadataUnion$outboundSchema;
966
- /** @deprecated use `GetSubscriptionMetadataUnion$Outbound` instead. */
967
- export type Outbound = GetSubscriptionMetadataUnion$Outbound;
968
- }
969
-
970
- export function getSubscriptionMetadataUnionToJSON(
971
- getSubscriptionMetadataUnion: GetSubscriptionMetadataUnion,
972
- ): string {
973
- return JSON.stringify(
974
- GetSubscriptionMetadataUnion$outboundSchema.parse(
975
- getSubscriptionMetadataUnion,
976
- ),
977
- );
978
- }
979
-
980
- export function getSubscriptionMetadataUnionFromJSON(
981
- jsonString: string,
982
- ): SafeParseResult<GetSubscriptionMetadataUnion, SDKValidationError> {
983
- return safeParse(
984
- jsonString,
985
- (x) => GetSubscriptionMetadataUnion$inboundSchema.parse(JSON.parse(x)),
986
- `Failed to parse 'GetSubscriptionMetadataUnion' from JSON`,
987
- );
988
- }
989
-
990
930
  /** @internal */
991
931
  export const GetSubscriptionSelf$inboundSchema: z.ZodType<
992
932
  GetSubscriptionSelf,
@@ -1425,11 +1365,7 @@ export const GetSubscriptionResponse$inboundSchema: z.ZodType<
1425
1365
  applicationFee: z.lazy(() => GetSubscriptionApplicationFee$inboundSchema)
1426
1366
  .optional(),
1427
1367
  metadata: z.nullable(
1428
- z.union([
1429
- z.lazy(() => GetSubscriptionMetadata$inboundSchema),
1430
- z.string(),
1431
- z.array(z.string()),
1432
- ]),
1368
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
1433
1369
  ),
1434
1370
  webhookUrl: z.string(),
1435
1371
  customerId: z.string(),
@@ -1458,7 +1394,7 @@ export type GetSubscriptionResponse$Outbound = {
1458
1394
  description: string;
1459
1395
  method: string | null;
1460
1396
  applicationFee?: GetSubscriptionApplicationFee$Outbound | undefined;
1461
- metadata: GetSubscriptionMetadata$Outbound | string | Array<string> | null;
1397
+ metadata: string | { [k: string]: any } | Array<string> | null;
1462
1398
  webhookUrl: string;
1463
1399
  customerId: string;
1464
1400
  mandateId?: string | null | undefined;
@@ -1488,11 +1424,7 @@ export const GetSubscriptionResponse$outboundSchema: z.ZodType<
1488
1424
  applicationFee: z.lazy(() => GetSubscriptionApplicationFee$outboundSchema)
1489
1425
  .optional(),
1490
1426
  metadata: z.nullable(
1491
- z.union([
1492
- z.lazy(() => GetSubscriptionMetadata$outboundSchema),
1493
- z.string(),
1494
- z.array(z.string()),
1495
- ]),
1427
+ z.union([z.string(), z.record(z.any()), z.array(z.string())]),
1496
1428
  ),
1497
1429
  webhookUrl: z.string(),
1498
1430
  customerId: z.string(),
@@ -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(),