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
@@ -26,29 +26,6 @@ export type CreateSubscriptionAmountRequest = {
26
26
  value: string;
27
27
  };
28
28
 
29
- /**
30
- * Interval to wait between payments, for example `1 month` or `14 days`.
31
- *
32
- * @remarks
33
- *
34
- * The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
35
- */
36
- export const CreateSubscriptionIntervalRequest = {
37
- DotDotDotDays: "... days",
38
- DotDotDotWeeks: "... weeks",
39
- DotDotDotMonths: "... months",
40
- } as const;
41
- /**
42
- * Interval to wait between payments, for example `1 month` or `14 days`.
43
- *
44
- * @remarks
45
- *
46
- * The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
47
- */
48
- export type CreateSubscriptionIntervalRequest = ClosedEnum<
49
- typeof CreateSubscriptionIntervalRequest
50
- >;
51
-
52
29
  /**
53
30
  * The payment method used for this subscription. If omitted, any of the customer's valid mandates may be used.
54
31
  */
@@ -134,8 +111,10 @@ export type CreateSubscriptionRequestBody = {
134
111
  * @remarks
135
112
  *
136
113
  * The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
114
+ *
115
+ * Possible values: `... days`, `... weeks`, `... months`.
137
116
  */
138
- interval: CreateSubscriptionIntervalRequest;
117
+ interval: string;
139
118
  /**
140
119
  * The start date of the subscription in `YYYY-MM-DD` format.
141
120
  */
@@ -275,29 +254,6 @@ export type CreateSubscriptionAmountResponse = {
275
254
  value: string;
276
255
  };
277
256
 
278
- /**
279
- * Interval to wait between payments, for example `1 month` or `14 days`.
280
- *
281
- * @remarks
282
- *
283
- * The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
284
- */
285
- export const CreateSubscriptionIntervalResponse = {
286
- DotDotDotDays: "... days",
287
- DotDotDotWeeks: "... weeks",
288
- DotDotDotMonths: "... months",
289
- } as const;
290
- /**
291
- * Interval to wait between payments, for example `1 month` or `14 days`.
292
- *
293
- * @remarks
294
- *
295
- * The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
296
- */
297
- export type CreateSubscriptionIntervalResponse = ClosedEnum<
298
- typeof CreateSubscriptionIntervalResponse
299
- >;
300
-
301
257
  /**
302
258
  * The payment method used for this subscription. If omitted, any of the customer's valid mandates may be used.
303
259
  */
@@ -525,15 +481,17 @@ export type CreateSubscriptionResponse = {
525
481
  /**
526
482
  * Number of payments left for the subscription.
527
483
  */
528
- timesRemaining: number;
484
+ timesRemaining: number | null;
529
485
  /**
530
486
  * Interval to wait between payments, for example `1 month` or `14 days`.
531
487
  *
532
488
  * @remarks
533
489
  *
534
490
  * The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
491
+ *
492
+ * Possible values: `... days`, `... weeks`, `... months`.
535
493
  */
536
- interval: CreateSubscriptionIntervalResponse;
494
+ interval: string;
537
495
  /**
538
496
  * The start date of the subscription in `YYYY-MM-DD` format.
539
497
  */
@@ -611,7 +569,7 @@ export type CreateSubscriptionResponse = {
611
569
  /**
612
570
  * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
613
571
  */
614
- links?: CreateSubscriptionLinks | undefined;
572
+ links: CreateSubscriptionLinks;
615
573
  };
616
574
 
617
575
  /** @internal */
@@ -673,28 +631,6 @@ export function createSubscriptionAmountRequestFromJSON(
673
631
  );
674
632
  }
675
633
 
676
- /** @internal */
677
- export const CreateSubscriptionIntervalRequest$inboundSchema: z.ZodNativeEnum<
678
- typeof CreateSubscriptionIntervalRequest
679
- > = z.nativeEnum(CreateSubscriptionIntervalRequest);
680
-
681
- /** @internal */
682
- export const CreateSubscriptionIntervalRequest$outboundSchema: z.ZodNativeEnum<
683
- typeof CreateSubscriptionIntervalRequest
684
- > = CreateSubscriptionIntervalRequest$inboundSchema;
685
-
686
- /**
687
- * @internal
688
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
689
- */
690
- export namespace CreateSubscriptionIntervalRequest$ {
691
- /** @deprecated use `CreateSubscriptionIntervalRequest$inboundSchema` instead. */
692
- export const inboundSchema = CreateSubscriptionIntervalRequest$inboundSchema;
693
- /** @deprecated use `CreateSubscriptionIntervalRequest$outboundSchema` instead. */
694
- export const outboundSchema =
695
- CreateSubscriptionIntervalRequest$outboundSchema;
696
- }
697
-
698
634
  /** @internal */
699
635
  export const CreateSubscriptionMethodRequest$inboundSchema: z.ZodNativeEnum<
700
636
  typeof CreateSubscriptionMethodRequest
@@ -919,7 +855,7 @@ export const CreateSubscriptionRequestBody$inboundSchema: z.ZodType<
919
855
  > = z.object({
920
856
  amount: z.lazy(() => CreateSubscriptionAmountRequest$inboundSchema),
921
857
  times: z.nullable(z.number().int()).optional(),
922
- interval: CreateSubscriptionIntervalRequest$inboundSchema,
858
+ interval: z.string(),
923
859
  startDate: z.string().optional(),
924
860
  description: z.string(),
925
861
  method: z.nullable(CreateSubscriptionMethodRequest$inboundSchema).optional(),
@@ -957,7 +893,7 @@ export const CreateSubscriptionRequestBody$outboundSchema: z.ZodType<
957
893
  > = z.object({
958
894
  amount: z.lazy(() => CreateSubscriptionAmountRequest$outboundSchema),
959
895
  times: z.nullable(z.number().int()).optional(),
960
- interval: CreateSubscriptionIntervalRequest$outboundSchema,
896
+ interval: z.string(),
961
897
  startDate: z.string().optional(),
962
898
  description: z.string(),
963
899
  method: z.nullable(CreateSubscriptionMethodRequest$outboundSchema).optional(),
@@ -1301,28 +1237,6 @@ export function createSubscriptionAmountResponseFromJSON(
1301
1237
  );
1302
1238
  }
1303
1239
 
1304
- /** @internal */
1305
- export const CreateSubscriptionIntervalResponse$inboundSchema: z.ZodNativeEnum<
1306
- typeof CreateSubscriptionIntervalResponse
1307
- > = z.nativeEnum(CreateSubscriptionIntervalResponse);
1308
-
1309
- /** @internal */
1310
- export const CreateSubscriptionIntervalResponse$outboundSchema: z.ZodNativeEnum<
1311
- typeof CreateSubscriptionIntervalResponse
1312
- > = CreateSubscriptionIntervalResponse$inboundSchema;
1313
-
1314
- /**
1315
- * @internal
1316
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1317
- */
1318
- export namespace CreateSubscriptionIntervalResponse$ {
1319
- /** @deprecated use `CreateSubscriptionIntervalResponse$inboundSchema` instead. */
1320
- export const inboundSchema = CreateSubscriptionIntervalResponse$inboundSchema;
1321
- /** @deprecated use `CreateSubscriptionIntervalResponse$outboundSchema` instead. */
1322
- export const outboundSchema =
1323
- CreateSubscriptionIntervalResponse$outboundSchema;
1324
- }
1325
-
1326
1240
  /** @internal */
1327
1241
  export const CreateSubscriptionMethodResponse$inboundSchema: z.ZodNativeEnum<
1328
1242
  typeof CreateSubscriptionMethodResponse
@@ -1970,8 +1884,8 @@ export const CreateSubscriptionResponse$inboundSchema: z.ZodType<
1970
1884
  status: CreateSubscriptionStatus$inboundSchema,
1971
1885
  amount: z.lazy(() => CreateSubscriptionAmountResponse$inboundSchema),
1972
1886
  times: z.nullable(z.number().int()),
1973
- timesRemaining: z.number().int(),
1974
- interval: CreateSubscriptionIntervalResponse$inboundSchema,
1887
+ timesRemaining: z.nullable(z.number().int()),
1888
+ interval: z.string(),
1975
1889
  startDate: z.string(),
1976
1890
  nextPaymentDate: z.nullable(z.string()).optional(),
1977
1891
  description: z.string(),
@@ -1987,7 +1901,7 @@ export const CreateSubscriptionResponse$inboundSchema: z.ZodType<
1987
1901
  mandateId: z.nullable(z.string()).optional(),
1988
1902
  createdAt: z.string(),
1989
1903
  canceledAt: z.nullable(z.string()).optional(),
1990
- _links: z.lazy(() => CreateSubscriptionLinks$inboundSchema).optional(),
1904
+ _links: z.lazy(() => CreateSubscriptionLinks$inboundSchema),
1991
1905
  }).transform((v) => {
1992
1906
  return remap$(v, {
1993
1907
  "_links": "links",
@@ -2002,7 +1916,7 @@ export type CreateSubscriptionResponse$Outbound = {
2002
1916
  status: string;
2003
1917
  amount: CreateSubscriptionAmountResponse$Outbound;
2004
1918
  times: number | null;
2005
- timesRemaining: number;
1919
+ timesRemaining: number | null;
2006
1920
  interval: string;
2007
1921
  startDate: string;
2008
1922
  nextPaymentDate?: string | null | undefined;
@@ -2017,7 +1931,7 @@ export type CreateSubscriptionResponse$Outbound = {
2017
1931
  mandateId?: string | null | undefined;
2018
1932
  createdAt: string;
2019
1933
  canceledAt?: string | null | undefined;
2020
- _links?: CreateSubscriptionLinks$Outbound | undefined;
1934
+ _links: CreateSubscriptionLinks$Outbound;
2021
1935
  };
2022
1936
 
2023
1937
  /** @internal */
@@ -2032,8 +1946,8 @@ export const CreateSubscriptionResponse$outboundSchema: z.ZodType<
2032
1946
  status: CreateSubscriptionStatus$outboundSchema,
2033
1947
  amount: z.lazy(() => CreateSubscriptionAmountResponse$outboundSchema),
2034
1948
  times: z.nullable(z.number().int()),
2035
- timesRemaining: z.number().int(),
2036
- interval: CreateSubscriptionIntervalResponse$outboundSchema,
1949
+ timesRemaining: z.nullable(z.number().int()),
1950
+ interval: z.string(),
2037
1951
  startDate: z.string(),
2038
1952
  nextPaymentDate: z.nullable(z.string()).optional(),
2039
1953
  description: z.string(),
@@ -2049,7 +1963,7 @@ export const CreateSubscriptionResponse$outboundSchema: z.ZodType<
2049
1963
  mandateId: z.nullable(z.string()).optional(),
2050
1964
  createdAt: z.string(),
2051
1965
  canceledAt: z.nullable(z.string()).optional(),
2052
- links: z.lazy(() => CreateSubscriptionLinks$outboundSchema).optional(),
1966
+ links: z.lazy(() => CreateSubscriptionLinks$outboundSchema),
2053
1967
  }).transform((v) => {
2054
1968
  return remap$(v, {
2055
1969
  links: "_links",
@@ -425,7 +425,7 @@ export type GetMethodResponse = {
425
425
  /**
426
426
  * The payment method's activation status for this profile.
427
427
  */
428
- status: GetMethodStatus | null;
428
+ status: GetMethodStatus;
429
429
  /**
430
430
  * **Optional include.** Array of objects for each 'issuer' that is available for this payment method. Only relevant
431
431
  *
@@ -1306,7 +1306,7 @@ export const GetMethodResponse$inboundSchema: z.ZodType<
1306
1306
  minimumAmount: z.lazy(() => GetMethodMinimumAmount$inboundSchema),
1307
1307
  maximumAmount: z.nullable(z.lazy(() => GetMethodMaximumAmount$inboundSchema)),
1308
1308
  image: z.lazy(() => GetMethodImage$inboundSchema),
1309
- status: z.nullable(GetMethodStatus$inboundSchema),
1309
+ status: GetMethodStatus$inboundSchema,
1310
1310
  issuers: z.array(z.lazy(() => GetMethodIssuer$inboundSchema)).optional(),
1311
1311
  _links: z.lazy(() => GetMethodLinks$inboundSchema),
1312
1312
  }).transform((v) => {
@@ -1323,7 +1323,7 @@ export type GetMethodResponse$Outbound = {
1323
1323
  minimumAmount: GetMethodMinimumAmount$Outbound;
1324
1324
  maximumAmount: GetMethodMaximumAmount$Outbound | null;
1325
1325
  image: GetMethodImage$Outbound;
1326
- status: string | null;
1326
+ status: string;
1327
1327
  issuers?: Array<GetMethodIssuer$Outbound> | undefined;
1328
1328
  _links: GetMethodLinks$Outbound;
1329
1329
  };
@@ -1342,7 +1342,7 @@ export const GetMethodResponse$outboundSchema: z.ZodType<
1342
1342
  z.lazy(() => GetMethodMaximumAmount$outboundSchema),
1343
1343
  ),
1344
1344
  image: z.lazy(() => GetMethodImage$outboundSchema),
1345
- status: z.nullable(GetMethodStatus$outboundSchema),
1345
+ status: GetMethodStatus$outboundSchema,
1346
1346
  issuers: z.array(z.lazy(() => GetMethodIssuer$outboundSchema)).optional(),
1347
1347
  links: z.lazy(() => GetMethodLinks$outboundSchema),
1348
1348
  }).transform((v) => {
@@ -319,19 +319,6 @@ export const GetPaymentCategory = {
319
319
  } as const;
320
320
  export type GetPaymentCategory = ClosedEnum<typeof GetPaymentCategory>;
321
321
 
322
- /**
323
- * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
324
- */
325
- export const GetPaymentInterval = {
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 GetPaymentInterval = ClosedEnum<typeof GetPaymentInterval>;
334
-
335
322
  /**
336
323
  * Total amount and currency of the recurring item.
337
324
  */
@@ -359,8 +346,12 @@ export type GetPaymentRecurring = {
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: GetPaymentInterval;
354
+ interval: string;
364
355
  /**
365
356
  * Total amount and currency of the recurring item.
366
357
  */
@@ -3352,27 +3343,6 @@ export namespace GetPaymentCategory$ {
3352
3343
  export const outboundSchema = GetPaymentCategory$outboundSchema;
3353
3344
  }
3354
3345
 
3355
- /** @internal */
3356
- export const GetPaymentInterval$inboundSchema: z.ZodNativeEnum<
3357
- typeof GetPaymentInterval
3358
- > = z.nativeEnum(GetPaymentInterval);
3359
-
3360
- /** @internal */
3361
- export const GetPaymentInterval$outboundSchema: z.ZodNativeEnum<
3362
- typeof GetPaymentInterval
3363
- > = GetPaymentInterval$inboundSchema;
3364
-
3365
- /**
3366
- * @internal
3367
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3368
- */
3369
- export namespace GetPaymentInterval$ {
3370
- /** @deprecated use `GetPaymentInterval$inboundSchema` instead. */
3371
- export const inboundSchema = GetPaymentInterval$inboundSchema;
3372
- /** @deprecated use `GetPaymentInterval$outboundSchema` instead. */
3373
- export const outboundSchema = GetPaymentInterval$outboundSchema;
3374
- }
3375
-
3376
3346
  /** @internal */
3377
3347
  export const GetPaymentRecurringAmount$inboundSchema: z.ZodType<
3378
3348
  GetPaymentRecurringAmount,
@@ -3437,7 +3407,7 @@ export const GetPaymentRecurring$inboundSchema: z.ZodType<
3437
3407
  unknown
3438
3408
  > = z.object({
3439
3409
  description: z.string().optional(),
3440
- interval: GetPaymentInterval$inboundSchema,
3410
+ interval: z.string(),
3441
3411
  amount: z.lazy(() => GetPaymentRecurringAmount$inboundSchema).optional(),
3442
3412
  times: z.number().int().optional(),
3443
3413
  startDate: z.nullable(z.string()).optional(),
@@ -3459,7 +3429,7 @@ export const GetPaymentRecurring$outboundSchema: z.ZodType<
3459
3429
  GetPaymentRecurring
3460
3430
  > = z.object({
3461
3431
  description: z.string().optional(),
3462
- interval: GetPaymentInterval$outboundSchema,
3432
+ interval: z.string(),
3463
3433
  amount: z.lazy(() => GetPaymentRecurringAmount$outboundSchema).optional(),
3464
3434
  times: z.number().int().optional(),
3465
3435
  startDate: z.nullable(z.string()).optional(),
@@ -321,21 +321,6 @@ export type GetPaymentLinkPaymentsCategory = ClosedEnum<
321
321
  typeof GetPaymentLinkPaymentsCategory
322
322
  >;
323
323
 
324
- /**
325
- * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
326
- */
327
- export const GetPaymentLinkPaymentsInterval = {
328
- DotDotDotMonths: "... months",
329
- DotDotDotWeeks: "... weeks",
330
- DotDotDotDays: "... days",
331
- } as const;
332
- /**
333
- * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
334
- */
335
- export type GetPaymentLinkPaymentsInterval = ClosedEnum<
336
- typeof GetPaymentLinkPaymentsInterval
337
- >;
338
-
339
324
  /**
340
325
  * Total amount and currency of the recurring item.
341
326
  */
@@ -363,8 +348,12 @@ export type GetPaymentLinkPaymentsRecurring = {
363
348
  description?: string | undefined;
364
349
  /**
365
350
  * Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
351
+ *
352
+ * @remarks
353
+ *
354
+ * Possible values: `... days`, `... weeks`, `... months`.
366
355
  */
367
- interval: GetPaymentLinkPaymentsInterval;
356
+ interval: string;
368
357
  /**
369
358
  * Total amount and currency of the recurring item.
370
359
  */
@@ -3541,27 +3530,6 @@ export namespace GetPaymentLinkPaymentsCategory$ {
3541
3530
  export const outboundSchema = GetPaymentLinkPaymentsCategory$outboundSchema;
3542
3531
  }
3543
3532
 
3544
- /** @internal */
3545
- export const GetPaymentLinkPaymentsInterval$inboundSchema: z.ZodNativeEnum<
3546
- typeof GetPaymentLinkPaymentsInterval
3547
- > = z.nativeEnum(GetPaymentLinkPaymentsInterval);
3548
-
3549
- /** @internal */
3550
- export const GetPaymentLinkPaymentsInterval$outboundSchema: z.ZodNativeEnum<
3551
- typeof GetPaymentLinkPaymentsInterval
3552
- > = GetPaymentLinkPaymentsInterval$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 GetPaymentLinkPaymentsInterval$ {
3559
- /** @deprecated use `GetPaymentLinkPaymentsInterval$inboundSchema` instead. */
3560
- export const inboundSchema = GetPaymentLinkPaymentsInterval$inboundSchema;
3561
- /** @deprecated use `GetPaymentLinkPaymentsInterval$outboundSchema` instead. */
3562
- export const outboundSchema = GetPaymentLinkPaymentsInterval$outboundSchema;
3563
- }
3564
-
3565
3533
  /** @internal */
3566
3534
  export const GetPaymentLinkPaymentsRecurringAmount$inboundSchema: z.ZodType<
3567
3535
  GetPaymentLinkPaymentsRecurringAmount,
@@ -3631,7 +3599,7 @@ export const GetPaymentLinkPaymentsRecurring$inboundSchema: z.ZodType<
3631
3599
  unknown
3632
3600
  > = z.object({
3633
3601
  description: z.string().optional(),
3634
- interval: GetPaymentLinkPaymentsInterval$inboundSchema,
3602
+ interval: z.string(),
3635
3603
  amount: z.lazy(() => GetPaymentLinkPaymentsRecurringAmount$inboundSchema)
3636
3604
  .optional(),
3637
3605
  times: z.number().int().optional(),
@@ -3654,7 +3622,7 @@ export const GetPaymentLinkPaymentsRecurring$outboundSchema: z.ZodType<
3654
3622
  GetPaymentLinkPaymentsRecurring
3655
3623
  > = z.object({
3656
3624
  description: z.string().optional(),
3657
- interval: GetPaymentLinkPaymentsInterval$outboundSchema,
3625
+ interval: z.string(),
3658
3626
  amount: z.lazy(() => GetPaymentLinkPaymentsRecurringAmount$outboundSchema)
3659
3627
  .optional(),
3660
3628
  times: z.number().int().optional(),
@@ -95,29 +95,6 @@ export type GetSubscriptionAmount = {
95
95
  value: string;
96
96
  };
97
97
 
98
- /**
99
- * Interval to wait between payments, for example `1 month` or `14 days`.
100
- *
101
- * @remarks
102
- *
103
- * The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
104
- */
105
- export const GetSubscriptionInterval = {
106
- DotDotDotDays: "... days",
107
- DotDotDotWeeks: "... weeks",
108
- DotDotDotMonths: "... months",
109
- } as const;
110
- /**
111
- * Interval to wait between payments, for example `1 month` or `14 days`.
112
- *
113
- * @remarks
114
- *
115
- * The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
116
- */
117
- export type GetSubscriptionInterval = ClosedEnum<
118
- typeof GetSubscriptionInterval
119
- >;
120
-
121
98
  /**
122
99
  * The payment method used for this subscription. If omitted, any of the customer's valid mandates may be used.
123
100
  */
@@ -343,15 +320,17 @@ export type GetSubscriptionResponse = {
343
320
  /**
344
321
  * Number of payments left for the subscription.
345
322
  */
346
- timesRemaining: number;
323
+ timesRemaining: number | null;
347
324
  /**
348
325
  * Interval to wait between payments, for example `1 month` or `14 days`.
349
326
  *
350
327
  * @remarks
351
328
  *
352
329
  * The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
330
+ *
331
+ * Possible values: `... days`, `... weeks`, `... months`.
353
332
  */
354
- interval: GetSubscriptionInterval;
333
+ interval: string;
355
334
  /**
356
335
  * The start date of the subscription in `YYYY-MM-DD` format.
357
336
  */
@@ -429,7 +408,7 @@ export type GetSubscriptionResponse = {
429
408
  /**
430
409
  * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
431
410
  */
432
- links?: GetSubscriptionLinks | undefined;
411
+ links: GetSubscriptionLinks;
433
412
  };
434
413
 
435
414
  /** @internal */
@@ -713,27 +692,6 @@ export function getSubscriptionAmountFromJSON(
713
692
  );
714
693
  }
715
694
 
716
- /** @internal */
717
- export const GetSubscriptionInterval$inboundSchema: z.ZodNativeEnum<
718
- typeof GetSubscriptionInterval
719
- > = z.nativeEnum(GetSubscriptionInterval);
720
-
721
- /** @internal */
722
- export const GetSubscriptionInterval$outboundSchema: z.ZodNativeEnum<
723
- typeof GetSubscriptionInterval
724
- > = GetSubscriptionInterval$inboundSchema;
725
-
726
- /**
727
- * @internal
728
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
729
- */
730
- export namespace GetSubscriptionInterval$ {
731
- /** @deprecated use `GetSubscriptionInterval$inboundSchema` instead. */
732
- export const inboundSchema = GetSubscriptionInterval$inboundSchema;
733
- /** @deprecated use `GetSubscriptionInterval$outboundSchema` instead. */
734
- export const outboundSchema = GetSubscriptionInterval$outboundSchema;
735
- }
736
-
737
695
  /** @internal */
738
696
  export const GetSubscriptionMethod$inboundSchema: z.ZodNativeEnum<
739
697
  typeof GetSubscriptionMethod
@@ -1356,8 +1314,8 @@ export const GetSubscriptionResponse$inboundSchema: z.ZodType<
1356
1314
  status: GetSubscriptionStatus$inboundSchema,
1357
1315
  amount: z.lazy(() => GetSubscriptionAmount$inboundSchema),
1358
1316
  times: z.nullable(z.number().int()),
1359
- timesRemaining: z.number().int(),
1360
- interval: GetSubscriptionInterval$inboundSchema,
1317
+ timesRemaining: z.nullable(z.number().int()),
1318
+ interval: z.string(),
1361
1319
  startDate: z.string(),
1362
1320
  nextPaymentDate: z.nullable(z.string()).optional(),
1363
1321
  description: z.string(),
@@ -1372,7 +1330,7 @@ export const GetSubscriptionResponse$inboundSchema: z.ZodType<
1372
1330
  mandateId: z.nullable(z.string()).optional(),
1373
1331
  createdAt: z.string(),
1374
1332
  canceledAt: z.nullable(z.string()).optional(),
1375
- _links: z.lazy(() => GetSubscriptionLinks$inboundSchema).optional(),
1333
+ _links: z.lazy(() => GetSubscriptionLinks$inboundSchema),
1376
1334
  }).transform((v) => {
1377
1335
  return remap$(v, {
1378
1336
  "_links": "links",
@@ -1387,7 +1345,7 @@ export type GetSubscriptionResponse$Outbound = {
1387
1345
  status: string;
1388
1346
  amount: GetSubscriptionAmount$Outbound;
1389
1347
  times: number | null;
1390
- timesRemaining: number;
1348
+ timesRemaining: number | null;
1391
1349
  interval: string;
1392
1350
  startDate: string;
1393
1351
  nextPaymentDate?: string | null | undefined;
@@ -1400,7 +1358,7 @@ export type GetSubscriptionResponse$Outbound = {
1400
1358
  mandateId?: string | null | undefined;
1401
1359
  createdAt: string;
1402
1360
  canceledAt?: string | null | undefined;
1403
- _links?: GetSubscriptionLinks$Outbound | undefined;
1361
+ _links: GetSubscriptionLinks$Outbound;
1404
1362
  };
1405
1363
 
1406
1364
  /** @internal */
@@ -1415,8 +1373,8 @@ export const GetSubscriptionResponse$outboundSchema: z.ZodType<
1415
1373
  status: GetSubscriptionStatus$outboundSchema,
1416
1374
  amount: z.lazy(() => GetSubscriptionAmount$outboundSchema),
1417
1375
  times: z.nullable(z.number().int()),
1418
- timesRemaining: z.number().int(),
1419
- interval: GetSubscriptionInterval$outboundSchema,
1376
+ timesRemaining: z.nullable(z.number().int()),
1377
+ interval: z.string(),
1420
1378
  startDate: z.string(),
1421
1379
  nextPaymentDate: z.nullable(z.string()).optional(),
1422
1380
  description: z.string(),
@@ -1431,7 +1389,7 @@ export const GetSubscriptionResponse$outboundSchema: z.ZodType<
1431
1389
  mandateId: z.nullable(z.string()).optional(),
1432
1390
  createdAt: z.string(),
1433
1391
  canceledAt: z.nullable(z.string()).optional(),
1434
- links: z.lazy(() => GetSubscriptionLinks$outboundSchema).optional(),
1392
+ links: z.lazy(() => GetSubscriptionLinks$outboundSchema),
1435
1393
  }).transform((v) => {
1436
1394
  return remap$(v, {
1437
1395
  links: "_links",
@@ -461,7 +461,7 @@ export type ListAllMethodsMethod = {
461
461
  /**
462
462
  * The payment method's activation status for this profile.
463
463
  */
464
- status: ListAllMethodsStatus | null;
464
+ status: ListAllMethodsStatus;
465
465
  /**
466
466
  * **Optional include.** Array of objects for each 'issuer' that is available for this payment method. Only relevant
467
467
  *
@@ -1497,7 +1497,7 @@ export const ListAllMethodsMethod$inboundSchema: z.ZodType<
1497
1497
  z.lazy(() => ListAllMethodsMaximumAmount$inboundSchema),
1498
1498
  ),
1499
1499
  image: z.lazy(() => ListAllMethodsImage$inboundSchema),
1500
- status: z.nullable(ListAllMethodsStatus$inboundSchema),
1500
+ status: ListAllMethodsStatus$inboundSchema,
1501
1501
  issuers: z.array(z.lazy(() => ListAllMethodsIssuer$inboundSchema)).optional(),
1502
1502
  _links: z.lazy(() => ListAllMethodsMethodLinks$inboundSchema),
1503
1503
  pricing: z.array(z.lazy(() => Pricing$inboundSchema)).optional(),
@@ -1515,7 +1515,7 @@ export type ListAllMethodsMethod$Outbound = {
1515
1515
  minimumAmount: ListAllMethodsMinimumAmount$Outbound;
1516
1516
  maximumAmount: ListAllMethodsMaximumAmount$Outbound | null;
1517
1517
  image: ListAllMethodsImage$Outbound;
1518
- status: string | null;
1518
+ status: string;
1519
1519
  issuers?: Array<ListAllMethodsIssuer$Outbound> | undefined;
1520
1520
  _links: ListAllMethodsMethodLinks$Outbound;
1521
1521
  pricing?: Array<Pricing$Outbound> | undefined;
@@ -1535,7 +1535,7 @@ export const ListAllMethodsMethod$outboundSchema: z.ZodType<
1535
1535
  z.lazy(() => ListAllMethodsMaximumAmount$outboundSchema),
1536
1536
  ),
1537
1537
  image: z.lazy(() => ListAllMethodsImage$outboundSchema),
1538
- status: z.nullable(ListAllMethodsStatus$outboundSchema),
1538
+ status: ListAllMethodsStatus$outboundSchema,
1539
1539
  issuers: z.array(z.lazy(() => ListAllMethodsIssuer$outboundSchema))
1540
1540
  .optional(),
1541
1541
  links: z.lazy(() => ListAllMethodsMethodLinks$outboundSchema),