mollie-api-typescript 0.1.3 → 0.1.5

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 (202) hide show
  1. package/bin/mcp-server.js +112 -330
  2. package/bin/mcp-server.js.map +26 -26
  3. package/dist/commonjs/funcs/methodsAll.d.ts.map +1 -1
  4. package/dist/commonjs/funcs/methodsAll.js +3 -2
  5. package/dist/commonjs/funcs/methodsAll.js.map +1 -1
  6. package/dist/commonjs/funcs/methodsList.d.ts.map +1 -1
  7. package/dist/commonjs/funcs/methodsList.js +3 -2
  8. package/dist/commonjs/funcs/methodsList.js.map +1 -1
  9. package/dist/commonjs/lib/config.d.ts +3 -3
  10. package/dist/commonjs/lib/config.js +3 -3
  11. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  12. package/dist/commonjs/mcp-server/server.js +1 -1
  13. package/dist/commonjs/models/operations/cancelpayment.d.ts +5 -35
  14. package/dist/commonjs/models/operations/cancelpayment.d.ts.map +1 -1
  15. package/dist/commonjs/models/operations/cancelpayment.js +7 -31
  16. package/dist/commonjs/models/operations/cancelpayment.js.map +1 -1
  17. package/dist/commonjs/models/operations/cancelsubscription.d.ts +7 -47
  18. package/dist/commonjs/models/operations/cancelsubscription.d.ts.map +1 -1
  19. package/dist/commonjs/models/operations/cancelsubscription.js +8 -35
  20. package/dist/commonjs/models/operations/cancelsubscription.js.map +1 -1
  21. package/dist/commonjs/models/operations/createcustomerpayment.d.ts +10 -70
  22. package/dist/commonjs/models/operations/createcustomerpayment.d.ts.map +1 -1
  23. package/dist/commonjs/models/operations/createcustomerpayment.js +11 -57
  24. package/dist/commonjs/models/operations/createcustomerpayment.js.map +1 -1
  25. package/dist/commonjs/models/operations/createpayment.d.ts +10 -70
  26. package/dist/commonjs/models/operations/createpayment.d.ts.map +1 -1
  27. package/dist/commonjs/models/operations/createpayment.js +11 -57
  28. package/dist/commonjs/models/operations/createpayment.js.map +1 -1
  29. package/dist/commonjs/models/operations/createsubscription.d.ts +10 -90
  30. package/dist/commonjs/models/operations/createsubscription.d.ts.map +1 -1
  31. package/dist/commonjs/models/operations/createsubscription.js +10 -64
  32. package/dist/commonjs/models/operations/createsubscription.js.map +1 -1
  33. package/dist/commonjs/models/operations/getmethod.d.ts +2 -2
  34. package/dist/commonjs/models/operations/getmethod.d.ts.map +1 -1
  35. package/dist/commonjs/models/operations/getmethod.js +2 -2
  36. package/dist/commonjs/models/operations/getmethod.js.map +1 -1
  37. package/dist/commonjs/models/operations/getpayment.d.ts +5 -35
  38. package/dist/commonjs/models/operations/getpayment.d.ts.map +1 -1
  39. package/dist/commonjs/models/operations/getpayment.js +7 -31
  40. package/dist/commonjs/models/operations/getpayment.js.map +1 -1
  41. package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts +5 -35
  42. package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
  43. package/dist/commonjs/models/operations/getpaymentlinkpayments.js +8 -31
  44. package/dist/commonjs/models/operations/getpaymentlinkpayments.js.map +1 -1
  45. package/dist/commonjs/models/operations/getsubscription.d.ts +7 -47
  46. package/dist/commonjs/models/operations/getsubscription.d.ts.map +1 -1
  47. package/dist/commonjs/models/operations/getsubscription.js +8 -35
  48. package/dist/commonjs/models/operations/getsubscription.js.map +1 -1
  49. package/dist/commonjs/models/operations/listallmethods.d.ts +2 -2
  50. package/dist/commonjs/models/operations/listallmethods.d.ts.map +1 -1
  51. package/dist/commonjs/models/operations/listallmethods.js +2 -2
  52. package/dist/commonjs/models/operations/listallmethods.js.map +1 -1
  53. package/dist/commonjs/models/operations/listallsubscriptions.d.ts +13 -53
  54. package/dist/commonjs/models/operations/listallsubscriptions.d.ts.map +1 -1
  55. package/dist/commonjs/models/operations/listallsubscriptions.js +14 -45
  56. package/dist/commonjs/models/operations/listallsubscriptions.js.map +1 -1
  57. package/dist/commonjs/models/operations/listcustomerpayments.d.ts +5 -35
  58. package/dist/commonjs/models/operations/listcustomerpayments.d.ts.map +1 -1
  59. package/dist/commonjs/models/operations/listcustomerpayments.js +8 -31
  60. package/dist/commonjs/models/operations/listcustomerpayments.js.map +1 -1
  61. package/dist/commonjs/models/operations/listmethods.d.ts +2 -2
  62. package/dist/commonjs/models/operations/listmethods.d.ts.map +1 -1
  63. package/dist/commonjs/models/operations/listmethods.js +2 -2
  64. package/dist/commonjs/models/operations/listmethods.js.map +1 -1
  65. package/dist/commonjs/models/operations/listpayments.d.ts +5 -35
  66. package/dist/commonjs/models/operations/listpayments.d.ts.map +1 -1
  67. package/dist/commonjs/models/operations/listpayments.js +8 -31
  68. package/dist/commonjs/models/operations/listpayments.js.map +1 -1
  69. package/dist/commonjs/models/operations/listsettlementpayments.d.ts +5 -35
  70. package/dist/commonjs/models/operations/listsettlementpayments.d.ts.map +1 -1
  71. package/dist/commonjs/models/operations/listsettlementpayments.js +8 -31
  72. package/dist/commonjs/models/operations/listsettlementpayments.js.map +1 -1
  73. package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts +5 -35
  74. package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts.map +1 -1
  75. package/dist/commonjs/models/operations/listsubscriptionpayments.js +8 -31
  76. package/dist/commonjs/models/operations/listsubscriptionpayments.js.map +1 -1
  77. package/dist/commonjs/models/operations/listsubscriptions.d.ts +13 -53
  78. package/dist/commonjs/models/operations/listsubscriptions.d.ts.map +1 -1
  79. package/dist/commonjs/models/operations/listsubscriptions.js +14 -43
  80. package/dist/commonjs/models/operations/listsubscriptions.js.map +1 -1
  81. package/dist/commonjs/models/operations/updatepayment.d.ts +5 -35
  82. package/dist/commonjs/models/operations/updatepayment.d.ts.map +1 -1
  83. package/dist/commonjs/models/operations/updatepayment.js +8 -31
  84. package/dist/commonjs/models/operations/updatepayment.js.map +1 -1
  85. package/dist/commonjs/models/operations/updatesubscription.d.ts +10 -90
  86. package/dist/commonjs/models/operations/updatesubscription.d.ts.map +1 -1
  87. package/dist/commonjs/models/operations/updatesubscription.js +10 -64
  88. package/dist/commonjs/models/operations/updatesubscription.js.map +1 -1
  89. package/dist/esm/funcs/methodsAll.d.ts.map +1 -1
  90. package/dist/esm/funcs/methodsAll.js +4 -3
  91. package/dist/esm/funcs/methodsAll.js.map +1 -1
  92. package/dist/esm/funcs/methodsList.d.ts.map +1 -1
  93. package/dist/esm/funcs/methodsList.js +4 -3
  94. package/dist/esm/funcs/methodsList.js.map +1 -1
  95. package/dist/esm/lib/config.d.ts +3 -3
  96. package/dist/esm/lib/config.js +3 -3
  97. package/dist/esm/mcp-server/mcp-server.js +1 -1
  98. package/dist/esm/mcp-server/server.js +1 -1
  99. package/dist/esm/models/operations/cancelpayment.d.ts +5 -35
  100. package/dist/esm/models/operations/cancelpayment.d.ts.map +1 -1
  101. package/dist/esm/models/operations/cancelpayment.js +2 -25
  102. package/dist/esm/models/operations/cancelpayment.js.map +1 -1
  103. package/dist/esm/models/operations/cancelsubscription.d.ts +7 -47
  104. package/dist/esm/models/operations/cancelsubscription.d.ts.map +1 -1
  105. package/dist/esm/models/operations/cancelsubscription.js +6 -33
  106. package/dist/esm/models/operations/cancelsubscription.js.map +1 -1
  107. package/dist/esm/models/operations/createcustomerpayment.d.ts +10 -70
  108. package/dist/esm/models/operations/createcustomerpayment.d.ts.map +1 -1
  109. package/dist/esm/models/operations/createcustomerpayment.js +4 -50
  110. package/dist/esm/models/operations/createcustomerpayment.js.map +1 -1
  111. package/dist/esm/models/operations/createpayment.d.ts +10 -70
  112. package/dist/esm/models/operations/createpayment.d.ts.map +1 -1
  113. package/dist/esm/models/operations/createpayment.js +4 -50
  114. package/dist/esm/models/operations/createpayment.js.map +1 -1
  115. package/dist/esm/models/operations/createsubscription.d.ts +10 -90
  116. package/dist/esm/models/operations/createsubscription.d.ts.map +1 -1
  117. package/dist/esm/models/operations/createsubscription.js +8 -62
  118. package/dist/esm/models/operations/createsubscription.js.map +1 -1
  119. package/dist/esm/models/operations/getmethod.d.ts +2 -2
  120. package/dist/esm/models/operations/getmethod.d.ts.map +1 -1
  121. package/dist/esm/models/operations/getmethod.js +2 -2
  122. package/dist/esm/models/operations/getmethod.js.map +1 -1
  123. package/dist/esm/models/operations/getpayment.d.ts +5 -35
  124. package/dist/esm/models/operations/getpayment.d.ts.map +1 -1
  125. package/dist/esm/models/operations/getpayment.js +2 -25
  126. package/dist/esm/models/operations/getpayment.js.map +1 -1
  127. package/dist/esm/models/operations/getpaymentlinkpayments.d.ts +5 -35
  128. package/dist/esm/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
  129. package/dist/esm/models/operations/getpaymentlinkpayments.js +2 -25
  130. package/dist/esm/models/operations/getpaymentlinkpayments.js.map +1 -1
  131. package/dist/esm/models/operations/getsubscription.d.ts +7 -47
  132. package/dist/esm/models/operations/getsubscription.d.ts.map +1 -1
  133. package/dist/esm/models/operations/getsubscription.js +6 -33
  134. package/dist/esm/models/operations/getsubscription.js.map +1 -1
  135. package/dist/esm/models/operations/listallmethods.d.ts +2 -2
  136. package/dist/esm/models/operations/listallmethods.d.ts.map +1 -1
  137. package/dist/esm/models/operations/listallmethods.js +2 -2
  138. package/dist/esm/models/operations/listallmethods.js.map +1 -1
  139. package/dist/esm/models/operations/listallsubscriptions.d.ts +13 -53
  140. package/dist/esm/models/operations/listallsubscriptions.d.ts.map +1 -1
  141. package/dist/esm/models/operations/listallsubscriptions.js +12 -43
  142. package/dist/esm/models/operations/listallsubscriptions.js.map +1 -1
  143. package/dist/esm/models/operations/listcustomerpayments.d.ts +5 -35
  144. package/dist/esm/models/operations/listcustomerpayments.d.ts.map +1 -1
  145. package/dist/esm/models/operations/listcustomerpayments.js +2 -25
  146. package/dist/esm/models/operations/listcustomerpayments.js.map +1 -1
  147. package/dist/esm/models/operations/listmethods.d.ts +2 -2
  148. package/dist/esm/models/operations/listmethods.d.ts.map +1 -1
  149. package/dist/esm/models/operations/listmethods.js +2 -2
  150. package/dist/esm/models/operations/listmethods.js.map +1 -1
  151. package/dist/esm/models/operations/listpayments.d.ts +5 -35
  152. package/dist/esm/models/operations/listpayments.d.ts.map +1 -1
  153. package/dist/esm/models/operations/listpayments.js +2 -25
  154. package/dist/esm/models/operations/listpayments.js.map +1 -1
  155. package/dist/esm/models/operations/listsettlementpayments.d.ts +5 -35
  156. package/dist/esm/models/operations/listsettlementpayments.d.ts.map +1 -1
  157. package/dist/esm/models/operations/listsettlementpayments.js +2 -25
  158. package/dist/esm/models/operations/listsettlementpayments.js.map +1 -1
  159. package/dist/esm/models/operations/listsubscriptionpayments.d.ts +5 -35
  160. package/dist/esm/models/operations/listsubscriptionpayments.d.ts.map +1 -1
  161. package/dist/esm/models/operations/listsubscriptionpayments.js +2 -25
  162. package/dist/esm/models/operations/listsubscriptionpayments.js.map +1 -1
  163. package/dist/esm/models/operations/listsubscriptions.d.ts +13 -53
  164. package/dist/esm/models/operations/listsubscriptions.d.ts.map +1 -1
  165. package/dist/esm/models/operations/listsubscriptions.js +12 -41
  166. package/dist/esm/models/operations/listsubscriptions.js.map +1 -1
  167. package/dist/esm/models/operations/updatepayment.d.ts +5 -35
  168. package/dist/esm/models/operations/updatepayment.d.ts.map +1 -1
  169. package/dist/esm/models/operations/updatepayment.js +2 -25
  170. package/dist/esm/models/operations/updatepayment.js.map +1 -1
  171. package/dist/esm/models/operations/updatesubscription.d.ts +10 -90
  172. package/dist/esm/models/operations/updatesubscription.d.ts.map +1 -1
  173. package/dist/esm/models/operations/updatesubscription.js +8 -62
  174. package/dist/esm/models/operations/updatesubscription.js.map +1 -1
  175. package/docs/sdks/subscriptions/README.md +4 -4
  176. package/examples/package-lock.json +1 -1
  177. package/jsr.json +1 -1
  178. package/package.json +1 -1
  179. package/src/funcs/methodsAll.ts +17 -9
  180. package/src/funcs/methodsList.ts +21 -13
  181. package/src/lib/config.ts +3 -3
  182. package/src/mcp-server/mcp-server.ts +1 -1
  183. package/src/mcp-server/server.ts +1 -1
  184. package/src/models/operations/cancelpayment.ts +7 -37
  185. package/src/models/operations/cancelsubscription.ts +13 -55
  186. package/src/models/operations/createcustomerpayment.ts +14 -84
  187. package/src/models/operations/createpayment.ts +14 -78
  188. package/src/models/operations/createsubscription.ts +18 -104
  189. package/src/models/operations/getmethod.ts +4 -4
  190. package/src/models/operations/getpayment.ts +7 -37
  191. package/src/models/operations/getpaymentlinkpayments.ts +7 -39
  192. package/src/models/operations/getsubscription.ts +13 -55
  193. package/src/models/operations/listallmethods.ts +4 -4
  194. package/src/models/operations/listallsubscriptions.ts +25 -71
  195. package/src/models/operations/listcustomerpayments.ts +7 -39
  196. package/src/models/operations/listmethods.ts +4 -4
  197. package/src/models/operations/listpayments.ts +7 -37
  198. package/src/models/operations/listsettlementpayments.ts +7 -39
  199. package/src/models/operations/listsubscriptionpayments.ts +7 -39
  200. package/src/models/operations/listsubscriptions.ts +25 -69
  201. package/src/models/operations/updatepayment.ts +7 -37
  202. package/src/models/operations/updatesubscription.ts +18 -104
@@ -128,29 +128,6 @@ export type ListAllSubscriptionsAmount = {
128
128
  value: string;
129
129
  };
130
130
 
131
- /**
132
- * Interval to wait between payments, for example `1 month` or `14 days`.
133
- *
134
- * @remarks
135
- *
136
- * The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
137
- */
138
- export const ListAllSubscriptionsInterval = {
139
- DotDotDotDays: "... days",
140
- DotDotDotWeeks: "... weeks",
141
- DotDotDotMonths: "... months",
142
- } as const;
143
- /**
144
- * Interval to wait between payments, for example `1 month` or `14 days`.
145
- *
146
- * @remarks
147
- *
148
- * The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
149
- */
150
- export type ListAllSubscriptionsInterval = ClosedEnum<
151
- typeof ListAllSubscriptionsInterval
152
- >;
153
-
154
131
  /**
155
132
  * The payment method used for this subscription. If omitted, any of the customer's valid mandates may be used.
156
133
  */
@@ -375,15 +352,17 @@ export type ListAllSubscriptionsSubscription = {
375
352
  /**
376
353
  * Number of payments left for the subscription.
377
354
  */
378
- timesRemaining: number;
355
+ timesRemaining: number | null;
379
356
  /**
380
357
  * Interval to wait between payments, for example `1 month` or `14 days`.
381
358
  *
382
359
  * @remarks
383
360
  *
384
361
  * The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
362
+ *
363
+ * Possible values: `... days`, `... weeks`, `... months`.
385
364
  */
386
- interval: ListAllSubscriptionsInterval;
365
+ interval: string;
387
366
  /**
388
367
  * The start date of the subscription in `YYYY-MM-DD` format.
389
368
  */
@@ -461,7 +440,7 @@ export type ListAllSubscriptionsSubscription = {
461
440
  /**
462
441
  * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
463
442
  */
464
- links?: ListAllSubscriptionsSubscriptionLinks | undefined;
443
+ links: ListAllSubscriptionsSubscriptionLinks;
465
444
  };
466
445
 
467
446
  export type ListAllSubscriptionsEmbedded = {
@@ -562,12 +541,12 @@ export type ListAllSubscriptionsResponse = {
562
541
  * The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
563
542
  * limit is 50 items.
564
543
  */
565
- count?: number | undefined;
566
- embedded?: ListAllSubscriptionsEmbedded | undefined;
544
+ count: number;
545
+ embedded: ListAllSubscriptionsEmbedded;
567
546
  /**
568
547
  * Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
569
548
  */
570
- links?: ListAllSubscriptionsLinks | undefined;
549
+ links: ListAllSubscriptionsLinks;
571
550
  };
572
551
 
573
552
  /** @internal */
@@ -997,27 +976,6 @@ export function listAllSubscriptionsAmountFromJSON(
997
976
  );
998
977
  }
999
978
 
1000
- /** @internal */
1001
- export const ListAllSubscriptionsInterval$inboundSchema: z.ZodNativeEnum<
1002
- typeof ListAllSubscriptionsInterval
1003
- > = z.nativeEnum(ListAllSubscriptionsInterval);
1004
-
1005
- /** @internal */
1006
- export const ListAllSubscriptionsInterval$outboundSchema: z.ZodNativeEnum<
1007
- typeof ListAllSubscriptionsInterval
1008
- > = ListAllSubscriptionsInterval$inboundSchema;
1009
-
1010
- /**
1011
- * @internal
1012
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1013
- */
1014
- export namespace ListAllSubscriptionsInterval$ {
1015
- /** @deprecated use `ListAllSubscriptionsInterval$inboundSchema` instead. */
1016
- export const inboundSchema = ListAllSubscriptionsInterval$inboundSchema;
1017
- /** @deprecated use `ListAllSubscriptionsInterval$outboundSchema` instead. */
1018
- export const outboundSchema = ListAllSubscriptionsInterval$outboundSchema;
1019
- }
1020
-
1021
979
  /** @internal */
1022
980
  export const ListAllSubscriptionsMethod$inboundSchema: z.ZodNativeEnum<
1023
981
  typeof ListAllSubscriptionsMethod
@@ -1687,8 +1645,8 @@ export const ListAllSubscriptionsSubscription$inboundSchema: z.ZodType<
1687
1645
  status: ListAllSubscriptionsStatus$inboundSchema,
1688
1646
  amount: z.lazy(() => ListAllSubscriptionsAmount$inboundSchema),
1689
1647
  times: z.nullable(z.number().int()),
1690
- timesRemaining: z.number().int(),
1691
- interval: ListAllSubscriptionsInterval$inboundSchema,
1648
+ timesRemaining: z.nullable(z.number().int()),
1649
+ interval: z.string(),
1692
1650
  startDate: z.string(),
1693
1651
  nextPaymentDate: z.nullable(z.string()).optional(),
1694
1652
  description: z.string(),
@@ -1703,8 +1661,7 @@ export const ListAllSubscriptionsSubscription$inboundSchema: z.ZodType<
1703
1661
  mandateId: z.nullable(z.string()).optional(),
1704
1662
  createdAt: z.string(),
1705
1663
  canceledAt: z.nullable(z.string()).optional(),
1706
- _links: z.lazy(() => ListAllSubscriptionsSubscriptionLinks$inboundSchema)
1707
- .optional(),
1664
+ _links: z.lazy(() => ListAllSubscriptionsSubscriptionLinks$inboundSchema),
1708
1665
  }).transform((v) => {
1709
1666
  return remap$(v, {
1710
1667
  "_links": "links",
@@ -1719,7 +1676,7 @@ export type ListAllSubscriptionsSubscription$Outbound = {
1719
1676
  status: string;
1720
1677
  amount: ListAllSubscriptionsAmount$Outbound;
1721
1678
  times: number | null;
1722
- timesRemaining: number;
1679
+ timesRemaining: number | null;
1723
1680
  interval: string;
1724
1681
  startDate: string;
1725
1682
  nextPaymentDate?: string | null | undefined;
@@ -1732,7 +1689,7 @@ export type ListAllSubscriptionsSubscription$Outbound = {
1732
1689
  mandateId?: string | null | undefined;
1733
1690
  createdAt: string;
1734
1691
  canceledAt?: string | null | undefined;
1735
- _links?: ListAllSubscriptionsSubscriptionLinks$Outbound | undefined;
1692
+ _links: ListAllSubscriptionsSubscriptionLinks$Outbound;
1736
1693
  };
1737
1694
 
1738
1695
  /** @internal */
@@ -1747,8 +1704,8 @@ export const ListAllSubscriptionsSubscription$outboundSchema: z.ZodType<
1747
1704
  status: ListAllSubscriptionsStatus$outboundSchema,
1748
1705
  amount: z.lazy(() => ListAllSubscriptionsAmount$outboundSchema),
1749
1706
  times: z.nullable(z.number().int()),
1750
- timesRemaining: z.number().int(),
1751
- interval: ListAllSubscriptionsInterval$outboundSchema,
1707
+ timesRemaining: z.nullable(z.number().int()),
1708
+ interval: z.string(),
1752
1709
  startDate: z.string(),
1753
1710
  nextPaymentDate: z.nullable(z.string()).optional(),
1754
1711
  description: z.string(),
@@ -1764,8 +1721,7 @@ export const ListAllSubscriptionsSubscription$outboundSchema: z.ZodType<
1764
1721
  mandateId: z.nullable(z.string()).optional(),
1765
1722
  createdAt: z.string(),
1766
1723
  canceledAt: z.nullable(z.string()).optional(),
1767
- links: z.lazy(() => ListAllSubscriptionsSubscriptionLinks$outboundSchema)
1768
- .optional(),
1724
+ links: z.lazy(() => ListAllSubscriptionsSubscriptionLinks$outboundSchema),
1769
1725
  }).transform((v) => {
1770
1726
  return remap$(v, {
1771
1727
  links: "_links",
@@ -2171,10 +2127,9 @@ export const ListAllSubscriptionsResponse$inboundSchema: z.ZodType<
2171
2127
  z.ZodTypeDef,
2172
2128
  unknown
2173
2129
  > = z.object({
2174
- count: z.number().int().optional(),
2175
- _embedded: z.lazy(() => ListAllSubscriptionsEmbedded$inboundSchema)
2176
- .optional(),
2177
- _links: z.lazy(() => ListAllSubscriptionsLinks$inboundSchema).optional(),
2130
+ count: z.number().int(),
2131
+ _embedded: z.lazy(() => ListAllSubscriptionsEmbedded$inboundSchema),
2132
+ _links: z.lazy(() => ListAllSubscriptionsLinks$inboundSchema),
2178
2133
  }).transform((v) => {
2179
2134
  return remap$(v, {
2180
2135
  "_embedded": "embedded",
@@ -2184,9 +2139,9 @@ export const ListAllSubscriptionsResponse$inboundSchema: z.ZodType<
2184
2139
 
2185
2140
  /** @internal */
2186
2141
  export type ListAllSubscriptionsResponse$Outbound = {
2187
- count?: number | undefined;
2188
- _embedded?: ListAllSubscriptionsEmbedded$Outbound | undefined;
2189
- _links?: ListAllSubscriptionsLinks$Outbound | undefined;
2142
+ count: number;
2143
+ _embedded: ListAllSubscriptionsEmbedded$Outbound;
2144
+ _links: ListAllSubscriptionsLinks$Outbound;
2190
2145
  };
2191
2146
 
2192
2147
  /** @internal */
@@ -2195,10 +2150,9 @@ export const ListAllSubscriptionsResponse$outboundSchema: z.ZodType<
2195
2150
  z.ZodTypeDef,
2196
2151
  ListAllSubscriptionsResponse
2197
2152
  > = z.object({
2198
- count: z.number().int().optional(),
2199
- embedded: z.lazy(() => ListAllSubscriptionsEmbedded$outboundSchema)
2200
- .optional(),
2201
- links: z.lazy(() => ListAllSubscriptionsLinks$outboundSchema).optional(),
2153
+ count: z.number().int(),
2154
+ embedded: z.lazy(() => ListAllSubscriptionsEmbedded$outboundSchema),
2155
+ links: z.lazy(() => ListAllSubscriptionsLinks$outboundSchema),
2202
2156
  }).transform((v) => {
2203
2157
  return remap$(v, {
2204
2158
  embedded: "_embedded",
@@ -331,21 +331,6 @@ export type ListCustomerPaymentsCategory = ClosedEnum<
331
331
  typeof ListCustomerPaymentsCategory
332
332
  >;
333
333
 
334
- /**
335
- * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
336
- */
337
- export const ListCustomerPaymentsInterval = {
338
- DotDotDotMonths: "... months",
339
- DotDotDotWeeks: "... weeks",
340
- DotDotDotDays: "... days",
341
- } as const;
342
- /**
343
- * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
344
- */
345
- export type ListCustomerPaymentsInterval = ClosedEnum<
346
- typeof ListCustomerPaymentsInterval
347
- >;
348
-
349
334
  /**
350
335
  * Total amount and currency of the recurring item.
351
336
  */
@@ -373,8 +358,12 @@ export type ListCustomerPaymentsRecurring = {
373
358
  description?: string | undefined;
374
359
  /**
375
360
  * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
361
+ *
362
+ * @remarks
363
+ *
364
+ * Possible values: `... days`, `... weeks`, `... months`.
376
365
  */
377
- interval: ListCustomerPaymentsInterval;
366
+ interval: string;
378
367
  /**
379
368
  * Total amount and currency of the recurring item.
380
369
  */
@@ -3541,27 +3530,6 @@ export namespace ListCustomerPaymentsCategory$ {
3541
3530
  export const outboundSchema = ListCustomerPaymentsCategory$outboundSchema;
3542
3531
  }
3543
3532
 
3544
- /** @internal */
3545
- export const ListCustomerPaymentsInterval$inboundSchema: z.ZodNativeEnum<
3546
- typeof ListCustomerPaymentsInterval
3547
- > = z.nativeEnum(ListCustomerPaymentsInterval);
3548
-
3549
- /** @internal */
3550
- export const ListCustomerPaymentsInterval$outboundSchema: z.ZodNativeEnum<
3551
- typeof ListCustomerPaymentsInterval
3552
- > = ListCustomerPaymentsInterval$inboundSchema;
3553
-
3554
- /**
3555
- * @internal
3556
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3557
- */
3558
- export namespace ListCustomerPaymentsInterval$ {
3559
- /** @deprecated use `ListCustomerPaymentsInterval$inboundSchema` instead. */
3560
- export const inboundSchema = ListCustomerPaymentsInterval$inboundSchema;
3561
- /** @deprecated use `ListCustomerPaymentsInterval$outboundSchema` instead. */
3562
- export const outboundSchema = ListCustomerPaymentsInterval$outboundSchema;
3563
- }
3564
-
3565
3533
  /** @internal */
3566
3534
  export const ListCustomerPaymentsRecurringAmount$inboundSchema: z.ZodType<
3567
3535
  ListCustomerPaymentsRecurringAmount,
@@ -3631,7 +3599,7 @@ export const ListCustomerPaymentsRecurring$inboundSchema: z.ZodType<
3631
3599
  unknown
3632
3600
  > = z.object({
3633
3601
  description: z.string().optional(),
3634
- interval: ListCustomerPaymentsInterval$inboundSchema,
3602
+ interval: z.string(),
3635
3603
  amount: z.lazy(() => ListCustomerPaymentsRecurringAmount$inboundSchema)
3636
3604
  .optional(),
3637
3605
  times: z.number().int().optional(),
@@ -3654,7 +3622,7 @@ export const ListCustomerPaymentsRecurring$outboundSchema: z.ZodType<
3654
3622
  ListCustomerPaymentsRecurring
3655
3623
  > = z.object({
3656
3624
  description: z.string().optional(),
3657
- interval: ListCustomerPaymentsInterval$outboundSchema,
3625
+ interval: z.string(),
3658
3626
  amount: z.lazy(() => ListCustomerPaymentsRecurringAmount$outboundSchema)
3659
3627
  .optional(),
3660
3628
  times: z.number().int().optional(),
@@ -528,7 +528,7 @@ export type ListMethodsMethod = {
528
528
  /**
529
529
  * The payment method's activation status for this profile.
530
530
  */
531
- status: ListMethodsStatus | null;
531
+ status: ListMethodsStatus;
532
532
  /**
533
533
  * **Optional include.** Array of objects for each 'issuer' that is available for this payment method. Only relevant
534
534
  *
@@ -1518,7 +1518,7 @@ export const ListMethodsMethod$inboundSchema: z.ZodType<
1518
1518
  z.lazy(() => ListMethodsMaximumAmount$inboundSchema),
1519
1519
  ),
1520
1520
  image: z.lazy(() => ListMethodsImage$inboundSchema),
1521
- status: z.nullable(ListMethodsStatus$inboundSchema),
1521
+ status: ListMethodsStatus$inboundSchema,
1522
1522
  issuers: z.array(z.lazy(() => ListMethodsIssuer$inboundSchema)).optional(),
1523
1523
  _links: z.lazy(() => ListMethodsMethodLinks$inboundSchema),
1524
1524
  }).transform((v) => {
@@ -1535,7 +1535,7 @@ export type ListMethodsMethod$Outbound = {
1535
1535
  minimumAmount: ListMethodsMinimumAmount$Outbound;
1536
1536
  maximumAmount: ListMethodsMaximumAmount$Outbound | null;
1537
1537
  image: ListMethodsImage$Outbound;
1538
- status: string | null;
1538
+ status: string;
1539
1539
  issuers?: Array<ListMethodsIssuer$Outbound> | undefined;
1540
1540
  _links: ListMethodsMethodLinks$Outbound;
1541
1541
  };
@@ -1554,7 +1554,7 @@ export const ListMethodsMethod$outboundSchema: z.ZodType<
1554
1554
  z.lazy(() => ListMethodsMaximumAmount$outboundSchema),
1555
1555
  ),
1556
1556
  image: z.lazy(() => ListMethodsImage$outboundSchema),
1557
- status: z.nullable(ListMethodsStatus$outboundSchema),
1557
+ status: ListMethodsStatus$outboundSchema,
1558
1558
  issuers: z.array(z.lazy(() => ListMethodsIssuer$outboundSchema)).optional(),
1559
1559
  links: z.lazy(() => ListMethodsMethodLinks$outboundSchema),
1560
1560
  }).transform((v) => {
@@ -319,19 +319,6 @@ export const ListPaymentsCategory = {
319
319
  } as const;
320
320
  export type ListPaymentsCategory = ClosedEnum<typeof ListPaymentsCategory>;
321
321
 
322
- /**
323
- * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
324
- */
325
- export const ListPaymentsInterval = {
326
- DotDotDotMonths: "... months",
327
- DotDotDotWeeks: "... weeks",
328
- DotDotDotDays: "... days",
329
- } as const;
330
- /**
331
- * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
332
- */
333
- export type ListPaymentsInterval = ClosedEnum<typeof ListPaymentsInterval>;
334
-
335
322
  /**
336
323
  * Total amount and currency of the recurring item.
337
324
  */
@@ -359,8 +346,12 @@ export type ListPaymentsRecurring = {
359
346
  description?: string | undefined;
360
347
  /**
361
348
  * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
349
+ *
350
+ * @remarks
351
+ *
352
+ * Possible values: `... days`, `... weeks`, `... months`.
362
353
  */
363
- interval: ListPaymentsInterval;
354
+ interval: string;
364
355
  /**
365
356
  * Total amount and currency of the recurring item.
366
357
  */
@@ -3470,27 +3461,6 @@ export namespace ListPaymentsCategory$ {
3470
3461
  export const outboundSchema = ListPaymentsCategory$outboundSchema;
3471
3462
  }
3472
3463
 
3473
- /** @internal */
3474
- export const ListPaymentsInterval$inboundSchema: z.ZodNativeEnum<
3475
- typeof ListPaymentsInterval
3476
- > = z.nativeEnum(ListPaymentsInterval);
3477
-
3478
- /** @internal */
3479
- export const ListPaymentsInterval$outboundSchema: z.ZodNativeEnum<
3480
- typeof ListPaymentsInterval
3481
- > = ListPaymentsInterval$inboundSchema;
3482
-
3483
- /**
3484
- * @internal
3485
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3486
- */
3487
- export namespace ListPaymentsInterval$ {
3488
- /** @deprecated use `ListPaymentsInterval$inboundSchema` instead. */
3489
- export const inboundSchema = ListPaymentsInterval$inboundSchema;
3490
- /** @deprecated use `ListPaymentsInterval$outboundSchema` instead. */
3491
- export const outboundSchema = ListPaymentsInterval$outboundSchema;
3492
- }
3493
-
3494
3464
  /** @internal */
3495
3465
  export const ListPaymentsRecurringAmount$inboundSchema: z.ZodType<
3496
3466
  ListPaymentsRecurringAmount,
@@ -3557,7 +3527,7 @@ export const ListPaymentsRecurring$inboundSchema: z.ZodType<
3557
3527
  unknown
3558
3528
  > = z.object({
3559
3529
  description: z.string().optional(),
3560
- interval: ListPaymentsInterval$inboundSchema,
3530
+ interval: z.string(),
3561
3531
  amount: z.lazy(() => ListPaymentsRecurringAmount$inboundSchema).optional(),
3562
3532
  times: z.number().int().optional(),
3563
3533
  startDate: z.nullable(z.string()).optional(),
@@ -3579,7 +3549,7 @@ export const ListPaymentsRecurring$outboundSchema: z.ZodType<
3579
3549
  ListPaymentsRecurring
3580
3550
  > = z.object({
3581
3551
  description: z.string().optional(),
3582
- interval: ListPaymentsInterval$outboundSchema,
3552
+ interval: z.string(),
3583
3553
  amount: z.lazy(() => ListPaymentsRecurringAmount$outboundSchema).optional(),
3584
3554
  times: z.number().int().optional(),
3585
3555
  startDate: z.nullable(z.string()).optional(),
@@ -331,21 +331,6 @@ export type ListSettlementPaymentsCategory = ClosedEnum<
331
331
  typeof ListSettlementPaymentsCategory
332
332
  >;
333
333
 
334
- /**
335
- * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
336
- */
337
- export const ListSettlementPaymentsInterval = {
338
- DotDotDotMonths: "... months",
339
- DotDotDotWeeks: "... weeks",
340
- DotDotDotDays: "... days",
341
- } as const;
342
- /**
343
- * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
344
- */
345
- export type ListSettlementPaymentsInterval = ClosedEnum<
346
- typeof ListSettlementPaymentsInterval
347
- >;
348
-
349
334
  /**
350
335
  * Total amount and currency of the recurring item.
351
336
  */
@@ -373,8 +358,12 @@ export type ListSettlementPaymentsRecurring = {
373
358
  description?: string | undefined;
374
359
  /**
375
360
  * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
361
+ *
362
+ * @remarks
363
+ *
364
+ * Possible values: `... days`, `... weeks`, `... months`.
376
365
  */
377
- interval: ListSettlementPaymentsInterval;
366
+ interval: string;
378
367
  /**
379
368
  * Total amount and currency of the recurring item.
380
369
  */
@@ -3554,27 +3543,6 @@ export namespace ListSettlementPaymentsCategory$ {
3554
3543
  export const outboundSchema = ListSettlementPaymentsCategory$outboundSchema;
3555
3544
  }
3556
3545
 
3557
- /** @internal */
3558
- export const ListSettlementPaymentsInterval$inboundSchema: z.ZodNativeEnum<
3559
- typeof ListSettlementPaymentsInterval
3560
- > = z.nativeEnum(ListSettlementPaymentsInterval);
3561
-
3562
- /** @internal */
3563
- export const ListSettlementPaymentsInterval$outboundSchema: z.ZodNativeEnum<
3564
- typeof ListSettlementPaymentsInterval
3565
- > = ListSettlementPaymentsInterval$inboundSchema;
3566
-
3567
- /**
3568
- * @internal
3569
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3570
- */
3571
- export namespace ListSettlementPaymentsInterval$ {
3572
- /** @deprecated use `ListSettlementPaymentsInterval$inboundSchema` instead. */
3573
- export const inboundSchema = ListSettlementPaymentsInterval$inboundSchema;
3574
- /** @deprecated use `ListSettlementPaymentsInterval$outboundSchema` instead. */
3575
- export const outboundSchema = ListSettlementPaymentsInterval$outboundSchema;
3576
- }
3577
-
3578
3546
  /** @internal */
3579
3547
  export const ListSettlementPaymentsRecurringAmount$inboundSchema: z.ZodType<
3580
3548
  ListSettlementPaymentsRecurringAmount,
@@ -3644,7 +3612,7 @@ export const ListSettlementPaymentsRecurring$inboundSchema: z.ZodType<
3644
3612
  unknown
3645
3613
  > = z.object({
3646
3614
  description: z.string().optional(),
3647
- interval: ListSettlementPaymentsInterval$inboundSchema,
3615
+ interval: z.string(),
3648
3616
  amount: z.lazy(() => ListSettlementPaymentsRecurringAmount$inboundSchema)
3649
3617
  .optional(),
3650
3618
  times: z.number().int().optional(),
@@ -3667,7 +3635,7 @@ export const ListSettlementPaymentsRecurring$outboundSchema: z.ZodType<
3667
3635
  ListSettlementPaymentsRecurring
3668
3636
  > = z.object({
3669
3637
  description: z.string().optional(),
3670
- interval: ListSettlementPaymentsInterval$outboundSchema,
3638
+ interval: z.string(),
3671
3639
  amount: z.lazy(() => ListSettlementPaymentsRecurringAmount$outboundSchema)
3672
3640
  .optional(),
3673
3641
  times: z.number().int().optional(),
@@ -335,21 +335,6 @@ export type ListSubscriptionPaymentsCategory = ClosedEnum<
335
335
  typeof ListSubscriptionPaymentsCategory
336
336
  >;
337
337
 
338
- /**
339
- * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
340
- */
341
- export const ListSubscriptionPaymentsInterval = {
342
- DotDotDotMonths: "... months",
343
- DotDotDotWeeks: "... weeks",
344
- DotDotDotDays: "... days",
345
- } as const;
346
- /**
347
- * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
348
- */
349
- export type ListSubscriptionPaymentsInterval = ClosedEnum<
350
- typeof ListSubscriptionPaymentsInterval
351
- >;
352
-
353
338
  /**
354
339
  * Total amount and currency of the recurring item.
355
340
  */
@@ -377,8 +362,12 @@ export type ListSubscriptionPaymentsRecurring = {
377
362
  description?: string | undefined;
378
363
  /**
379
364
  * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
365
+ *
366
+ * @remarks
367
+ *
368
+ * Possible values: `... days`, `... weeks`, `... months`.
380
369
  */
381
- interval: ListSubscriptionPaymentsInterval;
370
+ interval: string;
382
371
  /**
383
372
  * Total amount and currency of the recurring item.
384
373
  */
@@ -3590,27 +3579,6 @@ export namespace ListSubscriptionPaymentsCategory$ {
3590
3579
  export const outboundSchema = ListSubscriptionPaymentsCategory$outboundSchema;
3591
3580
  }
3592
3581
 
3593
- /** @internal */
3594
- export const ListSubscriptionPaymentsInterval$inboundSchema: z.ZodNativeEnum<
3595
- typeof ListSubscriptionPaymentsInterval
3596
- > = z.nativeEnum(ListSubscriptionPaymentsInterval);
3597
-
3598
- /** @internal */
3599
- export const ListSubscriptionPaymentsInterval$outboundSchema: z.ZodNativeEnum<
3600
- typeof ListSubscriptionPaymentsInterval
3601
- > = ListSubscriptionPaymentsInterval$inboundSchema;
3602
-
3603
- /**
3604
- * @internal
3605
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3606
- */
3607
- export namespace ListSubscriptionPaymentsInterval$ {
3608
- /** @deprecated use `ListSubscriptionPaymentsInterval$inboundSchema` instead. */
3609
- export const inboundSchema = ListSubscriptionPaymentsInterval$inboundSchema;
3610
- /** @deprecated use `ListSubscriptionPaymentsInterval$outboundSchema` instead. */
3611
- export const outboundSchema = ListSubscriptionPaymentsInterval$outboundSchema;
3612
- }
3613
-
3614
3582
  /** @internal */
3615
3583
  export const ListSubscriptionPaymentsRecurringAmount$inboundSchema: z.ZodType<
3616
3584
  ListSubscriptionPaymentsRecurringAmount,
@@ -3686,7 +3654,7 @@ export const ListSubscriptionPaymentsRecurring$inboundSchema: z.ZodType<
3686
3654
  unknown
3687
3655
  > = z.object({
3688
3656
  description: z.string().optional(),
3689
- interval: ListSubscriptionPaymentsInterval$inboundSchema,
3657
+ interval: z.string(),
3690
3658
  amount: z.lazy(() => ListSubscriptionPaymentsRecurringAmount$inboundSchema)
3691
3659
  .optional(),
3692
3660
  times: z.number().int().optional(),
@@ -3709,7 +3677,7 @@ export const ListSubscriptionPaymentsRecurring$outboundSchema: z.ZodType<
3709
3677
  ListSubscriptionPaymentsRecurring
3710
3678
  > = z.object({
3711
3679
  description: z.string().optional(),
3712
- interval: ListSubscriptionPaymentsInterval$outboundSchema,
3680
+ interval: z.string(),
3713
3681
  amount: z.lazy(() => ListSubscriptionPaymentsRecurringAmount$outboundSchema)
3714
3682
  .optional(),
3715
3683
  times: z.number().int().optional(),