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
@@ -93,8 +93,8 @@ export type CreateSubscriptionApplicationFeeRequest = {
93
93
  /**
94
94
  * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
95
95
  */
96
- amount?: CreateSubscriptionApplicationFeeAmountRequest | undefined;
97
- description?: string | undefined;
96
+ amount: CreateSubscriptionApplicationFeeAmountRequest;
97
+ description: string;
98
98
  };
99
99
 
100
100
  export type CreateSubscriptionMetadataRequest = {};
@@ -349,8 +349,8 @@ export type CreateSubscriptionApplicationFeeResponse = {
349
349
  /**
350
350
  * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
351
351
  */
352
- amount?: CreateSubscriptionApplicationFeeAmountResponse | undefined;
353
- description?: string | undefined;
352
+ amount: CreateSubscriptionApplicationFeeAmountResponse;
353
+ description: string;
354
354
  };
355
355
 
356
356
  export type CreateSubscriptionMetadataResponse = {};
@@ -463,11 +463,11 @@ export type CreateSubscriptionLinks = {
463
463
  /**
464
464
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
465
465
  */
466
- self?: CreateSubscriptionSelf | undefined;
466
+ self: CreateSubscriptionSelf;
467
467
  /**
468
468
  * The API resource URL of the [customer](get-customer) this subscription was created for.
469
469
  */
470
- customer?: CreateSubscriptionCustomer | null | undefined;
470
+ customer: CreateSubscriptionCustomer | null;
471
471
  /**
472
472
  * The API resource URL of the [mandate](get-mandate) this subscription was created for.
473
473
  */
@@ -475,7 +475,7 @@ export type CreateSubscriptionLinks = {
475
475
  /**
476
476
  * The API resource URL of the [profile](get-profile) this subscription was created for.
477
477
  */
478
- profile?: CreateSubscriptionProfile | null | undefined;
478
+ profile: CreateSubscriptionProfile | null;
479
479
  /**
480
480
  * The API resource URL of the [payments](list-payments) created for this subscription. Omitted if no such
481
481
  *
@@ -486,7 +486,7 @@ export type CreateSubscriptionLinks = {
486
486
  /**
487
487
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
488
488
  */
489
- documentation?: CreateSubscriptionDocumentation | undefined;
489
+ documentation: CreateSubscriptionDocumentation;
490
490
  };
491
491
 
492
492
  /**
@@ -503,25 +503,25 @@ export type CreateSubscriptionResponse = {
503
503
  /**
504
504
  * The identifier uniquely referring to this subscription. Example: `sub_rVKGtNd6s3`.
505
505
  */
506
- id?: string | undefined;
506
+ id: string;
507
507
  /**
508
508
  * Whether this entity was created in live mode or in test mode.
509
509
  */
510
- mode?: CreateSubscriptionMode | undefined;
510
+ mode: CreateSubscriptionMode;
511
511
  /**
512
512
  * The subscription's current status is directly related to the status of the underlying customer or mandate that is
513
513
  *
514
514
  * @remarks
515
515
  * enabling the subscription.
516
516
  */
517
- status?: CreateSubscriptionStatus | undefined;
517
+ status: CreateSubscriptionStatus;
518
518
  /**
519
519
  * The amount for each individual payment that is charged with this subscription. For example, for a monthly
520
520
  *
521
521
  * @remarks
522
522
  * subscription of €10, the subscription amount should be set to €10.
523
523
  */
524
- amount?: CreateSubscriptionAmountResponse | undefined;
524
+ amount: CreateSubscriptionAmountResponse;
525
525
  /**
526
526
  * Total number of payments for the subscription. Once this number of payments is reached, the subscription is
527
527
  *
@@ -530,11 +530,11 @@ export type CreateSubscriptionResponse = {
530
530
  *
531
531
  * Test mode subscriptions will get canceled automatically after 10 payments.
532
532
  */
533
- times?: number | null | undefined;
533
+ times: number | null;
534
534
  /**
535
535
  * Number of payments left for the subscription.
536
536
  */
537
- timesRemaining?: number | undefined;
537
+ timesRemaining: number;
538
538
  /**
539
539
  * Interval to wait between payments, for example `1 month` or `14 days`.
540
540
  *
@@ -542,11 +542,11 @@ export type CreateSubscriptionResponse = {
542
542
  *
543
543
  * The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
544
544
  */
545
- interval?: CreateSubscriptionIntervalResponse | undefined;
545
+ interval: CreateSubscriptionIntervalResponse;
546
546
  /**
547
547
  * The start date of the subscription in `YYYY-MM-DD` format.
548
548
  */
549
- startDate?: string | undefined;
549
+ startDate: string;
550
550
  /**
551
551
  * The date of the next scheduled payment in `YYYY-MM-DD` format. If the subscription has been completed or canceled,
552
552
  *
@@ -562,11 +562,11 @@ export type CreateSubscriptionResponse = {
562
562
  *
563
563
  * **Please note:** the description needs to be unique for the Customer in case it has multiple active subscriptions.
564
564
  */
565
- description?: string | undefined;
565
+ description: string;
566
566
  /**
567
567
  * The payment method used for this subscription. If omitted, any of the customer's valid mandates may be used.
568
568
  */
569
- method?: CreateSubscriptionMethodResponse | null | undefined;
569
+ method: CreateSubscriptionMethodResponse | null;
570
570
  /**
571
571
  * With Mollie Connect you can charge fees on payments that your app is processing on behalf of other Mollie
572
572
  *
@@ -588,12 +588,7 @@ export type CreateSubscriptionResponse = {
588
588
  *
589
589
  * Any metadata added to the subscription will be automatically forwarded to the payments generated for it.
590
590
  */
591
- metadata?:
592
- | CreateSubscriptionMetadataResponse
593
- | string
594
- | Array<string>
595
- | null
596
- | undefined;
591
+ metadata: CreateSubscriptionMetadataResponse | string | Array<string> | null;
597
592
  /**
598
593
  * We will call this URL for any payment status changes of payments resulting from this subscription.
599
594
  *
@@ -602,11 +597,11 @@ export type CreateSubscriptionResponse = {
602
597
  * This webhook will receive **all** events for the subscription's payments. This may include payment failures as
603
598
  * well. Be sure to verify the payment's subscription ID and its status.
604
599
  */
605
- webhookUrl?: string | undefined;
600
+ webhookUrl: string;
606
601
  /**
607
602
  * The customer this subscription belongs to.
608
603
  */
609
- customerId?: string | undefined;
604
+ customerId: string;
610
605
  /**
611
606
  * The mandate used for this subscription, if any.
612
607
  */
@@ -614,7 +609,7 @@ export type CreateSubscriptionResponse = {
614
609
  /**
615
610
  * The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
616
611
  */
617
- createdAt?: string | undefined;
612
+ createdAt: string;
618
613
  /**
619
614
  * The subscription's date and time of cancellation, in ISO 8601 format. This parameter is omitted if the
620
615
  *
@@ -808,14 +803,14 @@ export const CreateSubscriptionApplicationFeeRequest$inboundSchema: z.ZodType<
808
803
  > = z.object({
809
804
  amount: z.lazy(() =>
810
805
  CreateSubscriptionApplicationFeeAmountRequest$inboundSchema
811
- ).optional(),
812
- description: z.string().optional(),
806
+ ),
807
+ description: z.string(),
813
808
  });
814
809
 
815
810
  /** @internal */
816
811
  export type CreateSubscriptionApplicationFeeRequest$Outbound = {
817
- amount?: CreateSubscriptionApplicationFeeAmountRequest$Outbound | undefined;
818
- description?: string | undefined;
812
+ amount: CreateSubscriptionApplicationFeeAmountRequest$Outbound;
813
+ description: string;
819
814
  };
820
815
 
821
816
  /** @internal */
@@ -826,8 +821,8 @@ export const CreateSubscriptionApplicationFeeRequest$outboundSchema: z.ZodType<
826
821
  > = z.object({
827
822
  amount: z.lazy(() =>
828
823
  CreateSubscriptionApplicationFeeAmountRequest$outboundSchema
829
- ).optional(),
830
- description: z.string().optional(),
824
+ ),
825
+ description: z.string(),
831
826
  });
832
827
 
833
828
  /**
@@ -1513,14 +1508,14 @@ export const CreateSubscriptionApplicationFeeResponse$inboundSchema: z.ZodType<
1513
1508
  > = z.object({
1514
1509
  amount: z.lazy(() =>
1515
1510
  CreateSubscriptionApplicationFeeAmountResponse$inboundSchema
1516
- ).optional(),
1517
- description: z.string().optional(),
1511
+ ),
1512
+ description: z.string(),
1518
1513
  });
1519
1514
 
1520
1515
  /** @internal */
1521
1516
  export type CreateSubscriptionApplicationFeeResponse$Outbound = {
1522
- amount?: CreateSubscriptionApplicationFeeAmountResponse$Outbound | undefined;
1523
- description?: string | undefined;
1517
+ amount: CreateSubscriptionApplicationFeeAmountResponse$Outbound;
1518
+ description: string;
1524
1519
  };
1525
1520
 
1526
1521
  /** @internal */
@@ -1531,8 +1526,8 @@ export const CreateSubscriptionApplicationFeeResponse$outboundSchema: z.ZodType<
1531
1526
  > = z.object({
1532
1527
  amount: z.lazy(() =>
1533
1528
  CreateSubscriptionApplicationFeeAmountResponse$outboundSchema
1534
- ).optional(),
1535
- description: z.string().optional(),
1529
+ ),
1530
+ description: z.string(),
1536
1531
  });
1537
1532
 
1538
1533
  /**
@@ -2049,27 +2044,24 @@ export const CreateSubscriptionLinks$inboundSchema: z.ZodType<
2049
2044
  z.ZodTypeDef,
2050
2045
  unknown
2051
2046
  > = z.object({
2052
- self: z.lazy(() => CreateSubscriptionSelf$inboundSchema).optional(),
2053
- customer: z.nullable(z.lazy(() => CreateSubscriptionCustomer$inboundSchema))
2054
- .optional(),
2047
+ self: z.lazy(() => CreateSubscriptionSelf$inboundSchema),
2048
+ customer: z.nullable(z.lazy(() => CreateSubscriptionCustomer$inboundSchema)),
2055
2049
  mandate: z.nullable(z.lazy(() => CreateSubscriptionMandate$inboundSchema))
2056
2050
  .optional(),
2057
- profile: z.nullable(z.lazy(() => CreateSubscriptionProfile$inboundSchema))
2058
- .optional(),
2051
+ profile: z.nullable(z.lazy(() => CreateSubscriptionProfile$inboundSchema)),
2059
2052
  payments: z.nullable(z.lazy(() => CreateSubscriptionPayments$inboundSchema))
2060
2053
  .optional(),
2061
- documentation: z.lazy(() => CreateSubscriptionDocumentation$inboundSchema)
2062
- .optional(),
2054
+ documentation: z.lazy(() => CreateSubscriptionDocumentation$inboundSchema),
2063
2055
  });
2064
2056
 
2065
2057
  /** @internal */
2066
2058
  export type CreateSubscriptionLinks$Outbound = {
2067
- self?: CreateSubscriptionSelf$Outbound | undefined;
2068
- customer?: CreateSubscriptionCustomer$Outbound | null | undefined;
2059
+ self: CreateSubscriptionSelf$Outbound;
2060
+ customer: CreateSubscriptionCustomer$Outbound | null;
2069
2061
  mandate?: CreateSubscriptionMandate$Outbound | null | undefined;
2070
- profile?: CreateSubscriptionProfile$Outbound | null | undefined;
2062
+ profile: CreateSubscriptionProfile$Outbound | null;
2071
2063
  payments?: CreateSubscriptionPayments$Outbound | null | undefined;
2072
- documentation?: CreateSubscriptionDocumentation$Outbound | undefined;
2064
+ documentation: CreateSubscriptionDocumentation$Outbound;
2073
2065
  };
2074
2066
 
2075
2067
  /** @internal */
@@ -2078,17 +2070,14 @@ export const CreateSubscriptionLinks$outboundSchema: z.ZodType<
2078
2070
  z.ZodTypeDef,
2079
2071
  CreateSubscriptionLinks
2080
2072
  > = z.object({
2081
- self: z.lazy(() => CreateSubscriptionSelf$outboundSchema).optional(),
2082
- customer: z.nullable(z.lazy(() => CreateSubscriptionCustomer$outboundSchema))
2083
- .optional(),
2073
+ self: z.lazy(() => CreateSubscriptionSelf$outboundSchema),
2074
+ customer: z.nullable(z.lazy(() => CreateSubscriptionCustomer$outboundSchema)),
2084
2075
  mandate: z.nullable(z.lazy(() => CreateSubscriptionMandate$outboundSchema))
2085
2076
  .optional(),
2086
- profile: z.nullable(z.lazy(() => CreateSubscriptionProfile$outboundSchema))
2087
- .optional(),
2077
+ profile: z.nullable(z.lazy(() => CreateSubscriptionProfile$outboundSchema)),
2088
2078
  payments: z.nullable(z.lazy(() => CreateSubscriptionPayments$outboundSchema))
2089
2079
  .optional(),
2090
- documentation: z.lazy(() => CreateSubscriptionDocumentation$outboundSchema)
2091
- .optional(),
2080
+ documentation: z.lazy(() => CreateSubscriptionDocumentation$outboundSchema),
2092
2081
  });
2093
2082
 
2094
2083
  /**
@@ -2129,18 +2118,17 @@ export const CreateSubscriptionResponse$inboundSchema: z.ZodType<
2129
2118
  unknown
2130
2119
  > = z.object({
2131
2120
  resource: z.string().default("subscription"),
2132
- id: z.string().optional(),
2133
- mode: CreateSubscriptionMode$inboundSchema.optional(),
2134
- status: CreateSubscriptionStatus$inboundSchema.optional(),
2135
- amount: z.lazy(() => CreateSubscriptionAmountResponse$inboundSchema)
2136
- .optional(),
2137
- times: z.nullable(z.number().int()).optional(),
2138
- timesRemaining: z.number().int().optional(),
2139
- interval: CreateSubscriptionIntervalResponse$inboundSchema.optional(),
2140
- startDate: z.string().optional(),
2121
+ id: z.string(),
2122
+ mode: CreateSubscriptionMode$inboundSchema,
2123
+ status: CreateSubscriptionStatus$inboundSchema,
2124
+ amount: z.lazy(() => CreateSubscriptionAmountResponse$inboundSchema),
2125
+ times: z.nullable(z.number().int()),
2126
+ timesRemaining: z.number().int(),
2127
+ interval: CreateSubscriptionIntervalResponse$inboundSchema,
2128
+ startDate: z.string(),
2141
2129
  nextPaymentDate: z.nullable(z.string()).optional(),
2142
- description: z.string().optional(),
2143
- method: z.nullable(CreateSubscriptionMethodResponse$inboundSchema).optional(),
2130
+ description: z.string(),
2131
+ method: z.nullable(CreateSubscriptionMethodResponse$inboundSchema),
2144
2132
  applicationFee: z.lazy(() =>
2145
2133
  CreateSubscriptionApplicationFeeResponse$inboundSchema
2146
2134
  ).optional(),
@@ -2150,11 +2138,11 @@ export const CreateSubscriptionResponse$inboundSchema: z.ZodType<
2150
2138
  z.string(),
2151
2139
  z.array(z.string()),
2152
2140
  ]),
2153
- ).optional(),
2154
- webhookUrl: z.string().optional(),
2155
- customerId: z.string().optional(),
2141
+ ),
2142
+ webhookUrl: z.string(),
2143
+ customerId: z.string(),
2156
2144
  mandateId: z.nullable(z.string()).optional(),
2157
- createdAt: z.string().optional(),
2145
+ createdAt: z.string(),
2158
2146
  canceledAt: z.nullable(z.string()).optional(),
2159
2147
  _links: z.lazy(() => CreateSubscriptionLinks$inboundSchema).optional(),
2160
2148
  }).transform((v) => {
@@ -2166,30 +2154,29 @@ export const CreateSubscriptionResponse$inboundSchema: z.ZodType<
2166
2154
  /** @internal */
2167
2155
  export type CreateSubscriptionResponse$Outbound = {
2168
2156
  resource: string;
2169
- id?: string | undefined;
2170
- mode?: string | undefined;
2171
- status?: string | undefined;
2172
- amount?: CreateSubscriptionAmountResponse$Outbound | undefined;
2173
- times?: number | null | undefined;
2174
- timesRemaining?: number | undefined;
2175
- interval?: string | undefined;
2176
- startDate?: string | undefined;
2157
+ id: string;
2158
+ mode: string;
2159
+ status: string;
2160
+ amount: CreateSubscriptionAmountResponse$Outbound;
2161
+ times: number | null;
2162
+ timesRemaining: number;
2163
+ interval: string;
2164
+ startDate: string;
2177
2165
  nextPaymentDate?: string | null | undefined;
2178
- description?: string | undefined;
2179
- method?: string | null | undefined;
2166
+ description: string;
2167
+ method: string | null;
2180
2168
  applicationFee?:
2181
2169
  | CreateSubscriptionApplicationFeeResponse$Outbound
2182
2170
  | undefined;
2183
- metadata?:
2171
+ metadata:
2184
2172
  | CreateSubscriptionMetadataResponse$Outbound
2185
2173
  | string
2186
2174
  | Array<string>
2187
- | null
2188
- | undefined;
2189
- webhookUrl?: string | undefined;
2190
- customerId?: string | undefined;
2175
+ | null;
2176
+ webhookUrl: string;
2177
+ customerId: string;
2191
2178
  mandateId?: string | null | undefined;
2192
- createdAt?: string | undefined;
2179
+ createdAt: string;
2193
2180
  canceledAt?: string | null | undefined;
2194
2181
  _links?: CreateSubscriptionLinks$Outbound | undefined;
2195
2182
  };
@@ -2201,19 +2188,17 @@ export const CreateSubscriptionResponse$outboundSchema: z.ZodType<
2201
2188
  CreateSubscriptionResponse
2202
2189
  > = z.object({
2203
2190
  resource: z.string().default("subscription"),
2204
- id: z.string().optional(),
2205
- mode: CreateSubscriptionMode$outboundSchema.optional(),
2206
- status: CreateSubscriptionStatus$outboundSchema.optional(),
2207
- amount: z.lazy(() => CreateSubscriptionAmountResponse$outboundSchema)
2208
- .optional(),
2209
- times: z.nullable(z.number().int()).optional(),
2210
- timesRemaining: z.number().int().optional(),
2211
- interval: CreateSubscriptionIntervalResponse$outboundSchema.optional(),
2212
- startDate: z.string().optional(),
2191
+ id: z.string(),
2192
+ mode: CreateSubscriptionMode$outboundSchema,
2193
+ status: CreateSubscriptionStatus$outboundSchema,
2194
+ amount: z.lazy(() => CreateSubscriptionAmountResponse$outboundSchema),
2195
+ times: z.nullable(z.number().int()),
2196
+ timesRemaining: z.number().int(),
2197
+ interval: CreateSubscriptionIntervalResponse$outboundSchema,
2198
+ startDate: z.string(),
2213
2199
  nextPaymentDate: z.nullable(z.string()).optional(),
2214
- description: z.string().optional(),
2215
- method: z.nullable(CreateSubscriptionMethodResponse$outboundSchema)
2216
- .optional(),
2200
+ description: z.string(),
2201
+ method: z.nullable(CreateSubscriptionMethodResponse$outboundSchema),
2217
2202
  applicationFee: z.lazy(() =>
2218
2203
  CreateSubscriptionApplicationFeeResponse$outboundSchema
2219
2204
  ).optional(),
@@ -2223,11 +2208,11 @@ export const CreateSubscriptionResponse$outboundSchema: z.ZodType<
2223
2208
  z.string(),
2224
2209
  z.array(z.string()),
2225
2210
  ]),
2226
- ).optional(),
2227
- webhookUrl: z.string().optional(),
2228
- customerId: z.string().optional(),
2211
+ ),
2212
+ webhookUrl: z.string(),
2213
+ customerId: z.string(),
2229
2214
  mandateId: z.nullable(z.string()).optional(),
2230
- createdAt: z.string().optional(),
2215
+ createdAt: z.string(),
2231
2216
  canceledAt: z.nullable(z.string()).optional(),
2232
2217
  links: z.lazy(() => CreateSubscriptionLinks$outboundSchema).optional(),
2233
2218
  }).transform((v) => {
@@ -219,11 +219,11 @@ export type GetCustomerLinks = {
219
219
  /**
220
220
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
221
221
  */
222
- self?: GetCustomerSelf | undefined;
222
+ self: GetCustomerSelf;
223
223
  /**
224
224
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
225
225
  */
226
- dashboard?: GetCustomerDashboard | undefined;
226
+ dashboard: GetCustomerDashboard;
227
227
  /**
228
228
  * The API resource URL of the [payments](list-payments) linked to this customer. Omitted if no such payments
229
229
  *
@@ -248,7 +248,7 @@ export type GetCustomerLinks = {
248
248
  /**
249
249
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
250
250
  */
251
- documentation?: GetCustomerDocumentation | undefined;
251
+ documentation: GetCustomerDocumentation;
252
252
  };
253
253
 
254
254
  /**
@@ -277,12 +277,12 @@ export type EventLinks = {
277
277
 
278
278
  export type Event = {
279
279
  resource?: string | undefined;
280
- type?: number | undefined;
280
+ type: number;
281
281
  /**
282
282
  * The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
283
283
  */
284
- createdAt?: string | undefined;
285
- message?: string | undefined;
284
+ createdAt: string;
285
+ message: string;
286
286
  /**
287
287
  * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
288
288
  */
@@ -300,41 +300,41 @@ export type GetCustomerResponse = {
300
300
  /**
301
301
  * The identifier uniquely referring to this customer. Example: `cst_vsKJpSsabw`.
302
302
  */
303
- id?: string | undefined;
303
+ id: string;
304
304
  /**
305
305
  * Whether this entity was created in live mode or in test mode.
306
306
  */
307
- mode?: GetCustomerMode | undefined;
307
+ mode: GetCustomerMode;
308
308
  /**
309
309
  * The full name of the customer.
310
310
  */
311
- name?: string | null | undefined;
311
+ name: string | null;
312
312
  /**
313
313
  * The email address of the customer.
314
314
  */
315
- email?: string | null | undefined;
315
+ email: string | null;
316
316
  /**
317
317
  * Preconfigure the language to be used in the hosted payment pages shown to the customer. Should only be provided if
318
318
  *
319
319
  * @remarks
320
320
  * absolutely necessary. If not provided, the browser language will be used which is typically highly accurate.
321
321
  */
322
- locale?: GetCustomerLocale | null | undefined;
322
+ locale: GetCustomerLocale | null;
323
323
  /**
324
324
  * Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
325
325
  *
326
326
  * @remarks
327
327
  * you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
328
328
  */
329
- metadata?: GetCustomerMetadata | string | Array<string> | null | undefined;
329
+ metadata: GetCustomerMetadata | string | Array<string> | null;
330
330
  /**
331
331
  * The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
332
332
  */
333
- createdAt?: string | undefined;
333
+ createdAt: string;
334
334
  /**
335
335
  * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
336
336
  */
337
- links?: GetCustomerLinks | undefined;
337
+ links: GetCustomerLinks;
338
338
  events?: Array<Event> | undefined;
339
339
  };
340
340
 
@@ -1027,8 +1027,8 @@ export const GetCustomerLinks$inboundSchema: z.ZodType<
1027
1027
  z.ZodTypeDef,
1028
1028
  unknown
1029
1029
  > = z.object({
1030
- self: z.lazy(() => GetCustomerSelf$inboundSchema).optional(),
1031
- dashboard: z.lazy(() => GetCustomerDashboard$inboundSchema).optional(),
1030
+ self: z.lazy(() => GetCustomerSelf$inboundSchema),
1031
+ dashboard: z.lazy(() => GetCustomerDashboard$inboundSchema),
1032
1032
  payments: z.nullable(z.lazy(() => GetCustomerPayments$inboundSchema))
1033
1033
  .optional(),
1034
1034
  mandates: z.nullable(z.lazy(() => GetCustomerMandates$inboundSchema))
@@ -1036,18 +1036,17 @@ export const GetCustomerLinks$inboundSchema: z.ZodType<
1036
1036
  subscriptions: z.nullable(
1037
1037
  z.lazy(() => GetCustomerSubscriptions$inboundSchema),
1038
1038
  ).optional(),
1039
- documentation: z.lazy(() => GetCustomerDocumentation$inboundSchema)
1040
- .optional(),
1039
+ documentation: z.lazy(() => GetCustomerDocumentation$inboundSchema),
1041
1040
  });
1042
1041
 
1043
1042
  /** @internal */
1044
1043
  export type GetCustomerLinks$Outbound = {
1045
- self?: GetCustomerSelf$Outbound | undefined;
1046
- dashboard?: GetCustomerDashboard$Outbound | undefined;
1044
+ self: GetCustomerSelf$Outbound;
1045
+ dashboard: GetCustomerDashboard$Outbound;
1047
1046
  payments?: GetCustomerPayments$Outbound | null | undefined;
1048
1047
  mandates?: GetCustomerMandates$Outbound | null | undefined;
1049
1048
  subscriptions?: GetCustomerSubscriptions$Outbound | null | undefined;
1050
- documentation?: GetCustomerDocumentation$Outbound | undefined;
1049
+ documentation: GetCustomerDocumentation$Outbound;
1051
1050
  };
1052
1051
 
1053
1052
  /** @internal */
@@ -1056,8 +1055,8 @@ export const GetCustomerLinks$outboundSchema: z.ZodType<
1056
1055
  z.ZodTypeDef,
1057
1056
  GetCustomerLinks
1058
1057
  > = z.object({
1059
- self: z.lazy(() => GetCustomerSelf$outboundSchema).optional(),
1060
- dashboard: z.lazy(() => GetCustomerDashboard$outboundSchema).optional(),
1058
+ self: z.lazy(() => GetCustomerSelf$outboundSchema),
1059
+ dashboard: z.lazy(() => GetCustomerDashboard$outboundSchema),
1061
1060
  payments: z.nullable(z.lazy(() => GetCustomerPayments$outboundSchema))
1062
1061
  .optional(),
1063
1062
  mandates: z.nullable(z.lazy(() => GetCustomerMandates$outboundSchema))
@@ -1065,8 +1064,7 @@ export const GetCustomerLinks$outboundSchema: z.ZodType<
1065
1064
  subscriptions: z.nullable(
1066
1065
  z.lazy(() => GetCustomerSubscriptions$outboundSchema),
1067
1066
  ).optional(),
1068
- documentation: z.lazy(() => GetCustomerDocumentation$outboundSchema)
1069
- .optional(),
1067
+ documentation: z.lazy(() => GetCustomerDocumentation$outboundSchema),
1070
1068
  });
1071
1069
 
1072
1070
  /**
@@ -1201,9 +1199,9 @@ export function eventLinksFromJSON(
1201
1199
  export const Event$inboundSchema: z.ZodType<Event, z.ZodTypeDef, unknown> = z
1202
1200
  .object({
1203
1201
  resource: z.string().default("event"),
1204
- type: z.number().int().optional(),
1205
- createdAt: z.string().optional(),
1206
- message: z.string().optional(),
1202
+ type: z.number().int(),
1203
+ createdAt: z.string(),
1204
+ message: z.string(),
1207
1205
  _links: z.lazy(() => EventLinks$inboundSchema).optional(),
1208
1206
  }).transform((v) => {
1209
1207
  return remap$(v, {
@@ -1214,9 +1212,9 @@ export const Event$inboundSchema: z.ZodType<Event, z.ZodTypeDef, unknown> = z
1214
1212
  /** @internal */
1215
1213
  export type Event$Outbound = {
1216
1214
  resource: string;
1217
- type?: number | undefined;
1218
- createdAt?: string | undefined;
1219
- message?: string | undefined;
1215
+ type: number;
1216
+ createdAt: string;
1217
+ message: string;
1220
1218
  _links?: EventLinks$Outbound | undefined;
1221
1219
  };
1222
1220
 
@@ -1227,9 +1225,9 @@ export const Event$outboundSchema: z.ZodType<
1227
1225
  Event
1228
1226
  > = z.object({
1229
1227
  resource: z.string().default("event"),
1230
- type: z.number().int().optional(),
1231
- createdAt: z.string().optional(),
1232
- message: z.string().optional(),
1228
+ type: z.number().int(),
1229
+ createdAt: z.string(),
1230
+ message: z.string(),
1233
1231
  links: z.lazy(() => EventLinks$outboundSchema).optional(),
1234
1232
  }).transform((v) => {
1235
1233
  return remap$(v, {
@@ -1271,20 +1269,20 @@ export const GetCustomerResponse$inboundSchema: z.ZodType<
1271
1269
  unknown
1272
1270
  > = z.object({
1273
1271
  resource: z.string().default("customer"),
1274
- id: z.string().optional(),
1275
- mode: GetCustomerMode$inboundSchema.optional(),
1276
- name: z.nullable(z.string()).optional(),
1277
- email: z.nullable(z.string()).optional(),
1278
- locale: z.nullable(GetCustomerLocale$inboundSchema).optional(),
1272
+ id: z.string(),
1273
+ mode: GetCustomerMode$inboundSchema,
1274
+ name: z.nullable(z.string()),
1275
+ email: z.nullable(z.string()),
1276
+ locale: z.nullable(GetCustomerLocale$inboundSchema),
1279
1277
  metadata: z.nullable(
1280
1278
  z.union([
1281
1279
  z.lazy(() => GetCustomerMetadata$inboundSchema),
1282
1280
  z.string(),
1283
1281
  z.array(z.string()),
1284
1282
  ]),
1285
- ).optional(),
1286
- createdAt: z.string().optional(),
1287
- _links: z.lazy(() => GetCustomerLinks$inboundSchema).optional(),
1283
+ ),
1284
+ createdAt: z.string(),
1285
+ _links: z.lazy(() => GetCustomerLinks$inboundSchema),
1288
1286
  events: z.array(z.lazy(() => Event$inboundSchema)).optional(),
1289
1287
  }).transform((v) => {
1290
1288
  return remap$(v, {
@@ -1295,19 +1293,14 @@ export const GetCustomerResponse$inboundSchema: z.ZodType<
1295
1293
  /** @internal */
1296
1294
  export type GetCustomerResponse$Outbound = {
1297
1295
  resource: string;
1298
- id?: string | undefined;
1299
- mode?: string | undefined;
1300
- name?: string | null | undefined;
1301
- email?: string | null | undefined;
1302
- locale?: string | null | undefined;
1303
- metadata?:
1304
- | GetCustomerMetadata$Outbound
1305
- | string
1306
- | Array<string>
1307
- | null
1308
- | undefined;
1309
- createdAt?: string | undefined;
1310
- _links?: GetCustomerLinks$Outbound | undefined;
1296
+ id: string;
1297
+ mode: string;
1298
+ name: string | null;
1299
+ email: string | null;
1300
+ locale: string | null;
1301
+ metadata: GetCustomerMetadata$Outbound | string | Array<string> | null;
1302
+ createdAt: string;
1303
+ _links: GetCustomerLinks$Outbound;
1311
1304
  events?: Array<Event$Outbound> | undefined;
1312
1305
  };
1313
1306
 
@@ -1318,20 +1311,20 @@ export const GetCustomerResponse$outboundSchema: z.ZodType<
1318
1311
  GetCustomerResponse
1319
1312
  > = z.object({
1320
1313
  resource: z.string().default("customer"),
1321
- id: z.string().optional(),
1322
- mode: GetCustomerMode$outboundSchema.optional(),
1323
- name: z.nullable(z.string()).optional(),
1324
- email: z.nullable(z.string()).optional(),
1325
- locale: z.nullable(GetCustomerLocale$outboundSchema).optional(),
1314
+ id: z.string(),
1315
+ mode: GetCustomerMode$outboundSchema,
1316
+ name: z.nullable(z.string()),
1317
+ email: z.nullable(z.string()),
1318
+ locale: z.nullable(GetCustomerLocale$outboundSchema),
1326
1319
  metadata: z.nullable(
1327
1320
  z.union([
1328
1321
  z.lazy(() => GetCustomerMetadata$outboundSchema),
1329
1322
  z.string(),
1330
1323
  z.array(z.string()),
1331
1324
  ]),
1332
- ).optional(),
1333
- createdAt: z.string().optional(),
1334
- links: z.lazy(() => GetCustomerLinks$outboundSchema).optional(),
1325
+ ),
1326
+ createdAt: z.string(),
1327
+ links: z.lazy(() => GetCustomerLinks$outboundSchema),
1335
1328
  events: z.array(z.lazy(() => Event$outboundSchema)).optional(),
1336
1329
  }).transform((v) => {
1337
1330
  return remap$(v, {