mollie-api-typescript 0.0.5 → 0.0.7

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 (239) hide show
  1. package/README.md +3 -2
  2. package/bin/mcp-server.js +710 -1292
  3. package/bin/mcp-server.js.map +31 -31
  4. package/dist/commonjs/funcs/delayedRoutingList.js +4 -0
  5. package/dist/commonjs/funcs/delayedRoutingList.js.map +1 -1
  6. package/dist/commonjs/funcs/refundsGet.js +1 -1
  7. package/dist/commonjs/funcs/refundsGet.js.map +1 -1
  8. package/dist/commonjs/funcs/refundsList.js +1 -1
  9. package/dist/commonjs/funcs/refundsList.js.map +1 -1
  10. package/dist/commonjs/funcs/settlementsListRefunds.js +1 -1
  11. package/dist/commonjs/funcs/settlementsListRefunds.js.map +1 -1
  12. package/dist/commonjs/funcs/subscriptionsAll.d.ts +1 -1
  13. package/dist/commonjs/funcs/subscriptionsAll.d.ts.map +1 -1
  14. package/dist/commonjs/funcs/subscriptionsAll.js +2 -5
  15. package/dist/commonjs/funcs/subscriptionsAll.js.map +1 -1
  16. package/dist/commonjs/lib/config.d.ts +3 -3
  17. package/dist/commonjs/lib/config.js +3 -3
  18. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  19. package/dist/commonjs/mcp-server/server.js +1 -1
  20. package/dist/commonjs/models/errors/listallsubscriptions.d.ts +95 -14
  21. package/dist/commonjs/models/errors/listallsubscriptions.d.ts.map +1 -1
  22. package/dist/commonjs/models/errors/listallsubscriptions.js +80 -14
  23. package/dist/commonjs/models/errors/listallsubscriptions.js.map +1 -1
  24. package/dist/commonjs/models/operations/cancelsubscription.d.ts +40 -40
  25. package/dist/commonjs/models/operations/cancelsubscription.d.ts.map +1 -1
  26. package/dist/commonjs/models/operations/cancelsubscription.js +40 -48
  27. package/dist/commonjs/models/operations/cancelsubscription.js.map +1 -1
  28. package/dist/commonjs/models/operations/createcustomer.d.ts +22 -22
  29. package/dist/commonjs/models/operations/createcustomer.d.ts.map +1 -1
  30. package/dist/commonjs/models/operations/createcustomer.js +22 -24
  31. package/dist/commonjs/models/operations/createcustomer.js.map +1 -1
  32. package/dist/commonjs/models/operations/createmandate.d.ts +26 -26
  33. package/dist/commonjs/models/operations/createmandate.d.ts.map +1 -1
  34. package/dist/commonjs/models/operations/createmandate.js +26 -28
  35. package/dist/commonjs/models/operations/createmandate.js.map +1 -1
  36. package/dist/commonjs/models/operations/createrefund.d.ts +7 -7
  37. package/dist/commonjs/models/operations/createrefund.d.ts.map +1 -1
  38. package/dist/commonjs/models/operations/createrefund.js +8 -10
  39. package/dist/commonjs/models/operations/createrefund.js.map +1 -1
  40. package/dist/commonjs/models/operations/createsubscription.d.ts +44 -44
  41. package/dist/commonjs/models/operations/createsubscription.d.ts.map +1 -1
  42. package/dist/commonjs/models/operations/createsubscription.js +44 -53
  43. package/dist/commonjs/models/operations/createsubscription.js.map +1 -1
  44. package/dist/commonjs/models/operations/getcustomer.d.ts +28 -28
  45. package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
  46. package/dist/commonjs/models/operations/getcustomer.js +28 -30
  47. package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
  48. package/dist/commonjs/models/operations/getmandate.d.ts +26 -26
  49. package/dist/commonjs/models/operations/getmandate.d.ts.map +1 -1
  50. package/dist/commonjs/models/operations/getmandate.js +26 -27
  51. package/dist/commonjs/models/operations/getmandate.js.map +1 -1
  52. package/dist/commonjs/models/operations/getrefund.d.ts +28 -19
  53. package/dist/commonjs/models/operations/getrefund.d.ts.map +1 -1
  54. package/dist/commonjs/models/operations/getrefund.js +25 -22
  55. package/dist/commonjs/models/operations/getrefund.js.map +1 -1
  56. package/dist/commonjs/models/operations/getsubscription.d.ts +40 -40
  57. package/dist/commonjs/models/operations/getsubscription.d.ts.map +1 -1
  58. package/dist/commonjs/models/operations/getsubscription.js +40 -48
  59. package/dist/commonjs/models/operations/getsubscription.js.map +1 -1
  60. package/dist/commonjs/models/operations/listallrefunds.d.ts +9 -15
  61. package/dist/commonjs/models/operations/listallrefunds.d.ts.map +1 -1
  62. package/dist/commonjs/models/operations/listallrefunds.js +8 -10
  63. package/dist/commonjs/models/operations/listallrefunds.js.map +1 -1
  64. package/dist/commonjs/models/operations/listallsubscriptions.d.ts +532 -2849
  65. package/dist/commonjs/models/operations/listallsubscriptions.d.ts.map +1 -1
  66. package/dist/commonjs/models/operations/listallsubscriptions.js +345 -1612
  67. package/dist/commonjs/models/operations/listallsubscriptions.js.map +1 -1
  68. package/dist/commonjs/models/operations/listcustomers.d.ts +22 -22
  69. package/dist/commonjs/models/operations/listcustomers.d.ts.map +1 -1
  70. package/dist/commonjs/models/operations/listcustomers.js +22 -22
  71. package/dist/commonjs/models/operations/listcustomers.js.map +1 -1
  72. package/dist/commonjs/models/operations/listmandates.d.ts +26 -26
  73. package/dist/commonjs/models/operations/listmandates.d.ts.map +1 -1
  74. package/dist/commonjs/models/operations/listmandates.js +26 -26
  75. package/dist/commonjs/models/operations/listmandates.js.map +1 -1
  76. package/dist/commonjs/models/operations/listrefunds.d.ts +28 -19
  77. package/dist/commonjs/models/operations/listrefunds.d.ts.map +1 -1
  78. package/dist/commonjs/models/operations/listrefunds.js +25 -24
  79. package/dist/commonjs/models/operations/listrefunds.js.map +1 -1
  80. package/dist/commonjs/models/operations/listsettlementrefunds.d.ts +28 -19
  81. package/dist/commonjs/models/operations/listsettlementrefunds.d.ts.map +1 -1
  82. package/dist/commonjs/models/operations/listsettlementrefunds.js +25 -22
  83. package/dist/commonjs/models/operations/listsettlementrefunds.js.map +1 -1
  84. package/dist/commonjs/models/operations/listsubscriptions.d.ts +81 -81
  85. package/dist/commonjs/models/operations/listsubscriptions.d.ts.map +1 -1
  86. package/dist/commonjs/models/operations/listsubscriptions.js +90 -96
  87. package/dist/commonjs/models/operations/listsubscriptions.js.map +1 -1
  88. package/dist/commonjs/models/operations/paymentcreateroute.d.ts +11 -0
  89. package/dist/commonjs/models/operations/paymentcreateroute.d.ts.map +1 -1
  90. package/dist/commonjs/models/operations/paymentcreateroute.js +2 -0
  91. package/dist/commonjs/models/operations/paymentcreateroute.js.map +1 -1
  92. package/dist/commonjs/models/operations/paymentlistroutes.d.ts +11 -0
  93. package/dist/commonjs/models/operations/paymentlistroutes.d.ts.map +1 -1
  94. package/dist/commonjs/models/operations/paymentlistroutes.js +2 -0
  95. package/dist/commonjs/models/operations/paymentlistroutes.js.map +1 -1
  96. package/dist/commonjs/models/operations/updatecustomer.d.ts +22 -22
  97. package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
  98. package/dist/commonjs/models/operations/updatecustomer.js +22 -24
  99. package/dist/commonjs/models/operations/updatecustomer.js.map +1 -1
  100. package/dist/commonjs/models/operations/updatesubscription.d.ts +40 -40
  101. package/dist/commonjs/models/operations/updatesubscription.d.ts.map +1 -1
  102. package/dist/commonjs/models/operations/updatesubscription.js +40 -50
  103. package/dist/commonjs/models/operations/updatesubscription.js.map +1 -1
  104. package/dist/esm/funcs/delayedRoutingList.js +5 -1
  105. package/dist/esm/funcs/delayedRoutingList.js.map +1 -1
  106. package/dist/esm/funcs/refundsGet.js +1 -1
  107. package/dist/esm/funcs/refundsGet.js.map +1 -1
  108. package/dist/esm/funcs/refundsList.js +1 -1
  109. package/dist/esm/funcs/refundsList.js.map +1 -1
  110. package/dist/esm/funcs/settlementsListRefunds.js +1 -1
  111. package/dist/esm/funcs/settlementsListRefunds.js.map +1 -1
  112. package/dist/esm/funcs/subscriptionsAll.d.ts +1 -1
  113. package/dist/esm/funcs/subscriptionsAll.d.ts.map +1 -1
  114. package/dist/esm/funcs/subscriptionsAll.js +2 -5
  115. package/dist/esm/funcs/subscriptionsAll.js.map +1 -1
  116. package/dist/esm/lib/config.d.ts +3 -3
  117. package/dist/esm/lib/config.js +3 -3
  118. package/dist/esm/mcp-server/mcp-server.js +1 -1
  119. package/dist/esm/mcp-server/server.js +1 -1
  120. package/dist/esm/models/errors/listallsubscriptions.d.ts +95 -14
  121. package/dist/esm/models/errors/listallsubscriptions.d.ts.map +1 -1
  122. package/dist/esm/models/errors/listallsubscriptions.js +77 -12
  123. package/dist/esm/models/errors/listallsubscriptions.js.map +1 -1
  124. package/dist/esm/models/operations/cancelsubscription.d.ts +40 -40
  125. package/dist/esm/models/operations/cancelsubscription.d.ts.map +1 -1
  126. package/dist/esm/models/operations/cancelsubscription.js +40 -48
  127. package/dist/esm/models/operations/cancelsubscription.js.map +1 -1
  128. package/dist/esm/models/operations/createcustomer.d.ts +22 -22
  129. package/dist/esm/models/operations/createcustomer.d.ts.map +1 -1
  130. package/dist/esm/models/operations/createcustomer.js +22 -24
  131. package/dist/esm/models/operations/createcustomer.js.map +1 -1
  132. package/dist/esm/models/operations/createmandate.d.ts +26 -26
  133. package/dist/esm/models/operations/createmandate.d.ts.map +1 -1
  134. package/dist/esm/models/operations/createmandate.js +26 -28
  135. package/dist/esm/models/operations/createmandate.js.map +1 -1
  136. package/dist/esm/models/operations/createrefund.d.ts +7 -7
  137. package/dist/esm/models/operations/createrefund.d.ts.map +1 -1
  138. package/dist/esm/models/operations/createrefund.js +8 -10
  139. package/dist/esm/models/operations/createrefund.js.map +1 -1
  140. package/dist/esm/models/operations/createsubscription.d.ts +44 -44
  141. package/dist/esm/models/operations/createsubscription.d.ts.map +1 -1
  142. package/dist/esm/models/operations/createsubscription.js +44 -53
  143. package/dist/esm/models/operations/createsubscription.js.map +1 -1
  144. package/dist/esm/models/operations/getcustomer.d.ts +28 -28
  145. package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
  146. package/dist/esm/models/operations/getcustomer.js +28 -30
  147. package/dist/esm/models/operations/getcustomer.js.map +1 -1
  148. package/dist/esm/models/operations/getmandate.d.ts +26 -26
  149. package/dist/esm/models/operations/getmandate.d.ts.map +1 -1
  150. package/dist/esm/models/operations/getmandate.js +26 -27
  151. package/dist/esm/models/operations/getmandate.js.map +1 -1
  152. package/dist/esm/models/operations/getrefund.d.ts +28 -19
  153. package/dist/esm/models/operations/getrefund.d.ts.map +1 -1
  154. package/dist/esm/models/operations/getrefund.js +24 -21
  155. package/dist/esm/models/operations/getrefund.js.map +1 -1
  156. package/dist/esm/models/operations/getsubscription.d.ts +40 -40
  157. package/dist/esm/models/operations/getsubscription.d.ts.map +1 -1
  158. package/dist/esm/models/operations/getsubscription.js +40 -48
  159. package/dist/esm/models/operations/getsubscription.js.map +1 -1
  160. package/dist/esm/models/operations/listallrefunds.d.ts +9 -15
  161. package/dist/esm/models/operations/listallrefunds.d.ts.map +1 -1
  162. package/dist/esm/models/operations/listallrefunds.js +8 -10
  163. package/dist/esm/models/operations/listallrefunds.js.map +1 -1
  164. package/dist/esm/models/operations/listallsubscriptions.d.ts +532 -2849
  165. package/dist/esm/models/operations/listallsubscriptions.d.ts.map +1 -1
  166. package/dist/esm/models/operations/listallsubscriptions.js +325 -1533
  167. package/dist/esm/models/operations/listallsubscriptions.js.map +1 -1
  168. package/dist/esm/models/operations/listcustomers.d.ts +22 -22
  169. package/dist/esm/models/operations/listcustomers.d.ts.map +1 -1
  170. package/dist/esm/models/operations/listcustomers.js +22 -22
  171. package/dist/esm/models/operations/listcustomers.js.map +1 -1
  172. package/dist/esm/models/operations/listmandates.d.ts +26 -26
  173. package/dist/esm/models/operations/listmandates.d.ts.map +1 -1
  174. package/dist/esm/models/operations/listmandates.js +26 -26
  175. package/dist/esm/models/operations/listmandates.js.map +1 -1
  176. package/dist/esm/models/operations/listrefunds.d.ts +28 -19
  177. package/dist/esm/models/operations/listrefunds.d.ts.map +1 -1
  178. package/dist/esm/models/operations/listrefunds.js +24 -23
  179. package/dist/esm/models/operations/listrefunds.js.map +1 -1
  180. package/dist/esm/models/operations/listsettlementrefunds.d.ts +28 -19
  181. package/dist/esm/models/operations/listsettlementrefunds.d.ts.map +1 -1
  182. package/dist/esm/models/operations/listsettlementrefunds.js +24 -21
  183. package/dist/esm/models/operations/listsettlementrefunds.js.map +1 -1
  184. package/dist/esm/models/operations/listsubscriptions.d.ts +81 -81
  185. package/dist/esm/models/operations/listsubscriptions.d.ts.map +1 -1
  186. package/dist/esm/models/operations/listsubscriptions.js +83 -89
  187. package/dist/esm/models/operations/listsubscriptions.js.map +1 -1
  188. package/dist/esm/models/operations/paymentcreateroute.d.ts +11 -0
  189. package/dist/esm/models/operations/paymentcreateroute.d.ts.map +1 -1
  190. package/dist/esm/models/operations/paymentcreateroute.js +2 -0
  191. package/dist/esm/models/operations/paymentcreateroute.js.map +1 -1
  192. package/dist/esm/models/operations/paymentlistroutes.d.ts +11 -0
  193. package/dist/esm/models/operations/paymentlistroutes.d.ts.map +1 -1
  194. package/dist/esm/models/operations/paymentlistroutes.js +2 -0
  195. package/dist/esm/models/operations/paymentlistroutes.js.map +1 -1
  196. package/dist/esm/models/operations/updatecustomer.d.ts +22 -22
  197. package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
  198. package/dist/esm/models/operations/updatecustomer.js +22 -24
  199. package/dist/esm/models/operations/updatecustomer.js.map +1 -1
  200. package/dist/esm/models/operations/updatesubscription.d.ts +40 -40
  201. package/dist/esm/models/operations/updatesubscription.d.ts.map +1 -1
  202. package/dist/esm/models/operations/updatesubscription.js +40 -50
  203. package/dist/esm/models/operations/updatesubscription.js.map +1 -1
  204. package/docs/sdks/delayedrouting/README.md +4 -0
  205. package/docs/sdks/refunds/README.md +4 -4
  206. package/docs/sdks/settlements/README.md +2 -2
  207. package/docs/sdks/subscriptions/README.md +5 -4
  208. package/examples/package-lock.json +2 -2
  209. package/jsr.json +1 -1
  210. package/package.json +2 -2
  211. package/src/funcs/delayedRoutingList.ts +6 -1
  212. package/src/funcs/refundsGet.ts +1 -1
  213. package/src/funcs/refundsList.ts +1 -1
  214. package/src/funcs/settlementsListRefunds.ts +1 -1
  215. package/src/funcs/subscriptionsAll.ts +17 -8
  216. package/src/lib/config.ts +3 -3
  217. package/src/mcp-server/mcp-server.ts +1 -1
  218. package/src/mcp-server/server.ts +1 -1
  219. package/src/models/errors/listallsubscriptions.ts +173 -23
  220. package/src/models/operations/cancelsubscription.ts +80 -98
  221. package/src/models/operations/createcustomer.ts +45 -53
  222. package/src/models/operations/createmandate.ts +52 -54
  223. package/src/models/operations/createrefund.ts +15 -17
  224. package/src/models/operations/createsubscription.ts +89 -104
  225. package/src/models/operations/getcustomer.ts +56 -63
  226. package/src/models/operations/getmandate.ts +52 -53
  227. package/src/models/operations/getrefund.ts +44 -35
  228. package/src/models/operations/getsubscription.ts +80 -98
  229. package/src/models/operations/listallrefunds.ts +17 -25
  230. package/src/models/operations/listallsubscriptions.ts +894 -4395
  231. package/src/models/operations/listcustomers.ts +44 -49
  232. package/src/models/operations/listmandates.ts +52 -52
  233. package/src/models/operations/listrefunds.ts +44 -37
  234. package/src/models/operations/listsettlementrefunds.ts +45 -36
  235. package/src/models/operations/listsubscriptions.ts +181 -176
  236. package/src/models/operations/paymentcreateroute.ts +13 -0
  237. package/src/models/operations/paymentlistroutes.ts +13 -0
  238. package/src/models/operations/updatecustomer.ts +45 -53
  239. package/src/models/operations/updatesubscription.ts +81 -97
@@ -72,6 +72,16 @@ export type PaymentCreateRouteRequestBody = {
72
72
  * The destination of the route.
73
73
  */
74
74
  destination?: PaymentCreateRouteDestinationRequest | undefined;
75
+ /**
76
+ * Whether to create the entity in test mode or live mode.
77
+ *
78
+ * @remarks
79
+ *
80
+ * Most API credentials are specifically created for either live mode or test mode, in which case this parameter can be
81
+ * omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by setting
82
+ * `testmode` to `true`.
83
+ */
84
+ testmode?: boolean | null | undefined;
75
85
  };
76
86
 
77
87
  export type PaymentCreateRouteRequest = {
@@ -382,6 +392,7 @@ export const PaymentCreateRouteRequestBody$inboundSchema: z.ZodType<
382
392
  description: z.string().optional(),
383
393
  destination: z.lazy(() => PaymentCreateRouteDestinationRequest$inboundSchema)
384
394
  .optional(),
395
+ testmode: z.nullable(z.boolean()).optional(),
385
396
  });
386
397
 
387
398
  /** @internal */
@@ -389,6 +400,7 @@ export type PaymentCreateRouteRequestBody$Outbound = {
389
400
  amount?: PaymentCreateRouteAmountRequest$Outbound | undefined;
390
401
  description?: string | undefined;
391
402
  destination?: PaymentCreateRouteDestinationRequest$Outbound | undefined;
403
+ testmode?: boolean | null | undefined;
392
404
  };
393
405
 
394
406
  /** @internal */
@@ -402,6 +414,7 @@ export const PaymentCreateRouteRequestBody$outboundSchema: z.ZodType<
402
414
  description: z.string().optional(),
403
415
  destination: z.lazy(() => PaymentCreateRouteDestinationRequest$outboundSchema)
404
416
  .optional(),
417
+ testmode: z.nullable(z.boolean()).optional(),
405
418
  });
406
419
 
407
420
  /**
@@ -14,6 +14,16 @@ export type PaymentListRoutesRequest = {
14
14
  * Provide the ID of the related payment.
15
15
  */
16
16
  paymentId: string;
17
+ /**
18
+ * Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
19
+ *
20
+ * @remarks
21
+ * parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
22
+ * setting the `testmode` query parameter to `true`.
23
+ *
24
+ * Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
25
+ */
26
+ testmode?: boolean | null | undefined;
17
27
  };
18
28
 
19
29
  /**
@@ -239,11 +249,13 @@ export const PaymentListRoutesRequest$inboundSchema: z.ZodType<
239
249
  unknown
240
250
  > = z.object({
241
251
  paymentId: z.string(),
252
+ testmode: z.nullable(z.boolean()).optional(),
242
253
  });
243
254
 
244
255
  /** @internal */
245
256
  export type PaymentListRoutesRequest$Outbound = {
246
257
  paymentId: string;
258
+ testmode?: boolean | null | undefined;
247
259
  };
248
260
 
249
261
  /** @internal */
@@ -253,6 +265,7 @@ export const PaymentListRoutesRequest$outboundSchema: z.ZodType<
253
265
  PaymentListRoutesRequest
254
266
  > = z.object({
255
267
  paymentId: z.string(),
268
+ testmode: z.nullable(z.boolean()).optional(),
256
269
  });
257
270
 
258
271
  /**
@@ -290,11 +290,11 @@ export type UpdateCustomerLinks = {
290
290
  /**
291
291
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
292
292
  */
293
- self?: UpdateCustomerSelf | undefined;
293
+ self: UpdateCustomerSelf;
294
294
  /**
295
295
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
296
296
  */
297
- dashboard?: UpdateCustomerDashboard | undefined;
297
+ dashboard: UpdateCustomerDashboard;
298
298
  /**
299
299
  * The API resource URL of the [payments](list-payments) linked to this customer. Omitted if no such payments
300
300
  *
@@ -319,7 +319,7 @@ export type UpdateCustomerLinks = {
319
319
  /**
320
320
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
321
321
  */
322
- documentation?: UpdateCustomerDocumentation | undefined;
322
+ documentation: UpdateCustomerDocumentation;
323
323
  };
324
324
 
325
325
  /**
@@ -333,46 +333,41 @@ export type UpdateCustomerResponse = {
333
333
  /**
334
334
  * The identifier uniquely referring to this customer. Example: `cst_vsKJpSsabw`.
335
335
  */
336
- id?: string | undefined;
336
+ id: string;
337
337
  /**
338
338
  * Whether this entity was created in live mode or in test mode.
339
339
  */
340
- mode?: UpdateCustomerMode | undefined;
340
+ mode: UpdateCustomerMode;
341
341
  /**
342
342
  * The full name of the customer.
343
343
  */
344
- name?: string | null | undefined;
344
+ name: string | null;
345
345
  /**
346
346
  * The email address of the customer.
347
347
  */
348
- email?: string | null | undefined;
348
+ email: string | null;
349
349
  /**
350
350
  * Preconfigure the language to be used in the hosted payment pages shown to the customer. Should only be provided if
351
351
  *
352
352
  * @remarks
353
353
  * absolutely necessary. If not provided, the browser language will be used which is typically highly accurate.
354
354
  */
355
- locale?: UpdateCustomerLocaleResponse | null | undefined;
355
+ locale: UpdateCustomerLocaleResponse | null;
356
356
  /**
357
357
  * Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
358
358
  *
359
359
  * @remarks
360
360
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
361
361
  */
362
- metadata?:
363
- | UpdateCustomerMetadataResponse
364
- | string
365
- | Array<string>
366
- | null
367
- | undefined;
362
+ metadata: UpdateCustomerMetadataResponse | string | Array<string> | null;
368
363
  /**
369
364
  * The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
370
365
  */
371
- createdAt?: string | undefined;
366
+ createdAt: string;
372
367
  /**
373
368
  * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
374
369
  */
375
- links?: UpdateCustomerLinks | undefined;
370
+ links: UpdateCustomerLinks;
376
371
  };
377
372
 
378
373
  /** @internal */
@@ -1288,8 +1283,8 @@ export const UpdateCustomerLinks$inboundSchema: z.ZodType<
1288
1283
  z.ZodTypeDef,
1289
1284
  unknown
1290
1285
  > = z.object({
1291
- self: z.lazy(() => UpdateCustomerSelf$inboundSchema).optional(),
1292
- dashboard: z.lazy(() => UpdateCustomerDashboard$inboundSchema).optional(),
1286
+ self: z.lazy(() => UpdateCustomerSelf$inboundSchema),
1287
+ dashboard: z.lazy(() => UpdateCustomerDashboard$inboundSchema),
1293
1288
  payments: z.nullable(z.lazy(() => UpdateCustomerPayments$inboundSchema))
1294
1289
  .optional(),
1295
1290
  mandates: z.nullable(z.lazy(() => UpdateCustomerMandates$inboundSchema))
@@ -1297,18 +1292,17 @@ export const UpdateCustomerLinks$inboundSchema: z.ZodType<
1297
1292
  subscriptions: z.nullable(
1298
1293
  z.lazy(() => UpdateCustomerSubscriptions$inboundSchema),
1299
1294
  ).optional(),
1300
- documentation: z.lazy(() => UpdateCustomerDocumentation$inboundSchema)
1301
- .optional(),
1295
+ documentation: z.lazy(() => UpdateCustomerDocumentation$inboundSchema),
1302
1296
  });
1303
1297
 
1304
1298
  /** @internal */
1305
1299
  export type UpdateCustomerLinks$Outbound = {
1306
- self?: UpdateCustomerSelf$Outbound | undefined;
1307
- dashboard?: UpdateCustomerDashboard$Outbound | undefined;
1300
+ self: UpdateCustomerSelf$Outbound;
1301
+ dashboard: UpdateCustomerDashboard$Outbound;
1308
1302
  payments?: UpdateCustomerPayments$Outbound | null | undefined;
1309
1303
  mandates?: UpdateCustomerMandates$Outbound | null | undefined;
1310
1304
  subscriptions?: UpdateCustomerSubscriptions$Outbound | null | undefined;
1311
- documentation?: UpdateCustomerDocumentation$Outbound | undefined;
1305
+ documentation: UpdateCustomerDocumentation$Outbound;
1312
1306
  };
1313
1307
 
1314
1308
  /** @internal */
@@ -1317,8 +1311,8 @@ export const UpdateCustomerLinks$outboundSchema: z.ZodType<
1317
1311
  z.ZodTypeDef,
1318
1312
  UpdateCustomerLinks
1319
1313
  > = z.object({
1320
- self: z.lazy(() => UpdateCustomerSelf$outboundSchema).optional(),
1321
- dashboard: z.lazy(() => UpdateCustomerDashboard$outboundSchema).optional(),
1314
+ self: z.lazy(() => UpdateCustomerSelf$outboundSchema),
1315
+ dashboard: z.lazy(() => UpdateCustomerDashboard$outboundSchema),
1322
1316
  payments: z.nullable(z.lazy(() => UpdateCustomerPayments$outboundSchema))
1323
1317
  .optional(),
1324
1318
  mandates: z.nullable(z.lazy(() => UpdateCustomerMandates$outboundSchema))
@@ -1326,8 +1320,7 @@ export const UpdateCustomerLinks$outboundSchema: z.ZodType<
1326
1320
  subscriptions: z.nullable(
1327
1321
  z.lazy(() => UpdateCustomerSubscriptions$outboundSchema),
1328
1322
  ).optional(),
1329
- documentation: z.lazy(() => UpdateCustomerDocumentation$outboundSchema)
1330
- .optional(),
1323
+ documentation: z.lazy(() => UpdateCustomerDocumentation$outboundSchema),
1331
1324
  });
1332
1325
 
1333
1326
  /**
@@ -1368,20 +1361,20 @@ export const UpdateCustomerResponse$inboundSchema: z.ZodType<
1368
1361
  unknown
1369
1362
  > = z.object({
1370
1363
  resource: z.string().default("customer"),
1371
- id: z.string().optional(),
1372
- mode: UpdateCustomerMode$inboundSchema.optional(),
1373
- name: z.nullable(z.string()).optional(),
1374
- email: z.nullable(z.string()).optional(),
1375
- locale: z.nullable(UpdateCustomerLocaleResponse$inboundSchema).optional(),
1364
+ id: z.string(),
1365
+ mode: UpdateCustomerMode$inboundSchema,
1366
+ name: z.nullable(z.string()),
1367
+ email: z.nullable(z.string()),
1368
+ locale: z.nullable(UpdateCustomerLocaleResponse$inboundSchema),
1376
1369
  metadata: z.nullable(
1377
1370
  z.union([
1378
1371
  z.lazy(() => UpdateCustomerMetadataResponse$inboundSchema),
1379
1372
  z.string(),
1380
1373
  z.array(z.string()),
1381
1374
  ]),
1382
- ).optional(),
1383
- createdAt: z.string().optional(),
1384
- _links: z.lazy(() => UpdateCustomerLinks$inboundSchema).optional(),
1375
+ ),
1376
+ createdAt: z.string(),
1377
+ _links: z.lazy(() => UpdateCustomerLinks$inboundSchema),
1385
1378
  }).transform((v) => {
1386
1379
  return remap$(v, {
1387
1380
  "_links": "links",
@@ -1391,19 +1384,18 @@ export const UpdateCustomerResponse$inboundSchema: z.ZodType<
1391
1384
  /** @internal */
1392
1385
  export type UpdateCustomerResponse$Outbound = {
1393
1386
  resource: string;
1394
- id?: string | undefined;
1395
- mode?: string | undefined;
1396
- name?: string | null | undefined;
1397
- email?: string | null | undefined;
1398
- locale?: string | null | undefined;
1399
- metadata?:
1387
+ id: string;
1388
+ mode: string;
1389
+ name: string | null;
1390
+ email: string | null;
1391
+ locale: string | null;
1392
+ metadata:
1400
1393
  | UpdateCustomerMetadataResponse$Outbound
1401
1394
  | string
1402
1395
  | Array<string>
1403
- | null
1404
- | undefined;
1405
- createdAt?: string | undefined;
1406
- _links?: UpdateCustomerLinks$Outbound | undefined;
1396
+ | null;
1397
+ createdAt: string;
1398
+ _links: UpdateCustomerLinks$Outbound;
1407
1399
  };
1408
1400
 
1409
1401
  /** @internal */
@@ -1413,20 +1405,20 @@ export const UpdateCustomerResponse$outboundSchema: z.ZodType<
1413
1405
  UpdateCustomerResponse
1414
1406
  > = z.object({
1415
1407
  resource: z.string().default("customer"),
1416
- id: z.string().optional(),
1417
- mode: UpdateCustomerMode$outboundSchema.optional(),
1418
- name: z.nullable(z.string()).optional(),
1419
- email: z.nullable(z.string()).optional(),
1420
- locale: z.nullable(UpdateCustomerLocaleResponse$outboundSchema).optional(),
1408
+ id: z.string(),
1409
+ mode: UpdateCustomerMode$outboundSchema,
1410
+ name: z.nullable(z.string()),
1411
+ email: z.nullable(z.string()),
1412
+ locale: z.nullable(UpdateCustomerLocaleResponse$outboundSchema),
1421
1413
  metadata: z.nullable(
1422
1414
  z.union([
1423
1415
  z.lazy(() => UpdateCustomerMetadataResponse$outboundSchema),
1424
1416
  z.string(),
1425
1417
  z.array(z.string()),
1426
1418
  ]),
1427
- ).optional(),
1428
- createdAt: z.string().optional(),
1429
- links: z.lazy(() => UpdateCustomerLinks$outboundSchema).optional(),
1419
+ ),
1420
+ createdAt: z.string(),
1421
+ links: z.lazy(() => UpdateCustomerLinks$outboundSchema),
1430
1422
  }).transform((v) => {
1431
1423
  return remap$(v, {
1432
1424
  links: "_links",
@@ -282,8 +282,8 @@ export type UpdateSubscriptionApplicationFee = {
282
282
  /**
283
283
  * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
284
284
  */
285
- amount?: UpdateSubscriptionApplicationFeeAmount | undefined;
286
- description?: string | undefined;
285
+ amount: UpdateSubscriptionApplicationFeeAmount;
286
+ description: string;
287
287
  };
288
288
 
289
289
  export type UpdateSubscriptionMetadataResponse = {};
@@ -396,11 +396,11 @@ export type UpdateSubscriptionLinks = {
396
396
  /**
397
397
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
398
398
  */
399
- self?: UpdateSubscriptionSelf | undefined;
399
+ self: UpdateSubscriptionSelf;
400
400
  /**
401
401
  * The API resource URL of the [customer](get-customer) this subscription was created for.
402
402
  */
403
- customer?: UpdateSubscriptionCustomer | null | undefined;
403
+ customer: UpdateSubscriptionCustomer | null;
404
404
  /**
405
405
  * The API resource URL of the [mandate](get-mandate) this subscription was created for.
406
406
  */
@@ -408,7 +408,7 @@ export type UpdateSubscriptionLinks = {
408
408
  /**
409
409
  * The API resource URL of the [profile](get-profile) this subscription was created for.
410
410
  */
411
- profile?: UpdateSubscriptionProfile | null | undefined;
411
+ profile: UpdateSubscriptionProfile | null;
412
412
  /**
413
413
  * The API resource URL of the [payments](list-payments) created for this subscription. Omitted if no such
414
414
  *
@@ -419,7 +419,7 @@ export type UpdateSubscriptionLinks = {
419
419
  /**
420
420
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
421
421
  */
422
- documentation?: UpdateSubscriptionDocumentation | undefined;
422
+ documentation: UpdateSubscriptionDocumentation;
423
423
  };
424
424
 
425
425
  /**
@@ -436,25 +436,25 @@ export type UpdateSubscriptionResponse = {
436
436
  /**
437
437
  * The identifier uniquely referring to this subscription. Example: `sub_rVKGtNd6s3`.
438
438
  */
439
- id?: string | undefined;
439
+ id: string;
440
440
  /**
441
441
  * Whether this entity was created in live mode or in test mode.
442
442
  */
443
- mode?: UpdateSubscriptionMode | undefined;
443
+ mode: UpdateSubscriptionMode;
444
444
  /**
445
445
  * The subscription's current status is directly related to the status of the underlying customer or mandate that is
446
446
  *
447
447
  * @remarks
448
448
  * enabling the subscription.
449
449
  */
450
- status?: UpdateSubscriptionStatus | undefined;
450
+ status: UpdateSubscriptionStatus;
451
451
  /**
452
452
  * The amount for each individual payment that is charged with this subscription. For example, for a monthly
453
453
  *
454
454
  * @remarks
455
455
  * subscription of €10, the subscription amount should be set to €10.
456
456
  */
457
- amount?: UpdateSubscriptionAmountResponse | undefined;
457
+ amount: UpdateSubscriptionAmountResponse;
458
458
  /**
459
459
  * Total number of payments for the subscription. Once this number of payments is reached, the subscription is
460
460
  *
@@ -463,11 +463,11 @@ export type UpdateSubscriptionResponse = {
463
463
  *
464
464
  * Test mode subscriptions will get canceled automatically after 10 payments.
465
465
  */
466
- times?: number | null | undefined;
466
+ times: number | null;
467
467
  /**
468
468
  * Number of payments left for the subscription.
469
469
  */
470
- timesRemaining?: number | undefined;
470
+ timesRemaining: number;
471
471
  /**
472
472
  * Interval to wait between payments, for example `1 month` or `14 days`.
473
473
  *
@@ -475,11 +475,11 @@ export type UpdateSubscriptionResponse = {
475
475
  *
476
476
  * The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
477
477
  */
478
- interval?: UpdateSubscriptionIntervalResponse | undefined;
478
+ interval: UpdateSubscriptionIntervalResponse;
479
479
  /**
480
480
  * The start date of the subscription in `YYYY-MM-DD` format.
481
481
  */
482
- startDate?: string | undefined;
482
+ startDate: string;
483
483
  /**
484
484
  * The date of the next scheduled payment in `YYYY-MM-DD` format. If the subscription has been completed or canceled,
485
485
  *
@@ -495,11 +495,11 @@ export type UpdateSubscriptionResponse = {
495
495
  *
496
496
  * **Please note:** the description needs to be unique for the Customer in case it has multiple active subscriptions.
497
497
  */
498
- description?: string | undefined;
498
+ description: string;
499
499
  /**
500
500
  * The payment method used for this subscription. If omitted, any of the customer's valid mandates may be used.
501
501
  */
502
- method?: UpdateSubscriptionMethod | null | undefined;
502
+ method: UpdateSubscriptionMethod | null;
503
503
  /**
504
504
  * With Mollie Connect you can charge fees on payments that your app is processing on behalf of other Mollie
505
505
  *
@@ -521,12 +521,7 @@ export type UpdateSubscriptionResponse = {
521
521
  *
522
522
  * Any metadata added to the subscription will be automatically forwarded to the payments generated for it.
523
523
  */
524
- metadata?:
525
- | UpdateSubscriptionMetadataResponse
526
- | string
527
- | Array<string>
528
- | null
529
- | undefined;
524
+ metadata: UpdateSubscriptionMetadataResponse | string | Array<string> | null;
530
525
  /**
531
526
  * We will call this URL for any payment status changes of payments resulting from this subscription.
532
527
  *
@@ -535,11 +530,11 @@ export type UpdateSubscriptionResponse = {
535
530
  * This webhook will receive **all** events for the subscription's payments. This may include payment failures as
536
531
  * well. Be sure to verify the payment's subscription ID and its status.
537
532
  */
538
- webhookUrl?: string | undefined;
533
+ webhookUrl: string;
539
534
  /**
540
535
  * The customer this subscription belongs to.
541
536
  */
542
- customerId?: string | undefined;
537
+ customerId: string;
543
538
  /**
544
539
  * The mandate used for this subscription, if any.
545
540
  */
@@ -547,7 +542,7 @@ export type UpdateSubscriptionResponse = {
547
542
  /**
548
543
  * The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
549
544
  */
550
- createdAt?: string | undefined;
545
+ createdAt: string;
551
546
  /**
552
547
  * The subscription's date and time of cancellation, in ISO 8601 format. This parameter is omitted if the
553
548
  *
@@ -1268,15 +1263,14 @@ export const UpdateSubscriptionApplicationFee$inboundSchema: z.ZodType<
1268
1263
  z.ZodTypeDef,
1269
1264
  unknown
1270
1265
  > = z.object({
1271
- amount: z.lazy(() => UpdateSubscriptionApplicationFeeAmount$inboundSchema)
1272
- .optional(),
1273
- description: z.string().optional(),
1266
+ amount: z.lazy(() => UpdateSubscriptionApplicationFeeAmount$inboundSchema),
1267
+ description: z.string(),
1274
1268
  });
1275
1269
 
1276
1270
  /** @internal */
1277
1271
  export type UpdateSubscriptionApplicationFee$Outbound = {
1278
- amount?: UpdateSubscriptionApplicationFeeAmount$Outbound | undefined;
1279
- description?: string | undefined;
1272
+ amount: UpdateSubscriptionApplicationFeeAmount$Outbound;
1273
+ description: string;
1280
1274
  };
1281
1275
 
1282
1276
  /** @internal */
@@ -1285,9 +1279,8 @@ export const UpdateSubscriptionApplicationFee$outboundSchema: z.ZodType<
1285
1279
  z.ZodTypeDef,
1286
1280
  UpdateSubscriptionApplicationFee
1287
1281
  > = z.object({
1288
- amount: z.lazy(() => UpdateSubscriptionApplicationFeeAmount$outboundSchema)
1289
- .optional(),
1290
- description: z.string().optional(),
1282
+ amount: z.lazy(() => UpdateSubscriptionApplicationFeeAmount$outboundSchema),
1283
+ description: z.string(),
1291
1284
  });
1292
1285
 
1293
1286
  /**
@@ -1795,27 +1788,24 @@ export const UpdateSubscriptionLinks$inboundSchema: z.ZodType<
1795
1788
  z.ZodTypeDef,
1796
1789
  unknown
1797
1790
  > = z.object({
1798
- self: z.lazy(() => UpdateSubscriptionSelf$inboundSchema).optional(),
1799
- customer: z.nullable(z.lazy(() => UpdateSubscriptionCustomer$inboundSchema))
1800
- .optional(),
1791
+ self: z.lazy(() => UpdateSubscriptionSelf$inboundSchema),
1792
+ customer: z.nullable(z.lazy(() => UpdateSubscriptionCustomer$inboundSchema)),
1801
1793
  mandate: z.nullable(z.lazy(() => UpdateSubscriptionMandate$inboundSchema))
1802
1794
  .optional(),
1803
- profile: z.nullable(z.lazy(() => UpdateSubscriptionProfile$inboundSchema))
1804
- .optional(),
1795
+ profile: z.nullable(z.lazy(() => UpdateSubscriptionProfile$inboundSchema)),
1805
1796
  payments: z.nullable(z.lazy(() => UpdateSubscriptionPayments$inboundSchema))
1806
1797
  .optional(),
1807
- documentation: z.lazy(() => UpdateSubscriptionDocumentation$inboundSchema)
1808
- .optional(),
1798
+ documentation: z.lazy(() => UpdateSubscriptionDocumentation$inboundSchema),
1809
1799
  });
1810
1800
 
1811
1801
  /** @internal */
1812
1802
  export type UpdateSubscriptionLinks$Outbound = {
1813
- self?: UpdateSubscriptionSelf$Outbound | undefined;
1814
- customer?: UpdateSubscriptionCustomer$Outbound | null | undefined;
1803
+ self: UpdateSubscriptionSelf$Outbound;
1804
+ customer: UpdateSubscriptionCustomer$Outbound | null;
1815
1805
  mandate?: UpdateSubscriptionMandate$Outbound | null | undefined;
1816
- profile?: UpdateSubscriptionProfile$Outbound | null | undefined;
1806
+ profile: UpdateSubscriptionProfile$Outbound | null;
1817
1807
  payments?: UpdateSubscriptionPayments$Outbound | null | undefined;
1818
- documentation?: UpdateSubscriptionDocumentation$Outbound | undefined;
1808
+ documentation: UpdateSubscriptionDocumentation$Outbound;
1819
1809
  };
1820
1810
 
1821
1811
  /** @internal */
@@ -1824,17 +1814,14 @@ export const UpdateSubscriptionLinks$outboundSchema: z.ZodType<
1824
1814
  z.ZodTypeDef,
1825
1815
  UpdateSubscriptionLinks
1826
1816
  > = z.object({
1827
- self: z.lazy(() => UpdateSubscriptionSelf$outboundSchema).optional(),
1828
- customer: z.nullable(z.lazy(() => UpdateSubscriptionCustomer$outboundSchema))
1829
- .optional(),
1817
+ self: z.lazy(() => UpdateSubscriptionSelf$outboundSchema),
1818
+ customer: z.nullable(z.lazy(() => UpdateSubscriptionCustomer$outboundSchema)),
1830
1819
  mandate: z.nullable(z.lazy(() => UpdateSubscriptionMandate$outboundSchema))
1831
1820
  .optional(),
1832
- profile: z.nullable(z.lazy(() => UpdateSubscriptionProfile$outboundSchema))
1833
- .optional(),
1821
+ profile: z.nullable(z.lazy(() => UpdateSubscriptionProfile$outboundSchema)),
1834
1822
  payments: z.nullable(z.lazy(() => UpdateSubscriptionPayments$outboundSchema))
1835
1823
  .optional(),
1836
- documentation: z.lazy(() => UpdateSubscriptionDocumentation$outboundSchema)
1837
- .optional(),
1824
+ documentation: z.lazy(() => UpdateSubscriptionDocumentation$outboundSchema),
1838
1825
  });
1839
1826
 
1840
1827
  /**
@@ -1875,18 +1862,17 @@ export const UpdateSubscriptionResponse$inboundSchema: z.ZodType<
1875
1862
  unknown
1876
1863
  > = z.object({
1877
1864
  resource: z.string().default("subscription"),
1878
- id: z.string().optional(),
1879
- mode: UpdateSubscriptionMode$inboundSchema.optional(),
1880
- status: UpdateSubscriptionStatus$inboundSchema.optional(),
1881
- amount: z.lazy(() => UpdateSubscriptionAmountResponse$inboundSchema)
1882
- .optional(),
1883
- times: z.nullable(z.number().int()).optional(),
1884
- timesRemaining: z.number().int().optional(),
1885
- interval: UpdateSubscriptionIntervalResponse$inboundSchema.optional(),
1886
- startDate: z.string().optional(),
1865
+ id: z.string(),
1866
+ mode: UpdateSubscriptionMode$inboundSchema,
1867
+ status: UpdateSubscriptionStatus$inboundSchema,
1868
+ amount: z.lazy(() => UpdateSubscriptionAmountResponse$inboundSchema),
1869
+ times: z.nullable(z.number().int()),
1870
+ timesRemaining: z.number().int(),
1871
+ interval: UpdateSubscriptionIntervalResponse$inboundSchema,
1872
+ startDate: z.string(),
1887
1873
  nextPaymentDate: z.nullable(z.string()).optional(),
1888
- description: z.string().optional(),
1889
- method: z.nullable(UpdateSubscriptionMethod$inboundSchema).optional(),
1874
+ description: z.string(),
1875
+ method: z.nullable(UpdateSubscriptionMethod$inboundSchema),
1890
1876
  applicationFee: z.lazy(() => UpdateSubscriptionApplicationFee$inboundSchema)
1891
1877
  .optional(),
1892
1878
  metadata: z.nullable(
@@ -1895,11 +1881,11 @@ export const UpdateSubscriptionResponse$inboundSchema: z.ZodType<
1895
1881
  z.string(),
1896
1882
  z.array(z.string()),
1897
1883
  ]),
1898
- ).optional(),
1899
- webhookUrl: z.string().optional(),
1900
- customerId: z.string().optional(),
1884
+ ),
1885
+ webhookUrl: z.string(),
1886
+ customerId: z.string(),
1901
1887
  mandateId: z.nullable(z.string()).optional(),
1902
- createdAt: z.string().optional(),
1888
+ createdAt: z.string(),
1903
1889
  canceledAt: z.nullable(z.string()).optional(),
1904
1890
  _links: z.lazy(() => UpdateSubscriptionLinks$inboundSchema).optional(),
1905
1891
  }).transform((v) => {
@@ -1911,28 +1897,27 @@ export const UpdateSubscriptionResponse$inboundSchema: z.ZodType<
1911
1897
  /** @internal */
1912
1898
  export type UpdateSubscriptionResponse$Outbound = {
1913
1899
  resource: string;
1914
- id?: string | undefined;
1915
- mode?: string | undefined;
1916
- status?: string | undefined;
1917
- amount?: UpdateSubscriptionAmountResponse$Outbound | undefined;
1918
- times?: number | null | undefined;
1919
- timesRemaining?: number | undefined;
1920
- interval?: string | undefined;
1921
- startDate?: string | undefined;
1900
+ id: string;
1901
+ mode: string;
1902
+ status: string;
1903
+ amount: UpdateSubscriptionAmountResponse$Outbound;
1904
+ times: number | null;
1905
+ timesRemaining: number;
1906
+ interval: string;
1907
+ startDate: string;
1922
1908
  nextPaymentDate?: string | null | undefined;
1923
- description?: string | undefined;
1924
- method?: string | null | undefined;
1909
+ description: string;
1910
+ method: string | null;
1925
1911
  applicationFee?: UpdateSubscriptionApplicationFee$Outbound | undefined;
1926
- metadata?:
1912
+ metadata:
1927
1913
  | UpdateSubscriptionMetadataResponse$Outbound
1928
1914
  | string
1929
1915
  | Array<string>
1930
- | null
1931
- | undefined;
1932
- webhookUrl?: string | undefined;
1933
- customerId?: string | undefined;
1916
+ | null;
1917
+ webhookUrl: string;
1918
+ customerId: string;
1934
1919
  mandateId?: string | null | undefined;
1935
- createdAt?: string | undefined;
1920
+ createdAt: string;
1936
1921
  canceledAt?: string | null | undefined;
1937
1922
  _links?: UpdateSubscriptionLinks$Outbound | undefined;
1938
1923
  };
@@ -1944,18 +1929,17 @@ export const UpdateSubscriptionResponse$outboundSchema: z.ZodType<
1944
1929
  UpdateSubscriptionResponse
1945
1930
  > = z.object({
1946
1931
  resource: z.string().default("subscription"),
1947
- id: z.string().optional(),
1948
- mode: UpdateSubscriptionMode$outboundSchema.optional(),
1949
- status: UpdateSubscriptionStatus$outboundSchema.optional(),
1950
- amount: z.lazy(() => UpdateSubscriptionAmountResponse$outboundSchema)
1951
- .optional(),
1952
- times: z.nullable(z.number().int()).optional(),
1953
- timesRemaining: z.number().int().optional(),
1954
- interval: UpdateSubscriptionIntervalResponse$outboundSchema.optional(),
1955
- startDate: z.string().optional(),
1932
+ id: z.string(),
1933
+ mode: UpdateSubscriptionMode$outboundSchema,
1934
+ status: UpdateSubscriptionStatus$outboundSchema,
1935
+ amount: z.lazy(() => UpdateSubscriptionAmountResponse$outboundSchema),
1936
+ times: z.nullable(z.number().int()),
1937
+ timesRemaining: z.number().int(),
1938
+ interval: UpdateSubscriptionIntervalResponse$outboundSchema,
1939
+ startDate: z.string(),
1956
1940
  nextPaymentDate: z.nullable(z.string()).optional(),
1957
- description: z.string().optional(),
1958
- method: z.nullable(UpdateSubscriptionMethod$outboundSchema).optional(),
1941
+ description: z.string(),
1942
+ method: z.nullable(UpdateSubscriptionMethod$outboundSchema),
1959
1943
  applicationFee: z.lazy(() => UpdateSubscriptionApplicationFee$outboundSchema)
1960
1944
  .optional(),
1961
1945
  metadata: z.nullable(
@@ -1964,11 +1948,11 @@ export const UpdateSubscriptionResponse$outboundSchema: z.ZodType<
1964
1948
  z.string(),
1965
1949
  z.array(z.string()),
1966
1950
  ]),
1967
- ).optional(),
1968
- webhookUrl: z.string().optional(),
1969
- customerId: z.string().optional(),
1951
+ ),
1952
+ webhookUrl: z.string(),
1953
+ customerId: z.string(),
1970
1954
  mandateId: z.nullable(z.string()).optional(),
1971
- createdAt: z.string().optional(),
1955
+ createdAt: z.string(),
1972
1956
  canceledAt: z.nullable(z.string()).optional(),
1973
1957
  links: z.lazy(() => UpdateSubscriptionLinks$outboundSchema).optional(),
1974
1958
  }).transform((v) => {