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
@@ -100,29 +100,6 @@ export type CancelSubscriptionAmount = {
100
100
  value: string;
101
101
  };
102
102
 
103
- /**
104
- * Interval to wait between payments, for example `1 month` or `14 days`.
105
- *
106
- * @remarks
107
- *
108
- * The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
109
- */
110
- export const CancelSubscriptionInterval = {
111
- DotDotDotDays: "... days",
112
- DotDotDotWeeks: "... weeks",
113
- DotDotDotMonths: "... months",
114
- } as const;
115
- /**
116
- * Interval to wait between payments, for example `1 month` or `14 days`.
117
- *
118
- * @remarks
119
- *
120
- * The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
121
- */
122
- export type CancelSubscriptionInterval = ClosedEnum<
123
- typeof CancelSubscriptionInterval
124
- >;
125
-
126
103
  /**
127
104
  * The payment method used for this subscription. If omitted, any of the customer's valid mandates may be used.
128
105
  */
@@ -353,15 +330,17 @@ export type CancelSubscriptionResponse = {
353
330
  /**
354
331
  * Number of payments left for the subscription.
355
332
  */
356
- timesRemaining: number;
333
+ timesRemaining: number | null;
357
334
  /**
358
335
  * Interval to wait between payments, for example `1 month` or `14 days`.
359
336
  *
360
337
  * @remarks
361
338
  *
362
339
  * The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
340
+ *
341
+ * Possible values: `... days`, `... weeks`, `... months`.
363
342
  */
364
- interval: CancelSubscriptionInterval;
343
+ interval: string;
365
344
  /**
366
345
  * The start date of the subscription in `YYYY-MM-DD` format.
367
346
  */
@@ -439,7 +418,7 @@ export type CancelSubscriptionResponse = {
439
418
  /**
440
419
  * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
441
420
  */
442
- links?: CancelSubscriptionLinks | undefined;
421
+ links: CancelSubscriptionLinks;
443
422
  };
444
423
 
445
424
  /** @internal */
@@ -795,27 +774,6 @@ export function cancelSubscriptionAmountFromJSON(
795
774
  );
796
775
  }
797
776
 
798
- /** @internal */
799
- export const CancelSubscriptionInterval$inboundSchema: z.ZodNativeEnum<
800
- typeof CancelSubscriptionInterval
801
- > = z.nativeEnum(CancelSubscriptionInterval);
802
-
803
- /** @internal */
804
- export const CancelSubscriptionInterval$outboundSchema: z.ZodNativeEnum<
805
- typeof CancelSubscriptionInterval
806
- > = CancelSubscriptionInterval$inboundSchema;
807
-
808
- /**
809
- * @internal
810
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
811
- */
812
- export namespace CancelSubscriptionInterval$ {
813
- /** @deprecated use `CancelSubscriptionInterval$inboundSchema` instead. */
814
- export const inboundSchema = CancelSubscriptionInterval$inboundSchema;
815
- /** @deprecated use `CancelSubscriptionInterval$outboundSchema` instead. */
816
- export const outboundSchema = CancelSubscriptionInterval$outboundSchema;
817
- }
818
-
819
777
  /** @internal */
820
778
  export const CancelSubscriptionMethod$inboundSchema: z.ZodNativeEnum<
821
779
  typeof CancelSubscriptionMethod
@@ -1439,8 +1397,8 @@ export const CancelSubscriptionResponse$inboundSchema: z.ZodType<
1439
1397
  status: CancelSubscriptionStatus$inboundSchema,
1440
1398
  amount: z.lazy(() => CancelSubscriptionAmount$inboundSchema),
1441
1399
  times: z.nullable(z.number().int()),
1442
- timesRemaining: z.number().int(),
1443
- interval: CancelSubscriptionInterval$inboundSchema,
1400
+ timesRemaining: z.nullable(z.number().int()),
1401
+ interval: z.string(),
1444
1402
  startDate: z.string(),
1445
1403
  nextPaymentDate: z.nullable(z.string()).optional(),
1446
1404
  description: z.string(),
@@ -1455,7 +1413,7 @@ export const CancelSubscriptionResponse$inboundSchema: z.ZodType<
1455
1413
  mandateId: z.nullable(z.string()).optional(),
1456
1414
  createdAt: z.string(),
1457
1415
  canceledAt: z.nullable(z.string()).optional(),
1458
- _links: z.lazy(() => CancelSubscriptionLinks$inboundSchema).optional(),
1416
+ _links: z.lazy(() => CancelSubscriptionLinks$inboundSchema),
1459
1417
  }).transform((v) => {
1460
1418
  return remap$(v, {
1461
1419
  "_links": "links",
@@ -1470,7 +1428,7 @@ export type CancelSubscriptionResponse$Outbound = {
1470
1428
  status: string;
1471
1429
  amount: CancelSubscriptionAmount$Outbound;
1472
1430
  times: number | null;
1473
- timesRemaining: number;
1431
+ timesRemaining: number | null;
1474
1432
  interval: string;
1475
1433
  startDate: string;
1476
1434
  nextPaymentDate?: string | null | undefined;
@@ -1483,7 +1441,7 @@ export type CancelSubscriptionResponse$Outbound = {
1483
1441
  mandateId?: string | null | undefined;
1484
1442
  createdAt: string;
1485
1443
  canceledAt?: string | null | undefined;
1486
- _links?: CancelSubscriptionLinks$Outbound | undefined;
1444
+ _links: CancelSubscriptionLinks$Outbound;
1487
1445
  };
1488
1446
 
1489
1447
  /** @internal */
@@ -1498,8 +1456,8 @@ export const CancelSubscriptionResponse$outboundSchema: z.ZodType<
1498
1456
  status: CancelSubscriptionStatus$outboundSchema,
1499
1457
  amount: z.lazy(() => CancelSubscriptionAmount$outboundSchema),
1500
1458
  times: z.nullable(z.number().int()),
1501
- timesRemaining: z.number().int(),
1502
- interval: CancelSubscriptionInterval$outboundSchema,
1459
+ timesRemaining: z.nullable(z.number().int()),
1460
+ interval: z.string(),
1503
1461
  startDate: z.string(),
1504
1462
  nextPaymentDate: z.nullable(z.string()).optional(),
1505
1463
  description: z.string(),
@@ -1514,7 +1472,7 @@ export const CancelSubscriptionResponse$outboundSchema: z.ZodType<
1514
1472
  mandateId: z.nullable(z.string()).optional(),
1515
1473
  createdAt: z.string(),
1516
1474
  canceledAt: z.nullable(z.string()).optional(),
1517
- links: z.lazy(() => CancelSubscriptionLinks$outboundSchema).optional(),
1475
+ links: z.lazy(() => CancelSubscriptionLinks$outboundSchema),
1518
1476
  }).transform((v) => {
1519
1477
  return remap$(v, {
1520
1478
  links: "_links",
@@ -151,21 +151,6 @@ export type CreateCustomerPaymentCategoryRequest = ClosedEnum<
151
151
  typeof CreateCustomerPaymentCategoryRequest
152
152
  >;
153
153
 
154
- /**
155
- * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
156
- */
157
- export const CreateCustomerPaymentIntervalRequest = {
158
- DotDotDotMonths: "... months",
159
- DotDotDotWeeks: "... weeks",
160
- DotDotDotDays: "... days",
161
- } as const;
162
- /**
163
- * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
164
- */
165
- export type CreateCustomerPaymentIntervalRequest = ClosedEnum<
166
- typeof CreateCustomerPaymentIntervalRequest
167
- >;
168
-
169
154
  /**
170
155
  * Total amount and currency of the recurring item.
171
156
  */
@@ -193,8 +178,12 @@ export type CreateCustomerPaymentRecurringRequest = {
193
178
  description?: string | undefined;
194
179
  /**
195
180
  * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
181
+ *
182
+ * @remarks
183
+ *
184
+ * Possible values: `... days`, `... weeks`, `... months`.
196
185
  */
197
- interval: CreateCustomerPaymentIntervalRequest;
186
+ interval: string;
198
187
  /**
199
188
  * Total amount and currency of the recurring item.
200
189
  */
@@ -1522,21 +1511,6 @@ export type CreateCustomerPaymentCategoryResponse = ClosedEnum<
1522
1511
  typeof CreateCustomerPaymentCategoryResponse
1523
1512
  >;
1524
1513
 
1525
- /**
1526
- * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
1527
- */
1528
- export const CreateCustomerPaymentIntervalResponse = {
1529
- DotDotDotMonths: "... months",
1530
- DotDotDotWeeks: "... weeks",
1531
- DotDotDotDays: "... days",
1532
- } as const;
1533
- /**
1534
- * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
1535
- */
1536
- export type CreateCustomerPaymentIntervalResponse = ClosedEnum<
1537
- typeof CreateCustomerPaymentIntervalResponse
1538
- >;
1539
-
1540
1514
  /**
1541
1515
  * Total amount and currency of the recurring item.
1542
1516
  */
@@ -1564,8 +1538,12 @@ export type CreateCustomerPaymentRecurringResponse = {
1564
1538
  description?: string | undefined;
1565
1539
  /**
1566
1540
  * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
1541
+ *
1542
+ * @remarks
1543
+ *
1544
+ * Possible values: `... days`, `... weeks`, `... months`.
1567
1545
  */
1568
- interval: CreateCustomerPaymentIntervalResponse;
1546
+ interval: string;
1569
1547
  /**
1570
1548
  * Total amount and currency of the recurring item.
1571
1549
  */
@@ -4108,30 +4086,6 @@ export namespace CreateCustomerPaymentCategoryRequest$ {
4108
4086
  CreateCustomerPaymentCategoryRequest$outboundSchema;
4109
4087
  }
4110
4088
 
4111
- /** @internal */
4112
- export const CreateCustomerPaymentIntervalRequest$inboundSchema:
4113
- z.ZodNativeEnum<typeof CreateCustomerPaymentIntervalRequest> = z.nativeEnum(
4114
- CreateCustomerPaymentIntervalRequest,
4115
- );
4116
-
4117
- /** @internal */
4118
- export const CreateCustomerPaymentIntervalRequest$outboundSchema:
4119
- z.ZodNativeEnum<typeof CreateCustomerPaymentIntervalRequest> =
4120
- CreateCustomerPaymentIntervalRequest$inboundSchema;
4121
-
4122
- /**
4123
- * @internal
4124
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4125
- */
4126
- export namespace CreateCustomerPaymentIntervalRequest$ {
4127
- /** @deprecated use `CreateCustomerPaymentIntervalRequest$inboundSchema` instead. */
4128
- export const inboundSchema =
4129
- CreateCustomerPaymentIntervalRequest$inboundSchema;
4130
- /** @deprecated use `CreateCustomerPaymentIntervalRequest$outboundSchema` instead. */
4131
- export const outboundSchema =
4132
- CreateCustomerPaymentIntervalRequest$outboundSchema;
4133
- }
4134
-
4135
4089
  /** @internal */
4136
4090
  export const CreateCustomerPaymentRecurringAmountRequest$inboundSchema:
4137
4091
  z.ZodType<
@@ -4209,7 +4163,7 @@ export const CreateCustomerPaymentRecurringRequest$inboundSchema: z.ZodType<
4209
4163
  unknown
4210
4164
  > = z.object({
4211
4165
  description: z.string().optional(),
4212
- interval: CreateCustomerPaymentIntervalRequest$inboundSchema,
4166
+ interval: z.string(),
4213
4167
  amount: z.lazy(() =>
4214
4168
  CreateCustomerPaymentRecurringAmountRequest$inboundSchema
4215
4169
  ).optional(),
@@ -4233,7 +4187,7 @@ export const CreateCustomerPaymentRecurringRequest$outboundSchema: z.ZodType<
4233
4187
  CreateCustomerPaymentRecurringRequest
4234
4188
  > = z.object({
4235
4189
  description: z.string().optional(),
4236
- interval: CreateCustomerPaymentIntervalRequest$outboundSchema,
4190
+ interval: z.string(),
4237
4191
  amount: z.lazy(() =>
4238
4192
  CreateCustomerPaymentRecurringAmountRequest$outboundSchema
4239
4193
  ).optional(),
@@ -6619,30 +6573,6 @@ export namespace CreateCustomerPaymentCategoryResponse$ {
6619
6573
  CreateCustomerPaymentCategoryResponse$outboundSchema;
6620
6574
  }
6621
6575
 
6622
- /** @internal */
6623
- export const CreateCustomerPaymentIntervalResponse$inboundSchema:
6624
- z.ZodNativeEnum<typeof CreateCustomerPaymentIntervalResponse> = z.nativeEnum(
6625
- CreateCustomerPaymentIntervalResponse,
6626
- );
6627
-
6628
- /** @internal */
6629
- export const CreateCustomerPaymentIntervalResponse$outboundSchema:
6630
- z.ZodNativeEnum<typeof CreateCustomerPaymentIntervalResponse> =
6631
- CreateCustomerPaymentIntervalResponse$inboundSchema;
6632
-
6633
- /**
6634
- * @internal
6635
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6636
- */
6637
- export namespace CreateCustomerPaymentIntervalResponse$ {
6638
- /** @deprecated use `CreateCustomerPaymentIntervalResponse$inboundSchema` instead. */
6639
- export const inboundSchema =
6640
- CreateCustomerPaymentIntervalResponse$inboundSchema;
6641
- /** @deprecated use `CreateCustomerPaymentIntervalResponse$outboundSchema` instead. */
6642
- export const outboundSchema =
6643
- CreateCustomerPaymentIntervalResponse$outboundSchema;
6644
- }
6645
-
6646
6576
  /** @internal */
6647
6577
  export const CreateCustomerPaymentRecurringAmountResponse$inboundSchema:
6648
6578
  z.ZodType<
@@ -6720,7 +6650,7 @@ export const CreateCustomerPaymentRecurringResponse$inboundSchema: z.ZodType<
6720
6650
  unknown
6721
6651
  > = z.object({
6722
6652
  description: z.string().optional(),
6723
- interval: CreateCustomerPaymentIntervalResponse$inboundSchema,
6653
+ interval: z.string(),
6724
6654
  amount: z.lazy(() =>
6725
6655
  CreateCustomerPaymentRecurringAmountResponse$inboundSchema
6726
6656
  ).optional(),
@@ -6744,7 +6674,7 @@ export const CreateCustomerPaymentRecurringResponse$outboundSchema: z.ZodType<
6744
6674
  CreateCustomerPaymentRecurringResponse
6745
6675
  > = z.object({
6746
6676
  description: z.string().optional(),
6747
- interval: CreateCustomerPaymentIntervalResponse$outboundSchema,
6677
+ interval: z.string(),
6748
6678
  amount: z.lazy(() =>
6749
6679
  CreateCustomerPaymentRecurringAmountResponse$outboundSchema
6750
6680
  ).optional(),
@@ -162,21 +162,6 @@ export type CreatePaymentCategoryRequest = ClosedEnum<
162
162
  typeof CreatePaymentCategoryRequest
163
163
  >;
164
164
 
165
- /**
166
- * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
167
- */
168
- export const CreatePaymentIntervalRequest = {
169
- DotDotDotMonths: "... months",
170
- DotDotDotWeeks: "... weeks",
171
- DotDotDotDays: "... days",
172
- } as const;
173
- /**
174
- * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
175
- */
176
- export type CreatePaymentIntervalRequest = ClosedEnum<
177
- typeof CreatePaymentIntervalRequest
178
- >;
179
-
180
165
  /**
181
166
  * Total amount and currency of the recurring item.
182
167
  */
@@ -204,8 +189,12 @@ export type CreatePaymentRecurringRequest = {
204
189
  description?: string | undefined;
205
190
  /**
206
191
  * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
192
+ *
193
+ * @remarks
194
+ *
195
+ * Possible values: `... days`, `... weeks`, `... months`.
207
196
  */
208
- interval: CreatePaymentIntervalRequest;
197
+ interval: string;
209
198
  /**
210
199
  * Total amount and currency of the recurring item.
211
200
  */
@@ -1528,21 +1517,6 @@ export type CreatePaymentCategoryResponse = ClosedEnum<
1528
1517
  typeof CreatePaymentCategoryResponse
1529
1518
  >;
1530
1519
 
1531
- /**
1532
- * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
1533
- */
1534
- export const CreatePaymentIntervalResponse = {
1535
- DotDotDotMonths: "... months",
1536
- DotDotDotWeeks: "... weeks",
1537
- DotDotDotDays: "... days",
1538
- } as const;
1539
- /**
1540
- * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
1541
- */
1542
- export type CreatePaymentIntervalResponse = ClosedEnum<
1543
- typeof CreatePaymentIntervalResponse
1544
- >;
1545
-
1546
1520
  /**
1547
1521
  * Total amount and currency of the recurring item.
1548
1522
  */
@@ -1570,8 +1544,12 @@ export type CreatePaymentRecurringResponse = {
1570
1544
  description?: string | undefined;
1571
1545
  /**
1572
1546
  * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
1547
+ *
1548
+ * @remarks
1549
+ *
1550
+ * Possible values: `... days`, `... weeks`, `... months`.
1573
1551
  */
1574
- interval: CreatePaymentIntervalResponse;
1552
+ interval: string;
1575
1553
  /**
1576
1554
  * Total amount and currency of the recurring item.
1577
1555
  */
@@ -4094,27 +4072,6 @@ export namespace CreatePaymentCategoryRequest$ {
4094
4072
  export const outboundSchema = CreatePaymentCategoryRequest$outboundSchema;
4095
4073
  }
4096
4074
 
4097
- /** @internal */
4098
- export const CreatePaymentIntervalRequest$inboundSchema: z.ZodNativeEnum<
4099
- typeof CreatePaymentIntervalRequest
4100
- > = z.nativeEnum(CreatePaymentIntervalRequest);
4101
-
4102
- /** @internal */
4103
- export const CreatePaymentIntervalRequest$outboundSchema: z.ZodNativeEnum<
4104
- typeof CreatePaymentIntervalRequest
4105
- > = CreatePaymentIntervalRequest$inboundSchema;
4106
-
4107
- /**
4108
- * @internal
4109
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4110
- */
4111
- export namespace CreatePaymentIntervalRequest$ {
4112
- /** @deprecated use `CreatePaymentIntervalRequest$inboundSchema` instead. */
4113
- export const inboundSchema = CreatePaymentIntervalRequest$inboundSchema;
4114
- /** @deprecated use `CreatePaymentIntervalRequest$outboundSchema` instead. */
4115
- export const outboundSchema = CreatePaymentIntervalRequest$outboundSchema;
4116
- }
4117
-
4118
4075
  /** @internal */
4119
4076
  export const CreatePaymentRecurringAmountRequest$inboundSchema: z.ZodType<
4120
4077
  CreatePaymentRecurringAmountRequest,
@@ -4184,7 +4141,7 @@ export const CreatePaymentRecurringRequest$inboundSchema: z.ZodType<
4184
4141
  unknown
4185
4142
  > = z.object({
4186
4143
  description: z.string().optional(),
4187
- interval: CreatePaymentIntervalRequest$inboundSchema,
4144
+ interval: z.string(),
4188
4145
  amount: z.lazy(() => CreatePaymentRecurringAmountRequest$inboundSchema)
4189
4146
  .optional(),
4190
4147
  times: z.number().int().optional(),
@@ -4207,7 +4164,7 @@ export const CreatePaymentRecurringRequest$outboundSchema: z.ZodType<
4207
4164
  CreatePaymentRecurringRequest
4208
4165
  > = z.object({
4209
4166
  description: z.string().optional(),
4210
- interval: CreatePaymentIntervalRequest$outboundSchema,
4167
+ interval: z.string(),
4211
4168
  amount: z.lazy(() => CreatePaymentRecurringAmountRequest$outboundSchema)
4212
4169
  .optional(),
4213
4170
  times: z.number().int().optional(),
@@ -6414,27 +6371,6 @@ export namespace CreatePaymentCategoryResponse$ {
6414
6371
  export const outboundSchema = CreatePaymentCategoryResponse$outboundSchema;
6415
6372
  }
6416
6373
 
6417
- /** @internal */
6418
- export const CreatePaymentIntervalResponse$inboundSchema: z.ZodNativeEnum<
6419
- typeof CreatePaymentIntervalResponse
6420
- > = z.nativeEnum(CreatePaymentIntervalResponse);
6421
-
6422
- /** @internal */
6423
- export const CreatePaymentIntervalResponse$outboundSchema: z.ZodNativeEnum<
6424
- typeof CreatePaymentIntervalResponse
6425
- > = CreatePaymentIntervalResponse$inboundSchema;
6426
-
6427
- /**
6428
- * @internal
6429
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
6430
- */
6431
- export namespace CreatePaymentIntervalResponse$ {
6432
- /** @deprecated use `CreatePaymentIntervalResponse$inboundSchema` instead. */
6433
- export const inboundSchema = CreatePaymentIntervalResponse$inboundSchema;
6434
- /** @deprecated use `CreatePaymentIntervalResponse$outboundSchema` instead. */
6435
- export const outboundSchema = CreatePaymentIntervalResponse$outboundSchema;
6436
- }
6437
-
6438
6374
  /** @internal */
6439
6375
  export const CreatePaymentRecurringAmountResponse$inboundSchema: z.ZodType<
6440
6376
  CreatePaymentRecurringAmountResponse,
@@ -6504,7 +6440,7 @@ export const CreatePaymentRecurringResponse$inboundSchema: z.ZodType<
6504
6440
  unknown
6505
6441
  > = z.object({
6506
6442
  description: z.string().optional(),
6507
- interval: CreatePaymentIntervalResponse$inboundSchema,
6443
+ interval: z.string(),
6508
6444
  amount: z.lazy(() => CreatePaymentRecurringAmountResponse$inboundSchema)
6509
6445
  .optional(),
6510
6446
  times: z.number().int().optional(),
@@ -6527,7 +6463,7 @@ export const CreatePaymentRecurringResponse$outboundSchema: z.ZodType<
6527
6463
  CreatePaymentRecurringResponse
6528
6464
  > = z.object({
6529
6465
  description: z.string().optional(),
6530
- interval: CreatePaymentIntervalResponse$outboundSchema,
6466
+ interval: z.string(),
6531
6467
  amount: z.lazy(() => CreatePaymentRecurringAmountResponse$outboundSchema)
6532
6468
  .optional(),
6533
6469
  times: z.number().int().optional(),