mollie-api-typescript 0.0.5 → 0.0.7
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/README.md +3 -2
- package/bin/mcp-server.js +710 -1292
- package/bin/mcp-server.js.map +31 -31
- package/dist/commonjs/funcs/delayedRoutingList.js +4 -0
- package/dist/commonjs/funcs/delayedRoutingList.js.map +1 -1
- package/dist/commonjs/funcs/refundsGet.js +1 -1
- package/dist/commonjs/funcs/refundsGet.js.map +1 -1
- package/dist/commonjs/funcs/refundsList.js +1 -1
- package/dist/commonjs/funcs/refundsList.js.map +1 -1
- package/dist/commonjs/funcs/settlementsListRefunds.js +1 -1
- package/dist/commonjs/funcs/settlementsListRefunds.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsAll.d.ts +1 -1
- package/dist/commonjs/funcs/subscriptionsAll.d.ts.map +1 -1
- package/dist/commonjs/funcs/subscriptionsAll.js +2 -5
- package/dist/commonjs/funcs/subscriptionsAll.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/errors/listallsubscriptions.d.ts +95 -14
- package/dist/commonjs/models/errors/listallsubscriptions.d.ts.map +1 -1
- package/dist/commonjs/models/errors/listallsubscriptions.js +80 -14
- package/dist/commonjs/models/errors/listallsubscriptions.js.map +1 -1
- package/dist/commonjs/models/operations/cancelsubscription.d.ts +40 -40
- package/dist/commonjs/models/operations/cancelsubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/cancelsubscription.js +40 -48
- package/dist/commonjs/models/operations/cancelsubscription.js.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.d.ts +22 -22
- package/dist/commonjs/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.js +22 -24
- package/dist/commonjs/models/operations/createcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/createmandate.d.ts +26 -26
- package/dist/commonjs/models/operations/createmandate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createmandate.js +26 -28
- package/dist/commonjs/models/operations/createmandate.js.map +1 -1
- package/dist/commonjs/models/operations/createrefund.d.ts +7 -7
- package/dist/commonjs/models/operations/createrefund.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createrefund.js +8 -10
- package/dist/commonjs/models/operations/createrefund.js.map +1 -1
- package/dist/commonjs/models/operations/createsubscription.d.ts +44 -44
- package/dist/commonjs/models/operations/createsubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createsubscription.js +44 -53
- package/dist/commonjs/models/operations/createsubscription.js.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.d.ts +28 -28
- package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.js +28 -30
- package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/getmandate.d.ts +26 -26
- package/dist/commonjs/models/operations/getmandate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmandate.js +26 -27
- package/dist/commonjs/models/operations/getmandate.js.map +1 -1
- package/dist/commonjs/models/operations/getrefund.d.ts +28 -19
- package/dist/commonjs/models/operations/getrefund.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getrefund.js +25 -22
- package/dist/commonjs/models/operations/getrefund.js.map +1 -1
- package/dist/commonjs/models/operations/getsubscription.d.ts +40 -40
- package/dist/commonjs/models/operations/getsubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getsubscription.js +40 -48
- package/dist/commonjs/models/operations/getsubscription.js.map +1 -1
- package/dist/commonjs/models/operations/listallrefunds.d.ts +9 -15
- package/dist/commonjs/models/operations/listallrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listallrefunds.js +8 -10
- package/dist/commonjs/models/operations/listallrefunds.js.map +1 -1
- package/dist/commonjs/models/operations/listallsubscriptions.d.ts +532 -2849
- package/dist/commonjs/models/operations/listallsubscriptions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listallsubscriptions.js +345 -1612
- package/dist/commonjs/models/operations/listallsubscriptions.js.map +1 -1
- package/dist/commonjs/models/operations/listcustomers.d.ts +22 -22
- package/dist/commonjs/models/operations/listcustomers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listcustomers.js +22 -22
- package/dist/commonjs/models/operations/listcustomers.js.map +1 -1
- package/dist/commonjs/models/operations/listmandates.d.ts +26 -26
- package/dist/commonjs/models/operations/listmandates.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmandates.js +26 -26
- package/dist/commonjs/models/operations/listmandates.js.map +1 -1
- package/dist/commonjs/models/operations/listrefunds.d.ts +28 -19
- package/dist/commonjs/models/operations/listrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listrefunds.js +25 -24
- package/dist/commonjs/models/operations/listrefunds.js.map +1 -1
- package/dist/commonjs/models/operations/listsettlementrefunds.d.ts +28 -19
- package/dist/commonjs/models/operations/listsettlementrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsettlementrefunds.js +25 -22
- package/dist/commonjs/models/operations/listsettlementrefunds.js.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptions.d.ts +81 -81
- package/dist/commonjs/models/operations/listsubscriptions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptions.js +90 -96
- package/dist/commonjs/models/operations/listsubscriptions.js.map +1 -1
- package/dist/commonjs/models/operations/paymentcreateroute.d.ts +11 -0
- package/dist/commonjs/models/operations/paymentcreateroute.d.ts.map +1 -1
- package/dist/commonjs/models/operations/paymentcreateroute.js +2 -0
- package/dist/commonjs/models/operations/paymentcreateroute.js.map +1 -1
- package/dist/commonjs/models/operations/paymentlistroutes.d.ts +11 -0
- package/dist/commonjs/models/operations/paymentlistroutes.d.ts.map +1 -1
- package/dist/commonjs/models/operations/paymentlistroutes.js +2 -0
- package/dist/commonjs/models/operations/paymentlistroutes.js.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.d.ts +22 -22
- package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.js +22 -24
- package/dist/commonjs/models/operations/updatecustomer.js.map +1 -1
- package/dist/commonjs/models/operations/updatesubscription.d.ts +40 -40
- package/dist/commonjs/models/operations/updatesubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatesubscription.js +40 -50
- package/dist/commonjs/models/operations/updatesubscription.js.map +1 -1
- package/dist/esm/funcs/delayedRoutingList.js +5 -1
- package/dist/esm/funcs/delayedRoutingList.js.map +1 -1
- package/dist/esm/funcs/refundsGet.js +1 -1
- package/dist/esm/funcs/refundsGet.js.map +1 -1
- package/dist/esm/funcs/refundsList.js +1 -1
- package/dist/esm/funcs/refundsList.js.map +1 -1
- package/dist/esm/funcs/settlementsListRefunds.js +1 -1
- package/dist/esm/funcs/settlementsListRefunds.js.map +1 -1
- package/dist/esm/funcs/subscriptionsAll.d.ts +1 -1
- package/dist/esm/funcs/subscriptionsAll.d.ts.map +1 -1
- package/dist/esm/funcs/subscriptionsAll.js +2 -5
- package/dist/esm/funcs/subscriptionsAll.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/errors/listallsubscriptions.d.ts +95 -14
- package/dist/esm/models/errors/listallsubscriptions.d.ts.map +1 -1
- package/dist/esm/models/errors/listallsubscriptions.js +77 -12
- package/dist/esm/models/errors/listallsubscriptions.js.map +1 -1
- package/dist/esm/models/operations/cancelsubscription.d.ts +40 -40
- package/dist/esm/models/operations/cancelsubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/cancelsubscription.js +40 -48
- package/dist/esm/models/operations/cancelsubscription.js.map +1 -1
- package/dist/esm/models/operations/createcustomer.d.ts +22 -22
- package/dist/esm/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/createcustomer.js +22 -24
- package/dist/esm/models/operations/createcustomer.js.map +1 -1
- package/dist/esm/models/operations/createmandate.d.ts +26 -26
- package/dist/esm/models/operations/createmandate.d.ts.map +1 -1
- package/dist/esm/models/operations/createmandate.js +26 -28
- package/dist/esm/models/operations/createmandate.js.map +1 -1
- package/dist/esm/models/operations/createrefund.d.ts +7 -7
- package/dist/esm/models/operations/createrefund.d.ts.map +1 -1
- package/dist/esm/models/operations/createrefund.js +8 -10
- package/dist/esm/models/operations/createrefund.js.map +1 -1
- package/dist/esm/models/operations/createsubscription.d.ts +44 -44
- package/dist/esm/models/operations/createsubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/createsubscription.js +44 -53
- package/dist/esm/models/operations/createsubscription.js.map +1 -1
- package/dist/esm/models/operations/getcustomer.d.ts +28 -28
- package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomer.js +28 -30
- package/dist/esm/models/operations/getcustomer.js.map +1 -1
- package/dist/esm/models/operations/getmandate.d.ts +26 -26
- package/dist/esm/models/operations/getmandate.d.ts.map +1 -1
- package/dist/esm/models/operations/getmandate.js +26 -27
- package/dist/esm/models/operations/getmandate.js.map +1 -1
- package/dist/esm/models/operations/getrefund.d.ts +28 -19
- package/dist/esm/models/operations/getrefund.d.ts.map +1 -1
- package/dist/esm/models/operations/getrefund.js +24 -21
- package/dist/esm/models/operations/getrefund.js.map +1 -1
- package/dist/esm/models/operations/getsubscription.d.ts +40 -40
- package/dist/esm/models/operations/getsubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/getsubscription.js +40 -48
- package/dist/esm/models/operations/getsubscription.js.map +1 -1
- package/dist/esm/models/operations/listallrefunds.d.ts +9 -15
- package/dist/esm/models/operations/listallrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listallrefunds.js +8 -10
- package/dist/esm/models/operations/listallrefunds.js.map +1 -1
- package/dist/esm/models/operations/listallsubscriptions.d.ts +532 -2849
- package/dist/esm/models/operations/listallsubscriptions.d.ts.map +1 -1
- package/dist/esm/models/operations/listallsubscriptions.js +325 -1533
- package/dist/esm/models/operations/listallsubscriptions.js.map +1 -1
- package/dist/esm/models/operations/listcustomers.d.ts +22 -22
- package/dist/esm/models/operations/listcustomers.d.ts.map +1 -1
- package/dist/esm/models/operations/listcustomers.js +22 -22
- package/dist/esm/models/operations/listcustomers.js.map +1 -1
- package/dist/esm/models/operations/listmandates.d.ts +26 -26
- package/dist/esm/models/operations/listmandates.d.ts.map +1 -1
- package/dist/esm/models/operations/listmandates.js +26 -26
- package/dist/esm/models/operations/listmandates.js.map +1 -1
- package/dist/esm/models/operations/listrefunds.d.ts +28 -19
- package/dist/esm/models/operations/listrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listrefunds.js +24 -23
- package/dist/esm/models/operations/listrefunds.js.map +1 -1
- package/dist/esm/models/operations/listsettlementrefunds.d.ts +28 -19
- package/dist/esm/models/operations/listsettlementrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listsettlementrefunds.js +24 -21
- package/dist/esm/models/operations/listsettlementrefunds.js.map +1 -1
- package/dist/esm/models/operations/listsubscriptions.d.ts +81 -81
- package/dist/esm/models/operations/listsubscriptions.d.ts.map +1 -1
- package/dist/esm/models/operations/listsubscriptions.js +83 -89
- package/dist/esm/models/operations/listsubscriptions.js.map +1 -1
- package/dist/esm/models/operations/paymentcreateroute.d.ts +11 -0
- package/dist/esm/models/operations/paymentcreateroute.d.ts.map +1 -1
- package/dist/esm/models/operations/paymentcreateroute.js +2 -0
- package/dist/esm/models/operations/paymentcreateroute.js.map +1 -1
- package/dist/esm/models/operations/paymentlistroutes.d.ts +11 -0
- package/dist/esm/models/operations/paymentlistroutes.d.ts.map +1 -1
- package/dist/esm/models/operations/paymentlistroutes.js +2 -0
- package/dist/esm/models/operations/paymentlistroutes.js.map +1 -1
- package/dist/esm/models/operations/updatecustomer.d.ts +22 -22
- package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/updatecustomer.js +22 -24
- package/dist/esm/models/operations/updatecustomer.js.map +1 -1
- package/dist/esm/models/operations/updatesubscription.d.ts +40 -40
- package/dist/esm/models/operations/updatesubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/updatesubscription.js +40 -50
- package/dist/esm/models/operations/updatesubscription.js.map +1 -1
- package/docs/sdks/delayedrouting/README.md +4 -0
- package/docs/sdks/refunds/README.md +4 -4
- package/docs/sdks/settlements/README.md +2 -2
- package/docs/sdks/subscriptions/README.md +5 -4
- package/examples/package-lock.json +2 -2
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/funcs/delayedRoutingList.ts +6 -1
- package/src/funcs/refundsGet.ts +1 -1
- package/src/funcs/refundsList.ts +1 -1
- package/src/funcs/settlementsListRefunds.ts +1 -1
- package/src/funcs/subscriptionsAll.ts +17 -8
- 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/errors/listallsubscriptions.ts +173 -23
- package/src/models/operations/cancelsubscription.ts +80 -98
- package/src/models/operations/createcustomer.ts +45 -53
- package/src/models/operations/createmandate.ts +52 -54
- package/src/models/operations/createrefund.ts +15 -17
- package/src/models/operations/createsubscription.ts +89 -104
- package/src/models/operations/getcustomer.ts +56 -63
- package/src/models/operations/getmandate.ts +52 -53
- package/src/models/operations/getrefund.ts +44 -35
- package/src/models/operations/getsubscription.ts +80 -98
- package/src/models/operations/listallrefunds.ts +17 -25
- package/src/models/operations/listallsubscriptions.ts +894 -4395
- package/src/models/operations/listcustomers.ts +44 -49
- package/src/models/operations/listmandates.ts +52 -52
- package/src/models/operations/listrefunds.ts +44 -37
- package/src/models/operations/listsettlementrefunds.ts +45 -36
- package/src/models/operations/listsubscriptions.ts +181 -176
- package/src/models/operations/paymentcreateroute.ts +13 -0
- package/src/models/operations/paymentlistroutes.ts +13 -0
- package/src/models/operations/updatecustomer.ts +45 -53
- package/src/models/operations/updatesubscription.ts +81 -97
|
@@ -211,8 +211,8 @@ export type ListSubscriptionsApplicationFee = {
|
|
|
211
211
|
/**
|
|
212
212
|
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
213
213
|
*/
|
|
214
|
-
amount
|
|
215
|
-
description
|
|
214
|
+
amount: ListSubscriptionsApplicationFeeAmount;
|
|
215
|
+
description: string;
|
|
216
216
|
};
|
|
217
217
|
|
|
218
218
|
export type ListSubscriptionsMetadata = {};
|
|
@@ -234,7 +234,7 @@ export type ListSubscriptionsMetadataUnion =
|
|
|
234
234
|
/**
|
|
235
235
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
236
236
|
*/
|
|
237
|
-
export type
|
|
237
|
+
export type ListSubscriptionsSubscriptionSelf = {
|
|
238
238
|
/**
|
|
239
239
|
* The actual URL string.
|
|
240
240
|
*/
|
|
@@ -307,7 +307,7 @@ export type ListSubscriptionsPayments = {
|
|
|
307
307
|
/**
|
|
308
308
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
309
309
|
*/
|
|
310
|
-
export type
|
|
310
|
+
export type ListSubscriptionsSubscriptionDocumentation = {
|
|
311
311
|
/**
|
|
312
312
|
* The actual URL string.
|
|
313
313
|
*/
|
|
@@ -321,15 +321,15 @@ export type SubscriptionDocumentation = {
|
|
|
321
321
|
/**
|
|
322
322
|
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
323
323
|
*/
|
|
324
|
-
export type
|
|
324
|
+
export type ListSubscriptionsSubscriptionLinks = {
|
|
325
325
|
/**
|
|
326
326
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
327
327
|
*/
|
|
328
|
-
self
|
|
328
|
+
self: ListSubscriptionsSubscriptionSelf;
|
|
329
329
|
/**
|
|
330
330
|
* The API resource URL of the [customer](get-customer) this subscription was created for.
|
|
331
331
|
*/
|
|
332
|
-
customer
|
|
332
|
+
customer: ListSubscriptionsCustomer | null;
|
|
333
333
|
/**
|
|
334
334
|
* The API resource URL of the [mandate](get-mandate) this subscription was created for.
|
|
335
335
|
*/
|
|
@@ -337,7 +337,7 @@ export type SubscriptionLinks = {
|
|
|
337
337
|
/**
|
|
338
338
|
* The API resource URL of the [profile](get-profile) this subscription was created for.
|
|
339
339
|
*/
|
|
340
|
-
profile
|
|
340
|
+
profile: ListSubscriptionsProfile | null;
|
|
341
341
|
/**
|
|
342
342
|
* The API resource URL of the [payments](list-payments) created for this subscription. Omitted if no such
|
|
343
343
|
*
|
|
@@ -348,7 +348,7 @@ export type SubscriptionLinks = {
|
|
|
348
348
|
/**
|
|
349
349
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
350
350
|
*/
|
|
351
|
-
documentation
|
|
351
|
+
documentation: ListSubscriptionsSubscriptionDocumentation;
|
|
352
352
|
};
|
|
353
353
|
|
|
354
354
|
export type ListSubscriptionsSubscription = {
|
|
@@ -362,25 +362,25 @@ export type ListSubscriptionsSubscription = {
|
|
|
362
362
|
/**
|
|
363
363
|
* The identifier uniquely referring to this subscription. Example: `sub_rVKGtNd6s3`.
|
|
364
364
|
*/
|
|
365
|
-
id
|
|
365
|
+
id: string;
|
|
366
366
|
/**
|
|
367
367
|
* Whether this entity was created in live mode or in test mode.
|
|
368
368
|
*/
|
|
369
|
-
mode
|
|
369
|
+
mode: ListSubscriptionsMode;
|
|
370
370
|
/**
|
|
371
371
|
* The subscription's current status is directly related to the status of the underlying customer or mandate that is
|
|
372
372
|
*
|
|
373
373
|
* @remarks
|
|
374
374
|
* enabling the subscription.
|
|
375
375
|
*/
|
|
376
|
-
status
|
|
376
|
+
status: ListSubscriptionsStatus;
|
|
377
377
|
/**
|
|
378
378
|
* The amount for each individual payment that is charged with this subscription. For example, for a monthly
|
|
379
379
|
*
|
|
380
380
|
* @remarks
|
|
381
381
|
* subscription of €10, the subscription amount should be set to €10.
|
|
382
382
|
*/
|
|
383
|
-
amount
|
|
383
|
+
amount: ListSubscriptionsAmount;
|
|
384
384
|
/**
|
|
385
385
|
* Total number of payments for the subscription. Once this number of payments is reached, the subscription is
|
|
386
386
|
*
|
|
@@ -389,11 +389,11 @@ export type ListSubscriptionsSubscription = {
|
|
|
389
389
|
*
|
|
390
390
|
* Test mode subscriptions will get canceled automatically after 10 payments.
|
|
391
391
|
*/
|
|
392
|
-
times
|
|
392
|
+
times: number | null;
|
|
393
393
|
/**
|
|
394
394
|
* Number of payments left for the subscription.
|
|
395
395
|
*/
|
|
396
|
-
timesRemaining
|
|
396
|
+
timesRemaining: number;
|
|
397
397
|
/**
|
|
398
398
|
* Interval to wait between payments, for example `1 month` or `14 days`.
|
|
399
399
|
*
|
|
@@ -401,11 +401,11 @@ export type ListSubscriptionsSubscription = {
|
|
|
401
401
|
*
|
|
402
402
|
* The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
|
|
403
403
|
*/
|
|
404
|
-
interval
|
|
404
|
+
interval: ListSubscriptionsInterval;
|
|
405
405
|
/**
|
|
406
406
|
* The start date of the subscription in `YYYY-MM-DD` format.
|
|
407
407
|
*/
|
|
408
|
-
startDate
|
|
408
|
+
startDate: string;
|
|
409
409
|
/**
|
|
410
410
|
* The date of the next scheduled payment in `YYYY-MM-DD` format. If the subscription has been completed or canceled,
|
|
411
411
|
*
|
|
@@ -421,11 +421,11 @@ export type ListSubscriptionsSubscription = {
|
|
|
421
421
|
*
|
|
422
422
|
* **Please note:** the description needs to be unique for the Customer in case it has multiple active subscriptions.
|
|
423
423
|
*/
|
|
424
|
-
description
|
|
424
|
+
description: string;
|
|
425
425
|
/**
|
|
426
426
|
* The payment method used for this subscription. If omitted, any of the customer's valid mandates may be used.
|
|
427
427
|
*/
|
|
428
|
-
method
|
|
428
|
+
method: ListSubscriptionsMethod | null;
|
|
429
429
|
/**
|
|
430
430
|
* With Mollie Connect you can charge fees on payments that your app is processing on behalf of other Mollie
|
|
431
431
|
*
|
|
@@ -447,12 +447,7 @@ export type ListSubscriptionsSubscription = {
|
|
|
447
447
|
*
|
|
448
448
|
* Any metadata added to the subscription will be automatically forwarded to the payments generated for it.
|
|
449
449
|
*/
|
|
450
|
-
metadata
|
|
451
|
-
| ListSubscriptionsMetadata
|
|
452
|
-
| string
|
|
453
|
-
| Array<string>
|
|
454
|
-
| null
|
|
455
|
-
| undefined;
|
|
450
|
+
metadata: ListSubscriptionsMetadata | string | Array<string> | null;
|
|
456
451
|
/**
|
|
457
452
|
* We will call this URL for any payment status changes of payments resulting from this subscription.
|
|
458
453
|
*
|
|
@@ -461,11 +456,11 @@ export type ListSubscriptionsSubscription = {
|
|
|
461
456
|
* This webhook will receive **all** events for the subscription's payments. This may include payment failures as
|
|
462
457
|
* well. Be sure to verify the payment's subscription ID and its status.
|
|
463
458
|
*/
|
|
464
|
-
webhookUrl
|
|
459
|
+
webhookUrl: string;
|
|
465
460
|
/**
|
|
466
461
|
* The customer this subscription belongs to.
|
|
467
462
|
*/
|
|
468
|
-
customerId
|
|
463
|
+
customerId: string;
|
|
469
464
|
/**
|
|
470
465
|
* The mandate used for this subscription, if any.
|
|
471
466
|
*/
|
|
@@ -473,7 +468,7 @@ export type ListSubscriptionsSubscription = {
|
|
|
473
468
|
/**
|
|
474
469
|
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
475
470
|
*/
|
|
476
|
-
createdAt
|
|
471
|
+
createdAt: string;
|
|
477
472
|
/**
|
|
478
473
|
* The subscription's date and time of cancellation, in ISO 8601 format. This parameter is omitted if the
|
|
479
474
|
*
|
|
@@ -484,7 +479,7 @@ export type ListSubscriptionsSubscription = {
|
|
|
484
479
|
/**
|
|
485
480
|
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
486
481
|
*/
|
|
487
|
-
links?:
|
|
482
|
+
links?: ListSubscriptionsSubscriptionLinks | undefined;
|
|
488
483
|
};
|
|
489
484
|
|
|
490
485
|
export type ListSubscriptionsEmbedded = {
|
|
@@ -1140,15 +1135,14 @@ export const ListSubscriptionsApplicationFee$inboundSchema: z.ZodType<
|
|
|
1140
1135
|
z.ZodTypeDef,
|
|
1141
1136
|
unknown
|
|
1142
1137
|
> = z.object({
|
|
1143
|
-
amount: z.lazy(() => ListSubscriptionsApplicationFeeAmount$inboundSchema)
|
|
1144
|
-
|
|
1145
|
-
description: z.string().optional(),
|
|
1138
|
+
amount: z.lazy(() => ListSubscriptionsApplicationFeeAmount$inboundSchema),
|
|
1139
|
+
description: z.string(),
|
|
1146
1140
|
});
|
|
1147
1141
|
|
|
1148
1142
|
/** @internal */
|
|
1149
1143
|
export type ListSubscriptionsApplicationFee$Outbound = {
|
|
1150
|
-
amount
|
|
1151
|
-
description
|
|
1144
|
+
amount: ListSubscriptionsApplicationFeeAmount$Outbound;
|
|
1145
|
+
description: string;
|
|
1152
1146
|
};
|
|
1153
1147
|
|
|
1154
1148
|
/** @internal */
|
|
@@ -1157,9 +1151,8 @@ export const ListSubscriptionsApplicationFee$outboundSchema: z.ZodType<
|
|
|
1157
1151
|
z.ZodTypeDef,
|
|
1158
1152
|
ListSubscriptionsApplicationFee
|
|
1159
1153
|
> = z.object({
|
|
1160
|
-
amount: z.lazy(() => ListSubscriptionsApplicationFeeAmount$outboundSchema)
|
|
1161
|
-
|
|
1162
|
-
description: z.string().optional(),
|
|
1154
|
+
amount: z.lazy(() => ListSubscriptionsApplicationFeeAmount$outboundSchema),
|
|
1155
|
+
description: z.string(),
|
|
1163
1156
|
});
|
|
1164
1157
|
|
|
1165
1158
|
/**
|
|
@@ -1305,8 +1298,8 @@ export function listSubscriptionsMetadataUnionFromJSON(
|
|
|
1305
1298
|
}
|
|
1306
1299
|
|
|
1307
1300
|
/** @internal */
|
|
1308
|
-
export const
|
|
1309
|
-
|
|
1301
|
+
export const ListSubscriptionsSubscriptionSelf$inboundSchema: z.ZodType<
|
|
1302
|
+
ListSubscriptionsSubscriptionSelf,
|
|
1310
1303
|
z.ZodTypeDef,
|
|
1311
1304
|
unknown
|
|
1312
1305
|
> = z.object({
|
|
@@ -1315,16 +1308,16 @@ export const SubscriptionSelf$inboundSchema: z.ZodType<
|
|
|
1315
1308
|
});
|
|
1316
1309
|
|
|
1317
1310
|
/** @internal */
|
|
1318
|
-
export type
|
|
1311
|
+
export type ListSubscriptionsSubscriptionSelf$Outbound = {
|
|
1319
1312
|
href: string;
|
|
1320
1313
|
type: string;
|
|
1321
1314
|
};
|
|
1322
1315
|
|
|
1323
1316
|
/** @internal */
|
|
1324
|
-
export const
|
|
1325
|
-
|
|
1317
|
+
export const ListSubscriptionsSubscriptionSelf$outboundSchema: z.ZodType<
|
|
1318
|
+
ListSubscriptionsSubscriptionSelf$Outbound,
|
|
1326
1319
|
z.ZodTypeDef,
|
|
1327
|
-
|
|
1320
|
+
ListSubscriptionsSubscriptionSelf
|
|
1328
1321
|
> = z.object({
|
|
1329
1322
|
href: z.string(),
|
|
1330
1323
|
type: z.string(),
|
|
@@ -1334,30 +1327,33 @@ export const SubscriptionSelf$outboundSchema: z.ZodType<
|
|
|
1334
1327
|
* @internal
|
|
1335
1328
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1336
1329
|
*/
|
|
1337
|
-
export namespace
|
|
1338
|
-
/** @deprecated use `
|
|
1339
|
-
export const inboundSchema =
|
|
1340
|
-
/** @deprecated use `
|
|
1341
|
-
export const outboundSchema =
|
|
1342
|
-
|
|
1343
|
-
|
|
1330
|
+
export namespace ListSubscriptionsSubscriptionSelf$ {
|
|
1331
|
+
/** @deprecated use `ListSubscriptionsSubscriptionSelf$inboundSchema` instead. */
|
|
1332
|
+
export const inboundSchema = ListSubscriptionsSubscriptionSelf$inboundSchema;
|
|
1333
|
+
/** @deprecated use `ListSubscriptionsSubscriptionSelf$outboundSchema` instead. */
|
|
1334
|
+
export const outboundSchema =
|
|
1335
|
+
ListSubscriptionsSubscriptionSelf$outboundSchema;
|
|
1336
|
+
/** @deprecated use `ListSubscriptionsSubscriptionSelf$Outbound` instead. */
|
|
1337
|
+
export type Outbound = ListSubscriptionsSubscriptionSelf$Outbound;
|
|
1344
1338
|
}
|
|
1345
1339
|
|
|
1346
|
-
export function
|
|
1347
|
-
|
|
1340
|
+
export function listSubscriptionsSubscriptionSelfToJSON(
|
|
1341
|
+
listSubscriptionsSubscriptionSelf: ListSubscriptionsSubscriptionSelf,
|
|
1348
1342
|
): string {
|
|
1349
1343
|
return JSON.stringify(
|
|
1350
|
-
|
|
1344
|
+
ListSubscriptionsSubscriptionSelf$outboundSchema.parse(
|
|
1345
|
+
listSubscriptionsSubscriptionSelf,
|
|
1346
|
+
),
|
|
1351
1347
|
);
|
|
1352
1348
|
}
|
|
1353
1349
|
|
|
1354
|
-
export function
|
|
1350
|
+
export function listSubscriptionsSubscriptionSelfFromJSON(
|
|
1355
1351
|
jsonString: string,
|
|
1356
|
-
): SafeParseResult<
|
|
1352
|
+
): SafeParseResult<ListSubscriptionsSubscriptionSelf, SDKValidationError> {
|
|
1357
1353
|
return safeParse(
|
|
1358
1354
|
jsonString,
|
|
1359
|
-
(x) =>
|
|
1360
|
-
`Failed to parse '
|
|
1355
|
+
(x) => ListSubscriptionsSubscriptionSelf$inboundSchema.parse(JSON.parse(x)),
|
|
1356
|
+
`Failed to parse 'ListSubscriptionsSubscriptionSelf' from JSON`,
|
|
1361
1357
|
);
|
|
1362
1358
|
}
|
|
1363
1359
|
|
|
@@ -1590,138 +1586,150 @@ export function listSubscriptionsPaymentsFromJSON(
|
|
|
1590
1586
|
}
|
|
1591
1587
|
|
|
1592
1588
|
/** @internal */
|
|
1593
|
-
export const
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
type: z.string(),
|
|
1600
|
-
});
|
|
1589
|
+
export const ListSubscriptionsSubscriptionDocumentation$inboundSchema:
|
|
1590
|
+
z.ZodType<ListSubscriptionsSubscriptionDocumentation, z.ZodTypeDef, unknown> =
|
|
1591
|
+
z.object({
|
|
1592
|
+
href: z.string(),
|
|
1593
|
+
type: z.string(),
|
|
1594
|
+
});
|
|
1601
1595
|
|
|
1602
1596
|
/** @internal */
|
|
1603
|
-
export type
|
|
1597
|
+
export type ListSubscriptionsSubscriptionDocumentation$Outbound = {
|
|
1604
1598
|
href: string;
|
|
1605
1599
|
type: string;
|
|
1606
1600
|
};
|
|
1607
1601
|
|
|
1608
1602
|
/** @internal */
|
|
1609
|
-
export const
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1603
|
+
export const ListSubscriptionsSubscriptionDocumentation$outboundSchema:
|
|
1604
|
+
z.ZodType<
|
|
1605
|
+
ListSubscriptionsSubscriptionDocumentation$Outbound,
|
|
1606
|
+
z.ZodTypeDef,
|
|
1607
|
+
ListSubscriptionsSubscriptionDocumentation
|
|
1608
|
+
> = z.object({
|
|
1609
|
+
href: z.string(),
|
|
1610
|
+
type: z.string(),
|
|
1611
|
+
});
|
|
1617
1612
|
|
|
1618
1613
|
/**
|
|
1619
1614
|
* @internal
|
|
1620
1615
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1621
1616
|
*/
|
|
1622
|
-
export namespace
|
|
1623
|
-
/** @deprecated use `
|
|
1624
|
-
export const inboundSchema =
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1617
|
+
export namespace ListSubscriptionsSubscriptionDocumentation$ {
|
|
1618
|
+
/** @deprecated use `ListSubscriptionsSubscriptionDocumentation$inboundSchema` instead. */
|
|
1619
|
+
export const inboundSchema =
|
|
1620
|
+
ListSubscriptionsSubscriptionDocumentation$inboundSchema;
|
|
1621
|
+
/** @deprecated use `ListSubscriptionsSubscriptionDocumentation$outboundSchema` instead. */
|
|
1622
|
+
export const outboundSchema =
|
|
1623
|
+
ListSubscriptionsSubscriptionDocumentation$outboundSchema;
|
|
1624
|
+
/** @deprecated use `ListSubscriptionsSubscriptionDocumentation$Outbound` instead. */
|
|
1625
|
+
export type Outbound = ListSubscriptionsSubscriptionDocumentation$Outbound;
|
|
1629
1626
|
}
|
|
1630
1627
|
|
|
1631
|
-
export function
|
|
1632
|
-
|
|
1628
|
+
export function listSubscriptionsSubscriptionDocumentationToJSON(
|
|
1629
|
+
listSubscriptionsSubscriptionDocumentation:
|
|
1630
|
+
ListSubscriptionsSubscriptionDocumentation,
|
|
1633
1631
|
): string {
|
|
1634
1632
|
return JSON.stringify(
|
|
1635
|
-
|
|
1633
|
+
ListSubscriptionsSubscriptionDocumentation$outboundSchema.parse(
|
|
1634
|
+
listSubscriptionsSubscriptionDocumentation,
|
|
1635
|
+
),
|
|
1636
1636
|
);
|
|
1637
1637
|
}
|
|
1638
1638
|
|
|
1639
|
-
export function
|
|
1639
|
+
export function listSubscriptionsSubscriptionDocumentationFromJSON(
|
|
1640
1640
|
jsonString: string,
|
|
1641
|
-
): SafeParseResult<
|
|
1641
|
+
): SafeParseResult<
|
|
1642
|
+
ListSubscriptionsSubscriptionDocumentation,
|
|
1643
|
+
SDKValidationError
|
|
1644
|
+
> {
|
|
1642
1645
|
return safeParse(
|
|
1643
1646
|
jsonString,
|
|
1644
|
-
(x) =>
|
|
1645
|
-
|
|
1647
|
+
(x) =>
|
|
1648
|
+
ListSubscriptionsSubscriptionDocumentation$inboundSchema.parse(
|
|
1649
|
+
JSON.parse(x),
|
|
1650
|
+
),
|
|
1651
|
+
`Failed to parse 'ListSubscriptionsSubscriptionDocumentation' from JSON`,
|
|
1646
1652
|
);
|
|
1647
1653
|
}
|
|
1648
1654
|
|
|
1649
1655
|
/** @internal */
|
|
1650
|
-
export const
|
|
1651
|
-
|
|
1656
|
+
export const ListSubscriptionsSubscriptionLinks$inboundSchema: z.ZodType<
|
|
1657
|
+
ListSubscriptionsSubscriptionLinks,
|
|
1652
1658
|
z.ZodTypeDef,
|
|
1653
1659
|
unknown
|
|
1654
1660
|
> = z.object({
|
|
1655
|
-
self: z.lazy(() =>
|
|
1656
|
-
customer: z.nullable(z.lazy(() => ListSubscriptionsCustomer$inboundSchema))
|
|
1657
|
-
.optional(),
|
|
1661
|
+
self: z.lazy(() => ListSubscriptionsSubscriptionSelf$inboundSchema),
|
|
1662
|
+
customer: z.nullable(z.lazy(() => ListSubscriptionsCustomer$inboundSchema)),
|
|
1658
1663
|
mandate: z.nullable(z.lazy(() => ListSubscriptionsMandate$inboundSchema))
|
|
1659
1664
|
.optional(),
|
|
1660
|
-
profile: z.nullable(z.lazy(() => ListSubscriptionsProfile$inboundSchema))
|
|
1661
|
-
.optional(),
|
|
1665
|
+
profile: z.nullable(z.lazy(() => ListSubscriptionsProfile$inboundSchema)),
|
|
1662
1666
|
payments: z.nullable(z.lazy(() => ListSubscriptionsPayments$inboundSchema))
|
|
1663
1667
|
.optional(),
|
|
1664
|
-
documentation: z.lazy(() =>
|
|
1665
|
-
|
|
1668
|
+
documentation: z.lazy(() =>
|
|
1669
|
+
ListSubscriptionsSubscriptionDocumentation$inboundSchema
|
|
1670
|
+
),
|
|
1666
1671
|
});
|
|
1667
1672
|
|
|
1668
1673
|
/** @internal */
|
|
1669
|
-
export type
|
|
1670
|
-
self
|
|
1671
|
-
customer
|
|
1674
|
+
export type ListSubscriptionsSubscriptionLinks$Outbound = {
|
|
1675
|
+
self: ListSubscriptionsSubscriptionSelf$Outbound;
|
|
1676
|
+
customer: ListSubscriptionsCustomer$Outbound | null;
|
|
1672
1677
|
mandate?: ListSubscriptionsMandate$Outbound | null | undefined;
|
|
1673
|
-
profile
|
|
1678
|
+
profile: ListSubscriptionsProfile$Outbound | null;
|
|
1674
1679
|
payments?: ListSubscriptionsPayments$Outbound | null | undefined;
|
|
1675
|
-
documentation
|
|
1680
|
+
documentation: ListSubscriptionsSubscriptionDocumentation$Outbound;
|
|
1676
1681
|
};
|
|
1677
1682
|
|
|
1678
1683
|
/** @internal */
|
|
1679
|
-
export const
|
|
1680
|
-
|
|
1684
|
+
export const ListSubscriptionsSubscriptionLinks$outboundSchema: z.ZodType<
|
|
1685
|
+
ListSubscriptionsSubscriptionLinks$Outbound,
|
|
1681
1686
|
z.ZodTypeDef,
|
|
1682
|
-
|
|
1687
|
+
ListSubscriptionsSubscriptionLinks
|
|
1683
1688
|
> = z.object({
|
|
1684
|
-
self: z.lazy(() =>
|
|
1685
|
-
customer: z.nullable(z.lazy(() => ListSubscriptionsCustomer$outboundSchema))
|
|
1686
|
-
.optional(),
|
|
1689
|
+
self: z.lazy(() => ListSubscriptionsSubscriptionSelf$outboundSchema),
|
|
1690
|
+
customer: z.nullable(z.lazy(() => ListSubscriptionsCustomer$outboundSchema)),
|
|
1687
1691
|
mandate: z.nullable(z.lazy(() => ListSubscriptionsMandate$outboundSchema))
|
|
1688
1692
|
.optional(),
|
|
1689
|
-
profile: z.nullable(z.lazy(() => ListSubscriptionsProfile$outboundSchema))
|
|
1690
|
-
.optional(),
|
|
1693
|
+
profile: z.nullable(z.lazy(() => ListSubscriptionsProfile$outboundSchema)),
|
|
1691
1694
|
payments: z.nullable(z.lazy(() => ListSubscriptionsPayments$outboundSchema))
|
|
1692
1695
|
.optional(),
|
|
1693
|
-
documentation: z.lazy(() =>
|
|
1694
|
-
|
|
1696
|
+
documentation: z.lazy(() =>
|
|
1697
|
+
ListSubscriptionsSubscriptionDocumentation$outboundSchema
|
|
1698
|
+
),
|
|
1695
1699
|
});
|
|
1696
1700
|
|
|
1697
1701
|
/**
|
|
1698
1702
|
* @internal
|
|
1699
1703
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1700
1704
|
*/
|
|
1701
|
-
export namespace
|
|
1702
|
-
/** @deprecated use `
|
|
1703
|
-
export const inboundSchema =
|
|
1704
|
-
/** @deprecated use `
|
|
1705
|
-
export const outboundSchema =
|
|
1706
|
-
|
|
1707
|
-
|
|
1705
|
+
export namespace ListSubscriptionsSubscriptionLinks$ {
|
|
1706
|
+
/** @deprecated use `ListSubscriptionsSubscriptionLinks$inboundSchema` instead. */
|
|
1707
|
+
export const inboundSchema = ListSubscriptionsSubscriptionLinks$inboundSchema;
|
|
1708
|
+
/** @deprecated use `ListSubscriptionsSubscriptionLinks$outboundSchema` instead. */
|
|
1709
|
+
export const outboundSchema =
|
|
1710
|
+
ListSubscriptionsSubscriptionLinks$outboundSchema;
|
|
1711
|
+
/** @deprecated use `ListSubscriptionsSubscriptionLinks$Outbound` instead. */
|
|
1712
|
+
export type Outbound = ListSubscriptionsSubscriptionLinks$Outbound;
|
|
1708
1713
|
}
|
|
1709
1714
|
|
|
1710
|
-
export function
|
|
1711
|
-
|
|
1715
|
+
export function listSubscriptionsSubscriptionLinksToJSON(
|
|
1716
|
+
listSubscriptionsSubscriptionLinks: ListSubscriptionsSubscriptionLinks,
|
|
1712
1717
|
): string {
|
|
1713
1718
|
return JSON.stringify(
|
|
1714
|
-
|
|
1719
|
+
ListSubscriptionsSubscriptionLinks$outboundSchema.parse(
|
|
1720
|
+
listSubscriptionsSubscriptionLinks,
|
|
1721
|
+
),
|
|
1715
1722
|
);
|
|
1716
1723
|
}
|
|
1717
1724
|
|
|
1718
|
-
export function
|
|
1725
|
+
export function listSubscriptionsSubscriptionLinksFromJSON(
|
|
1719
1726
|
jsonString: string,
|
|
1720
|
-
): SafeParseResult<
|
|
1727
|
+
): SafeParseResult<ListSubscriptionsSubscriptionLinks, SDKValidationError> {
|
|
1721
1728
|
return safeParse(
|
|
1722
1729
|
jsonString,
|
|
1723
|
-
(x) =>
|
|
1724
|
-
|
|
1730
|
+
(x) =>
|
|
1731
|
+
ListSubscriptionsSubscriptionLinks$inboundSchema.parse(JSON.parse(x)),
|
|
1732
|
+
`Failed to parse 'ListSubscriptionsSubscriptionLinks' from JSON`,
|
|
1725
1733
|
);
|
|
1726
1734
|
}
|
|
1727
1735
|
|
|
@@ -1732,17 +1740,17 @@ export const ListSubscriptionsSubscription$inboundSchema: z.ZodType<
|
|
|
1732
1740
|
unknown
|
|
1733
1741
|
> = z.object({
|
|
1734
1742
|
resource: z.string().default("subscription"),
|
|
1735
|
-
id: z.string()
|
|
1736
|
-
mode: ListSubscriptionsMode$inboundSchema
|
|
1737
|
-
status: ListSubscriptionsStatus$inboundSchema
|
|
1738
|
-
amount: z.lazy(() => ListSubscriptionsAmount$inboundSchema)
|
|
1739
|
-
times: z.nullable(z.number().int())
|
|
1740
|
-
timesRemaining: z.number().int()
|
|
1741
|
-
interval: ListSubscriptionsInterval$inboundSchema
|
|
1742
|
-
startDate: z.string()
|
|
1743
|
+
id: z.string(),
|
|
1744
|
+
mode: ListSubscriptionsMode$inboundSchema,
|
|
1745
|
+
status: ListSubscriptionsStatus$inboundSchema,
|
|
1746
|
+
amount: z.lazy(() => ListSubscriptionsAmount$inboundSchema),
|
|
1747
|
+
times: z.nullable(z.number().int()),
|
|
1748
|
+
timesRemaining: z.number().int(),
|
|
1749
|
+
interval: ListSubscriptionsInterval$inboundSchema,
|
|
1750
|
+
startDate: z.string(),
|
|
1743
1751
|
nextPaymentDate: z.nullable(z.string()).optional(),
|
|
1744
|
-
description: z.string()
|
|
1745
|
-
method: z.nullable(ListSubscriptionsMethod$inboundSchema)
|
|
1752
|
+
description: z.string(),
|
|
1753
|
+
method: z.nullable(ListSubscriptionsMethod$inboundSchema),
|
|
1746
1754
|
applicationFee: z.lazy(() => ListSubscriptionsApplicationFee$inboundSchema)
|
|
1747
1755
|
.optional(),
|
|
1748
1756
|
metadata: z.nullable(
|
|
@@ -1751,13 +1759,14 @@ export const ListSubscriptionsSubscription$inboundSchema: z.ZodType<
|
|
|
1751
1759
|
z.string(),
|
|
1752
1760
|
z.array(z.string()),
|
|
1753
1761
|
]),
|
|
1754
|
-
)
|
|
1755
|
-
webhookUrl: z.string()
|
|
1756
|
-
customerId: z.string()
|
|
1762
|
+
),
|
|
1763
|
+
webhookUrl: z.string(),
|
|
1764
|
+
customerId: z.string(),
|
|
1757
1765
|
mandateId: z.nullable(z.string()).optional(),
|
|
1758
|
-
createdAt: z.string()
|
|
1766
|
+
createdAt: z.string(),
|
|
1759
1767
|
canceledAt: z.nullable(z.string()).optional(),
|
|
1760
|
-
_links: z.lazy(() =>
|
|
1768
|
+
_links: z.lazy(() => ListSubscriptionsSubscriptionLinks$inboundSchema)
|
|
1769
|
+
.optional(),
|
|
1761
1770
|
}).transform((v) => {
|
|
1762
1771
|
return remap$(v, {
|
|
1763
1772
|
"_links": "links",
|
|
@@ -1767,30 +1776,25 @@ export const ListSubscriptionsSubscription$inboundSchema: z.ZodType<
|
|
|
1767
1776
|
/** @internal */
|
|
1768
1777
|
export type ListSubscriptionsSubscription$Outbound = {
|
|
1769
1778
|
resource: string;
|
|
1770
|
-
id
|
|
1771
|
-
mode
|
|
1772
|
-
status
|
|
1773
|
-
amount
|
|
1774
|
-
times
|
|
1775
|
-
timesRemaining
|
|
1776
|
-
interval
|
|
1777
|
-
startDate
|
|
1779
|
+
id: string;
|
|
1780
|
+
mode: string;
|
|
1781
|
+
status: string;
|
|
1782
|
+
amount: ListSubscriptionsAmount$Outbound;
|
|
1783
|
+
times: number | null;
|
|
1784
|
+
timesRemaining: number;
|
|
1785
|
+
interval: string;
|
|
1786
|
+
startDate: string;
|
|
1778
1787
|
nextPaymentDate?: string | null | undefined;
|
|
1779
|
-
description
|
|
1780
|
-
method
|
|
1788
|
+
description: string;
|
|
1789
|
+
method: string | null;
|
|
1781
1790
|
applicationFee?: ListSubscriptionsApplicationFee$Outbound | undefined;
|
|
1782
|
-
metadata
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
| Array<string>
|
|
1786
|
-
| null
|
|
1787
|
-
| undefined;
|
|
1788
|
-
webhookUrl?: string | undefined;
|
|
1789
|
-
customerId?: string | undefined;
|
|
1791
|
+
metadata: ListSubscriptionsMetadata$Outbound | string | Array<string> | null;
|
|
1792
|
+
webhookUrl: string;
|
|
1793
|
+
customerId: string;
|
|
1790
1794
|
mandateId?: string | null | undefined;
|
|
1791
|
-
createdAt
|
|
1795
|
+
createdAt: string;
|
|
1792
1796
|
canceledAt?: string | null | undefined;
|
|
1793
|
-
_links?:
|
|
1797
|
+
_links?: ListSubscriptionsSubscriptionLinks$Outbound | undefined;
|
|
1794
1798
|
};
|
|
1795
1799
|
|
|
1796
1800
|
/** @internal */
|
|
@@ -1800,17 +1804,17 @@ export const ListSubscriptionsSubscription$outboundSchema: z.ZodType<
|
|
|
1800
1804
|
ListSubscriptionsSubscription
|
|
1801
1805
|
> = z.object({
|
|
1802
1806
|
resource: z.string().default("subscription"),
|
|
1803
|
-
id: z.string()
|
|
1804
|
-
mode: ListSubscriptionsMode$outboundSchema
|
|
1805
|
-
status: ListSubscriptionsStatus$outboundSchema
|
|
1806
|
-
amount: z.lazy(() => ListSubscriptionsAmount$outboundSchema)
|
|
1807
|
-
times: z.nullable(z.number().int())
|
|
1808
|
-
timesRemaining: z.number().int()
|
|
1809
|
-
interval: ListSubscriptionsInterval$outboundSchema
|
|
1810
|
-
startDate: z.string()
|
|
1807
|
+
id: z.string(),
|
|
1808
|
+
mode: ListSubscriptionsMode$outboundSchema,
|
|
1809
|
+
status: ListSubscriptionsStatus$outboundSchema,
|
|
1810
|
+
amount: z.lazy(() => ListSubscriptionsAmount$outboundSchema),
|
|
1811
|
+
times: z.nullable(z.number().int()),
|
|
1812
|
+
timesRemaining: z.number().int(),
|
|
1813
|
+
interval: ListSubscriptionsInterval$outboundSchema,
|
|
1814
|
+
startDate: z.string(),
|
|
1811
1815
|
nextPaymentDate: z.nullable(z.string()).optional(),
|
|
1812
|
-
description: z.string()
|
|
1813
|
-
method: z.nullable(ListSubscriptionsMethod$outboundSchema)
|
|
1816
|
+
description: z.string(),
|
|
1817
|
+
method: z.nullable(ListSubscriptionsMethod$outboundSchema),
|
|
1814
1818
|
applicationFee: z.lazy(() => ListSubscriptionsApplicationFee$outboundSchema)
|
|
1815
1819
|
.optional(),
|
|
1816
1820
|
metadata: z.nullable(
|
|
@@ -1819,13 +1823,14 @@ export const ListSubscriptionsSubscription$outboundSchema: z.ZodType<
|
|
|
1819
1823
|
z.string(),
|
|
1820
1824
|
z.array(z.string()),
|
|
1821
1825
|
]),
|
|
1822
|
-
)
|
|
1823
|
-
webhookUrl: z.string()
|
|
1824
|
-
customerId: z.string()
|
|
1826
|
+
),
|
|
1827
|
+
webhookUrl: z.string(),
|
|
1828
|
+
customerId: z.string(),
|
|
1825
1829
|
mandateId: z.nullable(z.string()).optional(),
|
|
1826
|
-
createdAt: z.string()
|
|
1830
|
+
createdAt: z.string(),
|
|
1827
1831
|
canceledAt: z.nullable(z.string()).optional(),
|
|
1828
|
-
links: z.lazy(() =>
|
|
1832
|
+
links: z.lazy(() => ListSubscriptionsSubscriptionLinks$outboundSchema)
|
|
1833
|
+
.optional(),
|
|
1829
1834
|
}).transform((v) => {
|
|
1830
1835
|
return remap$(v, {
|
|
1831
1836
|
links: "_links",
|