mollie-api-typescript 0.1.1 → 0.1.2
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 +187 -1023
- package/bin/mcp-server.js.map +35 -35
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js.map +1 -1
- 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 +12 -25
- package/dist/commonjs/models/operations/cancelpayment.d.ts.map +1 -1
- package/dist/commonjs/models/operations/cancelpayment.js +7 -46
- package/dist/commonjs/models/operations/cancelpayment.js.map +1 -1
- package/dist/commonjs/models/operations/cancelsubscription.d.ts +12 -25
- package/dist/commonjs/models/operations/cancelsubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/cancelsubscription.js +6 -45
- package/dist/commonjs/models/operations/cancelsubscription.js.map +1 -1
- package/dist/commonjs/models/operations/createcapture.d.ts +24 -50
- package/dist/commonjs/models/operations/createcapture.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createcapture.js +10 -88
- package/dist/commonjs/models/operations/createcapture.js.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.d.ts +24 -50
- package/dist/commonjs/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.js +10 -88
- package/dist/commonjs/models/operations/createcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/createcustomerpayment.d.ts +24 -50
- package/dist/commonjs/models/operations/createcustomerpayment.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createcustomerpayment.js +13 -91
- package/dist/commonjs/models/operations/createcustomerpayment.js.map +1 -1
- package/dist/commonjs/models/operations/createpayment.d.ts +24 -50
- package/dist/commonjs/models/operations/createpayment.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createpayment.js +13 -91
- package/dist/commonjs/models/operations/createpayment.js.map +1 -1
- package/dist/commonjs/models/operations/createrefund.d.ts +24 -50
- package/dist/commonjs/models/operations/createrefund.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createrefund.js +11 -89
- package/dist/commonjs/models/operations/createrefund.js.map +1 -1
- package/dist/commonjs/models/operations/createsubscription.d.ts +24 -50
- package/dist/commonjs/models/operations/createsubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createsubscription.js +10 -88
- package/dist/commonjs/models/operations/createsubscription.js.map +1 -1
- package/dist/commonjs/models/operations/getcapture.d.ts +12 -25
- package/dist/commonjs/models/operations/getcapture.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcapture.js +6 -45
- package/dist/commonjs/models/operations/getcapture.js.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.d.ts +12 -25
- package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.js +6 -45
- package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/getpayment.d.ts +12 -25
- package/dist/commonjs/models/operations/getpayment.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getpayment.js +7 -46
- package/dist/commonjs/models/operations/getpayment.js.map +1 -1
- package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts +12 -25
- package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getpaymentlinkpayments.js +8 -47
- package/dist/commonjs/models/operations/getpaymentlinkpayments.js.map +1 -1
- package/dist/commonjs/models/operations/getrefund.d.ts +12 -25
- package/dist/commonjs/models/operations/getrefund.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getrefund.js +6 -45
- package/dist/commonjs/models/operations/getrefund.js.map +1 -1
- package/dist/commonjs/models/operations/getsubscription.d.ts +12 -25
- package/dist/commonjs/models/operations/getsubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getsubscription.js +6 -45
- package/dist/commonjs/models/operations/getsubscription.js.map +1 -1
- package/dist/commonjs/models/operations/listallrefunds.d.ts +12 -25
- package/dist/commonjs/models/operations/listallrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listallrefunds.js +6 -45
- package/dist/commonjs/models/operations/listallrefunds.js.map +1 -1
- package/dist/commonjs/models/operations/listallsubscriptions.d.ts +12 -25
- package/dist/commonjs/models/operations/listallsubscriptions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listallsubscriptions.js +6 -45
- package/dist/commonjs/models/operations/listallsubscriptions.js.map +1 -1
- package/dist/commonjs/models/operations/listcaptures.d.ts +12 -25
- package/dist/commonjs/models/operations/listcaptures.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listcaptures.js +6 -45
- package/dist/commonjs/models/operations/listcaptures.js.map +1 -1
- package/dist/commonjs/models/operations/listcustomerpayments.d.ts +12 -25
- package/dist/commonjs/models/operations/listcustomerpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listcustomerpayments.js +8 -47
- package/dist/commonjs/models/operations/listcustomerpayments.js.map +1 -1
- package/dist/commonjs/models/operations/listcustomers.d.ts +12 -25
- package/dist/commonjs/models/operations/listcustomers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listcustomers.js +6 -45
- package/dist/commonjs/models/operations/listcustomers.js.map +1 -1
- package/dist/commonjs/models/operations/listpayments.d.ts +12 -25
- package/dist/commonjs/models/operations/listpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listpayments.js +8 -47
- package/dist/commonjs/models/operations/listpayments.js.map +1 -1
- package/dist/commonjs/models/operations/listrefunds.d.ts +12 -25
- package/dist/commonjs/models/operations/listrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listrefunds.js +6 -45
- package/dist/commonjs/models/operations/listrefunds.js.map +1 -1
- package/dist/commonjs/models/operations/listsettlementcaptures.d.ts +12 -25
- package/dist/commonjs/models/operations/listsettlementcaptures.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsettlementcaptures.js +6 -45
- package/dist/commonjs/models/operations/listsettlementcaptures.js.map +1 -1
- package/dist/commonjs/models/operations/listsettlementpayments.d.ts +12 -25
- package/dist/commonjs/models/operations/listsettlementpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsettlementpayments.js +8 -47
- package/dist/commonjs/models/operations/listsettlementpayments.js.map +1 -1
- package/dist/commonjs/models/operations/listsettlementrefunds.d.ts +12 -25
- package/dist/commonjs/models/operations/listsettlementrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsettlementrefunds.js +6 -45
- package/dist/commonjs/models/operations/listsettlementrefunds.js.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts +12 -25
- package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptionpayments.js +8 -47
- package/dist/commonjs/models/operations/listsubscriptionpayments.js.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptions.d.ts +12 -25
- package/dist/commonjs/models/operations/listsubscriptions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptions.js +6 -45
- package/dist/commonjs/models/operations/listsubscriptions.js.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.d.ts +24 -50
- package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.js +10 -88
- package/dist/commonjs/models/operations/updatecustomer.js.map +1 -1
- package/dist/commonjs/models/operations/updatepayment.d.ts +24 -50
- package/dist/commonjs/models/operations/updatepayment.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatepayment.js +13 -91
- package/dist/commonjs/models/operations/updatepayment.js.map +1 -1
- package/dist/commonjs/models/operations/updatesubscription.d.ts +24 -50
- package/dist/commonjs/models/operations/updatesubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatesubscription.js +10 -88
- package/dist/commonjs/models/operations/updatesubscription.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js.map +1 -1
- 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 +12 -25
- package/dist/esm/models/operations/cancelpayment.d.ts.map +1 -1
- package/dist/esm/models/operations/cancelpayment.js +4 -41
- package/dist/esm/models/operations/cancelpayment.js.map +1 -1
- package/dist/esm/models/operations/cancelsubscription.d.ts +12 -25
- package/dist/esm/models/operations/cancelsubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/cancelsubscription.js +4 -41
- package/dist/esm/models/operations/cancelsubscription.js.map +1 -1
- package/dist/esm/models/operations/createcapture.d.ts +24 -50
- package/dist/esm/models/operations/createcapture.d.ts.map +1 -1
- package/dist/esm/models/operations/createcapture.js +8 -82
- package/dist/esm/models/operations/createcapture.js.map +1 -1
- package/dist/esm/models/operations/createcustomer.d.ts +24 -50
- package/dist/esm/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/createcustomer.js +8 -82
- package/dist/esm/models/operations/createcustomer.js.map +1 -1
- package/dist/esm/models/operations/createcustomerpayment.d.ts +24 -50
- package/dist/esm/models/operations/createcustomerpayment.d.ts.map +1 -1
- package/dist/esm/models/operations/createcustomerpayment.js +8 -82
- package/dist/esm/models/operations/createcustomerpayment.js.map +1 -1
- package/dist/esm/models/operations/createpayment.d.ts +24 -50
- package/dist/esm/models/operations/createpayment.d.ts.map +1 -1
- package/dist/esm/models/operations/createpayment.js +8 -82
- package/dist/esm/models/operations/createpayment.js.map +1 -1
- package/dist/esm/models/operations/createrefund.d.ts +24 -50
- package/dist/esm/models/operations/createrefund.d.ts.map +1 -1
- package/dist/esm/models/operations/createrefund.js +8 -82
- package/dist/esm/models/operations/createrefund.js.map +1 -1
- package/dist/esm/models/operations/createsubscription.d.ts +24 -50
- package/dist/esm/models/operations/createsubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/createsubscription.js +8 -82
- package/dist/esm/models/operations/createsubscription.js.map +1 -1
- package/dist/esm/models/operations/getcapture.d.ts +12 -25
- package/dist/esm/models/operations/getcapture.d.ts.map +1 -1
- package/dist/esm/models/operations/getcapture.js +4 -41
- package/dist/esm/models/operations/getcapture.js.map +1 -1
- package/dist/esm/models/operations/getcustomer.d.ts +12 -25
- package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomer.js +4 -41
- package/dist/esm/models/operations/getcustomer.js.map +1 -1
- package/dist/esm/models/operations/getpayment.d.ts +12 -25
- package/dist/esm/models/operations/getpayment.d.ts.map +1 -1
- package/dist/esm/models/operations/getpayment.js +4 -41
- package/dist/esm/models/operations/getpayment.js.map +1 -1
- package/dist/esm/models/operations/getpaymentlinkpayments.d.ts +12 -25
- package/dist/esm/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/getpaymentlinkpayments.js +4 -41
- package/dist/esm/models/operations/getpaymentlinkpayments.js.map +1 -1
- package/dist/esm/models/operations/getrefund.d.ts +12 -25
- package/dist/esm/models/operations/getrefund.d.ts.map +1 -1
- package/dist/esm/models/operations/getrefund.js +4 -41
- package/dist/esm/models/operations/getrefund.js.map +1 -1
- package/dist/esm/models/operations/getsubscription.d.ts +12 -25
- package/dist/esm/models/operations/getsubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/getsubscription.js +4 -41
- package/dist/esm/models/operations/getsubscription.js.map +1 -1
- package/dist/esm/models/operations/listallrefunds.d.ts +12 -25
- package/dist/esm/models/operations/listallrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listallrefunds.js +4 -41
- package/dist/esm/models/operations/listallrefunds.js.map +1 -1
- package/dist/esm/models/operations/listallsubscriptions.d.ts +12 -25
- package/dist/esm/models/operations/listallsubscriptions.d.ts.map +1 -1
- package/dist/esm/models/operations/listallsubscriptions.js +4 -41
- package/dist/esm/models/operations/listallsubscriptions.js.map +1 -1
- package/dist/esm/models/operations/listcaptures.d.ts +12 -25
- package/dist/esm/models/operations/listcaptures.d.ts.map +1 -1
- package/dist/esm/models/operations/listcaptures.js +4 -41
- package/dist/esm/models/operations/listcaptures.js.map +1 -1
- package/dist/esm/models/operations/listcustomerpayments.d.ts +12 -25
- package/dist/esm/models/operations/listcustomerpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/listcustomerpayments.js +4 -41
- package/dist/esm/models/operations/listcustomerpayments.js.map +1 -1
- package/dist/esm/models/operations/listcustomers.d.ts +12 -25
- package/dist/esm/models/operations/listcustomers.d.ts.map +1 -1
- package/dist/esm/models/operations/listcustomers.js +4 -41
- package/dist/esm/models/operations/listcustomers.js.map +1 -1
- package/dist/esm/models/operations/listpayments.d.ts +12 -25
- package/dist/esm/models/operations/listpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/listpayments.js +4 -41
- package/dist/esm/models/operations/listpayments.js.map +1 -1
- package/dist/esm/models/operations/listrefunds.d.ts +12 -25
- package/dist/esm/models/operations/listrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listrefunds.js +4 -41
- package/dist/esm/models/operations/listrefunds.js.map +1 -1
- package/dist/esm/models/operations/listsettlementcaptures.d.ts +12 -25
- package/dist/esm/models/operations/listsettlementcaptures.d.ts.map +1 -1
- package/dist/esm/models/operations/listsettlementcaptures.js +4 -41
- package/dist/esm/models/operations/listsettlementcaptures.js.map +1 -1
- package/dist/esm/models/operations/listsettlementpayments.d.ts +12 -25
- package/dist/esm/models/operations/listsettlementpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/listsettlementpayments.js +4 -41
- package/dist/esm/models/operations/listsettlementpayments.js.map +1 -1
- package/dist/esm/models/operations/listsettlementrefunds.d.ts +12 -25
- package/dist/esm/models/operations/listsettlementrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listsettlementrefunds.js +4 -41
- package/dist/esm/models/operations/listsettlementrefunds.js.map +1 -1
- package/dist/esm/models/operations/listsubscriptionpayments.d.ts +12 -25
- package/dist/esm/models/operations/listsubscriptionpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/listsubscriptionpayments.js +4 -41
- package/dist/esm/models/operations/listsubscriptionpayments.js.map +1 -1
- package/dist/esm/models/operations/listsubscriptions.d.ts +12 -25
- package/dist/esm/models/operations/listsubscriptions.d.ts.map +1 -1
- package/dist/esm/models/operations/listsubscriptions.js +4 -41
- package/dist/esm/models/operations/listsubscriptions.js.map +1 -1
- package/dist/esm/models/operations/updatecustomer.d.ts +24 -50
- package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/updatecustomer.js +8 -82
- package/dist/esm/models/operations/updatecustomer.js.map +1 -1
- package/dist/esm/models/operations/updatepayment.d.ts +24 -50
- package/dist/esm/models/operations/updatepayment.d.ts.map +1 -1
- package/dist/esm/models/operations/updatepayment.js +8 -82
- package/dist/esm/models/operations/updatepayment.js.map +1 -1
- package/dist/esm/models/operations/updatesubscription.d.ts +24 -50
- package/dist/esm/models/operations/updatesubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/updatesubscription.js +8 -82
- package/dist/esm/models/operations/updatesubscription.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +4 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/cancelpayment.ts +12 -83
- package/src/models/operations/cancelsubscription.ts +12 -80
- package/src/models/operations/createcapture.ts +22 -183
- package/src/models/operations/createcustomer.ts +22 -179
- package/src/models/operations/createcustomerpayment.ts +23 -200
- package/src/models/operations/createpayment.ts +22 -183
- package/src/models/operations/createrefund.ts +23 -181
- package/src/models/operations/createsubscription.ts +22 -187
- package/src/models/operations/getcapture.ts +11 -85
- package/src/models/operations/getcustomer.ts +11 -80
- package/src/models/operations/getpayment.ts +11 -85
- package/src/models/operations/getpaymentlinkpayments.ts +11 -93
- package/src/models/operations/getrefund.ts +11 -82
- package/src/models/operations/getsubscription.ts +12 -80
- package/src/models/operations/listallrefunds.ts +12 -85
- package/src/models/operations/listallsubscriptions.ts +11 -85
- package/src/models/operations/listcaptures.ts +12 -83
- package/src/models/operations/listcustomerpayments.ts +11 -91
- package/src/models/operations/listcustomers.ts +12 -78
- package/src/models/operations/listpayments.ts +12 -83
- package/src/models/operations/listrefunds.ts +11 -85
- package/src/models/operations/listsettlementcaptures.ts +11 -93
- package/src/models/operations/listsettlementpayments.ts +11 -93
- package/src/models/operations/listsettlementrefunds.ts +11 -92
- package/src/models/operations/listsubscriptionpayments.ts +11 -93
- package/src/models/operations/listsubscriptions.ts +12 -80
- package/src/models/operations/updatecustomer.ts +22 -179
- package/src/models/operations/updatepayment.ts +22 -183
- package/src/models/operations/updatesubscription.ts +22 -187
|
@@ -23,17 +23,15 @@ export type CreateCaptureAmountRequest = {
|
|
|
23
23
|
value: string;
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
export type CreateCaptureMetadataRequest = {};
|
|
27
|
-
|
|
28
26
|
/**
|
|
29
27
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
30
28
|
*
|
|
31
29
|
* @remarks
|
|
32
30
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
33
31
|
*/
|
|
34
|
-
export type
|
|
35
|
-
| CreateCaptureMetadataRequest
|
|
32
|
+
export type CreateCaptureMetadataRequest =
|
|
36
33
|
| string
|
|
34
|
+
| { [k: string]: any }
|
|
37
35
|
| Array<string>;
|
|
38
36
|
|
|
39
37
|
export type CreateCaptureRequestBody = {
|
|
@@ -51,12 +49,7 @@ export type CreateCaptureRequestBody = {
|
|
|
51
49
|
* @remarks
|
|
52
50
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
53
51
|
*/
|
|
54
|
-
metadata?:
|
|
55
|
-
| CreateCaptureMetadataRequest
|
|
56
|
-
| string
|
|
57
|
-
| Array<string>
|
|
58
|
-
| null
|
|
59
|
-
| undefined;
|
|
52
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
60
53
|
};
|
|
61
54
|
|
|
62
55
|
export type CreateCaptureRequest = {
|
|
@@ -157,17 +150,15 @@ export const CreateCaptureStatus = {
|
|
|
157
150
|
*/
|
|
158
151
|
export type CreateCaptureStatus = ClosedEnum<typeof CreateCaptureStatus>;
|
|
159
152
|
|
|
160
|
-
export type CreateCaptureMetadataResponse = {};
|
|
161
|
-
|
|
162
153
|
/**
|
|
163
154
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
164
155
|
*
|
|
165
156
|
* @remarks
|
|
166
157
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
167
158
|
*/
|
|
168
|
-
export type
|
|
169
|
-
| CreateCaptureMetadataResponse
|
|
159
|
+
export type CreateCaptureMetadataResponse =
|
|
170
160
|
| string
|
|
161
|
+
| { [k: string]: any }
|
|
171
162
|
| Array<string>;
|
|
172
163
|
|
|
173
164
|
/**
|
|
@@ -326,12 +317,7 @@ export type CreateCaptureResponse = {
|
|
|
326
317
|
* @remarks
|
|
327
318
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
328
319
|
*/
|
|
329
|
-
metadata?:
|
|
330
|
-
| CreateCaptureMetadataResponse
|
|
331
|
-
| string
|
|
332
|
-
| Array<string>
|
|
333
|
-
| null
|
|
334
|
-
| undefined;
|
|
320
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
335
321
|
/**
|
|
336
322
|
* The unique identifier of the payment this capture was created for. For example: `tr_5B8cwPMGnU6qLbRvo7qEZo`.
|
|
337
323
|
*
|
|
@@ -425,17 +411,19 @@ export const CreateCaptureMetadataRequest$inboundSchema: z.ZodType<
|
|
|
425
411
|
CreateCaptureMetadataRequest,
|
|
426
412
|
z.ZodTypeDef,
|
|
427
413
|
unknown
|
|
428
|
-
> = z.
|
|
414
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
429
415
|
|
|
430
416
|
/** @internal */
|
|
431
|
-
export type CreateCaptureMetadataRequest$Outbound = {
|
|
417
|
+
export type CreateCaptureMetadataRequest$Outbound = string | {
|
|
418
|
+
[k: string]: any;
|
|
419
|
+
} | Array<string>;
|
|
432
420
|
|
|
433
421
|
/** @internal */
|
|
434
422
|
export const CreateCaptureMetadataRequest$outboundSchema: z.ZodType<
|
|
435
423
|
CreateCaptureMetadataRequest$Outbound,
|
|
436
424
|
z.ZodTypeDef,
|
|
437
425
|
CreateCaptureMetadataRequest
|
|
438
|
-
> = z.
|
|
426
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
439
427
|
|
|
440
428
|
/**
|
|
441
429
|
* @internal
|
|
@@ -470,68 +458,6 @@ export function createCaptureMetadataRequestFromJSON(
|
|
|
470
458
|
);
|
|
471
459
|
}
|
|
472
460
|
|
|
473
|
-
/** @internal */
|
|
474
|
-
export const CreateCaptureMetadataRequestUnion$inboundSchema: z.ZodType<
|
|
475
|
-
CreateCaptureMetadataRequestUnion,
|
|
476
|
-
z.ZodTypeDef,
|
|
477
|
-
unknown
|
|
478
|
-
> = z.union([
|
|
479
|
-
z.lazy(() => CreateCaptureMetadataRequest$inboundSchema),
|
|
480
|
-
z.string(),
|
|
481
|
-
z.array(z.string()),
|
|
482
|
-
]);
|
|
483
|
-
|
|
484
|
-
/** @internal */
|
|
485
|
-
export type CreateCaptureMetadataRequestUnion$Outbound =
|
|
486
|
-
| CreateCaptureMetadataRequest$Outbound
|
|
487
|
-
| string
|
|
488
|
-
| Array<string>;
|
|
489
|
-
|
|
490
|
-
/** @internal */
|
|
491
|
-
export const CreateCaptureMetadataRequestUnion$outboundSchema: z.ZodType<
|
|
492
|
-
CreateCaptureMetadataRequestUnion$Outbound,
|
|
493
|
-
z.ZodTypeDef,
|
|
494
|
-
CreateCaptureMetadataRequestUnion
|
|
495
|
-
> = z.union([
|
|
496
|
-
z.lazy(() => CreateCaptureMetadataRequest$outboundSchema),
|
|
497
|
-
z.string(),
|
|
498
|
-
z.array(z.string()),
|
|
499
|
-
]);
|
|
500
|
-
|
|
501
|
-
/**
|
|
502
|
-
* @internal
|
|
503
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
504
|
-
*/
|
|
505
|
-
export namespace CreateCaptureMetadataRequestUnion$ {
|
|
506
|
-
/** @deprecated use `CreateCaptureMetadataRequestUnion$inboundSchema` instead. */
|
|
507
|
-
export const inboundSchema = CreateCaptureMetadataRequestUnion$inboundSchema;
|
|
508
|
-
/** @deprecated use `CreateCaptureMetadataRequestUnion$outboundSchema` instead. */
|
|
509
|
-
export const outboundSchema =
|
|
510
|
-
CreateCaptureMetadataRequestUnion$outboundSchema;
|
|
511
|
-
/** @deprecated use `CreateCaptureMetadataRequestUnion$Outbound` instead. */
|
|
512
|
-
export type Outbound = CreateCaptureMetadataRequestUnion$Outbound;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
export function createCaptureMetadataRequestUnionToJSON(
|
|
516
|
-
createCaptureMetadataRequestUnion: CreateCaptureMetadataRequestUnion,
|
|
517
|
-
): string {
|
|
518
|
-
return JSON.stringify(
|
|
519
|
-
CreateCaptureMetadataRequestUnion$outboundSchema.parse(
|
|
520
|
-
createCaptureMetadataRequestUnion,
|
|
521
|
-
),
|
|
522
|
-
);
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
export function createCaptureMetadataRequestUnionFromJSON(
|
|
526
|
-
jsonString: string,
|
|
527
|
-
): SafeParseResult<CreateCaptureMetadataRequestUnion, SDKValidationError> {
|
|
528
|
-
return safeParse(
|
|
529
|
-
jsonString,
|
|
530
|
-
(x) => CreateCaptureMetadataRequestUnion$inboundSchema.parse(JSON.parse(x)),
|
|
531
|
-
`Failed to parse 'CreateCaptureMetadataRequestUnion' from JSON`,
|
|
532
|
-
);
|
|
533
|
-
}
|
|
534
|
-
|
|
535
461
|
/** @internal */
|
|
536
462
|
export const CreateCaptureRequestBody$inboundSchema: z.ZodType<
|
|
537
463
|
CreateCaptureRequestBody,
|
|
@@ -542,11 +468,7 @@ export const CreateCaptureRequestBody$inboundSchema: z.ZodType<
|
|
|
542
468
|
amount: z.nullable(z.lazy(() => CreateCaptureAmountRequest$inboundSchema))
|
|
543
469
|
.optional(),
|
|
544
470
|
metadata: z.nullable(
|
|
545
|
-
z.union([
|
|
546
|
-
z.lazy(() => CreateCaptureMetadataRequest$inboundSchema),
|
|
547
|
-
z.string(),
|
|
548
|
-
z.array(z.string()),
|
|
549
|
-
]),
|
|
471
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
550
472
|
).optional(),
|
|
551
473
|
});
|
|
552
474
|
|
|
@@ -554,12 +476,7 @@ export const CreateCaptureRequestBody$inboundSchema: z.ZodType<
|
|
|
554
476
|
export type CreateCaptureRequestBody$Outbound = {
|
|
555
477
|
description?: string | undefined;
|
|
556
478
|
amount?: CreateCaptureAmountRequest$Outbound | null | undefined;
|
|
557
|
-
metadata?:
|
|
558
|
-
| CreateCaptureMetadataRequest$Outbound
|
|
559
|
-
| string
|
|
560
|
-
| Array<string>
|
|
561
|
-
| null
|
|
562
|
-
| undefined;
|
|
479
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
563
480
|
};
|
|
564
481
|
|
|
565
482
|
/** @internal */
|
|
@@ -572,11 +489,7 @@ export const CreateCaptureRequestBody$outboundSchema: z.ZodType<
|
|
|
572
489
|
amount: z.nullable(z.lazy(() => CreateCaptureAmountRequest$outboundSchema))
|
|
573
490
|
.optional(),
|
|
574
491
|
metadata: z.nullable(
|
|
575
|
-
z.union([
|
|
576
|
-
z.lazy(() => CreateCaptureMetadataRequest$outboundSchema),
|
|
577
|
-
z.string(),
|
|
578
|
-
z.array(z.string()),
|
|
579
|
-
]),
|
|
492
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
580
493
|
).optional(),
|
|
581
494
|
});
|
|
582
495
|
|
|
@@ -1091,17 +1004,19 @@ export const CreateCaptureMetadataResponse$inboundSchema: z.ZodType<
|
|
|
1091
1004
|
CreateCaptureMetadataResponse,
|
|
1092
1005
|
z.ZodTypeDef,
|
|
1093
1006
|
unknown
|
|
1094
|
-
> = z.
|
|
1007
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
1095
1008
|
|
|
1096
1009
|
/** @internal */
|
|
1097
|
-
export type CreateCaptureMetadataResponse$Outbound = {
|
|
1010
|
+
export type CreateCaptureMetadataResponse$Outbound = string | {
|
|
1011
|
+
[k: string]: any;
|
|
1012
|
+
} | Array<string>;
|
|
1098
1013
|
|
|
1099
1014
|
/** @internal */
|
|
1100
1015
|
export const CreateCaptureMetadataResponse$outboundSchema: z.ZodType<
|
|
1101
1016
|
CreateCaptureMetadataResponse$Outbound,
|
|
1102
1017
|
z.ZodTypeDef,
|
|
1103
1018
|
CreateCaptureMetadataResponse
|
|
1104
|
-
> = z.
|
|
1019
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
1105
1020
|
|
|
1106
1021
|
/**
|
|
1107
1022
|
* @internal
|
|
@@ -1136,69 +1051,6 @@ export function createCaptureMetadataResponseFromJSON(
|
|
|
1136
1051
|
);
|
|
1137
1052
|
}
|
|
1138
1053
|
|
|
1139
|
-
/** @internal */
|
|
1140
|
-
export const CreateCaptureMetadataResponseUnion$inboundSchema: z.ZodType<
|
|
1141
|
-
CreateCaptureMetadataResponseUnion,
|
|
1142
|
-
z.ZodTypeDef,
|
|
1143
|
-
unknown
|
|
1144
|
-
> = z.union([
|
|
1145
|
-
z.lazy(() => CreateCaptureMetadataResponse$inboundSchema),
|
|
1146
|
-
z.string(),
|
|
1147
|
-
z.array(z.string()),
|
|
1148
|
-
]);
|
|
1149
|
-
|
|
1150
|
-
/** @internal */
|
|
1151
|
-
export type CreateCaptureMetadataResponseUnion$Outbound =
|
|
1152
|
-
| CreateCaptureMetadataResponse$Outbound
|
|
1153
|
-
| string
|
|
1154
|
-
| Array<string>;
|
|
1155
|
-
|
|
1156
|
-
/** @internal */
|
|
1157
|
-
export const CreateCaptureMetadataResponseUnion$outboundSchema: z.ZodType<
|
|
1158
|
-
CreateCaptureMetadataResponseUnion$Outbound,
|
|
1159
|
-
z.ZodTypeDef,
|
|
1160
|
-
CreateCaptureMetadataResponseUnion
|
|
1161
|
-
> = z.union([
|
|
1162
|
-
z.lazy(() => CreateCaptureMetadataResponse$outboundSchema),
|
|
1163
|
-
z.string(),
|
|
1164
|
-
z.array(z.string()),
|
|
1165
|
-
]);
|
|
1166
|
-
|
|
1167
|
-
/**
|
|
1168
|
-
* @internal
|
|
1169
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1170
|
-
*/
|
|
1171
|
-
export namespace CreateCaptureMetadataResponseUnion$ {
|
|
1172
|
-
/** @deprecated use `CreateCaptureMetadataResponseUnion$inboundSchema` instead. */
|
|
1173
|
-
export const inboundSchema = CreateCaptureMetadataResponseUnion$inboundSchema;
|
|
1174
|
-
/** @deprecated use `CreateCaptureMetadataResponseUnion$outboundSchema` instead. */
|
|
1175
|
-
export const outboundSchema =
|
|
1176
|
-
CreateCaptureMetadataResponseUnion$outboundSchema;
|
|
1177
|
-
/** @deprecated use `CreateCaptureMetadataResponseUnion$Outbound` instead. */
|
|
1178
|
-
export type Outbound = CreateCaptureMetadataResponseUnion$Outbound;
|
|
1179
|
-
}
|
|
1180
|
-
|
|
1181
|
-
export function createCaptureMetadataResponseUnionToJSON(
|
|
1182
|
-
createCaptureMetadataResponseUnion: CreateCaptureMetadataResponseUnion,
|
|
1183
|
-
): string {
|
|
1184
|
-
return JSON.stringify(
|
|
1185
|
-
CreateCaptureMetadataResponseUnion$outboundSchema.parse(
|
|
1186
|
-
createCaptureMetadataResponseUnion,
|
|
1187
|
-
),
|
|
1188
|
-
);
|
|
1189
|
-
}
|
|
1190
|
-
|
|
1191
|
-
export function createCaptureMetadataResponseUnionFromJSON(
|
|
1192
|
-
jsonString: string,
|
|
1193
|
-
): SafeParseResult<CreateCaptureMetadataResponseUnion, SDKValidationError> {
|
|
1194
|
-
return safeParse(
|
|
1195
|
-
jsonString,
|
|
1196
|
-
(x) =>
|
|
1197
|
-
CreateCaptureMetadataResponseUnion$inboundSchema.parse(JSON.parse(x)),
|
|
1198
|
-
`Failed to parse 'CreateCaptureMetadataResponseUnion' from JSON`,
|
|
1199
|
-
);
|
|
1200
|
-
}
|
|
1201
|
-
|
|
1202
1054
|
/** @internal */
|
|
1203
1055
|
export const CreateCaptureSelf$inboundSchema: z.ZodType<
|
|
1204
1056
|
CreateCaptureSelf,
|
|
@@ -1570,11 +1422,7 @@ export const CreateCaptureResponse$inboundSchema: z.ZodType<
|
|
|
1570
1422
|
).optional(),
|
|
1571
1423
|
status: CreateCaptureStatus$inboundSchema,
|
|
1572
1424
|
metadata: z.nullable(
|
|
1573
|
-
z.union([
|
|
1574
|
-
z.lazy(() => CreateCaptureMetadataResponse$inboundSchema),
|
|
1575
|
-
z.string(),
|
|
1576
|
-
z.array(z.string()),
|
|
1577
|
-
]),
|
|
1425
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1578
1426
|
).optional(),
|
|
1579
1427
|
paymentId: z.string(),
|
|
1580
1428
|
shipmentId: z.nullable(z.string()).optional(),
|
|
@@ -1596,12 +1444,7 @@ export type CreateCaptureResponse$Outbound = {
|
|
|
1596
1444
|
amount: CreateCaptureAmountResponse$Outbound | null;
|
|
1597
1445
|
settlementAmount?: CreateCaptureSettlementAmount$Outbound | null | undefined;
|
|
1598
1446
|
status: string;
|
|
1599
|
-
metadata?:
|
|
1600
|
-
| CreateCaptureMetadataResponse$Outbound
|
|
1601
|
-
| string
|
|
1602
|
-
| Array<string>
|
|
1603
|
-
| null
|
|
1604
|
-
| undefined;
|
|
1447
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
1605
1448
|
paymentId: string;
|
|
1606
1449
|
shipmentId?: string | null | undefined;
|
|
1607
1450
|
settlementId?: string | null | undefined;
|
|
@@ -1625,11 +1468,7 @@ export const CreateCaptureResponse$outboundSchema: z.ZodType<
|
|
|
1625
1468
|
).optional(),
|
|
1626
1469
|
status: CreateCaptureStatus$outboundSchema,
|
|
1627
1470
|
metadata: z.nullable(
|
|
1628
|
-
z.union([
|
|
1629
|
-
z.lazy(() => CreateCaptureMetadataResponse$outboundSchema),
|
|
1630
|
-
z.string(),
|
|
1631
|
-
z.array(z.string()),
|
|
1632
|
-
]),
|
|
1471
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1633
1472
|
).optional(),
|
|
1634
1473
|
paymentId: z.string(),
|
|
1635
1474
|
shipmentId: z.nullable(z.string()).optional(),
|
|
@@ -49,17 +49,15 @@ export type CreateCustomerLocaleRequest = ClosedEnum<
|
|
|
49
49
|
typeof CreateCustomerLocaleRequest
|
|
50
50
|
>;
|
|
51
51
|
|
|
52
|
-
export type CreateCustomerMetadataRequest = {};
|
|
53
|
-
|
|
54
52
|
/**
|
|
55
53
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
56
54
|
*
|
|
57
55
|
* @remarks
|
|
58
56
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
59
57
|
*/
|
|
60
|
-
export type
|
|
61
|
-
| CreateCustomerMetadataRequest
|
|
58
|
+
export type CreateCustomerMetadataRequest =
|
|
62
59
|
| string
|
|
60
|
+
| { [k: string]: any }
|
|
63
61
|
| Array<string>;
|
|
64
62
|
|
|
65
63
|
export type CreateCustomerRequest = {
|
|
@@ -84,12 +82,7 @@ export type CreateCustomerRequest = {
|
|
|
84
82
|
* @remarks
|
|
85
83
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
86
84
|
*/
|
|
87
|
-
metadata?:
|
|
88
|
-
| CreateCustomerMetadataRequest
|
|
89
|
-
| string
|
|
90
|
-
| Array<string>
|
|
91
|
-
| null
|
|
92
|
-
| undefined;
|
|
85
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
93
86
|
/**
|
|
94
87
|
* Whether to create the entity in test mode or live mode.
|
|
95
88
|
*
|
|
@@ -169,17 +162,15 @@ export type CreateCustomerLocaleResponse = ClosedEnum<
|
|
|
169
162
|
typeof CreateCustomerLocaleResponse
|
|
170
163
|
>;
|
|
171
164
|
|
|
172
|
-
export type CreateCustomerMetadataResponse = {};
|
|
173
|
-
|
|
174
165
|
/**
|
|
175
166
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
176
167
|
*
|
|
177
168
|
* @remarks
|
|
178
169
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
179
170
|
*/
|
|
180
|
-
export type
|
|
181
|
-
| CreateCustomerMetadataResponse
|
|
171
|
+
export type CreateCustomerMetadataResponse =
|
|
182
172
|
| string
|
|
173
|
+
| { [k: string]: any }
|
|
183
174
|
| Array<string>;
|
|
184
175
|
|
|
185
176
|
/**
|
|
@@ -351,7 +342,7 @@ export type CreateCustomerResponse = {
|
|
|
351
342
|
* @remarks
|
|
352
343
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
353
344
|
*/
|
|
354
|
-
metadata:
|
|
345
|
+
metadata: string | { [k: string]: any } | Array<string> | null;
|
|
355
346
|
/**
|
|
356
347
|
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
357
348
|
*/
|
|
@@ -388,17 +379,19 @@ export const CreateCustomerMetadataRequest$inboundSchema: z.ZodType<
|
|
|
388
379
|
CreateCustomerMetadataRequest,
|
|
389
380
|
z.ZodTypeDef,
|
|
390
381
|
unknown
|
|
391
|
-
> = z.
|
|
382
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
392
383
|
|
|
393
384
|
/** @internal */
|
|
394
|
-
export type CreateCustomerMetadataRequest$Outbound = {
|
|
385
|
+
export type CreateCustomerMetadataRequest$Outbound = string | {
|
|
386
|
+
[k: string]: any;
|
|
387
|
+
} | Array<string>;
|
|
395
388
|
|
|
396
389
|
/** @internal */
|
|
397
390
|
export const CreateCustomerMetadataRequest$outboundSchema: z.ZodType<
|
|
398
391
|
CreateCustomerMetadataRequest$Outbound,
|
|
399
392
|
z.ZodTypeDef,
|
|
400
393
|
CreateCustomerMetadataRequest
|
|
401
|
-
> = z.
|
|
394
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
402
395
|
|
|
403
396
|
/**
|
|
404
397
|
* @internal
|
|
@@ -433,69 +426,6 @@ export function createCustomerMetadataRequestFromJSON(
|
|
|
433
426
|
);
|
|
434
427
|
}
|
|
435
428
|
|
|
436
|
-
/** @internal */
|
|
437
|
-
export const CreateCustomerMetadataRequestUnion$inboundSchema: z.ZodType<
|
|
438
|
-
CreateCustomerMetadataRequestUnion,
|
|
439
|
-
z.ZodTypeDef,
|
|
440
|
-
unknown
|
|
441
|
-
> = z.union([
|
|
442
|
-
z.lazy(() => CreateCustomerMetadataRequest$inboundSchema),
|
|
443
|
-
z.string(),
|
|
444
|
-
z.array(z.string()),
|
|
445
|
-
]);
|
|
446
|
-
|
|
447
|
-
/** @internal */
|
|
448
|
-
export type CreateCustomerMetadataRequestUnion$Outbound =
|
|
449
|
-
| CreateCustomerMetadataRequest$Outbound
|
|
450
|
-
| string
|
|
451
|
-
| Array<string>;
|
|
452
|
-
|
|
453
|
-
/** @internal */
|
|
454
|
-
export const CreateCustomerMetadataRequestUnion$outboundSchema: z.ZodType<
|
|
455
|
-
CreateCustomerMetadataRequestUnion$Outbound,
|
|
456
|
-
z.ZodTypeDef,
|
|
457
|
-
CreateCustomerMetadataRequestUnion
|
|
458
|
-
> = z.union([
|
|
459
|
-
z.lazy(() => CreateCustomerMetadataRequest$outboundSchema),
|
|
460
|
-
z.string(),
|
|
461
|
-
z.array(z.string()),
|
|
462
|
-
]);
|
|
463
|
-
|
|
464
|
-
/**
|
|
465
|
-
* @internal
|
|
466
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
467
|
-
*/
|
|
468
|
-
export namespace CreateCustomerMetadataRequestUnion$ {
|
|
469
|
-
/** @deprecated use `CreateCustomerMetadataRequestUnion$inboundSchema` instead. */
|
|
470
|
-
export const inboundSchema = CreateCustomerMetadataRequestUnion$inboundSchema;
|
|
471
|
-
/** @deprecated use `CreateCustomerMetadataRequestUnion$outboundSchema` instead. */
|
|
472
|
-
export const outboundSchema =
|
|
473
|
-
CreateCustomerMetadataRequestUnion$outboundSchema;
|
|
474
|
-
/** @deprecated use `CreateCustomerMetadataRequestUnion$Outbound` instead. */
|
|
475
|
-
export type Outbound = CreateCustomerMetadataRequestUnion$Outbound;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
export function createCustomerMetadataRequestUnionToJSON(
|
|
479
|
-
createCustomerMetadataRequestUnion: CreateCustomerMetadataRequestUnion,
|
|
480
|
-
): string {
|
|
481
|
-
return JSON.stringify(
|
|
482
|
-
CreateCustomerMetadataRequestUnion$outboundSchema.parse(
|
|
483
|
-
createCustomerMetadataRequestUnion,
|
|
484
|
-
),
|
|
485
|
-
);
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
export function createCustomerMetadataRequestUnionFromJSON(
|
|
489
|
-
jsonString: string,
|
|
490
|
-
): SafeParseResult<CreateCustomerMetadataRequestUnion, SDKValidationError> {
|
|
491
|
-
return safeParse(
|
|
492
|
-
jsonString,
|
|
493
|
-
(x) =>
|
|
494
|
-
CreateCustomerMetadataRequestUnion$inboundSchema.parse(JSON.parse(x)),
|
|
495
|
-
`Failed to parse 'CreateCustomerMetadataRequestUnion' from JSON`,
|
|
496
|
-
);
|
|
497
|
-
}
|
|
498
|
-
|
|
499
429
|
/** @internal */
|
|
500
430
|
export const CreateCustomerRequest$inboundSchema: z.ZodType<
|
|
501
431
|
CreateCustomerRequest,
|
|
@@ -506,11 +436,7 @@ export const CreateCustomerRequest$inboundSchema: z.ZodType<
|
|
|
506
436
|
email: z.nullable(z.string()).optional(),
|
|
507
437
|
locale: z.nullable(CreateCustomerLocaleRequest$inboundSchema).optional(),
|
|
508
438
|
metadata: z.nullable(
|
|
509
|
-
z.union([
|
|
510
|
-
z.lazy(() => CreateCustomerMetadataRequest$inboundSchema),
|
|
511
|
-
z.string(),
|
|
512
|
-
z.array(z.string()),
|
|
513
|
-
]),
|
|
439
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
514
440
|
).optional(),
|
|
515
441
|
testmode: z.nullable(z.boolean()).optional(),
|
|
516
442
|
});
|
|
@@ -520,12 +446,7 @@ export type CreateCustomerRequest$Outbound = {
|
|
|
520
446
|
name?: string | null | undefined;
|
|
521
447
|
email?: string | null | undefined;
|
|
522
448
|
locale?: string | null | undefined;
|
|
523
|
-
metadata?:
|
|
524
|
-
| CreateCustomerMetadataRequest$Outbound
|
|
525
|
-
| string
|
|
526
|
-
| Array<string>
|
|
527
|
-
| null
|
|
528
|
-
| undefined;
|
|
449
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
529
450
|
testmode?: boolean | null | undefined;
|
|
530
451
|
};
|
|
531
452
|
|
|
@@ -539,11 +460,7 @@ export const CreateCustomerRequest$outboundSchema: z.ZodType<
|
|
|
539
460
|
email: z.nullable(z.string()).optional(),
|
|
540
461
|
locale: z.nullable(CreateCustomerLocaleRequest$outboundSchema).optional(),
|
|
541
462
|
metadata: z.nullable(
|
|
542
|
-
z.union([
|
|
543
|
-
z.lazy(() => CreateCustomerMetadataRequest$outboundSchema),
|
|
544
|
-
z.string(),
|
|
545
|
-
z.array(z.string()),
|
|
546
|
-
]),
|
|
463
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
547
464
|
).optional(),
|
|
548
465
|
testmode: z.nullable(z.boolean()).optional(),
|
|
549
466
|
});
|
|
@@ -748,17 +665,19 @@ export const CreateCustomerMetadataResponse$inboundSchema: z.ZodType<
|
|
|
748
665
|
CreateCustomerMetadataResponse,
|
|
749
666
|
z.ZodTypeDef,
|
|
750
667
|
unknown
|
|
751
|
-
> = z.
|
|
668
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
752
669
|
|
|
753
670
|
/** @internal */
|
|
754
|
-
export type CreateCustomerMetadataResponse$Outbound = {
|
|
671
|
+
export type CreateCustomerMetadataResponse$Outbound = string | {
|
|
672
|
+
[k: string]: any;
|
|
673
|
+
} | Array<string>;
|
|
755
674
|
|
|
756
675
|
/** @internal */
|
|
757
676
|
export const CreateCustomerMetadataResponse$outboundSchema: z.ZodType<
|
|
758
677
|
CreateCustomerMetadataResponse$Outbound,
|
|
759
678
|
z.ZodTypeDef,
|
|
760
679
|
CreateCustomerMetadataResponse
|
|
761
|
-
> = z.
|
|
680
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
762
681
|
|
|
763
682
|
/**
|
|
764
683
|
* @internal
|
|
@@ -793,70 +712,6 @@ export function createCustomerMetadataResponseFromJSON(
|
|
|
793
712
|
);
|
|
794
713
|
}
|
|
795
714
|
|
|
796
|
-
/** @internal */
|
|
797
|
-
export const CreateCustomerMetadataResponseUnion$inboundSchema: z.ZodType<
|
|
798
|
-
CreateCustomerMetadataResponseUnion,
|
|
799
|
-
z.ZodTypeDef,
|
|
800
|
-
unknown
|
|
801
|
-
> = z.union([
|
|
802
|
-
z.lazy(() => CreateCustomerMetadataResponse$inboundSchema),
|
|
803
|
-
z.string(),
|
|
804
|
-
z.array(z.string()),
|
|
805
|
-
]);
|
|
806
|
-
|
|
807
|
-
/** @internal */
|
|
808
|
-
export type CreateCustomerMetadataResponseUnion$Outbound =
|
|
809
|
-
| CreateCustomerMetadataResponse$Outbound
|
|
810
|
-
| string
|
|
811
|
-
| Array<string>;
|
|
812
|
-
|
|
813
|
-
/** @internal */
|
|
814
|
-
export const CreateCustomerMetadataResponseUnion$outboundSchema: z.ZodType<
|
|
815
|
-
CreateCustomerMetadataResponseUnion$Outbound,
|
|
816
|
-
z.ZodTypeDef,
|
|
817
|
-
CreateCustomerMetadataResponseUnion
|
|
818
|
-
> = z.union([
|
|
819
|
-
z.lazy(() => CreateCustomerMetadataResponse$outboundSchema),
|
|
820
|
-
z.string(),
|
|
821
|
-
z.array(z.string()),
|
|
822
|
-
]);
|
|
823
|
-
|
|
824
|
-
/**
|
|
825
|
-
* @internal
|
|
826
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
827
|
-
*/
|
|
828
|
-
export namespace CreateCustomerMetadataResponseUnion$ {
|
|
829
|
-
/** @deprecated use `CreateCustomerMetadataResponseUnion$inboundSchema` instead. */
|
|
830
|
-
export const inboundSchema =
|
|
831
|
-
CreateCustomerMetadataResponseUnion$inboundSchema;
|
|
832
|
-
/** @deprecated use `CreateCustomerMetadataResponseUnion$outboundSchema` instead. */
|
|
833
|
-
export const outboundSchema =
|
|
834
|
-
CreateCustomerMetadataResponseUnion$outboundSchema;
|
|
835
|
-
/** @deprecated use `CreateCustomerMetadataResponseUnion$Outbound` instead. */
|
|
836
|
-
export type Outbound = CreateCustomerMetadataResponseUnion$Outbound;
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
export function createCustomerMetadataResponseUnionToJSON(
|
|
840
|
-
createCustomerMetadataResponseUnion: CreateCustomerMetadataResponseUnion,
|
|
841
|
-
): string {
|
|
842
|
-
return JSON.stringify(
|
|
843
|
-
CreateCustomerMetadataResponseUnion$outboundSchema.parse(
|
|
844
|
-
createCustomerMetadataResponseUnion,
|
|
845
|
-
),
|
|
846
|
-
);
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
export function createCustomerMetadataResponseUnionFromJSON(
|
|
850
|
-
jsonString: string,
|
|
851
|
-
): SafeParseResult<CreateCustomerMetadataResponseUnion, SDKValidationError> {
|
|
852
|
-
return safeParse(
|
|
853
|
-
jsonString,
|
|
854
|
-
(x) =>
|
|
855
|
-
CreateCustomerMetadataResponseUnion$inboundSchema.parse(JSON.parse(x)),
|
|
856
|
-
`Failed to parse 'CreateCustomerMetadataResponseUnion' from JSON`,
|
|
857
|
-
);
|
|
858
|
-
}
|
|
859
|
-
|
|
860
715
|
/** @internal */
|
|
861
716
|
export const CreateCustomerSelf$inboundSchema: z.ZodType<
|
|
862
717
|
CreateCustomerSelf,
|
|
@@ -1293,11 +1148,7 @@ export const CreateCustomerResponse$inboundSchema: z.ZodType<
|
|
|
1293
1148
|
email: z.nullable(z.string()),
|
|
1294
1149
|
locale: z.nullable(CreateCustomerLocaleResponse$inboundSchema),
|
|
1295
1150
|
metadata: z.nullable(
|
|
1296
|
-
z.union([
|
|
1297
|
-
z.lazy(() => CreateCustomerMetadataResponse$inboundSchema),
|
|
1298
|
-
z.string(),
|
|
1299
|
-
z.array(z.string()),
|
|
1300
|
-
]),
|
|
1151
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1301
1152
|
),
|
|
1302
1153
|
createdAt: z.string(),
|
|
1303
1154
|
_links: z.lazy(() => CreateCustomerLinks$inboundSchema),
|
|
@@ -1315,11 +1166,7 @@ export type CreateCustomerResponse$Outbound = {
|
|
|
1315
1166
|
name: string | null;
|
|
1316
1167
|
email: string | null;
|
|
1317
1168
|
locale: string | null;
|
|
1318
|
-
metadata:
|
|
1319
|
-
| CreateCustomerMetadataResponse$Outbound
|
|
1320
|
-
| string
|
|
1321
|
-
| Array<string>
|
|
1322
|
-
| null;
|
|
1169
|
+
metadata: string | { [k: string]: any } | Array<string> | null;
|
|
1323
1170
|
createdAt: string;
|
|
1324
1171
|
_links: CreateCustomerLinks$Outbound;
|
|
1325
1172
|
};
|
|
@@ -1337,11 +1184,7 @@ export const CreateCustomerResponse$outboundSchema: z.ZodType<
|
|
|
1337
1184
|
email: z.nullable(z.string()),
|
|
1338
1185
|
locale: z.nullable(CreateCustomerLocaleResponse$outboundSchema),
|
|
1339
1186
|
metadata: z.nullable(
|
|
1340
|
-
z.union([
|
|
1341
|
-
z.lazy(() => CreateCustomerMetadataResponse$outboundSchema),
|
|
1342
|
-
z.string(),
|
|
1343
|
-
z.array(z.string()),
|
|
1344
|
-
]),
|
|
1187
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1345
1188
|
),
|
|
1346
1189
|
createdAt: z.string(),
|
|
1347
1190
|
links: z.lazy(() => CreateCustomerLinks$outboundSchema),
|