mollie-api-typescript 0.0.5 → 0.0.6

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 (222) hide show
  1. package/README.md +3 -2
  2. package/bin/mcp-server.js +676 -1258
  3. package/bin/mcp-server.js.map +28 -28
  4. package/dist/commonjs/funcs/delayedRoutingList.js +4 -0
  5. package/dist/commonjs/funcs/delayedRoutingList.js.map +1 -1
  6. package/dist/commonjs/funcs/subscriptionsAll.d.ts +1 -1
  7. package/dist/commonjs/funcs/subscriptionsAll.d.ts.map +1 -1
  8. package/dist/commonjs/funcs/subscriptionsAll.js +2 -5
  9. package/dist/commonjs/funcs/subscriptionsAll.js.map +1 -1
  10. package/dist/commonjs/lib/config.d.ts +2 -2
  11. package/dist/commonjs/lib/config.js +2 -2
  12. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  13. package/dist/commonjs/mcp-server/server.js +1 -1
  14. package/dist/commonjs/models/errors/listallsubscriptions.d.ts +95 -14
  15. package/dist/commonjs/models/errors/listallsubscriptions.d.ts.map +1 -1
  16. package/dist/commonjs/models/errors/listallsubscriptions.js +80 -14
  17. package/dist/commonjs/models/errors/listallsubscriptions.js.map +1 -1
  18. package/dist/commonjs/models/operations/cancelsubscription.d.ts +40 -40
  19. package/dist/commonjs/models/operations/cancelsubscription.d.ts.map +1 -1
  20. package/dist/commonjs/models/operations/cancelsubscription.js +40 -48
  21. package/dist/commonjs/models/operations/cancelsubscription.js.map +1 -1
  22. package/dist/commonjs/models/operations/createcustomer.d.ts +22 -22
  23. package/dist/commonjs/models/operations/createcustomer.d.ts.map +1 -1
  24. package/dist/commonjs/models/operations/createcustomer.js +22 -24
  25. package/dist/commonjs/models/operations/createcustomer.js.map +1 -1
  26. package/dist/commonjs/models/operations/createmandate.d.ts +26 -26
  27. package/dist/commonjs/models/operations/createmandate.d.ts.map +1 -1
  28. package/dist/commonjs/models/operations/createmandate.js +26 -28
  29. package/dist/commonjs/models/operations/createmandate.js.map +1 -1
  30. package/dist/commonjs/models/operations/createrefund.d.ts +7 -7
  31. package/dist/commonjs/models/operations/createrefund.d.ts.map +1 -1
  32. package/dist/commonjs/models/operations/createrefund.js +8 -10
  33. package/dist/commonjs/models/operations/createrefund.js.map +1 -1
  34. package/dist/commonjs/models/operations/createsubscription.d.ts +44 -44
  35. package/dist/commonjs/models/operations/createsubscription.d.ts.map +1 -1
  36. package/dist/commonjs/models/operations/createsubscription.js +44 -53
  37. package/dist/commonjs/models/operations/createsubscription.js.map +1 -1
  38. package/dist/commonjs/models/operations/getcustomer.d.ts +28 -28
  39. package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
  40. package/dist/commonjs/models/operations/getcustomer.js +28 -30
  41. package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
  42. package/dist/commonjs/models/operations/getmandate.d.ts +26 -26
  43. package/dist/commonjs/models/operations/getmandate.d.ts.map +1 -1
  44. package/dist/commonjs/models/operations/getmandate.js +26 -27
  45. package/dist/commonjs/models/operations/getmandate.js.map +1 -1
  46. package/dist/commonjs/models/operations/getrefund.d.ts +7 -7
  47. package/dist/commonjs/models/operations/getrefund.d.ts.map +1 -1
  48. package/dist/commonjs/models/operations/getrefund.js +8 -8
  49. package/dist/commonjs/models/operations/getrefund.js.map +1 -1
  50. package/dist/commonjs/models/operations/getsubscription.d.ts +40 -40
  51. package/dist/commonjs/models/operations/getsubscription.d.ts.map +1 -1
  52. package/dist/commonjs/models/operations/getsubscription.js +40 -48
  53. package/dist/commonjs/models/operations/getsubscription.js.map +1 -1
  54. package/dist/commonjs/models/operations/listallrefunds.d.ts +9 -15
  55. package/dist/commonjs/models/operations/listallrefunds.d.ts.map +1 -1
  56. package/dist/commonjs/models/operations/listallrefunds.js +8 -10
  57. package/dist/commonjs/models/operations/listallrefunds.js.map +1 -1
  58. package/dist/commonjs/models/operations/listallsubscriptions.d.ts +532 -2849
  59. package/dist/commonjs/models/operations/listallsubscriptions.d.ts.map +1 -1
  60. package/dist/commonjs/models/operations/listallsubscriptions.js +345 -1612
  61. package/dist/commonjs/models/operations/listallsubscriptions.js.map +1 -1
  62. package/dist/commonjs/models/operations/listcustomers.d.ts +22 -22
  63. package/dist/commonjs/models/operations/listcustomers.d.ts.map +1 -1
  64. package/dist/commonjs/models/operations/listcustomers.js +22 -22
  65. package/dist/commonjs/models/operations/listcustomers.js.map +1 -1
  66. package/dist/commonjs/models/operations/listmandates.d.ts +26 -26
  67. package/dist/commonjs/models/operations/listmandates.d.ts.map +1 -1
  68. package/dist/commonjs/models/operations/listmandates.js +26 -26
  69. package/dist/commonjs/models/operations/listmandates.js.map +1 -1
  70. package/dist/commonjs/models/operations/listrefunds.d.ts +7 -7
  71. package/dist/commonjs/models/operations/listrefunds.d.ts.map +1 -1
  72. package/dist/commonjs/models/operations/listrefunds.js +8 -10
  73. package/dist/commonjs/models/operations/listrefunds.js.map +1 -1
  74. package/dist/commonjs/models/operations/listsettlementrefunds.d.ts +7 -7
  75. package/dist/commonjs/models/operations/listsettlementrefunds.d.ts.map +1 -1
  76. package/dist/commonjs/models/operations/listsettlementrefunds.js +8 -8
  77. package/dist/commonjs/models/operations/listsettlementrefunds.js.map +1 -1
  78. package/dist/commonjs/models/operations/listsubscriptions.d.ts +81 -81
  79. package/dist/commonjs/models/operations/listsubscriptions.d.ts.map +1 -1
  80. package/dist/commonjs/models/operations/listsubscriptions.js +90 -96
  81. package/dist/commonjs/models/operations/listsubscriptions.js.map +1 -1
  82. package/dist/commonjs/models/operations/paymentcreateroute.d.ts +11 -0
  83. package/dist/commonjs/models/operations/paymentcreateroute.d.ts.map +1 -1
  84. package/dist/commonjs/models/operations/paymentcreateroute.js +2 -0
  85. package/dist/commonjs/models/operations/paymentcreateroute.js.map +1 -1
  86. package/dist/commonjs/models/operations/paymentlistroutes.d.ts +11 -0
  87. package/dist/commonjs/models/operations/paymentlistroutes.d.ts.map +1 -1
  88. package/dist/commonjs/models/operations/paymentlistroutes.js +2 -0
  89. package/dist/commonjs/models/operations/paymentlistroutes.js.map +1 -1
  90. package/dist/commonjs/models/operations/updatecustomer.d.ts +22 -22
  91. package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
  92. package/dist/commonjs/models/operations/updatecustomer.js +22 -24
  93. package/dist/commonjs/models/operations/updatecustomer.js.map +1 -1
  94. package/dist/commonjs/models/operations/updatesubscription.d.ts +40 -40
  95. package/dist/commonjs/models/operations/updatesubscription.d.ts.map +1 -1
  96. package/dist/commonjs/models/operations/updatesubscription.js +40 -50
  97. package/dist/commonjs/models/operations/updatesubscription.js.map +1 -1
  98. package/dist/esm/funcs/delayedRoutingList.js +5 -1
  99. package/dist/esm/funcs/delayedRoutingList.js.map +1 -1
  100. package/dist/esm/funcs/subscriptionsAll.d.ts +1 -1
  101. package/dist/esm/funcs/subscriptionsAll.d.ts.map +1 -1
  102. package/dist/esm/funcs/subscriptionsAll.js +2 -5
  103. package/dist/esm/funcs/subscriptionsAll.js.map +1 -1
  104. package/dist/esm/lib/config.d.ts +2 -2
  105. package/dist/esm/lib/config.js +2 -2
  106. package/dist/esm/mcp-server/mcp-server.js +1 -1
  107. package/dist/esm/mcp-server/server.js +1 -1
  108. package/dist/esm/models/errors/listallsubscriptions.d.ts +95 -14
  109. package/dist/esm/models/errors/listallsubscriptions.d.ts.map +1 -1
  110. package/dist/esm/models/errors/listallsubscriptions.js +77 -12
  111. package/dist/esm/models/errors/listallsubscriptions.js.map +1 -1
  112. package/dist/esm/models/operations/cancelsubscription.d.ts +40 -40
  113. package/dist/esm/models/operations/cancelsubscription.d.ts.map +1 -1
  114. package/dist/esm/models/operations/cancelsubscription.js +40 -48
  115. package/dist/esm/models/operations/cancelsubscription.js.map +1 -1
  116. package/dist/esm/models/operations/createcustomer.d.ts +22 -22
  117. package/dist/esm/models/operations/createcustomer.d.ts.map +1 -1
  118. package/dist/esm/models/operations/createcustomer.js +22 -24
  119. package/dist/esm/models/operations/createcustomer.js.map +1 -1
  120. package/dist/esm/models/operations/createmandate.d.ts +26 -26
  121. package/dist/esm/models/operations/createmandate.d.ts.map +1 -1
  122. package/dist/esm/models/operations/createmandate.js +26 -28
  123. package/dist/esm/models/operations/createmandate.js.map +1 -1
  124. package/dist/esm/models/operations/createrefund.d.ts +7 -7
  125. package/dist/esm/models/operations/createrefund.d.ts.map +1 -1
  126. package/dist/esm/models/operations/createrefund.js +8 -10
  127. package/dist/esm/models/operations/createrefund.js.map +1 -1
  128. package/dist/esm/models/operations/createsubscription.d.ts +44 -44
  129. package/dist/esm/models/operations/createsubscription.d.ts.map +1 -1
  130. package/dist/esm/models/operations/createsubscription.js +44 -53
  131. package/dist/esm/models/operations/createsubscription.js.map +1 -1
  132. package/dist/esm/models/operations/getcustomer.d.ts +28 -28
  133. package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
  134. package/dist/esm/models/operations/getcustomer.js +28 -30
  135. package/dist/esm/models/operations/getcustomer.js.map +1 -1
  136. package/dist/esm/models/operations/getmandate.d.ts +26 -26
  137. package/dist/esm/models/operations/getmandate.d.ts.map +1 -1
  138. package/dist/esm/models/operations/getmandate.js +26 -27
  139. package/dist/esm/models/operations/getmandate.js.map +1 -1
  140. package/dist/esm/models/operations/getrefund.d.ts +7 -7
  141. package/dist/esm/models/operations/getrefund.d.ts.map +1 -1
  142. package/dist/esm/models/operations/getrefund.js +8 -8
  143. package/dist/esm/models/operations/getrefund.js.map +1 -1
  144. package/dist/esm/models/operations/getsubscription.d.ts +40 -40
  145. package/dist/esm/models/operations/getsubscription.d.ts.map +1 -1
  146. package/dist/esm/models/operations/getsubscription.js +40 -48
  147. package/dist/esm/models/operations/getsubscription.js.map +1 -1
  148. package/dist/esm/models/operations/listallrefunds.d.ts +9 -15
  149. package/dist/esm/models/operations/listallrefunds.d.ts.map +1 -1
  150. package/dist/esm/models/operations/listallrefunds.js +8 -10
  151. package/dist/esm/models/operations/listallrefunds.js.map +1 -1
  152. package/dist/esm/models/operations/listallsubscriptions.d.ts +532 -2849
  153. package/dist/esm/models/operations/listallsubscriptions.d.ts.map +1 -1
  154. package/dist/esm/models/operations/listallsubscriptions.js +325 -1533
  155. package/dist/esm/models/operations/listallsubscriptions.js.map +1 -1
  156. package/dist/esm/models/operations/listcustomers.d.ts +22 -22
  157. package/dist/esm/models/operations/listcustomers.d.ts.map +1 -1
  158. package/dist/esm/models/operations/listcustomers.js +22 -22
  159. package/dist/esm/models/operations/listcustomers.js.map +1 -1
  160. package/dist/esm/models/operations/listmandates.d.ts +26 -26
  161. package/dist/esm/models/operations/listmandates.d.ts.map +1 -1
  162. package/dist/esm/models/operations/listmandates.js +26 -26
  163. package/dist/esm/models/operations/listmandates.js.map +1 -1
  164. package/dist/esm/models/operations/listrefunds.d.ts +7 -7
  165. package/dist/esm/models/operations/listrefunds.d.ts.map +1 -1
  166. package/dist/esm/models/operations/listrefunds.js +8 -10
  167. package/dist/esm/models/operations/listrefunds.js.map +1 -1
  168. package/dist/esm/models/operations/listsettlementrefunds.d.ts +7 -7
  169. package/dist/esm/models/operations/listsettlementrefunds.d.ts.map +1 -1
  170. package/dist/esm/models/operations/listsettlementrefunds.js +8 -8
  171. package/dist/esm/models/operations/listsettlementrefunds.js.map +1 -1
  172. package/dist/esm/models/operations/listsubscriptions.d.ts +81 -81
  173. package/dist/esm/models/operations/listsubscriptions.d.ts.map +1 -1
  174. package/dist/esm/models/operations/listsubscriptions.js +83 -89
  175. package/dist/esm/models/operations/listsubscriptions.js.map +1 -1
  176. package/dist/esm/models/operations/paymentcreateroute.d.ts +11 -0
  177. package/dist/esm/models/operations/paymentcreateroute.d.ts.map +1 -1
  178. package/dist/esm/models/operations/paymentcreateroute.js +2 -0
  179. package/dist/esm/models/operations/paymentcreateroute.js.map +1 -1
  180. package/dist/esm/models/operations/paymentlistroutes.d.ts +11 -0
  181. package/dist/esm/models/operations/paymentlistroutes.d.ts.map +1 -1
  182. package/dist/esm/models/operations/paymentlistroutes.js +2 -0
  183. package/dist/esm/models/operations/paymentlistroutes.js.map +1 -1
  184. package/dist/esm/models/operations/updatecustomer.d.ts +22 -22
  185. package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
  186. package/dist/esm/models/operations/updatecustomer.js +22 -24
  187. package/dist/esm/models/operations/updatecustomer.js.map +1 -1
  188. package/dist/esm/models/operations/updatesubscription.d.ts +40 -40
  189. package/dist/esm/models/operations/updatesubscription.d.ts.map +1 -1
  190. package/dist/esm/models/operations/updatesubscription.js +40 -50
  191. package/dist/esm/models/operations/updatesubscription.js.map +1 -1
  192. package/docs/sdks/delayedrouting/README.md +4 -0
  193. package/docs/sdks/subscriptions/README.md +5 -4
  194. package/examples/package-lock.json +1 -1
  195. package/jsr.json +1 -1
  196. package/package.json +1 -1
  197. package/src/funcs/delayedRoutingList.ts +6 -1
  198. package/src/funcs/subscriptionsAll.ts +17 -8
  199. package/src/lib/config.ts +2 -2
  200. package/src/mcp-server/mcp-server.ts +1 -1
  201. package/src/mcp-server/server.ts +1 -1
  202. package/src/models/errors/listallsubscriptions.ts +173 -23
  203. package/src/models/operations/cancelsubscription.ts +80 -98
  204. package/src/models/operations/createcustomer.ts +45 -53
  205. package/src/models/operations/createmandate.ts +52 -54
  206. package/src/models/operations/createrefund.ts +15 -17
  207. package/src/models/operations/createsubscription.ts +89 -104
  208. package/src/models/operations/getcustomer.ts +56 -63
  209. package/src/models/operations/getmandate.ts +52 -53
  210. package/src/models/operations/getrefund.ts +15 -15
  211. package/src/models/operations/getsubscription.ts +80 -98
  212. package/src/models/operations/listallrefunds.ts +17 -25
  213. package/src/models/operations/listallsubscriptions.ts +894 -4395
  214. package/src/models/operations/listcustomers.ts +44 -49
  215. package/src/models/operations/listmandates.ts +52 -52
  216. package/src/models/operations/listrefunds.ts +15 -17
  217. package/src/models/operations/listsettlementrefunds.ts +15 -15
  218. package/src/models/operations/listsubscriptions.ts +181 -176
  219. package/src/models/operations/paymentcreateroute.ts +13 -0
  220. package/src/models/operations/paymentlistroutes.ts +13 -0
  221. package/src/models/operations/updatecustomer.ts +45 -53
  222. package/src/models/operations/updatesubscription.ts +81 -97
@@ -211,8 +211,8 @@ export type ListSubscriptionsApplicationFee = {
211
211
  /**
212
212
  * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
213
213
  */
214
- amount?: ListSubscriptionsApplicationFeeAmount | undefined;
215
- description?: string | undefined;
214
+ amount: ListSubscriptionsApplicationFeeAmount;
215
+ description: string;
216
216
  };
217
217
 
218
218
  export type ListSubscriptionsMetadata = {};
@@ -234,7 +234,7 @@ export type ListSubscriptionsMetadataUnion =
234
234
  /**
235
235
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
236
236
  */
237
- export type SubscriptionSelf = {
237
+ export type ListSubscriptionsSubscriptionSelf = {
238
238
  /**
239
239
  * The actual URL string.
240
240
  */
@@ -307,7 +307,7 @@ export type ListSubscriptionsPayments = {
307
307
  /**
308
308
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
309
309
  */
310
- export type SubscriptionDocumentation = {
310
+ export type ListSubscriptionsSubscriptionDocumentation = {
311
311
  /**
312
312
  * The actual URL string.
313
313
  */
@@ -321,15 +321,15 @@ export type SubscriptionDocumentation = {
321
321
  /**
322
322
  * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
323
323
  */
324
- export type SubscriptionLinks = {
324
+ export type ListSubscriptionsSubscriptionLinks = {
325
325
  /**
326
326
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
327
327
  */
328
- self?: SubscriptionSelf | undefined;
328
+ self: ListSubscriptionsSubscriptionSelf;
329
329
  /**
330
330
  * The API resource URL of the [customer](get-customer) this subscription was created for.
331
331
  */
332
- customer?: ListSubscriptionsCustomer | null | undefined;
332
+ customer: ListSubscriptionsCustomer | null;
333
333
  /**
334
334
  * The API resource URL of the [mandate](get-mandate) this subscription was created for.
335
335
  */
@@ -337,7 +337,7 @@ export type SubscriptionLinks = {
337
337
  /**
338
338
  * The API resource URL of the [profile](get-profile) this subscription was created for.
339
339
  */
340
- profile?: ListSubscriptionsProfile | null | undefined;
340
+ profile: ListSubscriptionsProfile | null;
341
341
  /**
342
342
  * The API resource URL of the [payments](list-payments) created for this subscription. Omitted if no such
343
343
  *
@@ -348,7 +348,7 @@ export type SubscriptionLinks = {
348
348
  /**
349
349
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
350
350
  */
351
- documentation?: SubscriptionDocumentation | undefined;
351
+ documentation: ListSubscriptionsSubscriptionDocumentation;
352
352
  };
353
353
 
354
354
  export type ListSubscriptionsSubscription = {
@@ -362,25 +362,25 @@ export type ListSubscriptionsSubscription = {
362
362
  /**
363
363
  * The identifier uniquely referring to this subscription. Example: `sub_rVKGtNd6s3`.
364
364
  */
365
- id?: string | undefined;
365
+ id: string;
366
366
  /**
367
367
  * Whether this entity was created in live mode or in test mode.
368
368
  */
369
- mode?: ListSubscriptionsMode | undefined;
369
+ mode: ListSubscriptionsMode;
370
370
  /**
371
371
  * The subscription's current status is directly related to the status of the underlying customer or mandate that is
372
372
  *
373
373
  * @remarks
374
374
  * enabling the subscription.
375
375
  */
376
- status?: ListSubscriptionsStatus | undefined;
376
+ status: ListSubscriptionsStatus;
377
377
  /**
378
378
  * The amount for each individual payment that is charged with this subscription. For example, for a monthly
379
379
  *
380
380
  * @remarks
381
381
  * subscription of €10, the subscription amount should be set to €10.
382
382
  */
383
- amount?: ListSubscriptionsAmount | undefined;
383
+ amount: ListSubscriptionsAmount;
384
384
  /**
385
385
  * Total number of payments for the subscription. Once this number of payments is reached, the subscription is
386
386
  *
@@ -389,11 +389,11 @@ export type ListSubscriptionsSubscription = {
389
389
  *
390
390
  * Test mode subscriptions will get canceled automatically after 10 payments.
391
391
  */
392
- times?: number | null | undefined;
392
+ times: number | null;
393
393
  /**
394
394
  * Number of payments left for the subscription.
395
395
  */
396
- timesRemaining?: number | undefined;
396
+ timesRemaining: number;
397
397
  /**
398
398
  * Interval to wait between payments, for example `1 month` or `14 days`.
399
399
  *
@@ -401,11 +401,11 @@ export type ListSubscriptionsSubscription = {
401
401
  *
402
402
  * The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
403
403
  */
404
- interval?: ListSubscriptionsInterval | undefined;
404
+ interval: ListSubscriptionsInterval;
405
405
  /**
406
406
  * The start date of the subscription in `YYYY-MM-DD` format.
407
407
  */
408
- startDate?: string | undefined;
408
+ startDate: string;
409
409
  /**
410
410
  * The date of the next scheduled payment in `YYYY-MM-DD` format. If the subscription has been completed or canceled,
411
411
  *
@@ -421,11 +421,11 @@ export type ListSubscriptionsSubscription = {
421
421
  *
422
422
  * **Please note:** the description needs to be unique for the Customer in case it has multiple active subscriptions.
423
423
  */
424
- description?: string | undefined;
424
+ description: string;
425
425
  /**
426
426
  * The payment method used for this subscription. If omitted, any of the customer's valid mandates may be used.
427
427
  */
428
- method?: ListSubscriptionsMethod | null | undefined;
428
+ method: ListSubscriptionsMethod | null;
429
429
  /**
430
430
  * With Mollie Connect you can charge fees on payments that your app is processing on behalf of other Mollie
431
431
  *
@@ -447,12 +447,7 @@ export type ListSubscriptionsSubscription = {
447
447
  *
448
448
  * Any metadata added to the subscription will be automatically forwarded to the payments generated for it.
449
449
  */
450
- metadata?:
451
- | ListSubscriptionsMetadata
452
- | string
453
- | Array<string>
454
- | null
455
- | undefined;
450
+ metadata: ListSubscriptionsMetadata | string | Array<string> | null;
456
451
  /**
457
452
  * We will call this URL for any payment status changes of payments resulting from this subscription.
458
453
  *
@@ -461,11 +456,11 @@ export type ListSubscriptionsSubscription = {
461
456
  * This webhook will receive **all** events for the subscription's payments. This may include payment failures as
462
457
  * well. Be sure to verify the payment's subscription ID and its status.
463
458
  */
464
- webhookUrl?: string | undefined;
459
+ webhookUrl: string;
465
460
  /**
466
461
  * The customer this subscription belongs to.
467
462
  */
468
- customerId?: string | undefined;
463
+ customerId: string;
469
464
  /**
470
465
  * The mandate used for this subscription, if any.
471
466
  */
@@ -473,7 +468,7 @@ export type ListSubscriptionsSubscription = {
473
468
  /**
474
469
  * The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
475
470
  */
476
- createdAt?: string | undefined;
471
+ createdAt: string;
477
472
  /**
478
473
  * The subscription's date and time of cancellation, in ISO 8601 format. This parameter is omitted if the
479
474
  *
@@ -484,7 +479,7 @@ export type ListSubscriptionsSubscription = {
484
479
  /**
485
480
  * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
486
481
  */
487
- links?: SubscriptionLinks | undefined;
482
+ links?: ListSubscriptionsSubscriptionLinks | undefined;
488
483
  };
489
484
 
490
485
  export type ListSubscriptionsEmbedded = {
@@ -1140,15 +1135,14 @@ export const ListSubscriptionsApplicationFee$inboundSchema: z.ZodType<
1140
1135
  z.ZodTypeDef,
1141
1136
  unknown
1142
1137
  > = z.object({
1143
- amount: z.lazy(() => ListSubscriptionsApplicationFeeAmount$inboundSchema)
1144
- .optional(),
1145
- description: z.string().optional(),
1138
+ amount: z.lazy(() => ListSubscriptionsApplicationFeeAmount$inboundSchema),
1139
+ description: z.string(),
1146
1140
  });
1147
1141
 
1148
1142
  /** @internal */
1149
1143
  export type ListSubscriptionsApplicationFee$Outbound = {
1150
- amount?: ListSubscriptionsApplicationFeeAmount$Outbound | undefined;
1151
- description?: string | undefined;
1144
+ amount: ListSubscriptionsApplicationFeeAmount$Outbound;
1145
+ description: string;
1152
1146
  };
1153
1147
 
1154
1148
  /** @internal */
@@ -1157,9 +1151,8 @@ export const ListSubscriptionsApplicationFee$outboundSchema: z.ZodType<
1157
1151
  z.ZodTypeDef,
1158
1152
  ListSubscriptionsApplicationFee
1159
1153
  > = z.object({
1160
- amount: z.lazy(() => ListSubscriptionsApplicationFeeAmount$outboundSchema)
1161
- .optional(),
1162
- description: z.string().optional(),
1154
+ amount: z.lazy(() => ListSubscriptionsApplicationFeeAmount$outboundSchema),
1155
+ description: z.string(),
1163
1156
  });
1164
1157
 
1165
1158
  /**
@@ -1305,8 +1298,8 @@ export function listSubscriptionsMetadataUnionFromJSON(
1305
1298
  }
1306
1299
 
1307
1300
  /** @internal */
1308
- export const SubscriptionSelf$inboundSchema: z.ZodType<
1309
- SubscriptionSelf,
1301
+ export const ListSubscriptionsSubscriptionSelf$inboundSchema: z.ZodType<
1302
+ ListSubscriptionsSubscriptionSelf,
1310
1303
  z.ZodTypeDef,
1311
1304
  unknown
1312
1305
  > = z.object({
@@ -1315,16 +1308,16 @@ export const SubscriptionSelf$inboundSchema: z.ZodType<
1315
1308
  });
1316
1309
 
1317
1310
  /** @internal */
1318
- export type SubscriptionSelf$Outbound = {
1311
+ export type ListSubscriptionsSubscriptionSelf$Outbound = {
1319
1312
  href: string;
1320
1313
  type: string;
1321
1314
  };
1322
1315
 
1323
1316
  /** @internal */
1324
- export const SubscriptionSelf$outboundSchema: z.ZodType<
1325
- SubscriptionSelf$Outbound,
1317
+ export const ListSubscriptionsSubscriptionSelf$outboundSchema: z.ZodType<
1318
+ ListSubscriptionsSubscriptionSelf$Outbound,
1326
1319
  z.ZodTypeDef,
1327
- SubscriptionSelf
1320
+ ListSubscriptionsSubscriptionSelf
1328
1321
  > = z.object({
1329
1322
  href: z.string(),
1330
1323
  type: z.string(),
@@ -1334,30 +1327,33 @@ export const SubscriptionSelf$outboundSchema: z.ZodType<
1334
1327
  * @internal
1335
1328
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1336
1329
  */
1337
- export namespace SubscriptionSelf$ {
1338
- /** @deprecated use `SubscriptionSelf$inboundSchema` instead. */
1339
- export const inboundSchema = SubscriptionSelf$inboundSchema;
1340
- /** @deprecated use `SubscriptionSelf$outboundSchema` instead. */
1341
- export const outboundSchema = SubscriptionSelf$outboundSchema;
1342
- /** @deprecated use `SubscriptionSelf$Outbound` instead. */
1343
- export type Outbound = SubscriptionSelf$Outbound;
1330
+ export namespace ListSubscriptionsSubscriptionSelf$ {
1331
+ /** @deprecated use `ListSubscriptionsSubscriptionSelf$inboundSchema` instead. */
1332
+ export const inboundSchema = ListSubscriptionsSubscriptionSelf$inboundSchema;
1333
+ /** @deprecated use `ListSubscriptionsSubscriptionSelf$outboundSchema` instead. */
1334
+ export const outboundSchema =
1335
+ ListSubscriptionsSubscriptionSelf$outboundSchema;
1336
+ /** @deprecated use `ListSubscriptionsSubscriptionSelf$Outbound` instead. */
1337
+ export type Outbound = ListSubscriptionsSubscriptionSelf$Outbound;
1344
1338
  }
1345
1339
 
1346
- export function subscriptionSelfToJSON(
1347
- subscriptionSelf: SubscriptionSelf,
1340
+ export function listSubscriptionsSubscriptionSelfToJSON(
1341
+ listSubscriptionsSubscriptionSelf: ListSubscriptionsSubscriptionSelf,
1348
1342
  ): string {
1349
1343
  return JSON.stringify(
1350
- SubscriptionSelf$outboundSchema.parse(subscriptionSelf),
1344
+ ListSubscriptionsSubscriptionSelf$outboundSchema.parse(
1345
+ listSubscriptionsSubscriptionSelf,
1346
+ ),
1351
1347
  );
1352
1348
  }
1353
1349
 
1354
- export function subscriptionSelfFromJSON(
1350
+ export function listSubscriptionsSubscriptionSelfFromJSON(
1355
1351
  jsonString: string,
1356
- ): SafeParseResult<SubscriptionSelf, SDKValidationError> {
1352
+ ): SafeParseResult<ListSubscriptionsSubscriptionSelf, SDKValidationError> {
1357
1353
  return safeParse(
1358
1354
  jsonString,
1359
- (x) => SubscriptionSelf$inboundSchema.parse(JSON.parse(x)),
1360
- `Failed to parse 'SubscriptionSelf' from JSON`,
1355
+ (x) => ListSubscriptionsSubscriptionSelf$inboundSchema.parse(JSON.parse(x)),
1356
+ `Failed to parse 'ListSubscriptionsSubscriptionSelf' from JSON`,
1361
1357
  );
1362
1358
  }
1363
1359
 
@@ -1590,138 +1586,150 @@ export function listSubscriptionsPaymentsFromJSON(
1590
1586
  }
1591
1587
 
1592
1588
  /** @internal */
1593
- export const SubscriptionDocumentation$inboundSchema: z.ZodType<
1594
- SubscriptionDocumentation,
1595
- z.ZodTypeDef,
1596
- unknown
1597
- > = z.object({
1598
- href: z.string(),
1599
- type: z.string(),
1600
- });
1589
+ export const ListSubscriptionsSubscriptionDocumentation$inboundSchema:
1590
+ z.ZodType<ListSubscriptionsSubscriptionDocumentation, z.ZodTypeDef, unknown> =
1591
+ z.object({
1592
+ href: z.string(),
1593
+ type: z.string(),
1594
+ });
1601
1595
 
1602
1596
  /** @internal */
1603
- export type SubscriptionDocumentation$Outbound = {
1597
+ export type ListSubscriptionsSubscriptionDocumentation$Outbound = {
1604
1598
  href: string;
1605
1599
  type: string;
1606
1600
  };
1607
1601
 
1608
1602
  /** @internal */
1609
- export const SubscriptionDocumentation$outboundSchema: z.ZodType<
1610
- SubscriptionDocumentation$Outbound,
1611
- z.ZodTypeDef,
1612
- SubscriptionDocumentation
1613
- > = z.object({
1614
- href: z.string(),
1615
- type: z.string(),
1616
- });
1603
+ export const ListSubscriptionsSubscriptionDocumentation$outboundSchema:
1604
+ z.ZodType<
1605
+ ListSubscriptionsSubscriptionDocumentation$Outbound,
1606
+ z.ZodTypeDef,
1607
+ ListSubscriptionsSubscriptionDocumentation
1608
+ > = z.object({
1609
+ href: z.string(),
1610
+ type: z.string(),
1611
+ });
1617
1612
 
1618
1613
  /**
1619
1614
  * @internal
1620
1615
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1621
1616
  */
1622
- export namespace SubscriptionDocumentation$ {
1623
- /** @deprecated use `SubscriptionDocumentation$inboundSchema` instead. */
1624
- export const inboundSchema = SubscriptionDocumentation$inboundSchema;
1625
- /** @deprecated use `SubscriptionDocumentation$outboundSchema` instead. */
1626
- export const outboundSchema = SubscriptionDocumentation$outboundSchema;
1627
- /** @deprecated use `SubscriptionDocumentation$Outbound` instead. */
1628
- export type Outbound = SubscriptionDocumentation$Outbound;
1617
+ export namespace ListSubscriptionsSubscriptionDocumentation$ {
1618
+ /** @deprecated use `ListSubscriptionsSubscriptionDocumentation$inboundSchema` instead. */
1619
+ export const inboundSchema =
1620
+ ListSubscriptionsSubscriptionDocumentation$inboundSchema;
1621
+ /** @deprecated use `ListSubscriptionsSubscriptionDocumentation$outboundSchema` instead. */
1622
+ export const outboundSchema =
1623
+ ListSubscriptionsSubscriptionDocumentation$outboundSchema;
1624
+ /** @deprecated use `ListSubscriptionsSubscriptionDocumentation$Outbound` instead. */
1625
+ export type Outbound = ListSubscriptionsSubscriptionDocumentation$Outbound;
1629
1626
  }
1630
1627
 
1631
- export function subscriptionDocumentationToJSON(
1632
- subscriptionDocumentation: SubscriptionDocumentation,
1628
+ export function listSubscriptionsSubscriptionDocumentationToJSON(
1629
+ listSubscriptionsSubscriptionDocumentation:
1630
+ ListSubscriptionsSubscriptionDocumentation,
1633
1631
  ): string {
1634
1632
  return JSON.stringify(
1635
- SubscriptionDocumentation$outboundSchema.parse(subscriptionDocumentation),
1633
+ ListSubscriptionsSubscriptionDocumentation$outboundSchema.parse(
1634
+ listSubscriptionsSubscriptionDocumentation,
1635
+ ),
1636
1636
  );
1637
1637
  }
1638
1638
 
1639
- export function subscriptionDocumentationFromJSON(
1639
+ export function listSubscriptionsSubscriptionDocumentationFromJSON(
1640
1640
  jsonString: string,
1641
- ): SafeParseResult<SubscriptionDocumentation, SDKValidationError> {
1641
+ ): SafeParseResult<
1642
+ ListSubscriptionsSubscriptionDocumentation,
1643
+ SDKValidationError
1644
+ > {
1642
1645
  return safeParse(
1643
1646
  jsonString,
1644
- (x) => SubscriptionDocumentation$inboundSchema.parse(JSON.parse(x)),
1645
- `Failed to parse 'SubscriptionDocumentation' from JSON`,
1647
+ (x) =>
1648
+ ListSubscriptionsSubscriptionDocumentation$inboundSchema.parse(
1649
+ JSON.parse(x),
1650
+ ),
1651
+ `Failed to parse 'ListSubscriptionsSubscriptionDocumentation' from JSON`,
1646
1652
  );
1647
1653
  }
1648
1654
 
1649
1655
  /** @internal */
1650
- export const SubscriptionLinks$inboundSchema: z.ZodType<
1651
- SubscriptionLinks,
1656
+ export const ListSubscriptionsSubscriptionLinks$inboundSchema: z.ZodType<
1657
+ ListSubscriptionsSubscriptionLinks,
1652
1658
  z.ZodTypeDef,
1653
1659
  unknown
1654
1660
  > = z.object({
1655
- self: z.lazy(() => SubscriptionSelf$inboundSchema).optional(),
1656
- customer: z.nullable(z.lazy(() => ListSubscriptionsCustomer$inboundSchema))
1657
- .optional(),
1661
+ self: z.lazy(() => ListSubscriptionsSubscriptionSelf$inboundSchema),
1662
+ customer: z.nullable(z.lazy(() => ListSubscriptionsCustomer$inboundSchema)),
1658
1663
  mandate: z.nullable(z.lazy(() => ListSubscriptionsMandate$inboundSchema))
1659
1664
  .optional(),
1660
- profile: z.nullable(z.lazy(() => ListSubscriptionsProfile$inboundSchema))
1661
- .optional(),
1665
+ profile: z.nullable(z.lazy(() => ListSubscriptionsProfile$inboundSchema)),
1662
1666
  payments: z.nullable(z.lazy(() => ListSubscriptionsPayments$inboundSchema))
1663
1667
  .optional(),
1664
- documentation: z.lazy(() => SubscriptionDocumentation$inboundSchema)
1665
- .optional(),
1668
+ documentation: z.lazy(() =>
1669
+ ListSubscriptionsSubscriptionDocumentation$inboundSchema
1670
+ ),
1666
1671
  });
1667
1672
 
1668
1673
  /** @internal */
1669
- export type SubscriptionLinks$Outbound = {
1670
- self?: SubscriptionSelf$Outbound | undefined;
1671
- customer?: ListSubscriptionsCustomer$Outbound | null | undefined;
1674
+ export type ListSubscriptionsSubscriptionLinks$Outbound = {
1675
+ self: ListSubscriptionsSubscriptionSelf$Outbound;
1676
+ customer: ListSubscriptionsCustomer$Outbound | null;
1672
1677
  mandate?: ListSubscriptionsMandate$Outbound | null | undefined;
1673
- profile?: ListSubscriptionsProfile$Outbound | null | undefined;
1678
+ profile: ListSubscriptionsProfile$Outbound | null;
1674
1679
  payments?: ListSubscriptionsPayments$Outbound | null | undefined;
1675
- documentation?: SubscriptionDocumentation$Outbound | undefined;
1680
+ documentation: ListSubscriptionsSubscriptionDocumentation$Outbound;
1676
1681
  };
1677
1682
 
1678
1683
  /** @internal */
1679
- export const SubscriptionLinks$outboundSchema: z.ZodType<
1680
- SubscriptionLinks$Outbound,
1684
+ export const ListSubscriptionsSubscriptionLinks$outboundSchema: z.ZodType<
1685
+ ListSubscriptionsSubscriptionLinks$Outbound,
1681
1686
  z.ZodTypeDef,
1682
- SubscriptionLinks
1687
+ ListSubscriptionsSubscriptionLinks
1683
1688
  > = z.object({
1684
- self: z.lazy(() => SubscriptionSelf$outboundSchema).optional(),
1685
- customer: z.nullable(z.lazy(() => ListSubscriptionsCustomer$outboundSchema))
1686
- .optional(),
1689
+ self: z.lazy(() => ListSubscriptionsSubscriptionSelf$outboundSchema),
1690
+ customer: z.nullable(z.lazy(() => ListSubscriptionsCustomer$outboundSchema)),
1687
1691
  mandate: z.nullable(z.lazy(() => ListSubscriptionsMandate$outboundSchema))
1688
1692
  .optional(),
1689
- profile: z.nullable(z.lazy(() => ListSubscriptionsProfile$outboundSchema))
1690
- .optional(),
1693
+ profile: z.nullable(z.lazy(() => ListSubscriptionsProfile$outboundSchema)),
1691
1694
  payments: z.nullable(z.lazy(() => ListSubscriptionsPayments$outboundSchema))
1692
1695
  .optional(),
1693
- documentation: z.lazy(() => SubscriptionDocumentation$outboundSchema)
1694
- .optional(),
1696
+ documentation: z.lazy(() =>
1697
+ ListSubscriptionsSubscriptionDocumentation$outboundSchema
1698
+ ),
1695
1699
  });
1696
1700
 
1697
1701
  /**
1698
1702
  * @internal
1699
1703
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1700
1704
  */
1701
- export namespace SubscriptionLinks$ {
1702
- /** @deprecated use `SubscriptionLinks$inboundSchema` instead. */
1703
- export const inboundSchema = SubscriptionLinks$inboundSchema;
1704
- /** @deprecated use `SubscriptionLinks$outboundSchema` instead. */
1705
- export const outboundSchema = SubscriptionLinks$outboundSchema;
1706
- /** @deprecated use `SubscriptionLinks$Outbound` instead. */
1707
- export type Outbound = SubscriptionLinks$Outbound;
1705
+ export namespace ListSubscriptionsSubscriptionLinks$ {
1706
+ /** @deprecated use `ListSubscriptionsSubscriptionLinks$inboundSchema` instead. */
1707
+ export const inboundSchema = ListSubscriptionsSubscriptionLinks$inboundSchema;
1708
+ /** @deprecated use `ListSubscriptionsSubscriptionLinks$outboundSchema` instead. */
1709
+ export const outboundSchema =
1710
+ ListSubscriptionsSubscriptionLinks$outboundSchema;
1711
+ /** @deprecated use `ListSubscriptionsSubscriptionLinks$Outbound` instead. */
1712
+ export type Outbound = ListSubscriptionsSubscriptionLinks$Outbound;
1708
1713
  }
1709
1714
 
1710
- export function subscriptionLinksToJSON(
1711
- subscriptionLinks: SubscriptionLinks,
1715
+ export function listSubscriptionsSubscriptionLinksToJSON(
1716
+ listSubscriptionsSubscriptionLinks: ListSubscriptionsSubscriptionLinks,
1712
1717
  ): string {
1713
1718
  return JSON.stringify(
1714
- SubscriptionLinks$outboundSchema.parse(subscriptionLinks),
1719
+ ListSubscriptionsSubscriptionLinks$outboundSchema.parse(
1720
+ listSubscriptionsSubscriptionLinks,
1721
+ ),
1715
1722
  );
1716
1723
  }
1717
1724
 
1718
- export function subscriptionLinksFromJSON(
1725
+ export function listSubscriptionsSubscriptionLinksFromJSON(
1719
1726
  jsonString: string,
1720
- ): SafeParseResult<SubscriptionLinks, SDKValidationError> {
1727
+ ): SafeParseResult<ListSubscriptionsSubscriptionLinks, SDKValidationError> {
1721
1728
  return safeParse(
1722
1729
  jsonString,
1723
- (x) => SubscriptionLinks$inboundSchema.parse(JSON.parse(x)),
1724
- `Failed to parse 'SubscriptionLinks' from JSON`,
1730
+ (x) =>
1731
+ ListSubscriptionsSubscriptionLinks$inboundSchema.parse(JSON.parse(x)),
1732
+ `Failed to parse 'ListSubscriptionsSubscriptionLinks' from JSON`,
1725
1733
  );
1726
1734
  }
1727
1735
 
@@ -1732,17 +1740,17 @@ export const ListSubscriptionsSubscription$inboundSchema: z.ZodType<
1732
1740
  unknown
1733
1741
  > = z.object({
1734
1742
  resource: z.string().default("subscription"),
1735
- id: z.string().optional(),
1736
- mode: ListSubscriptionsMode$inboundSchema.optional(),
1737
- status: ListSubscriptionsStatus$inboundSchema.optional(),
1738
- amount: z.lazy(() => ListSubscriptionsAmount$inboundSchema).optional(),
1739
- times: z.nullable(z.number().int()).optional(),
1740
- timesRemaining: z.number().int().optional(),
1741
- interval: ListSubscriptionsInterval$inboundSchema.optional(),
1742
- startDate: z.string().optional(),
1743
+ id: z.string(),
1744
+ mode: ListSubscriptionsMode$inboundSchema,
1745
+ status: ListSubscriptionsStatus$inboundSchema,
1746
+ amount: z.lazy(() => ListSubscriptionsAmount$inboundSchema),
1747
+ times: z.nullable(z.number().int()),
1748
+ timesRemaining: z.number().int(),
1749
+ interval: ListSubscriptionsInterval$inboundSchema,
1750
+ startDate: z.string(),
1743
1751
  nextPaymentDate: z.nullable(z.string()).optional(),
1744
- description: z.string().optional(),
1745
- method: z.nullable(ListSubscriptionsMethod$inboundSchema).optional(),
1752
+ description: z.string(),
1753
+ method: z.nullable(ListSubscriptionsMethod$inboundSchema),
1746
1754
  applicationFee: z.lazy(() => ListSubscriptionsApplicationFee$inboundSchema)
1747
1755
  .optional(),
1748
1756
  metadata: z.nullable(
@@ -1751,13 +1759,14 @@ export const ListSubscriptionsSubscription$inboundSchema: z.ZodType<
1751
1759
  z.string(),
1752
1760
  z.array(z.string()),
1753
1761
  ]),
1754
- ).optional(),
1755
- webhookUrl: z.string().optional(),
1756
- customerId: z.string().optional(),
1762
+ ),
1763
+ webhookUrl: z.string(),
1764
+ customerId: z.string(),
1757
1765
  mandateId: z.nullable(z.string()).optional(),
1758
- createdAt: z.string().optional(),
1766
+ createdAt: z.string(),
1759
1767
  canceledAt: z.nullable(z.string()).optional(),
1760
- _links: z.lazy(() => SubscriptionLinks$inboundSchema).optional(),
1768
+ _links: z.lazy(() => ListSubscriptionsSubscriptionLinks$inboundSchema)
1769
+ .optional(),
1761
1770
  }).transform((v) => {
1762
1771
  return remap$(v, {
1763
1772
  "_links": "links",
@@ -1767,30 +1776,25 @@ export const ListSubscriptionsSubscription$inboundSchema: z.ZodType<
1767
1776
  /** @internal */
1768
1777
  export type ListSubscriptionsSubscription$Outbound = {
1769
1778
  resource: string;
1770
- id?: string | undefined;
1771
- mode?: string | undefined;
1772
- status?: string | undefined;
1773
- amount?: ListSubscriptionsAmount$Outbound | undefined;
1774
- times?: number | null | undefined;
1775
- timesRemaining?: number | undefined;
1776
- interval?: string | undefined;
1777
- startDate?: string | undefined;
1779
+ id: string;
1780
+ mode: string;
1781
+ status: string;
1782
+ amount: ListSubscriptionsAmount$Outbound;
1783
+ times: number | null;
1784
+ timesRemaining: number;
1785
+ interval: string;
1786
+ startDate: string;
1778
1787
  nextPaymentDate?: string | null | undefined;
1779
- description?: string | undefined;
1780
- method?: string | null | undefined;
1788
+ description: string;
1789
+ method: string | null;
1781
1790
  applicationFee?: ListSubscriptionsApplicationFee$Outbound | undefined;
1782
- metadata?:
1783
- | ListSubscriptionsMetadata$Outbound
1784
- | string
1785
- | Array<string>
1786
- | null
1787
- | undefined;
1788
- webhookUrl?: string | undefined;
1789
- customerId?: string | undefined;
1791
+ metadata: ListSubscriptionsMetadata$Outbound | string | Array<string> | null;
1792
+ webhookUrl: string;
1793
+ customerId: string;
1790
1794
  mandateId?: string | null | undefined;
1791
- createdAt?: string | undefined;
1795
+ createdAt: string;
1792
1796
  canceledAt?: string | null | undefined;
1793
- _links?: SubscriptionLinks$Outbound | undefined;
1797
+ _links?: ListSubscriptionsSubscriptionLinks$Outbound | undefined;
1794
1798
  };
1795
1799
 
1796
1800
  /** @internal */
@@ -1800,17 +1804,17 @@ export const ListSubscriptionsSubscription$outboundSchema: z.ZodType<
1800
1804
  ListSubscriptionsSubscription
1801
1805
  > = z.object({
1802
1806
  resource: z.string().default("subscription"),
1803
- id: z.string().optional(),
1804
- mode: ListSubscriptionsMode$outboundSchema.optional(),
1805
- status: ListSubscriptionsStatus$outboundSchema.optional(),
1806
- amount: z.lazy(() => ListSubscriptionsAmount$outboundSchema).optional(),
1807
- times: z.nullable(z.number().int()).optional(),
1808
- timesRemaining: z.number().int().optional(),
1809
- interval: ListSubscriptionsInterval$outboundSchema.optional(),
1810
- startDate: z.string().optional(),
1807
+ id: z.string(),
1808
+ mode: ListSubscriptionsMode$outboundSchema,
1809
+ status: ListSubscriptionsStatus$outboundSchema,
1810
+ amount: z.lazy(() => ListSubscriptionsAmount$outboundSchema),
1811
+ times: z.nullable(z.number().int()),
1812
+ timesRemaining: z.number().int(),
1813
+ interval: ListSubscriptionsInterval$outboundSchema,
1814
+ startDate: z.string(),
1811
1815
  nextPaymentDate: z.nullable(z.string()).optional(),
1812
- description: z.string().optional(),
1813
- method: z.nullable(ListSubscriptionsMethod$outboundSchema).optional(),
1816
+ description: z.string(),
1817
+ method: z.nullable(ListSubscriptionsMethod$outboundSchema),
1814
1818
  applicationFee: z.lazy(() => ListSubscriptionsApplicationFee$outboundSchema)
1815
1819
  .optional(),
1816
1820
  metadata: z.nullable(
@@ -1819,13 +1823,14 @@ export const ListSubscriptionsSubscription$outboundSchema: z.ZodType<
1819
1823
  z.string(),
1820
1824
  z.array(z.string()),
1821
1825
  ]),
1822
- ).optional(),
1823
- webhookUrl: z.string().optional(),
1824
- customerId: z.string().optional(),
1826
+ ),
1827
+ webhookUrl: z.string(),
1828
+ customerId: z.string(),
1825
1829
  mandateId: z.nullable(z.string()).optional(),
1826
- createdAt: z.string().optional(),
1830
+ createdAt: z.string(),
1827
1831
  canceledAt: z.nullable(z.string()).optional(),
1828
- links: z.lazy(() => SubscriptionLinks$outboundSchema).optional(),
1832
+ links: z.lazy(() => ListSubscriptionsSubscriptionLinks$outboundSchema)
1833
+ .optional(),
1829
1834
  }).transform((v) => {
1830
1835
  return remap$(v, {
1831
1836
  links: "_links",