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.
- package/bin/mcp-server.js +112 -330
- package/bin/mcp-server.js.map +26 -26
- package/dist/commonjs/funcs/methodsAll.d.ts.map +1 -1
- package/dist/commonjs/funcs/methodsAll.js +3 -2
- package/dist/commonjs/funcs/methodsAll.js.map +1 -1
- package/dist/commonjs/funcs/methodsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/methodsList.js +3 -2
- package/dist/commonjs/funcs/methodsList.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/operations/cancelpayment.d.ts +5 -35
- package/dist/commonjs/models/operations/cancelpayment.d.ts.map +1 -1
- package/dist/commonjs/models/operations/cancelpayment.js +7 -31
- package/dist/commonjs/models/operations/cancelpayment.js.map +1 -1
- package/dist/commonjs/models/operations/cancelsubscription.d.ts +7 -47
- package/dist/commonjs/models/operations/cancelsubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/cancelsubscription.js +8 -35
- package/dist/commonjs/models/operations/cancelsubscription.js.map +1 -1
- package/dist/commonjs/models/operations/createcustomerpayment.d.ts +10 -70
- package/dist/commonjs/models/operations/createcustomerpayment.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createcustomerpayment.js +11 -57
- package/dist/commonjs/models/operations/createcustomerpayment.js.map +1 -1
- package/dist/commonjs/models/operations/createpayment.d.ts +10 -70
- package/dist/commonjs/models/operations/createpayment.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createpayment.js +11 -57
- package/dist/commonjs/models/operations/createpayment.js.map +1 -1
- package/dist/commonjs/models/operations/createsubscription.d.ts +10 -90
- package/dist/commonjs/models/operations/createsubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createsubscription.js +10 -64
- package/dist/commonjs/models/operations/createsubscription.js.map +1 -1
- package/dist/commonjs/models/operations/getmethod.d.ts +2 -2
- package/dist/commonjs/models/operations/getmethod.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmethod.js +2 -2
- package/dist/commonjs/models/operations/getmethod.js.map +1 -1
- package/dist/commonjs/models/operations/getpayment.d.ts +5 -35
- package/dist/commonjs/models/operations/getpayment.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getpayment.js +7 -31
- package/dist/commonjs/models/operations/getpayment.js.map +1 -1
- package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts +5 -35
- package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getpaymentlinkpayments.js +8 -31
- package/dist/commonjs/models/operations/getpaymentlinkpayments.js.map +1 -1
- package/dist/commonjs/models/operations/getsubscription.d.ts +7 -47
- package/dist/commonjs/models/operations/getsubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getsubscription.js +8 -35
- package/dist/commonjs/models/operations/getsubscription.js.map +1 -1
- package/dist/commonjs/models/operations/listallmethods.d.ts +2 -2
- package/dist/commonjs/models/operations/listallmethods.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listallmethods.js +2 -2
- package/dist/commonjs/models/operations/listallmethods.js.map +1 -1
- package/dist/commonjs/models/operations/listallsubscriptions.d.ts +13 -53
- package/dist/commonjs/models/operations/listallsubscriptions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listallsubscriptions.js +14 -45
- package/dist/commonjs/models/operations/listallsubscriptions.js.map +1 -1
- package/dist/commonjs/models/operations/listcustomerpayments.d.ts +5 -35
- package/dist/commonjs/models/operations/listcustomerpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listcustomerpayments.js +8 -31
- package/dist/commonjs/models/operations/listcustomerpayments.js.map +1 -1
- package/dist/commonjs/models/operations/listmethods.d.ts +2 -2
- package/dist/commonjs/models/operations/listmethods.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmethods.js +2 -2
- package/dist/commonjs/models/operations/listmethods.js.map +1 -1
- package/dist/commonjs/models/operations/listpayments.d.ts +5 -35
- package/dist/commonjs/models/operations/listpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listpayments.js +8 -31
- package/dist/commonjs/models/operations/listpayments.js.map +1 -1
- package/dist/commonjs/models/operations/listsettlementpayments.d.ts +5 -35
- package/dist/commonjs/models/operations/listsettlementpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsettlementpayments.js +8 -31
- package/dist/commonjs/models/operations/listsettlementpayments.js.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts +5 -35
- package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptionpayments.js +8 -31
- package/dist/commonjs/models/operations/listsubscriptionpayments.js.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptions.d.ts +13 -53
- package/dist/commonjs/models/operations/listsubscriptions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptions.js +14 -43
- package/dist/commonjs/models/operations/listsubscriptions.js.map +1 -1
- package/dist/commonjs/models/operations/updatepayment.d.ts +5 -35
- package/dist/commonjs/models/operations/updatepayment.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatepayment.js +8 -31
- package/dist/commonjs/models/operations/updatepayment.js.map +1 -1
- package/dist/commonjs/models/operations/updatesubscription.d.ts +10 -90
- package/dist/commonjs/models/operations/updatesubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatesubscription.js +10 -64
- package/dist/commonjs/models/operations/updatesubscription.js.map +1 -1
- package/dist/esm/funcs/methodsAll.d.ts.map +1 -1
- package/dist/esm/funcs/methodsAll.js +4 -3
- package/dist/esm/funcs/methodsAll.js.map +1 -1
- package/dist/esm/funcs/methodsList.d.ts.map +1 -1
- package/dist/esm/funcs/methodsList.js +4 -3
- package/dist/esm/funcs/methodsList.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/operations/cancelpayment.d.ts +5 -35
- package/dist/esm/models/operations/cancelpayment.d.ts.map +1 -1
- package/dist/esm/models/operations/cancelpayment.js +2 -25
- package/dist/esm/models/operations/cancelpayment.js.map +1 -1
- package/dist/esm/models/operations/cancelsubscription.d.ts +7 -47
- package/dist/esm/models/operations/cancelsubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/cancelsubscription.js +6 -33
- package/dist/esm/models/operations/cancelsubscription.js.map +1 -1
- package/dist/esm/models/operations/createcustomerpayment.d.ts +10 -70
- package/dist/esm/models/operations/createcustomerpayment.d.ts.map +1 -1
- package/dist/esm/models/operations/createcustomerpayment.js +4 -50
- package/dist/esm/models/operations/createcustomerpayment.js.map +1 -1
- package/dist/esm/models/operations/createpayment.d.ts +10 -70
- package/dist/esm/models/operations/createpayment.d.ts.map +1 -1
- package/dist/esm/models/operations/createpayment.js +4 -50
- package/dist/esm/models/operations/createpayment.js.map +1 -1
- package/dist/esm/models/operations/createsubscription.d.ts +10 -90
- package/dist/esm/models/operations/createsubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/createsubscription.js +8 -62
- package/dist/esm/models/operations/createsubscription.js.map +1 -1
- package/dist/esm/models/operations/getmethod.d.ts +2 -2
- package/dist/esm/models/operations/getmethod.d.ts.map +1 -1
- package/dist/esm/models/operations/getmethod.js +2 -2
- package/dist/esm/models/operations/getmethod.js.map +1 -1
- package/dist/esm/models/operations/getpayment.d.ts +5 -35
- package/dist/esm/models/operations/getpayment.d.ts.map +1 -1
- package/dist/esm/models/operations/getpayment.js +2 -25
- package/dist/esm/models/operations/getpayment.js.map +1 -1
- package/dist/esm/models/operations/getpaymentlinkpayments.d.ts +5 -35
- package/dist/esm/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/getpaymentlinkpayments.js +2 -25
- package/dist/esm/models/operations/getpaymentlinkpayments.js.map +1 -1
- package/dist/esm/models/operations/getsubscription.d.ts +7 -47
- package/dist/esm/models/operations/getsubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/getsubscription.js +6 -33
- package/dist/esm/models/operations/getsubscription.js.map +1 -1
- package/dist/esm/models/operations/listallmethods.d.ts +2 -2
- package/dist/esm/models/operations/listallmethods.d.ts.map +1 -1
- package/dist/esm/models/operations/listallmethods.js +2 -2
- package/dist/esm/models/operations/listallmethods.js.map +1 -1
- package/dist/esm/models/operations/listallsubscriptions.d.ts +13 -53
- package/dist/esm/models/operations/listallsubscriptions.d.ts.map +1 -1
- package/dist/esm/models/operations/listallsubscriptions.js +12 -43
- package/dist/esm/models/operations/listallsubscriptions.js.map +1 -1
- package/dist/esm/models/operations/listcustomerpayments.d.ts +5 -35
- package/dist/esm/models/operations/listcustomerpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/listcustomerpayments.js +2 -25
- package/dist/esm/models/operations/listcustomerpayments.js.map +1 -1
- package/dist/esm/models/operations/listmethods.d.ts +2 -2
- package/dist/esm/models/operations/listmethods.d.ts.map +1 -1
- package/dist/esm/models/operations/listmethods.js +2 -2
- package/dist/esm/models/operations/listmethods.js.map +1 -1
- package/dist/esm/models/operations/listpayments.d.ts +5 -35
- package/dist/esm/models/operations/listpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/listpayments.js +2 -25
- package/dist/esm/models/operations/listpayments.js.map +1 -1
- package/dist/esm/models/operations/listsettlementpayments.d.ts +5 -35
- package/dist/esm/models/operations/listsettlementpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/listsettlementpayments.js +2 -25
- package/dist/esm/models/operations/listsettlementpayments.js.map +1 -1
- package/dist/esm/models/operations/listsubscriptionpayments.d.ts +5 -35
- package/dist/esm/models/operations/listsubscriptionpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/listsubscriptionpayments.js +2 -25
- package/dist/esm/models/operations/listsubscriptionpayments.js.map +1 -1
- package/dist/esm/models/operations/listsubscriptions.d.ts +13 -53
- package/dist/esm/models/operations/listsubscriptions.d.ts.map +1 -1
- package/dist/esm/models/operations/listsubscriptions.js +12 -41
- package/dist/esm/models/operations/listsubscriptions.js.map +1 -1
- package/dist/esm/models/operations/updatepayment.d.ts +5 -35
- package/dist/esm/models/operations/updatepayment.d.ts.map +1 -1
- package/dist/esm/models/operations/updatepayment.js +2 -25
- package/dist/esm/models/operations/updatepayment.js.map +1 -1
- package/dist/esm/models/operations/updatesubscription.d.ts +10 -90
- package/dist/esm/models/operations/updatesubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/updatesubscription.js +8 -62
- package/dist/esm/models/operations/updatesubscription.js.map +1 -1
- package/docs/sdks/subscriptions/README.md +4 -4
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/methodsAll.ts +17 -9
- package/src/funcs/methodsList.ts +21 -13
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/cancelpayment.ts +7 -37
- package/src/models/operations/cancelsubscription.ts +13 -55
- package/src/models/operations/createcustomerpayment.ts +14 -84
- package/src/models/operations/createpayment.ts +14 -78
- package/src/models/operations/createsubscription.ts +18 -104
- package/src/models/operations/getmethod.ts +4 -4
- package/src/models/operations/getpayment.ts +7 -37
- package/src/models/operations/getpaymentlinkpayments.ts +7 -39
- package/src/models/operations/getsubscription.ts +13 -55
- package/src/models/operations/listallmethods.ts +4 -4
- package/src/models/operations/listallsubscriptions.ts +25 -71
- package/src/models/operations/listcustomerpayments.ts +7 -39
- package/src/models/operations/listmethods.ts +4 -4
- package/src/models/operations/listpayments.ts +7 -37
- package/src/models/operations/listsettlementpayments.ts +7 -39
- package/src/models/operations/listsubscriptionpayments.ts +7 -39
- package/src/models/operations/listsubscriptions.ts +25 -69
- package/src/models/operations/updatepayment.ts +7 -37
- package/src/models/operations/updatesubscription.ts +18 -104
|
@@ -144,29 +144,6 @@ export type ListSubscriptionsAmount = {
|
|
|
144
144
|
value: string;
|
|
145
145
|
};
|
|
146
146
|
|
|
147
|
-
/**
|
|
148
|
-
* Interval to wait between payments, for example `1 month` or `14 days`.
|
|
149
|
-
*
|
|
150
|
-
* @remarks
|
|
151
|
-
*
|
|
152
|
-
* The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
|
|
153
|
-
*/
|
|
154
|
-
export const ListSubscriptionsInterval = {
|
|
155
|
-
DotDotDotDays: "... days",
|
|
156
|
-
DotDotDotWeeks: "... weeks",
|
|
157
|
-
DotDotDotMonths: "... months",
|
|
158
|
-
} as const;
|
|
159
|
-
/**
|
|
160
|
-
* Interval to wait between payments, for example `1 month` or `14 days`.
|
|
161
|
-
*
|
|
162
|
-
* @remarks
|
|
163
|
-
*
|
|
164
|
-
* The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
|
|
165
|
-
*/
|
|
166
|
-
export type ListSubscriptionsInterval = ClosedEnum<
|
|
167
|
-
typeof ListSubscriptionsInterval
|
|
168
|
-
>;
|
|
169
|
-
|
|
170
147
|
/**
|
|
171
148
|
* The payment method used for this subscription. If omitted, any of the customer's valid mandates may be used.
|
|
172
149
|
*/
|
|
@@ -391,15 +368,17 @@ export type ListSubscriptionsSubscription = {
|
|
|
391
368
|
/**
|
|
392
369
|
* Number of payments left for the subscription.
|
|
393
370
|
*/
|
|
394
|
-
timesRemaining: number;
|
|
371
|
+
timesRemaining: number | null;
|
|
395
372
|
/**
|
|
396
373
|
* Interval to wait between payments, for example `1 month` or `14 days`.
|
|
397
374
|
*
|
|
398
375
|
* @remarks
|
|
399
376
|
*
|
|
400
377
|
* The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
|
|
378
|
+
*
|
|
379
|
+
* Possible values: `... days`, `... weeks`, `... months`.
|
|
401
380
|
*/
|
|
402
|
-
interval:
|
|
381
|
+
interval: string;
|
|
403
382
|
/**
|
|
404
383
|
* The start date of the subscription in `YYYY-MM-DD` format.
|
|
405
384
|
*/
|
|
@@ -477,7 +456,7 @@ export type ListSubscriptionsSubscription = {
|
|
|
477
456
|
/**
|
|
478
457
|
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
479
458
|
*/
|
|
480
|
-
links
|
|
459
|
+
links: ListSubscriptionsSubscriptionLinks;
|
|
481
460
|
};
|
|
482
461
|
|
|
483
462
|
export type ListSubscriptionsEmbedded = {
|
|
@@ -578,12 +557,12 @@ export type ListSubscriptionsResponse = {
|
|
|
578
557
|
* The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
|
|
579
558
|
* limit is 50 items.
|
|
580
559
|
*/
|
|
581
|
-
count
|
|
582
|
-
embedded
|
|
560
|
+
count: number;
|
|
561
|
+
embedded: ListSubscriptionsEmbedded;
|
|
583
562
|
/**
|
|
584
563
|
* Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
|
|
585
564
|
*/
|
|
586
|
-
links
|
|
565
|
+
links: ListSubscriptionsLinks;
|
|
587
566
|
};
|
|
588
567
|
|
|
589
568
|
/** @internal */
|
|
@@ -1023,27 +1002,6 @@ export function listSubscriptionsAmountFromJSON(
|
|
|
1023
1002
|
);
|
|
1024
1003
|
}
|
|
1025
1004
|
|
|
1026
|
-
/** @internal */
|
|
1027
|
-
export const ListSubscriptionsInterval$inboundSchema: z.ZodNativeEnum<
|
|
1028
|
-
typeof ListSubscriptionsInterval
|
|
1029
|
-
> = z.nativeEnum(ListSubscriptionsInterval);
|
|
1030
|
-
|
|
1031
|
-
/** @internal */
|
|
1032
|
-
export const ListSubscriptionsInterval$outboundSchema: z.ZodNativeEnum<
|
|
1033
|
-
typeof ListSubscriptionsInterval
|
|
1034
|
-
> = ListSubscriptionsInterval$inboundSchema;
|
|
1035
|
-
|
|
1036
|
-
/**
|
|
1037
|
-
* @internal
|
|
1038
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1039
|
-
*/
|
|
1040
|
-
export namespace ListSubscriptionsInterval$ {
|
|
1041
|
-
/** @deprecated use `ListSubscriptionsInterval$inboundSchema` instead. */
|
|
1042
|
-
export const inboundSchema = ListSubscriptionsInterval$inboundSchema;
|
|
1043
|
-
/** @deprecated use `ListSubscriptionsInterval$outboundSchema` instead. */
|
|
1044
|
-
export const outboundSchema = ListSubscriptionsInterval$outboundSchema;
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
1005
|
/** @internal */
|
|
1048
1006
|
export const ListSubscriptionsMethod$inboundSchema: z.ZodNativeEnum<
|
|
1049
1007
|
typeof ListSubscriptionsMethod
|
|
@@ -1685,8 +1643,8 @@ export const ListSubscriptionsSubscription$inboundSchema: z.ZodType<
|
|
|
1685
1643
|
status: ListSubscriptionsStatus$inboundSchema,
|
|
1686
1644
|
amount: z.lazy(() => ListSubscriptionsAmount$inboundSchema),
|
|
1687
1645
|
times: z.nullable(z.number().int()),
|
|
1688
|
-
timesRemaining: z.number().int(),
|
|
1689
|
-
interval:
|
|
1646
|
+
timesRemaining: z.nullable(z.number().int()),
|
|
1647
|
+
interval: z.string(),
|
|
1690
1648
|
startDate: z.string(),
|
|
1691
1649
|
nextPaymentDate: z.nullable(z.string()).optional(),
|
|
1692
1650
|
description: z.string(),
|
|
@@ -1701,8 +1659,7 @@ export const ListSubscriptionsSubscription$inboundSchema: z.ZodType<
|
|
|
1701
1659
|
mandateId: z.nullable(z.string()).optional(),
|
|
1702
1660
|
createdAt: z.string(),
|
|
1703
1661
|
canceledAt: z.nullable(z.string()).optional(),
|
|
1704
|
-
_links: z.lazy(() => ListSubscriptionsSubscriptionLinks$inboundSchema)
|
|
1705
|
-
.optional(),
|
|
1662
|
+
_links: z.lazy(() => ListSubscriptionsSubscriptionLinks$inboundSchema),
|
|
1706
1663
|
}).transform((v) => {
|
|
1707
1664
|
return remap$(v, {
|
|
1708
1665
|
"_links": "links",
|
|
@@ -1717,7 +1674,7 @@ export type ListSubscriptionsSubscription$Outbound = {
|
|
|
1717
1674
|
status: string;
|
|
1718
1675
|
amount: ListSubscriptionsAmount$Outbound;
|
|
1719
1676
|
times: number | null;
|
|
1720
|
-
timesRemaining: number;
|
|
1677
|
+
timesRemaining: number | null;
|
|
1721
1678
|
interval: string;
|
|
1722
1679
|
startDate: string;
|
|
1723
1680
|
nextPaymentDate?: string | null | undefined;
|
|
@@ -1730,7 +1687,7 @@ export type ListSubscriptionsSubscription$Outbound = {
|
|
|
1730
1687
|
mandateId?: string | null | undefined;
|
|
1731
1688
|
createdAt: string;
|
|
1732
1689
|
canceledAt?: string | null | undefined;
|
|
1733
|
-
_links
|
|
1690
|
+
_links: ListSubscriptionsSubscriptionLinks$Outbound;
|
|
1734
1691
|
};
|
|
1735
1692
|
|
|
1736
1693
|
/** @internal */
|
|
@@ -1745,8 +1702,8 @@ export const ListSubscriptionsSubscription$outboundSchema: z.ZodType<
|
|
|
1745
1702
|
status: ListSubscriptionsStatus$outboundSchema,
|
|
1746
1703
|
amount: z.lazy(() => ListSubscriptionsAmount$outboundSchema),
|
|
1747
1704
|
times: z.nullable(z.number().int()),
|
|
1748
|
-
timesRemaining: z.number().int(),
|
|
1749
|
-
interval:
|
|
1705
|
+
timesRemaining: z.nullable(z.number().int()),
|
|
1706
|
+
interval: z.string(),
|
|
1750
1707
|
startDate: z.string(),
|
|
1751
1708
|
nextPaymentDate: z.nullable(z.string()).optional(),
|
|
1752
1709
|
description: z.string(),
|
|
@@ -1761,8 +1718,7 @@ export const ListSubscriptionsSubscription$outboundSchema: z.ZodType<
|
|
|
1761
1718
|
mandateId: z.nullable(z.string()).optional(),
|
|
1762
1719
|
createdAt: z.string(),
|
|
1763
1720
|
canceledAt: z.nullable(z.string()).optional(),
|
|
1764
|
-
links: z.lazy(() => ListSubscriptionsSubscriptionLinks$outboundSchema)
|
|
1765
|
-
.optional(),
|
|
1721
|
+
links: z.lazy(() => ListSubscriptionsSubscriptionLinks$outboundSchema),
|
|
1766
1722
|
}).transform((v) => {
|
|
1767
1723
|
return remap$(v, {
|
|
1768
1724
|
links: "_links",
|
|
@@ -2159,9 +2115,9 @@ export const ListSubscriptionsResponse$inboundSchema: z.ZodType<
|
|
|
2159
2115
|
z.ZodTypeDef,
|
|
2160
2116
|
unknown
|
|
2161
2117
|
> = z.object({
|
|
2162
|
-
count: z.number().int()
|
|
2163
|
-
_embedded: z.lazy(() => ListSubscriptionsEmbedded$inboundSchema)
|
|
2164
|
-
_links: z.lazy(() => ListSubscriptionsLinks$inboundSchema)
|
|
2118
|
+
count: z.number().int(),
|
|
2119
|
+
_embedded: z.lazy(() => ListSubscriptionsEmbedded$inboundSchema),
|
|
2120
|
+
_links: z.lazy(() => ListSubscriptionsLinks$inboundSchema),
|
|
2165
2121
|
}).transform((v) => {
|
|
2166
2122
|
return remap$(v, {
|
|
2167
2123
|
"_embedded": "embedded",
|
|
@@ -2171,9 +2127,9 @@ export const ListSubscriptionsResponse$inboundSchema: z.ZodType<
|
|
|
2171
2127
|
|
|
2172
2128
|
/** @internal */
|
|
2173
2129
|
export type ListSubscriptionsResponse$Outbound = {
|
|
2174
|
-
count
|
|
2175
|
-
_embedded
|
|
2176
|
-
_links
|
|
2130
|
+
count: number;
|
|
2131
|
+
_embedded: ListSubscriptionsEmbedded$Outbound;
|
|
2132
|
+
_links: ListSubscriptionsLinks$Outbound;
|
|
2177
2133
|
};
|
|
2178
2134
|
|
|
2179
2135
|
/** @internal */
|
|
@@ -2182,9 +2138,9 @@ export const ListSubscriptionsResponse$outboundSchema: z.ZodType<
|
|
|
2182
2138
|
z.ZodTypeDef,
|
|
2183
2139
|
ListSubscriptionsResponse
|
|
2184
2140
|
> = z.object({
|
|
2185
|
-
count: z.number().int()
|
|
2186
|
-
embedded: z.lazy(() => ListSubscriptionsEmbedded$outboundSchema)
|
|
2187
|
-
links: z.lazy(() => ListSubscriptionsLinks$outboundSchema)
|
|
2141
|
+
count: z.number().int(),
|
|
2142
|
+
embedded: z.lazy(() => ListSubscriptionsEmbedded$outboundSchema),
|
|
2143
|
+
links: z.lazy(() => ListSubscriptionsLinks$outboundSchema),
|
|
2188
2144
|
}).transform((v) => {
|
|
2189
2145
|
return remap$(v, {
|
|
2190
2146
|
embedded: "_embedded",
|
|
@@ -685,19 +685,6 @@ export const UpdatePaymentCategory = {
|
|
|
685
685
|
} as const;
|
|
686
686
|
export type UpdatePaymentCategory = ClosedEnum<typeof UpdatePaymentCategory>;
|
|
687
687
|
|
|
688
|
-
/**
|
|
689
|
-
* Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
|
|
690
|
-
*/
|
|
691
|
-
export const UpdatePaymentInterval = {
|
|
692
|
-
DotDotDotMonths: "... months",
|
|
693
|
-
DotDotDotWeeks: "... weeks",
|
|
694
|
-
DotDotDotDays: "... days",
|
|
695
|
-
} as const;
|
|
696
|
-
/**
|
|
697
|
-
* Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
|
|
698
|
-
*/
|
|
699
|
-
export type UpdatePaymentInterval = ClosedEnum<typeof UpdatePaymentInterval>;
|
|
700
|
-
|
|
701
688
|
/**
|
|
702
689
|
* Total amount and currency of the recurring item.
|
|
703
690
|
*/
|
|
@@ -725,8 +712,12 @@ export type UpdatePaymentRecurring = {
|
|
|
725
712
|
description?: string | undefined;
|
|
726
713
|
/**
|
|
727
714
|
* Cadence unit of the recurring item. For example: `12 months`, `52 weeks` or `365 days`.
|
|
715
|
+
*
|
|
716
|
+
* @remarks
|
|
717
|
+
*
|
|
718
|
+
* Possible values: `... days`, `... weeks`, `... months`.
|
|
728
719
|
*/
|
|
729
|
-
interval:
|
|
720
|
+
interval: string;
|
|
730
721
|
/**
|
|
731
722
|
* Total amount and currency of the recurring item.
|
|
732
723
|
*/
|
|
@@ -4232,27 +4223,6 @@ export namespace UpdatePaymentCategory$ {
|
|
|
4232
4223
|
export const outboundSchema = UpdatePaymentCategory$outboundSchema;
|
|
4233
4224
|
}
|
|
4234
4225
|
|
|
4235
|
-
/** @internal */
|
|
4236
|
-
export const UpdatePaymentInterval$inboundSchema: z.ZodNativeEnum<
|
|
4237
|
-
typeof UpdatePaymentInterval
|
|
4238
|
-
> = z.nativeEnum(UpdatePaymentInterval);
|
|
4239
|
-
|
|
4240
|
-
/** @internal */
|
|
4241
|
-
export const UpdatePaymentInterval$outboundSchema: z.ZodNativeEnum<
|
|
4242
|
-
typeof UpdatePaymentInterval
|
|
4243
|
-
> = UpdatePaymentInterval$inboundSchema;
|
|
4244
|
-
|
|
4245
|
-
/**
|
|
4246
|
-
* @internal
|
|
4247
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4248
|
-
*/
|
|
4249
|
-
export namespace UpdatePaymentInterval$ {
|
|
4250
|
-
/** @deprecated use `UpdatePaymentInterval$inboundSchema` instead. */
|
|
4251
|
-
export const inboundSchema = UpdatePaymentInterval$inboundSchema;
|
|
4252
|
-
/** @deprecated use `UpdatePaymentInterval$outboundSchema` instead. */
|
|
4253
|
-
export const outboundSchema = UpdatePaymentInterval$outboundSchema;
|
|
4254
|
-
}
|
|
4255
|
-
|
|
4256
4226
|
/** @internal */
|
|
4257
4227
|
export const UpdatePaymentRecurringAmount$inboundSchema: z.ZodType<
|
|
4258
4228
|
UpdatePaymentRecurringAmount,
|
|
@@ -4319,7 +4289,7 @@ export const UpdatePaymentRecurring$inboundSchema: z.ZodType<
|
|
|
4319
4289
|
unknown
|
|
4320
4290
|
> = z.object({
|
|
4321
4291
|
description: z.string().optional(),
|
|
4322
|
-
interval:
|
|
4292
|
+
interval: z.string(),
|
|
4323
4293
|
amount: z.lazy(() => UpdatePaymentRecurringAmount$inboundSchema).optional(),
|
|
4324
4294
|
times: z.number().int().optional(),
|
|
4325
4295
|
startDate: z.nullable(z.string()).optional(),
|
|
@@ -4341,7 +4311,7 @@ export const UpdatePaymentRecurring$outboundSchema: z.ZodType<
|
|
|
4341
4311
|
UpdatePaymentRecurring
|
|
4342
4312
|
> = z.object({
|
|
4343
4313
|
description: z.string().optional(),
|
|
4344
|
-
interval:
|
|
4314
|
+
interval: z.string(),
|
|
4345
4315
|
amount: z.lazy(() => UpdatePaymentRecurringAmount$outboundSchema).optional(),
|
|
4346
4316
|
times: z.number().int().optional(),
|
|
4347
4317
|
startDate: z.nullable(z.string()).optional(),
|
|
@@ -23,29 +23,6 @@ export type UpdateSubscriptionAmountRequest = {
|
|
|
23
23
|
value: string;
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
/**
|
|
27
|
-
* Interval to wait between payments, for example `1 month` or `14 days`.
|
|
28
|
-
*
|
|
29
|
-
* @remarks
|
|
30
|
-
*
|
|
31
|
-
* The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
|
|
32
|
-
*/
|
|
33
|
-
export const UpdateSubscriptionIntervalRequest = {
|
|
34
|
-
DotDotDotDays: "... days",
|
|
35
|
-
DotDotDotWeeks: "... weeks",
|
|
36
|
-
DotDotDotMonths: "... months",
|
|
37
|
-
} as const;
|
|
38
|
-
/**
|
|
39
|
-
* Interval to wait between payments, for example `1 month` or `14 days`.
|
|
40
|
-
*
|
|
41
|
-
* @remarks
|
|
42
|
-
*
|
|
43
|
-
* The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
|
|
44
|
-
*/
|
|
45
|
-
export type UpdateSubscriptionIntervalRequest = ClosedEnum<
|
|
46
|
-
typeof UpdateSubscriptionIntervalRequest
|
|
47
|
-
>;
|
|
48
|
-
|
|
49
26
|
/**
|
|
50
27
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the
|
|
51
28
|
*
|
|
@@ -80,8 +57,10 @@ export type UpdateSubscriptionRequestBody = {
|
|
|
80
57
|
* @remarks
|
|
81
58
|
*
|
|
82
59
|
* The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
|
|
60
|
+
*
|
|
61
|
+
* Possible values: `... days`, `... weeks`, `... months`.
|
|
83
62
|
*/
|
|
84
|
-
interval?:
|
|
63
|
+
interval?: string | undefined;
|
|
85
64
|
/**
|
|
86
65
|
* The start date of the subscription in `YYYY-MM-DD` format.
|
|
87
66
|
*/
|
|
@@ -208,29 +187,6 @@ export type UpdateSubscriptionAmountResponse = {
|
|
|
208
187
|
value: string;
|
|
209
188
|
};
|
|
210
189
|
|
|
211
|
-
/**
|
|
212
|
-
* Interval to wait between payments, for example `1 month` or `14 days`.
|
|
213
|
-
*
|
|
214
|
-
* @remarks
|
|
215
|
-
*
|
|
216
|
-
* The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
|
|
217
|
-
*/
|
|
218
|
-
export const UpdateSubscriptionIntervalResponse = {
|
|
219
|
-
DotDotDotDays: "... days",
|
|
220
|
-
DotDotDotWeeks: "... weeks",
|
|
221
|
-
DotDotDotMonths: "... months",
|
|
222
|
-
} as const;
|
|
223
|
-
/**
|
|
224
|
-
* Interval to wait between payments, for example `1 month` or `14 days`.
|
|
225
|
-
*
|
|
226
|
-
* @remarks
|
|
227
|
-
*
|
|
228
|
-
* The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
|
|
229
|
-
*/
|
|
230
|
-
export type UpdateSubscriptionIntervalResponse = ClosedEnum<
|
|
231
|
-
typeof UpdateSubscriptionIntervalResponse
|
|
232
|
-
>;
|
|
233
|
-
|
|
234
190
|
/**
|
|
235
191
|
* The payment method used for this subscription. If omitted, any of the customer's valid mandates may be used.
|
|
236
192
|
*/
|
|
@@ -458,15 +414,17 @@ export type UpdateSubscriptionResponse = {
|
|
|
458
414
|
/**
|
|
459
415
|
* Number of payments left for the subscription.
|
|
460
416
|
*/
|
|
461
|
-
timesRemaining: number;
|
|
417
|
+
timesRemaining: number | null;
|
|
462
418
|
/**
|
|
463
419
|
* Interval to wait between payments, for example `1 month` or `14 days`.
|
|
464
420
|
*
|
|
465
421
|
* @remarks
|
|
466
422
|
*
|
|
467
423
|
* The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
|
|
424
|
+
*
|
|
425
|
+
* Possible values: `... days`, `... weeks`, `... months`.
|
|
468
426
|
*/
|
|
469
|
-
interval:
|
|
427
|
+
interval: string;
|
|
470
428
|
/**
|
|
471
429
|
* The start date of the subscription in `YYYY-MM-DD` format.
|
|
472
430
|
*/
|
|
@@ -544,7 +502,7 @@ export type UpdateSubscriptionResponse = {
|
|
|
544
502
|
/**
|
|
545
503
|
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
546
504
|
*/
|
|
547
|
-
links
|
|
505
|
+
links: UpdateSubscriptionLinks;
|
|
548
506
|
};
|
|
549
507
|
|
|
550
508
|
/** @internal */
|
|
@@ -606,28 +564,6 @@ export function updateSubscriptionAmountRequestFromJSON(
|
|
|
606
564
|
);
|
|
607
565
|
}
|
|
608
566
|
|
|
609
|
-
/** @internal */
|
|
610
|
-
export const UpdateSubscriptionIntervalRequest$inboundSchema: z.ZodNativeEnum<
|
|
611
|
-
typeof UpdateSubscriptionIntervalRequest
|
|
612
|
-
> = z.nativeEnum(UpdateSubscriptionIntervalRequest);
|
|
613
|
-
|
|
614
|
-
/** @internal */
|
|
615
|
-
export const UpdateSubscriptionIntervalRequest$outboundSchema: z.ZodNativeEnum<
|
|
616
|
-
typeof UpdateSubscriptionIntervalRequest
|
|
617
|
-
> = UpdateSubscriptionIntervalRequest$inboundSchema;
|
|
618
|
-
|
|
619
|
-
/**
|
|
620
|
-
* @internal
|
|
621
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
622
|
-
*/
|
|
623
|
-
export namespace UpdateSubscriptionIntervalRequest$ {
|
|
624
|
-
/** @deprecated use `UpdateSubscriptionIntervalRequest$inboundSchema` instead. */
|
|
625
|
-
export const inboundSchema = UpdateSubscriptionIntervalRequest$inboundSchema;
|
|
626
|
-
/** @deprecated use `UpdateSubscriptionIntervalRequest$outboundSchema` instead. */
|
|
627
|
-
export const outboundSchema =
|
|
628
|
-
UpdateSubscriptionIntervalRequest$outboundSchema;
|
|
629
|
-
}
|
|
630
|
-
|
|
631
567
|
/** @internal */
|
|
632
568
|
export const UpdateSubscriptionMetadataRequest$inboundSchema: z.ZodType<
|
|
633
569
|
UpdateSubscriptionMetadataRequest,
|
|
@@ -690,7 +626,7 @@ export const UpdateSubscriptionRequestBody$inboundSchema: z.ZodType<
|
|
|
690
626
|
amount: z.lazy(() => UpdateSubscriptionAmountRequest$inboundSchema)
|
|
691
627
|
.optional(),
|
|
692
628
|
description: z.string().optional(),
|
|
693
|
-
interval:
|
|
629
|
+
interval: z.string().optional(),
|
|
694
630
|
startDate: z.string().optional(),
|
|
695
631
|
times: z.number().int().optional(),
|
|
696
632
|
metadata: z.nullable(
|
|
@@ -723,7 +659,7 @@ export const UpdateSubscriptionRequestBody$outboundSchema: z.ZodType<
|
|
|
723
659
|
amount: z.lazy(() => UpdateSubscriptionAmountRequest$outboundSchema)
|
|
724
660
|
.optional(),
|
|
725
661
|
description: z.string().optional(),
|
|
726
|
-
interval:
|
|
662
|
+
interval: z.string().optional(),
|
|
727
663
|
startDate: z.string().optional(),
|
|
728
664
|
times: z.number().int().optional(),
|
|
729
665
|
metadata: z.nullable(
|
|
@@ -1066,28 +1002,6 @@ export function updateSubscriptionAmountResponseFromJSON(
|
|
|
1066
1002
|
);
|
|
1067
1003
|
}
|
|
1068
1004
|
|
|
1069
|
-
/** @internal */
|
|
1070
|
-
export const UpdateSubscriptionIntervalResponse$inboundSchema: z.ZodNativeEnum<
|
|
1071
|
-
typeof UpdateSubscriptionIntervalResponse
|
|
1072
|
-
> = z.nativeEnum(UpdateSubscriptionIntervalResponse);
|
|
1073
|
-
|
|
1074
|
-
/** @internal */
|
|
1075
|
-
export const UpdateSubscriptionIntervalResponse$outboundSchema: z.ZodNativeEnum<
|
|
1076
|
-
typeof UpdateSubscriptionIntervalResponse
|
|
1077
|
-
> = UpdateSubscriptionIntervalResponse$inboundSchema;
|
|
1078
|
-
|
|
1079
|
-
/**
|
|
1080
|
-
* @internal
|
|
1081
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1082
|
-
*/
|
|
1083
|
-
export namespace UpdateSubscriptionIntervalResponse$ {
|
|
1084
|
-
/** @deprecated use `UpdateSubscriptionIntervalResponse$inboundSchema` instead. */
|
|
1085
|
-
export const inboundSchema = UpdateSubscriptionIntervalResponse$inboundSchema;
|
|
1086
|
-
/** @deprecated use `UpdateSubscriptionIntervalResponse$outboundSchema` instead. */
|
|
1087
|
-
export const outboundSchema =
|
|
1088
|
-
UpdateSubscriptionIntervalResponse$outboundSchema;
|
|
1089
|
-
}
|
|
1090
|
-
|
|
1091
1005
|
/** @internal */
|
|
1092
1006
|
export const UpdateSubscriptionMethod$inboundSchema: z.ZodNativeEnum<
|
|
1093
1007
|
typeof UpdateSubscriptionMethod
|
|
@@ -1714,8 +1628,8 @@ export const UpdateSubscriptionResponse$inboundSchema: z.ZodType<
|
|
|
1714
1628
|
status: UpdateSubscriptionStatus$inboundSchema,
|
|
1715
1629
|
amount: z.lazy(() => UpdateSubscriptionAmountResponse$inboundSchema),
|
|
1716
1630
|
times: z.nullable(z.number().int()),
|
|
1717
|
-
timesRemaining: z.number().int(),
|
|
1718
|
-
interval:
|
|
1631
|
+
timesRemaining: z.nullable(z.number().int()),
|
|
1632
|
+
interval: z.string(),
|
|
1719
1633
|
startDate: z.string(),
|
|
1720
1634
|
nextPaymentDate: z.nullable(z.string()).optional(),
|
|
1721
1635
|
description: z.string(),
|
|
@@ -1730,7 +1644,7 @@ export const UpdateSubscriptionResponse$inboundSchema: z.ZodType<
|
|
|
1730
1644
|
mandateId: z.nullable(z.string()).optional(),
|
|
1731
1645
|
createdAt: z.string(),
|
|
1732
1646
|
canceledAt: z.nullable(z.string()).optional(),
|
|
1733
|
-
_links: z.lazy(() => UpdateSubscriptionLinks$inboundSchema)
|
|
1647
|
+
_links: z.lazy(() => UpdateSubscriptionLinks$inboundSchema),
|
|
1734
1648
|
}).transform((v) => {
|
|
1735
1649
|
return remap$(v, {
|
|
1736
1650
|
"_links": "links",
|
|
@@ -1745,7 +1659,7 @@ export type UpdateSubscriptionResponse$Outbound = {
|
|
|
1745
1659
|
status: string;
|
|
1746
1660
|
amount: UpdateSubscriptionAmountResponse$Outbound;
|
|
1747
1661
|
times: number | null;
|
|
1748
|
-
timesRemaining: number;
|
|
1662
|
+
timesRemaining: number | null;
|
|
1749
1663
|
interval: string;
|
|
1750
1664
|
startDate: string;
|
|
1751
1665
|
nextPaymentDate?: string | null | undefined;
|
|
@@ -1758,7 +1672,7 @@ export type UpdateSubscriptionResponse$Outbound = {
|
|
|
1758
1672
|
mandateId?: string | null | undefined;
|
|
1759
1673
|
createdAt: string;
|
|
1760
1674
|
canceledAt?: string | null | undefined;
|
|
1761
|
-
_links
|
|
1675
|
+
_links: UpdateSubscriptionLinks$Outbound;
|
|
1762
1676
|
};
|
|
1763
1677
|
|
|
1764
1678
|
/** @internal */
|
|
@@ -1773,8 +1687,8 @@ export const UpdateSubscriptionResponse$outboundSchema: z.ZodType<
|
|
|
1773
1687
|
status: UpdateSubscriptionStatus$outboundSchema,
|
|
1774
1688
|
amount: z.lazy(() => UpdateSubscriptionAmountResponse$outboundSchema),
|
|
1775
1689
|
times: z.nullable(z.number().int()),
|
|
1776
|
-
timesRemaining: z.number().int(),
|
|
1777
|
-
interval:
|
|
1690
|
+
timesRemaining: z.nullable(z.number().int()),
|
|
1691
|
+
interval: z.string(),
|
|
1778
1692
|
startDate: z.string(),
|
|
1779
1693
|
nextPaymentDate: z.nullable(z.string()).optional(),
|
|
1780
1694
|
description: z.string(),
|
|
@@ -1789,7 +1703,7 @@ export const UpdateSubscriptionResponse$outboundSchema: z.ZodType<
|
|
|
1789
1703
|
mandateId: z.nullable(z.string()).optional(),
|
|
1790
1704
|
createdAt: z.string(),
|
|
1791
1705
|
canceledAt: z.nullable(z.string()).optional(),
|
|
1792
|
-
links: z.lazy(() => UpdateSubscriptionLinks$outboundSchema)
|
|
1706
|
+
links: z.lazy(() => UpdateSubscriptionLinks$outboundSchema),
|
|
1793
1707
|
}).transform((v) => {
|
|
1794
1708
|
return remap$(v, {
|
|
1795
1709
|
links: "_links",
|