mollie-api-typescript 0.0.5 → 0.0.6
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 +676 -1258
- package/bin/mcp-server.js.map +28 -28
- package/dist/commonjs/funcs/delayedRoutingList.js +4 -0
- package/dist/commonjs/funcs/delayedRoutingList.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 +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- 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 +7 -7
- package/dist/commonjs/models/operations/getrefund.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getrefund.js +8 -8
- 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 +7 -7
- package/dist/commonjs/models/operations/listrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listrefunds.js +8 -10
- package/dist/commonjs/models/operations/listrefunds.js.map +1 -1
- package/dist/commonjs/models/operations/listsettlementrefunds.d.ts +7 -7
- package/dist/commonjs/models/operations/listsettlementrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsettlementrefunds.js +8 -8
- 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/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 +2 -2
- package/dist/esm/lib/config.js +2 -2
- 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 +7 -7
- package/dist/esm/models/operations/getrefund.d.ts.map +1 -1
- package/dist/esm/models/operations/getrefund.js +8 -8
- 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 +7 -7
- package/dist/esm/models/operations/listrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listrefunds.js +8 -10
- package/dist/esm/models/operations/listrefunds.js.map +1 -1
- package/dist/esm/models/operations/listsettlementrefunds.d.ts +7 -7
- package/dist/esm/models/operations/listsettlementrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listsettlementrefunds.js +8 -8
- 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/subscriptions/README.md +5 -4
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/delayedRoutingList.ts +6 -1
- package/src/funcs/subscriptionsAll.ts +17 -8
- package/src/lib/config.ts +2 -2
- 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 +15 -15
- 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 +15 -17
- package/src/models/operations/listsettlementrefunds.ts +15 -15
- 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
|
@@ -93,8 +93,8 @@ export type CreateSubscriptionApplicationFeeRequest = {
|
|
|
93
93
|
/**
|
|
94
94
|
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
95
95
|
*/
|
|
96
|
-
amount
|
|
97
|
-
description
|
|
96
|
+
amount: CreateSubscriptionApplicationFeeAmountRequest;
|
|
97
|
+
description: string;
|
|
98
98
|
};
|
|
99
99
|
|
|
100
100
|
export type CreateSubscriptionMetadataRequest = {};
|
|
@@ -349,8 +349,8 @@ export type CreateSubscriptionApplicationFeeResponse = {
|
|
|
349
349
|
/**
|
|
350
350
|
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
351
351
|
*/
|
|
352
|
-
amount
|
|
353
|
-
description
|
|
352
|
+
amount: CreateSubscriptionApplicationFeeAmountResponse;
|
|
353
|
+
description: string;
|
|
354
354
|
};
|
|
355
355
|
|
|
356
356
|
export type CreateSubscriptionMetadataResponse = {};
|
|
@@ -463,11 +463,11 @@ export type CreateSubscriptionLinks = {
|
|
|
463
463
|
/**
|
|
464
464
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
465
465
|
*/
|
|
466
|
-
self
|
|
466
|
+
self: CreateSubscriptionSelf;
|
|
467
467
|
/**
|
|
468
468
|
* The API resource URL of the [customer](get-customer) this subscription was created for.
|
|
469
469
|
*/
|
|
470
|
-
customer
|
|
470
|
+
customer: CreateSubscriptionCustomer | null;
|
|
471
471
|
/**
|
|
472
472
|
* The API resource URL of the [mandate](get-mandate) this subscription was created for.
|
|
473
473
|
*/
|
|
@@ -475,7 +475,7 @@ export type CreateSubscriptionLinks = {
|
|
|
475
475
|
/**
|
|
476
476
|
* The API resource URL of the [profile](get-profile) this subscription was created for.
|
|
477
477
|
*/
|
|
478
|
-
profile
|
|
478
|
+
profile: CreateSubscriptionProfile | null;
|
|
479
479
|
/**
|
|
480
480
|
* The API resource URL of the [payments](list-payments) created for this subscription. Omitted if no such
|
|
481
481
|
*
|
|
@@ -486,7 +486,7 @@ export type CreateSubscriptionLinks = {
|
|
|
486
486
|
/**
|
|
487
487
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
488
488
|
*/
|
|
489
|
-
documentation
|
|
489
|
+
documentation: CreateSubscriptionDocumentation;
|
|
490
490
|
};
|
|
491
491
|
|
|
492
492
|
/**
|
|
@@ -503,25 +503,25 @@ export type CreateSubscriptionResponse = {
|
|
|
503
503
|
/**
|
|
504
504
|
* The identifier uniquely referring to this subscription. Example: `sub_rVKGtNd6s3`.
|
|
505
505
|
*/
|
|
506
|
-
id
|
|
506
|
+
id: string;
|
|
507
507
|
/**
|
|
508
508
|
* Whether this entity was created in live mode or in test mode.
|
|
509
509
|
*/
|
|
510
|
-
mode
|
|
510
|
+
mode: CreateSubscriptionMode;
|
|
511
511
|
/**
|
|
512
512
|
* The subscription's current status is directly related to the status of the underlying customer or mandate that is
|
|
513
513
|
*
|
|
514
514
|
* @remarks
|
|
515
515
|
* enabling the subscription.
|
|
516
516
|
*/
|
|
517
|
-
status
|
|
517
|
+
status: CreateSubscriptionStatus;
|
|
518
518
|
/**
|
|
519
519
|
* The amount for each individual payment that is charged with this subscription. For example, for a monthly
|
|
520
520
|
*
|
|
521
521
|
* @remarks
|
|
522
522
|
* subscription of €10, the subscription amount should be set to €10.
|
|
523
523
|
*/
|
|
524
|
-
amount
|
|
524
|
+
amount: CreateSubscriptionAmountResponse;
|
|
525
525
|
/**
|
|
526
526
|
* Total number of payments for the subscription. Once this number of payments is reached, the subscription is
|
|
527
527
|
*
|
|
@@ -530,11 +530,11 @@ export type CreateSubscriptionResponse = {
|
|
|
530
530
|
*
|
|
531
531
|
* Test mode subscriptions will get canceled automatically after 10 payments.
|
|
532
532
|
*/
|
|
533
|
-
times
|
|
533
|
+
times: number | null;
|
|
534
534
|
/**
|
|
535
535
|
* Number of payments left for the subscription.
|
|
536
536
|
*/
|
|
537
|
-
timesRemaining
|
|
537
|
+
timesRemaining: number;
|
|
538
538
|
/**
|
|
539
539
|
* Interval to wait between payments, for example `1 month` or `14 days`.
|
|
540
540
|
*
|
|
@@ -542,11 +542,11 @@ export type CreateSubscriptionResponse = {
|
|
|
542
542
|
*
|
|
543
543
|
* The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
|
|
544
544
|
*/
|
|
545
|
-
interval
|
|
545
|
+
interval: CreateSubscriptionIntervalResponse;
|
|
546
546
|
/**
|
|
547
547
|
* The start date of the subscription in `YYYY-MM-DD` format.
|
|
548
548
|
*/
|
|
549
|
-
startDate
|
|
549
|
+
startDate: string;
|
|
550
550
|
/**
|
|
551
551
|
* The date of the next scheduled payment in `YYYY-MM-DD` format. If the subscription has been completed or canceled,
|
|
552
552
|
*
|
|
@@ -562,11 +562,11 @@ export type CreateSubscriptionResponse = {
|
|
|
562
562
|
*
|
|
563
563
|
* **Please note:** the description needs to be unique for the Customer in case it has multiple active subscriptions.
|
|
564
564
|
*/
|
|
565
|
-
description
|
|
565
|
+
description: string;
|
|
566
566
|
/**
|
|
567
567
|
* The payment method used for this subscription. If omitted, any of the customer's valid mandates may be used.
|
|
568
568
|
*/
|
|
569
|
-
method
|
|
569
|
+
method: CreateSubscriptionMethodResponse | null;
|
|
570
570
|
/**
|
|
571
571
|
* With Mollie Connect you can charge fees on payments that your app is processing on behalf of other Mollie
|
|
572
572
|
*
|
|
@@ -588,12 +588,7 @@ export type CreateSubscriptionResponse = {
|
|
|
588
588
|
*
|
|
589
589
|
* Any metadata added to the subscription will be automatically forwarded to the payments generated for it.
|
|
590
590
|
*/
|
|
591
|
-
metadata
|
|
592
|
-
| CreateSubscriptionMetadataResponse
|
|
593
|
-
| string
|
|
594
|
-
| Array<string>
|
|
595
|
-
| null
|
|
596
|
-
| undefined;
|
|
591
|
+
metadata: CreateSubscriptionMetadataResponse | string | Array<string> | null;
|
|
597
592
|
/**
|
|
598
593
|
* We will call this URL for any payment status changes of payments resulting from this subscription.
|
|
599
594
|
*
|
|
@@ -602,11 +597,11 @@ export type CreateSubscriptionResponse = {
|
|
|
602
597
|
* This webhook will receive **all** events for the subscription's payments. This may include payment failures as
|
|
603
598
|
* well. Be sure to verify the payment's subscription ID and its status.
|
|
604
599
|
*/
|
|
605
|
-
webhookUrl
|
|
600
|
+
webhookUrl: string;
|
|
606
601
|
/**
|
|
607
602
|
* The customer this subscription belongs to.
|
|
608
603
|
*/
|
|
609
|
-
customerId
|
|
604
|
+
customerId: string;
|
|
610
605
|
/**
|
|
611
606
|
* The mandate used for this subscription, if any.
|
|
612
607
|
*/
|
|
@@ -614,7 +609,7 @@ export type CreateSubscriptionResponse = {
|
|
|
614
609
|
/**
|
|
615
610
|
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
616
611
|
*/
|
|
617
|
-
createdAt
|
|
612
|
+
createdAt: string;
|
|
618
613
|
/**
|
|
619
614
|
* The subscription's date and time of cancellation, in ISO 8601 format. This parameter is omitted if the
|
|
620
615
|
*
|
|
@@ -808,14 +803,14 @@ export const CreateSubscriptionApplicationFeeRequest$inboundSchema: z.ZodType<
|
|
|
808
803
|
> = z.object({
|
|
809
804
|
amount: z.lazy(() =>
|
|
810
805
|
CreateSubscriptionApplicationFeeAmountRequest$inboundSchema
|
|
811
|
-
)
|
|
812
|
-
description: z.string()
|
|
806
|
+
),
|
|
807
|
+
description: z.string(),
|
|
813
808
|
});
|
|
814
809
|
|
|
815
810
|
/** @internal */
|
|
816
811
|
export type CreateSubscriptionApplicationFeeRequest$Outbound = {
|
|
817
|
-
amount
|
|
818
|
-
description
|
|
812
|
+
amount: CreateSubscriptionApplicationFeeAmountRequest$Outbound;
|
|
813
|
+
description: string;
|
|
819
814
|
};
|
|
820
815
|
|
|
821
816
|
/** @internal */
|
|
@@ -826,8 +821,8 @@ export const CreateSubscriptionApplicationFeeRequest$outboundSchema: z.ZodType<
|
|
|
826
821
|
> = z.object({
|
|
827
822
|
amount: z.lazy(() =>
|
|
828
823
|
CreateSubscriptionApplicationFeeAmountRequest$outboundSchema
|
|
829
|
-
)
|
|
830
|
-
description: z.string()
|
|
824
|
+
),
|
|
825
|
+
description: z.string(),
|
|
831
826
|
});
|
|
832
827
|
|
|
833
828
|
/**
|
|
@@ -1513,14 +1508,14 @@ export const CreateSubscriptionApplicationFeeResponse$inboundSchema: z.ZodType<
|
|
|
1513
1508
|
> = z.object({
|
|
1514
1509
|
amount: z.lazy(() =>
|
|
1515
1510
|
CreateSubscriptionApplicationFeeAmountResponse$inboundSchema
|
|
1516
|
-
)
|
|
1517
|
-
description: z.string()
|
|
1511
|
+
),
|
|
1512
|
+
description: z.string(),
|
|
1518
1513
|
});
|
|
1519
1514
|
|
|
1520
1515
|
/** @internal */
|
|
1521
1516
|
export type CreateSubscriptionApplicationFeeResponse$Outbound = {
|
|
1522
|
-
amount
|
|
1523
|
-
description
|
|
1517
|
+
amount: CreateSubscriptionApplicationFeeAmountResponse$Outbound;
|
|
1518
|
+
description: string;
|
|
1524
1519
|
};
|
|
1525
1520
|
|
|
1526
1521
|
/** @internal */
|
|
@@ -1531,8 +1526,8 @@ export const CreateSubscriptionApplicationFeeResponse$outboundSchema: z.ZodType<
|
|
|
1531
1526
|
> = z.object({
|
|
1532
1527
|
amount: z.lazy(() =>
|
|
1533
1528
|
CreateSubscriptionApplicationFeeAmountResponse$outboundSchema
|
|
1534
|
-
)
|
|
1535
|
-
description: z.string()
|
|
1529
|
+
),
|
|
1530
|
+
description: z.string(),
|
|
1536
1531
|
});
|
|
1537
1532
|
|
|
1538
1533
|
/**
|
|
@@ -2049,27 +2044,24 @@ export const CreateSubscriptionLinks$inboundSchema: z.ZodType<
|
|
|
2049
2044
|
z.ZodTypeDef,
|
|
2050
2045
|
unknown
|
|
2051
2046
|
> = z.object({
|
|
2052
|
-
self: z.lazy(() => CreateSubscriptionSelf$inboundSchema)
|
|
2053
|
-
customer: z.nullable(z.lazy(() => CreateSubscriptionCustomer$inboundSchema))
|
|
2054
|
-
.optional(),
|
|
2047
|
+
self: z.lazy(() => CreateSubscriptionSelf$inboundSchema),
|
|
2048
|
+
customer: z.nullable(z.lazy(() => CreateSubscriptionCustomer$inboundSchema)),
|
|
2055
2049
|
mandate: z.nullable(z.lazy(() => CreateSubscriptionMandate$inboundSchema))
|
|
2056
2050
|
.optional(),
|
|
2057
|
-
profile: z.nullable(z.lazy(() => CreateSubscriptionProfile$inboundSchema))
|
|
2058
|
-
.optional(),
|
|
2051
|
+
profile: z.nullable(z.lazy(() => CreateSubscriptionProfile$inboundSchema)),
|
|
2059
2052
|
payments: z.nullable(z.lazy(() => CreateSubscriptionPayments$inboundSchema))
|
|
2060
2053
|
.optional(),
|
|
2061
|
-
documentation: z.lazy(() => CreateSubscriptionDocumentation$inboundSchema)
|
|
2062
|
-
.optional(),
|
|
2054
|
+
documentation: z.lazy(() => CreateSubscriptionDocumentation$inboundSchema),
|
|
2063
2055
|
});
|
|
2064
2056
|
|
|
2065
2057
|
/** @internal */
|
|
2066
2058
|
export type CreateSubscriptionLinks$Outbound = {
|
|
2067
|
-
self
|
|
2068
|
-
customer
|
|
2059
|
+
self: CreateSubscriptionSelf$Outbound;
|
|
2060
|
+
customer: CreateSubscriptionCustomer$Outbound | null;
|
|
2069
2061
|
mandate?: CreateSubscriptionMandate$Outbound | null | undefined;
|
|
2070
|
-
profile
|
|
2062
|
+
profile: CreateSubscriptionProfile$Outbound | null;
|
|
2071
2063
|
payments?: CreateSubscriptionPayments$Outbound | null | undefined;
|
|
2072
|
-
documentation
|
|
2064
|
+
documentation: CreateSubscriptionDocumentation$Outbound;
|
|
2073
2065
|
};
|
|
2074
2066
|
|
|
2075
2067
|
/** @internal */
|
|
@@ -2078,17 +2070,14 @@ export const CreateSubscriptionLinks$outboundSchema: z.ZodType<
|
|
|
2078
2070
|
z.ZodTypeDef,
|
|
2079
2071
|
CreateSubscriptionLinks
|
|
2080
2072
|
> = z.object({
|
|
2081
|
-
self: z.lazy(() => CreateSubscriptionSelf$outboundSchema)
|
|
2082
|
-
customer: z.nullable(z.lazy(() => CreateSubscriptionCustomer$outboundSchema))
|
|
2083
|
-
.optional(),
|
|
2073
|
+
self: z.lazy(() => CreateSubscriptionSelf$outboundSchema),
|
|
2074
|
+
customer: z.nullable(z.lazy(() => CreateSubscriptionCustomer$outboundSchema)),
|
|
2084
2075
|
mandate: z.nullable(z.lazy(() => CreateSubscriptionMandate$outboundSchema))
|
|
2085
2076
|
.optional(),
|
|
2086
|
-
profile: z.nullable(z.lazy(() => CreateSubscriptionProfile$outboundSchema))
|
|
2087
|
-
.optional(),
|
|
2077
|
+
profile: z.nullable(z.lazy(() => CreateSubscriptionProfile$outboundSchema)),
|
|
2088
2078
|
payments: z.nullable(z.lazy(() => CreateSubscriptionPayments$outboundSchema))
|
|
2089
2079
|
.optional(),
|
|
2090
|
-
documentation: z.lazy(() => CreateSubscriptionDocumentation$outboundSchema)
|
|
2091
|
-
.optional(),
|
|
2080
|
+
documentation: z.lazy(() => CreateSubscriptionDocumentation$outboundSchema),
|
|
2092
2081
|
});
|
|
2093
2082
|
|
|
2094
2083
|
/**
|
|
@@ -2129,18 +2118,17 @@ export const CreateSubscriptionResponse$inboundSchema: z.ZodType<
|
|
|
2129
2118
|
unknown
|
|
2130
2119
|
> = z.object({
|
|
2131
2120
|
resource: z.string().default("subscription"),
|
|
2132
|
-
id: z.string()
|
|
2133
|
-
mode: CreateSubscriptionMode$inboundSchema
|
|
2134
|
-
status: CreateSubscriptionStatus$inboundSchema
|
|
2135
|
-
amount: z.lazy(() => CreateSubscriptionAmountResponse$inboundSchema)
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
startDate: z.string().optional(),
|
|
2121
|
+
id: z.string(),
|
|
2122
|
+
mode: CreateSubscriptionMode$inboundSchema,
|
|
2123
|
+
status: CreateSubscriptionStatus$inboundSchema,
|
|
2124
|
+
amount: z.lazy(() => CreateSubscriptionAmountResponse$inboundSchema),
|
|
2125
|
+
times: z.nullable(z.number().int()),
|
|
2126
|
+
timesRemaining: z.number().int(),
|
|
2127
|
+
interval: CreateSubscriptionIntervalResponse$inboundSchema,
|
|
2128
|
+
startDate: z.string(),
|
|
2141
2129
|
nextPaymentDate: z.nullable(z.string()).optional(),
|
|
2142
|
-
description: z.string()
|
|
2143
|
-
method: z.nullable(CreateSubscriptionMethodResponse$inboundSchema)
|
|
2130
|
+
description: z.string(),
|
|
2131
|
+
method: z.nullable(CreateSubscriptionMethodResponse$inboundSchema),
|
|
2144
2132
|
applicationFee: z.lazy(() =>
|
|
2145
2133
|
CreateSubscriptionApplicationFeeResponse$inboundSchema
|
|
2146
2134
|
).optional(),
|
|
@@ -2150,11 +2138,11 @@ export const CreateSubscriptionResponse$inboundSchema: z.ZodType<
|
|
|
2150
2138
|
z.string(),
|
|
2151
2139
|
z.array(z.string()),
|
|
2152
2140
|
]),
|
|
2153
|
-
)
|
|
2154
|
-
webhookUrl: z.string()
|
|
2155
|
-
customerId: z.string()
|
|
2141
|
+
),
|
|
2142
|
+
webhookUrl: z.string(),
|
|
2143
|
+
customerId: z.string(),
|
|
2156
2144
|
mandateId: z.nullable(z.string()).optional(),
|
|
2157
|
-
createdAt: z.string()
|
|
2145
|
+
createdAt: z.string(),
|
|
2158
2146
|
canceledAt: z.nullable(z.string()).optional(),
|
|
2159
2147
|
_links: z.lazy(() => CreateSubscriptionLinks$inboundSchema).optional(),
|
|
2160
2148
|
}).transform((v) => {
|
|
@@ -2166,30 +2154,29 @@ export const CreateSubscriptionResponse$inboundSchema: z.ZodType<
|
|
|
2166
2154
|
/** @internal */
|
|
2167
2155
|
export type CreateSubscriptionResponse$Outbound = {
|
|
2168
2156
|
resource: string;
|
|
2169
|
-
id
|
|
2170
|
-
mode
|
|
2171
|
-
status
|
|
2172
|
-
amount
|
|
2173
|
-
times
|
|
2174
|
-
timesRemaining
|
|
2175
|
-
interval
|
|
2176
|
-
startDate
|
|
2157
|
+
id: string;
|
|
2158
|
+
mode: string;
|
|
2159
|
+
status: string;
|
|
2160
|
+
amount: CreateSubscriptionAmountResponse$Outbound;
|
|
2161
|
+
times: number | null;
|
|
2162
|
+
timesRemaining: number;
|
|
2163
|
+
interval: string;
|
|
2164
|
+
startDate: string;
|
|
2177
2165
|
nextPaymentDate?: string | null | undefined;
|
|
2178
|
-
description
|
|
2179
|
-
method
|
|
2166
|
+
description: string;
|
|
2167
|
+
method: string | null;
|
|
2180
2168
|
applicationFee?:
|
|
2181
2169
|
| CreateSubscriptionApplicationFeeResponse$Outbound
|
|
2182
2170
|
| undefined;
|
|
2183
|
-
metadata
|
|
2171
|
+
metadata:
|
|
2184
2172
|
| CreateSubscriptionMetadataResponse$Outbound
|
|
2185
2173
|
| string
|
|
2186
2174
|
| Array<string>
|
|
2187
|
-
| null
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
customerId?: string | undefined;
|
|
2175
|
+
| null;
|
|
2176
|
+
webhookUrl: string;
|
|
2177
|
+
customerId: string;
|
|
2191
2178
|
mandateId?: string | null | undefined;
|
|
2192
|
-
createdAt
|
|
2179
|
+
createdAt: string;
|
|
2193
2180
|
canceledAt?: string | null | undefined;
|
|
2194
2181
|
_links?: CreateSubscriptionLinks$Outbound | undefined;
|
|
2195
2182
|
};
|
|
@@ -2201,19 +2188,17 @@ export const CreateSubscriptionResponse$outboundSchema: z.ZodType<
|
|
|
2201
2188
|
CreateSubscriptionResponse
|
|
2202
2189
|
> = z.object({
|
|
2203
2190
|
resource: z.string().default("subscription"),
|
|
2204
|
-
id: z.string()
|
|
2205
|
-
mode: CreateSubscriptionMode$outboundSchema
|
|
2206
|
-
status: CreateSubscriptionStatus$outboundSchema
|
|
2207
|
-
amount: z.lazy(() => CreateSubscriptionAmountResponse$outboundSchema)
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
startDate: z.string().optional(),
|
|
2191
|
+
id: z.string(),
|
|
2192
|
+
mode: CreateSubscriptionMode$outboundSchema,
|
|
2193
|
+
status: CreateSubscriptionStatus$outboundSchema,
|
|
2194
|
+
amount: z.lazy(() => CreateSubscriptionAmountResponse$outboundSchema),
|
|
2195
|
+
times: z.nullable(z.number().int()),
|
|
2196
|
+
timesRemaining: z.number().int(),
|
|
2197
|
+
interval: CreateSubscriptionIntervalResponse$outboundSchema,
|
|
2198
|
+
startDate: z.string(),
|
|
2213
2199
|
nextPaymentDate: z.nullable(z.string()).optional(),
|
|
2214
|
-
description: z.string()
|
|
2215
|
-
method: z.nullable(CreateSubscriptionMethodResponse$outboundSchema)
|
|
2216
|
-
.optional(),
|
|
2200
|
+
description: z.string(),
|
|
2201
|
+
method: z.nullable(CreateSubscriptionMethodResponse$outboundSchema),
|
|
2217
2202
|
applicationFee: z.lazy(() =>
|
|
2218
2203
|
CreateSubscriptionApplicationFeeResponse$outboundSchema
|
|
2219
2204
|
).optional(),
|
|
@@ -2223,11 +2208,11 @@ export const CreateSubscriptionResponse$outboundSchema: z.ZodType<
|
|
|
2223
2208
|
z.string(),
|
|
2224
2209
|
z.array(z.string()),
|
|
2225
2210
|
]),
|
|
2226
|
-
)
|
|
2227
|
-
webhookUrl: z.string()
|
|
2228
|
-
customerId: z.string()
|
|
2211
|
+
),
|
|
2212
|
+
webhookUrl: z.string(),
|
|
2213
|
+
customerId: z.string(),
|
|
2229
2214
|
mandateId: z.nullable(z.string()).optional(),
|
|
2230
|
-
createdAt: z.string()
|
|
2215
|
+
createdAt: z.string(),
|
|
2231
2216
|
canceledAt: z.nullable(z.string()).optional(),
|
|
2232
2217
|
links: z.lazy(() => CreateSubscriptionLinks$outboundSchema).optional(),
|
|
2233
2218
|
}).transform((v) => {
|
|
@@ -219,11 +219,11 @@ export type GetCustomerLinks = {
|
|
|
219
219
|
/**
|
|
220
220
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
221
221
|
*/
|
|
222
|
-
self
|
|
222
|
+
self: GetCustomerSelf;
|
|
223
223
|
/**
|
|
224
224
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
225
225
|
*/
|
|
226
|
-
dashboard
|
|
226
|
+
dashboard: GetCustomerDashboard;
|
|
227
227
|
/**
|
|
228
228
|
* The API resource URL of the [payments](list-payments) linked to this customer. Omitted if no such payments
|
|
229
229
|
*
|
|
@@ -248,7 +248,7 @@ export type GetCustomerLinks = {
|
|
|
248
248
|
/**
|
|
249
249
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
250
250
|
*/
|
|
251
|
-
documentation
|
|
251
|
+
documentation: GetCustomerDocumentation;
|
|
252
252
|
};
|
|
253
253
|
|
|
254
254
|
/**
|
|
@@ -277,12 +277,12 @@ export type EventLinks = {
|
|
|
277
277
|
|
|
278
278
|
export type Event = {
|
|
279
279
|
resource?: string | undefined;
|
|
280
|
-
type
|
|
280
|
+
type: number;
|
|
281
281
|
/**
|
|
282
282
|
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
283
283
|
*/
|
|
284
|
-
createdAt
|
|
285
|
-
message
|
|
284
|
+
createdAt: string;
|
|
285
|
+
message: string;
|
|
286
286
|
/**
|
|
287
287
|
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
288
288
|
*/
|
|
@@ -300,41 +300,41 @@ export type GetCustomerResponse = {
|
|
|
300
300
|
/**
|
|
301
301
|
* The identifier uniquely referring to this customer. Example: `cst_vsKJpSsabw`.
|
|
302
302
|
*/
|
|
303
|
-
id
|
|
303
|
+
id: string;
|
|
304
304
|
/**
|
|
305
305
|
* Whether this entity was created in live mode or in test mode.
|
|
306
306
|
*/
|
|
307
|
-
mode
|
|
307
|
+
mode: GetCustomerMode;
|
|
308
308
|
/**
|
|
309
309
|
* The full name of the customer.
|
|
310
310
|
*/
|
|
311
|
-
name
|
|
311
|
+
name: string | null;
|
|
312
312
|
/**
|
|
313
313
|
* The email address of the customer.
|
|
314
314
|
*/
|
|
315
|
-
email
|
|
315
|
+
email: string | null;
|
|
316
316
|
/**
|
|
317
317
|
* Preconfigure the language to be used in the hosted payment pages shown to the customer. Should only be provided if
|
|
318
318
|
*
|
|
319
319
|
* @remarks
|
|
320
320
|
* absolutely necessary. If not provided, the browser language will be used which is typically highly accurate.
|
|
321
321
|
*/
|
|
322
|
-
locale
|
|
322
|
+
locale: GetCustomerLocale | null;
|
|
323
323
|
/**
|
|
324
324
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
325
325
|
*
|
|
326
326
|
* @remarks
|
|
327
327
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
328
328
|
*/
|
|
329
|
-
metadata
|
|
329
|
+
metadata: GetCustomerMetadata | string | Array<string> | null;
|
|
330
330
|
/**
|
|
331
331
|
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
332
332
|
*/
|
|
333
|
-
createdAt
|
|
333
|
+
createdAt: string;
|
|
334
334
|
/**
|
|
335
335
|
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
336
336
|
*/
|
|
337
|
-
links
|
|
337
|
+
links: GetCustomerLinks;
|
|
338
338
|
events?: Array<Event> | undefined;
|
|
339
339
|
};
|
|
340
340
|
|
|
@@ -1027,8 +1027,8 @@ export const GetCustomerLinks$inboundSchema: z.ZodType<
|
|
|
1027
1027
|
z.ZodTypeDef,
|
|
1028
1028
|
unknown
|
|
1029
1029
|
> = z.object({
|
|
1030
|
-
self: z.lazy(() => GetCustomerSelf$inboundSchema)
|
|
1031
|
-
dashboard: z.lazy(() => GetCustomerDashboard$inboundSchema)
|
|
1030
|
+
self: z.lazy(() => GetCustomerSelf$inboundSchema),
|
|
1031
|
+
dashboard: z.lazy(() => GetCustomerDashboard$inboundSchema),
|
|
1032
1032
|
payments: z.nullable(z.lazy(() => GetCustomerPayments$inboundSchema))
|
|
1033
1033
|
.optional(),
|
|
1034
1034
|
mandates: z.nullable(z.lazy(() => GetCustomerMandates$inboundSchema))
|
|
@@ -1036,18 +1036,17 @@ export const GetCustomerLinks$inboundSchema: z.ZodType<
|
|
|
1036
1036
|
subscriptions: z.nullable(
|
|
1037
1037
|
z.lazy(() => GetCustomerSubscriptions$inboundSchema),
|
|
1038
1038
|
).optional(),
|
|
1039
|
-
documentation: z.lazy(() => GetCustomerDocumentation$inboundSchema)
|
|
1040
|
-
.optional(),
|
|
1039
|
+
documentation: z.lazy(() => GetCustomerDocumentation$inboundSchema),
|
|
1041
1040
|
});
|
|
1042
1041
|
|
|
1043
1042
|
/** @internal */
|
|
1044
1043
|
export type GetCustomerLinks$Outbound = {
|
|
1045
|
-
self
|
|
1046
|
-
dashboard
|
|
1044
|
+
self: GetCustomerSelf$Outbound;
|
|
1045
|
+
dashboard: GetCustomerDashboard$Outbound;
|
|
1047
1046
|
payments?: GetCustomerPayments$Outbound | null | undefined;
|
|
1048
1047
|
mandates?: GetCustomerMandates$Outbound | null | undefined;
|
|
1049
1048
|
subscriptions?: GetCustomerSubscriptions$Outbound | null | undefined;
|
|
1050
|
-
documentation
|
|
1049
|
+
documentation: GetCustomerDocumentation$Outbound;
|
|
1051
1050
|
};
|
|
1052
1051
|
|
|
1053
1052
|
/** @internal */
|
|
@@ -1056,8 +1055,8 @@ export const GetCustomerLinks$outboundSchema: z.ZodType<
|
|
|
1056
1055
|
z.ZodTypeDef,
|
|
1057
1056
|
GetCustomerLinks
|
|
1058
1057
|
> = z.object({
|
|
1059
|
-
self: z.lazy(() => GetCustomerSelf$outboundSchema)
|
|
1060
|
-
dashboard: z.lazy(() => GetCustomerDashboard$outboundSchema)
|
|
1058
|
+
self: z.lazy(() => GetCustomerSelf$outboundSchema),
|
|
1059
|
+
dashboard: z.lazy(() => GetCustomerDashboard$outboundSchema),
|
|
1061
1060
|
payments: z.nullable(z.lazy(() => GetCustomerPayments$outboundSchema))
|
|
1062
1061
|
.optional(),
|
|
1063
1062
|
mandates: z.nullable(z.lazy(() => GetCustomerMandates$outboundSchema))
|
|
@@ -1065,8 +1064,7 @@ export const GetCustomerLinks$outboundSchema: z.ZodType<
|
|
|
1065
1064
|
subscriptions: z.nullable(
|
|
1066
1065
|
z.lazy(() => GetCustomerSubscriptions$outboundSchema),
|
|
1067
1066
|
).optional(),
|
|
1068
|
-
documentation: z.lazy(() => GetCustomerDocumentation$outboundSchema)
|
|
1069
|
-
.optional(),
|
|
1067
|
+
documentation: z.lazy(() => GetCustomerDocumentation$outboundSchema),
|
|
1070
1068
|
});
|
|
1071
1069
|
|
|
1072
1070
|
/**
|
|
@@ -1201,9 +1199,9 @@ export function eventLinksFromJSON(
|
|
|
1201
1199
|
export const Event$inboundSchema: z.ZodType<Event, z.ZodTypeDef, unknown> = z
|
|
1202
1200
|
.object({
|
|
1203
1201
|
resource: z.string().default("event"),
|
|
1204
|
-
type: z.number().int()
|
|
1205
|
-
createdAt: z.string()
|
|
1206
|
-
message: z.string()
|
|
1202
|
+
type: z.number().int(),
|
|
1203
|
+
createdAt: z.string(),
|
|
1204
|
+
message: z.string(),
|
|
1207
1205
|
_links: z.lazy(() => EventLinks$inboundSchema).optional(),
|
|
1208
1206
|
}).transform((v) => {
|
|
1209
1207
|
return remap$(v, {
|
|
@@ -1214,9 +1212,9 @@ export const Event$inboundSchema: z.ZodType<Event, z.ZodTypeDef, unknown> = z
|
|
|
1214
1212
|
/** @internal */
|
|
1215
1213
|
export type Event$Outbound = {
|
|
1216
1214
|
resource: string;
|
|
1217
|
-
type
|
|
1218
|
-
createdAt
|
|
1219
|
-
message
|
|
1215
|
+
type: number;
|
|
1216
|
+
createdAt: string;
|
|
1217
|
+
message: string;
|
|
1220
1218
|
_links?: EventLinks$Outbound | undefined;
|
|
1221
1219
|
};
|
|
1222
1220
|
|
|
@@ -1227,9 +1225,9 @@ export const Event$outboundSchema: z.ZodType<
|
|
|
1227
1225
|
Event
|
|
1228
1226
|
> = z.object({
|
|
1229
1227
|
resource: z.string().default("event"),
|
|
1230
|
-
type: z.number().int()
|
|
1231
|
-
createdAt: z.string()
|
|
1232
|
-
message: z.string()
|
|
1228
|
+
type: z.number().int(),
|
|
1229
|
+
createdAt: z.string(),
|
|
1230
|
+
message: z.string(),
|
|
1233
1231
|
links: z.lazy(() => EventLinks$outboundSchema).optional(),
|
|
1234
1232
|
}).transform((v) => {
|
|
1235
1233
|
return remap$(v, {
|
|
@@ -1271,20 +1269,20 @@ export const GetCustomerResponse$inboundSchema: z.ZodType<
|
|
|
1271
1269
|
unknown
|
|
1272
1270
|
> = z.object({
|
|
1273
1271
|
resource: z.string().default("customer"),
|
|
1274
|
-
id: z.string()
|
|
1275
|
-
mode: GetCustomerMode$inboundSchema
|
|
1276
|
-
name: z.nullable(z.string())
|
|
1277
|
-
email: z.nullable(z.string())
|
|
1278
|
-
locale: z.nullable(GetCustomerLocale$inboundSchema)
|
|
1272
|
+
id: z.string(),
|
|
1273
|
+
mode: GetCustomerMode$inboundSchema,
|
|
1274
|
+
name: z.nullable(z.string()),
|
|
1275
|
+
email: z.nullable(z.string()),
|
|
1276
|
+
locale: z.nullable(GetCustomerLocale$inboundSchema),
|
|
1279
1277
|
metadata: z.nullable(
|
|
1280
1278
|
z.union([
|
|
1281
1279
|
z.lazy(() => GetCustomerMetadata$inboundSchema),
|
|
1282
1280
|
z.string(),
|
|
1283
1281
|
z.array(z.string()),
|
|
1284
1282
|
]),
|
|
1285
|
-
)
|
|
1286
|
-
createdAt: z.string()
|
|
1287
|
-
_links: z.lazy(() => GetCustomerLinks$inboundSchema)
|
|
1283
|
+
),
|
|
1284
|
+
createdAt: z.string(),
|
|
1285
|
+
_links: z.lazy(() => GetCustomerLinks$inboundSchema),
|
|
1288
1286
|
events: z.array(z.lazy(() => Event$inboundSchema)).optional(),
|
|
1289
1287
|
}).transform((v) => {
|
|
1290
1288
|
return remap$(v, {
|
|
@@ -1295,19 +1293,14 @@ export const GetCustomerResponse$inboundSchema: z.ZodType<
|
|
|
1295
1293
|
/** @internal */
|
|
1296
1294
|
export type GetCustomerResponse$Outbound = {
|
|
1297
1295
|
resource: string;
|
|
1298
|
-
id
|
|
1299
|
-
mode
|
|
1300
|
-
name
|
|
1301
|
-
email
|
|
1302
|
-
locale
|
|
1303
|
-
metadata
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
| Array<string>
|
|
1307
|
-
| null
|
|
1308
|
-
| undefined;
|
|
1309
|
-
createdAt?: string | undefined;
|
|
1310
|
-
_links?: GetCustomerLinks$Outbound | undefined;
|
|
1296
|
+
id: string;
|
|
1297
|
+
mode: string;
|
|
1298
|
+
name: string | null;
|
|
1299
|
+
email: string | null;
|
|
1300
|
+
locale: string | null;
|
|
1301
|
+
metadata: GetCustomerMetadata$Outbound | string | Array<string> | null;
|
|
1302
|
+
createdAt: string;
|
|
1303
|
+
_links: GetCustomerLinks$Outbound;
|
|
1311
1304
|
events?: Array<Event$Outbound> | undefined;
|
|
1312
1305
|
};
|
|
1313
1306
|
|
|
@@ -1318,20 +1311,20 @@ export const GetCustomerResponse$outboundSchema: z.ZodType<
|
|
|
1318
1311
|
GetCustomerResponse
|
|
1319
1312
|
> = z.object({
|
|
1320
1313
|
resource: z.string().default("customer"),
|
|
1321
|
-
id: z.string()
|
|
1322
|
-
mode: GetCustomerMode$outboundSchema
|
|
1323
|
-
name: z.nullable(z.string())
|
|
1324
|
-
email: z.nullable(z.string())
|
|
1325
|
-
locale: z.nullable(GetCustomerLocale$outboundSchema)
|
|
1314
|
+
id: z.string(),
|
|
1315
|
+
mode: GetCustomerMode$outboundSchema,
|
|
1316
|
+
name: z.nullable(z.string()),
|
|
1317
|
+
email: z.nullable(z.string()),
|
|
1318
|
+
locale: z.nullable(GetCustomerLocale$outboundSchema),
|
|
1326
1319
|
metadata: z.nullable(
|
|
1327
1320
|
z.union([
|
|
1328
1321
|
z.lazy(() => GetCustomerMetadata$outboundSchema),
|
|
1329
1322
|
z.string(),
|
|
1330
1323
|
z.array(z.string()),
|
|
1331
1324
|
]),
|
|
1332
|
-
)
|
|
1333
|
-
createdAt: z.string()
|
|
1334
|
-
links: z.lazy(() => GetCustomerLinks$outboundSchema)
|
|
1325
|
+
),
|
|
1326
|
+
createdAt: z.string(),
|
|
1327
|
+
links: z.lazy(() => GetCustomerLinks$outboundSchema),
|
|
1335
1328
|
events: z.array(z.lazy(() => Event$outboundSchema)).optional(),
|
|
1336
1329
|
}).transform((v) => {
|
|
1337
1330
|
return remap$(v, {
|