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
|
@@ -26,17 +26,15 @@ export type CreateRefundAmountRequest = {
|
|
|
26
26
|
value: string;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
export type CreateRefundMetadataRequest = {};
|
|
30
|
-
|
|
31
29
|
/**
|
|
32
30
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
33
31
|
*
|
|
34
32
|
* @remarks
|
|
35
33
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
36
34
|
*/
|
|
37
|
-
export type
|
|
38
|
-
| CreateRefundMetadataRequest
|
|
35
|
+
export type CreateRefundMetadataRequest =
|
|
39
36
|
| string
|
|
37
|
+
| { [k: string]: any }
|
|
40
38
|
| Array<string>;
|
|
41
39
|
|
|
42
40
|
/**
|
|
@@ -134,12 +132,7 @@ export type CreateRefundRequestBody = {
|
|
|
134
132
|
* @remarks
|
|
135
133
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
136
134
|
*/
|
|
137
|
-
metadata?:
|
|
138
|
-
| CreateRefundMetadataRequest
|
|
139
|
-
| string
|
|
140
|
-
| Array<string>
|
|
141
|
-
| null
|
|
142
|
-
| undefined;
|
|
135
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
143
136
|
externalReference?: ExternalReferenceRequest | undefined;
|
|
144
137
|
/**
|
|
145
138
|
* *This feature is only available to marketplace operators.*
|
|
@@ -292,17 +285,15 @@ export type CreateRefundSettlementAmount = {
|
|
|
292
285
|
value: string;
|
|
293
286
|
};
|
|
294
287
|
|
|
295
|
-
export type CreateRefundMetadataResponse = {};
|
|
296
|
-
|
|
297
288
|
/**
|
|
298
289
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
299
290
|
*
|
|
300
291
|
* @remarks
|
|
301
292
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
302
293
|
*/
|
|
303
|
-
export type
|
|
304
|
-
| CreateRefundMetadataResponse
|
|
294
|
+
export type CreateRefundMetadataResponse =
|
|
305
295
|
| string
|
|
296
|
+
| { [k: string]: any }
|
|
306
297
|
| Array<string>;
|
|
307
298
|
|
|
308
299
|
/**
|
|
@@ -521,12 +512,7 @@ export type CreateRefundResponse = {
|
|
|
521
512
|
* @remarks
|
|
522
513
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
523
514
|
*/
|
|
524
|
-
metadata?:
|
|
525
|
-
| CreateRefundMetadataResponse
|
|
526
|
-
| string
|
|
527
|
-
| Array<string>
|
|
528
|
-
| null
|
|
529
|
-
| undefined;
|
|
515
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
530
516
|
/**
|
|
531
517
|
* The unique identifier of the payment this refund was created for.
|
|
532
518
|
*
|
|
@@ -631,17 +617,20 @@ export const CreateRefundMetadataRequest$inboundSchema: z.ZodType<
|
|
|
631
617
|
CreateRefundMetadataRequest,
|
|
632
618
|
z.ZodTypeDef,
|
|
633
619
|
unknown
|
|
634
|
-
> = z.
|
|
620
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
635
621
|
|
|
636
622
|
/** @internal */
|
|
637
|
-
export type CreateRefundMetadataRequest$Outbound =
|
|
623
|
+
export type CreateRefundMetadataRequest$Outbound =
|
|
624
|
+
| string
|
|
625
|
+
| { [k: string]: any }
|
|
626
|
+
| Array<string>;
|
|
638
627
|
|
|
639
628
|
/** @internal */
|
|
640
629
|
export const CreateRefundMetadataRequest$outboundSchema: z.ZodType<
|
|
641
630
|
CreateRefundMetadataRequest$Outbound,
|
|
642
631
|
z.ZodTypeDef,
|
|
643
632
|
CreateRefundMetadataRequest
|
|
644
|
-
> = z.
|
|
633
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
645
634
|
|
|
646
635
|
/**
|
|
647
636
|
* @internal
|
|
@@ -676,67 +665,6 @@ export function createRefundMetadataRequestFromJSON(
|
|
|
676
665
|
);
|
|
677
666
|
}
|
|
678
667
|
|
|
679
|
-
/** @internal */
|
|
680
|
-
export const CreateRefundMetadataRequestUnion$inboundSchema: z.ZodType<
|
|
681
|
-
CreateRefundMetadataRequestUnion,
|
|
682
|
-
z.ZodTypeDef,
|
|
683
|
-
unknown
|
|
684
|
-
> = z.union([
|
|
685
|
-
z.lazy(() => CreateRefundMetadataRequest$inboundSchema),
|
|
686
|
-
z.string(),
|
|
687
|
-
z.array(z.string()),
|
|
688
|
-
]);
|
|
689
|
-
|
|
690
|
-
/** @internal */
|
|
691
|
-
export type CreateRefundMetadataRequestUnion$Outbound =
|
|
692
|
-
| CreateRefundMetadataRequest$Outbound
|
|
693
|
-
| string
|
|
694
|
-
| Array<string>;
|
|
695
|
-
|
|
696
|
-
/** @internal */
|
|
697
|
-
export const CreateRefundMetadataRequestUnion$outboundSchema: z.ZodType<
|
|
698
|
-
CreateRefundMetadataRequestUnion$Outbound,
|
|
699
|
-
z.ZodTypeDef,
|
|
700
|
-
CreateRefundMetadataRequestUnion
|
|
701
|
-
> = z.union([
|
|
702
|
-
z.lazy(() => CreateRefundMetadataRequest$outboundSchema),
|
|
703
|
-
z.string(),
|
|
704
|
-
z.array(z.string()),
|
|
705
|
-
]);
|
|
706
|
-
|
|
707
|
-
/**
|
|
708
|
-
* @internal
|
|
709
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
710
|
-
*/
|
|
711
|
-
export namespace CreateRefundMetadataRequestUnion$ {
|
|
712
|
-
/** @deprecated use `CreateRefundMetadataRequestUnion$inboundSchema` instead. */
|
|
713
|
-
export const inboundSchema = CreateRefundMetadataRequestUnion$inboundSchema;
|
|
714
|
-
/** @deprecated use `CreateRefundMetadataRequestUnion$outboundSchema` instead. */
|
|
715
|
-
export const outboundSchema = CreateRefundMetadataRequestUnion$outboundSchema;
|
|
716
|
-
/** @deprecated use `CreateRefundMetadataRequestUnion$Outbound` instead. */
|
|
717
|
-
export type Outbound = CreateRefundMetadataRequestUnion$Outbound;
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
export function createRefundMetadataRequestUnionToJSON(
|
|
721
|
-
createRefundMetadataRequestUnion: CreateRefundMetadataRequestUnion,
|
|
722
|
-
): string {
|
|
723
|
-
return JSON.stringify(
|
|
724
|
-
CreateRefundMetadataRequestUnion$outboundSchema.parse(
|
|
725
|
-
createRefundMetadataRequestUnion,
|
|
726
|
-
),
|
|
727
|
-
);
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
export function createRefundMetadataRequestUnionFromJSON(
|
|
731
|
-
jsonString: string,
|
|
732
|
-
): SafeParseResult<CreateRefundMetadataRequestUnion, SDKValidationError> {
|
|
733
|
-
return safeParse(
|
|
734
|
-
jsonString,
|
|
735
|
-
(x) => CreateRefundMetadataRequestUnion$inboundSchema.parse(JSON.parse(x)),
|
|
736
|
-
`Failed to parse 'CreateRefundMetadataRequestUnion' from JSON`,
|
|
737
|
-
);
|
|
738
|
-
}
|
|
739
|
-
|
|
740
668
|
/** @internal */
|
|
741
669
|
export const TypeAcquirerReferenceRequest$inboundSchema: z.ZodNativeEnum<
|
|
742
670
|
typeof TypeAcquirerReferenceRequest
|
|
@@ -1018,11 +946,7 @@ export const CreateRefundRequestBody$inboundSchema: z.ZodType<
|
|
|
1018
946
|
description: z.string().optional(),
|
|
1019
947
|
amount: z.lazy(() => CreateRefundAmountRequest$inboundSchema),
|
|
1020
948
|
metadata: z.nullable(
|
|
1021
|
-
z.union([
|
|
1022
|
-
z.lazy(() => CreateRefundMetadataRequest$inboundSchema),
|
|
1023
|
-
z.string(),
|
|
1024
|
-
z.array(z.string()),
|
|
1025
|
-
]),
|
|
949
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1026
950
|
).optional(),
|
|
1027
951
|
externalReference: z.lazy(() => ExternalReferenceRequest$inboundSchema)
|
|
1028
952
|
.optional(),
|
|
@@ -1037,12 +961,7 @@ export const CreateRefundRequestBody$inboundSchema: z.ZodType<
|
|
|
1037
961
|
export type CreateRefundRequestBody$Outbound = {
|
|
1038
962
|
description?: string | undefined;
|
|
1039
963
|
amount: CreateRefundAmountRequest$Outbound;
|
|
1040
|
-
metadata?:
|
|
1041
|
-
| CreateRefundMetadataRequest$Outbound
|
|
1042
|
-
| string
|
|
1043
|
-
| Array<string>
|
|
1044
|
-
| null
|
|
1045
|
-
| undefined;
|
|
964
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
1046
965
|
externalReference?: ExternalReferenceRequest$Outbound | undefined;
|
|
1047
966
|
reverseRouting?: boolean | null | undefined;
|
|
1048
967
|
routingReversals?: Array<RoutingReversalRequest$Outbound> | null | undefined;
|
|
@@ -1058,11 +977,7 @@ export const CreateRefundRequestBody$outboundSchema: z.ZodType<
|
|
|
1058
977
|
description: z.string().optional(),
|
|
1059
978
|
amount: z.lazy(() => CreateRefundAmountRequest$outboundSchema),
|
|
1060
979
|
metadata: z.nullable(
|
|
1061
|
-
z.union([
|
|
1062
|
-
z.lazy(() => CreateRefundMetadataRequest$outboundSchema),
|
|
1063
|
-
z.string(),
|
|
1064
|
-
z.array(z.string()),
|
|
1065
|
-
]),
|
|
980
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1066
981
|
).optional(),
|
|
1067
982
|
externalReference: z.lazy(() => ExternalReferenceRequest$outboundSchema)
|
|
1068
983
|
.optional(),
|
|
@@ -1665,17 +1580,19 @@ export const CreateRefundMetadataResponse$inboundSchema: z.ZodType<
|
|
|
1665
1580
|
CreateRefundMetadataResponse,
|
|
1666
1581
|
z.ZodTypeDef,
|
|
1667
1582
|
unknown
|
|
1668
|
-
> = z.
|
|
1583
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
1669
1584
|
|
|
1670
1585
|
/** @internal */
|
|
1671
|
-
export type CreateRefundMetadataResponse$Outbound = {
|
|
1586
|
+
export type CreateRefundMetadataResponse$Outbound = string | {
|
|
1587
|
+
[k: string]: any;
|
|
1588
|
+
} | Array<string>;
|
|
1672
1589
|
|
|
1673
1590
|
/** @internal */
|
|
1674
1591
|
export const CreateRefundMetadataResponse$outboundSchema: z.ZodType<
|
|
1675
1592
|
CreateRefundMetadataResponse$Outbound,
|
|
1676
1593
|
z.ZodTypeDef,
|
|
1677
1594
|
CreateRefundMetadataResponse
|
|
1678
|
-
> = z.
|
|
1595
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
1679
1596
|
|
|
1680
1597
|
/**
|
|
1681
1598
|
* @internal
|
|
@@ -1710,68 +1627,6 @@ export function createRefundMetadataResponseFromJSON(
|
|
|
1710
1627
|
);
|
|
1711
1628
|
}
|
|
1712
1629
|
|
|
1713
|
-
/** @internal */
|
|
1714
|
-
export const CreateRefundMetadataResponseUnion$inboundSchema: z.ZodType<
|
|
1715
|
-
CreateRefundMetadataResponseUnion,
|
|
1716
|
-
z.ZodTypeDef,
|
|
1717
|
-
unknown
|
|
1718
|
-
> = z.union([
|
|
1719
|
-
z.lazy(() => CreateRefundMetadataResponse$inboundSchema),
|
|
1720
|
-
z.string(),
|
|
1721
|
-
z.array(z.string()),
|
|
1722
|
-
]);
|
|
1723
|
-
|
|
1724
|
-
/** @internal */
|
|
1725
|
-
export type CreateRefundMetadataResponseUnion$Outbound =
|
|
1726
|
-
| CreateRefundMetadataResponse$Outbound
|
|
1727
|
-
| string
|
|
1728
|
-
| Array<string>;
|
|
1729
|
-
|
|
1730
|
-
/** @internal */
|
|
1731
|
-
export const CreateRefundMetadataResponseUnion$outboundSchema: z.ZodType<
|
|
1732
|
-
CreateRefundMetadataResponseUnion$Outbound,
|
|
1733
|
-
z.ZodTypeDef,
|
|
1734
|
-
CreateRefundMetadataResponseUnion
|
|
1735
|
-
> = z.union([
|
|
1736
|
-
z.lazy(() => CreateRefundMetadataResponse$outboundSchema),
|
|
1737
|
-
z.string(),
|
|
1738
|
-
z.array(z.string()),
|
|
1739
|
-
]);
|
|
1740
|
-
|
|
1741
|
-
/**
|
|
1742
|
-
* @internal
|
|
1743
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1744
|
-
*/
|
|
1745
|
-
export namespace CreateRefundMetadataResponseUnion$ {
|
|
1746
|
-
/** @deprecated use `CreateRefundMetadataResponseUnion$inboundSchema` instead. */
|
|
1747
|
-
export const inboundSchema = CreateRefundMetadataResponseUnion$inboundSchema;
|
|
1748
|
-
/** @deprecated use `CreateRefundMetadataResponseUnion$outboundSchema` instead. */
|
|
1749
|
-
export const outboundSchema =
|
|
1750
|
-
CreateRefundMetadataResponseUnion$outboundSchema;
|
|
1751
|
-
/** @deprecated use `CreateRefundMetadataResponseUnion$Outbound` instead. */
|
|
1752
|
-
export type Outbound = CreateRefundMetadataResponseUnion$Outbound;
|
|
1753
|
-
}
|
|
1754
|
-
|
|
1755
|
-
export function createRefundMetadataResponseUnionToJSON(
|
|
1756
|
-
createRefundMetadataResponseUnion: CreateRefundMetadataResponseUnion,
|
|
1757
|
-
): string {
|
|
1758
|
-
return JSON.stringify(
|
|
1759
|
-
CreateRefundMetadataResponseUnion$outboundSchema.parse(
|
|
1760
|
-
createRefundMetadataResponseUnion,
|
|
1761
|
-
),
|
|
1762
|
-
);
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1765
|
-
export function createRefundMetadataResponseUnionFromJSON(
|
|
1766
|
-
jsonString: string,
|
|
1767
|
-
): SafeParseResult<CreateRefundMetadataResponseUnion, SDKValidationError> {
|
|
1768
|
-
return safeParse(
|
|
1769
|
-
jsonString,
|
|
1770
|
-
(x) => CreateRefundMetadataResponseUnion$inboundSchema.parse(JSON.parse(x)),
|
|
1771
|
-
`Failed to parse 'CreateRefundMetadataResponseUnion' from JSON`,
|
|
1772
|
-
);
|
|
1773
|
-
}
|
|
1774
|
-
|
|
1775
1630
|
/** @internal */
|
|
1776
1631
|
export const CreateRefundStatus$inboundSchema: z.ZodNativeEnum<
|
|
1777
1632
|
typeof CreateRefundStatus
|
|
@@ -2371,11 +2226,7 @@ export const CreateRefundResponse$inboundSchema: z.ZodType<
|
|
|
2371
2226
|
z.lazy(() => CreateRefundSettlementAmount$inboundSchema),
|
|
2372
2227
|
).optional(),
|
|
2373
2228
|
metadata: z.nullable(
|
|
2374
|
-
z.union([
|
|
2375
|
-
z.lazy(() => CreateRefundMetadataResponse$inboundSchema),
|
|
2376
|
-
z.string(),
|
|
2377
|
-
z.array(z.string()),
|
|
2378
|
-
]),
|
|
2229
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
2379
2230
|
).optional(),
|
|
2380
2231
|
paymentId: z.string().optional(),
|
|
2381
2232
|
settlementId: z.nullable(z.string()).optional(),
|
|
@@ -2402,12 +2253,7 @@ export type CreateRefundResponse$Outbound = {
|
|
|
2402
2253
|
description?: string | undefined;
|
|
2403
2254
|
amount?: CreateRefundAmountResponse$Outbound | undefined;
|
|
2404
2255
|
settlementAmount?: CreateRefundSettlementAmount$Outbound | null | undefined;
|
|
2405
|
-
metadata?:
|
|
2406
|
-
| CreateRefundMetadataResponse$Outbound
|
|
2407
|
-
| string
|
|
2408
|
-
| Array<string>
|
|
2409
|
-
| null
|
|
2410
|
-
| undefined;
|
|
2256
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
2411
2257
|
paymentId?: string | undefined;
|
|
2412
2258
|
settlementId?: string | null | undefined;
|
|
2413
2259
|
status?: string | undefined;
|
|
@@ -2437,11 +2283,7 @@ export const CreateRefundResponse$outboundSchema: z.ZodType<
|
|
|
2437
2283
|
z.lazy(() => CreateRefundSettlementAmount$outboundSchema),
|
|
2438
2284
|
).optional(),
|
|
2439
2285
|
metadata: z.nullable(
|
|
2440
|
-
z.union([
|
|
2441
|
-
z.lazy(() => CreateRefundMetadataResponse$outboundSchema),
|
|
2442
|
-
z.string(),
|
|
2443
|
-
z.array(z.string()),
|
|
2444
|
-
]),
|
|
2286
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
2445
2287
|
).optional(),
|
|
2446
2288
|
paymentId: z.string().optional(),
|
|
2447
2289
|
settlementId: z.nullable(z.string()).optional(),
|
|
@@ -97,8 +97,6 @@ export type CreateSubscriptionApplicationFeeRequest = {
|
|
|
97
97
|
description: string;
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
-
export type CreateSubscriptionMetadataRequest = {};
|
|
101
|
-
|
|
102
100
|
/**
|
|
103
101
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity.
|
|
104
102
|
*
|
|
@@ -108,9 +106,9 @@ export type CreateSubscriptionMetadataRequest = {};
|
|
|
108
106
|
*
|
|
109
107
|
* Any metadata added to the subscription will be automatically forwarded to the payments generated for it.
|
|
110
108
|
*/
|
|
111
|
-
export type
|
|
112
|
-
| CreateSubscriptionMetadataRequest
|
|
109
|
+
export type CreateSubscriptionMetadataRequest =
|
|
113
110
|
| string
|
|
111
|
+
| { [k: string]: any }
|
|
114
112
|
| Array<string>;
|
|
115
113
|
|
|
116
114
|
export type CreateSubscriptionRequestBody = {
|
|
@@ -176,12 +174,7 @@ export type CreateSubscriptionRequestBody = {
|
|
|
176
174
|
*
|
|
177
175
|
* Any metadata added to the subscription will be automatically forwarded to the payments generated for it.
|
|
178
176
|
*/
|
|
179
|
-
metadata?:
|
|
180
|
-
| CreateSubscriptionMetadataRequest
|
|
181
|
-
| string
|
|
182
|
-
| Array<string>
|
|
183
|
-
| null
|
|
184
|
-
| undefined;
|
|
177
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
185
178
|
/**
|
|
186
179
|
* We will call this URL for any payment status changes of payments resulting from this subscription.
|
|
187
180
|
*
|
|
@@ -353,8 +346,6 @@ export type CreateSubscriptionApplicationFeeResponse = {
|
|
|
353
346
|
description: string;
|
|
354
347
|
};
|
|
355
348
|
|
|
356
|
-
export type CreateSubscriptionMetadataResponse = {};
|
|
357
|
-
|
|
358
349
|
/**
|
|
359
350
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity.
|
|
360
351
|
*
|
|
@@ -364,9 +355,9 @@ export type CreateSubscriptionMetadataResponse = {};
|
|
|
364
355
|
*
|
|
365
356
|
* Any metadata added to the subscription will be automatically forwarded to the payments generated for it.
|
|
366
357
|
*/
|
|
367
|
-
export type
|
|
368
|
-
| CreateSubscriptionMetadataResponse
|
|
358
|
+
export type CreateSubscriptionMetadataResponse =
|
|
369
359
|
| string
|
|
360
|
+
| { [k: string]: any }
|
|
370
361
|
| Array<string>;
|
|
371
362
|
|
|
372
363
|
/**
|
|
@@ -588,7 +579,7 @@ export type CreateSubscriptionResponse = {
|
|
|
588
579
|
*
|
|
589
580
|
* Any metadata added to the subscription will be automatically forwarded to the payments generated for it.
|
|
590
581
|
*/
|
|
591
|
-
metadata:
|
|
582
|
+
metadata: string | { [k: string]: any } | Array<string> | null;
|
|
592
583
|
/**
|
|
593
584
|
* We will call this URL for any payment status changes of payments resulting from this subscription.
|
|
594
585
|
*
|
|
@@ -872,17 +863,19 @@ export const CreateSubscriptionMetadataRequest$inboundSchema: z.ZodType<
|
|
|
872
863
|
CreateSubscriptionMetadataRequest,
|
|
873
864
|
z.ZodTypeDef,
|
|
874
865
|
unknown
|
|
875
|
-
> = z.
|
|
866
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
876
867
|
|
|
877
868
|
/** @internal */
|
|
878
|
-
export type CreateSubscriptionMetadataRequest$Outbound = {
|
|
869
|
+
export type CreateSubscriptionMetadataRequest$Outbound = string | {
|
|
870
|
+
[k: string]: any;
|
|
871
|
+
} | Array<string>;
|
|
879
872
|
|
|
880
873
|
/** @internal */
|
|
881
874
|
export const CreateSubscriptionMetadataRequest$outboundSchema: z.ZodType<
|
|
882
875
|
CreateSubscriptionMetadataRequest$Outbound,
|
|
883
876
|
z.ZodTypeDef,
|
|
884
877
|
CreateSubscriptionMetadataRequest
|
|
885
|
-
> = z.
|
|
878
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
886
879
|
|
|
887
880
|
/**
|
|
888
881
|
* @internal
|
|
@@ -918,71 +911,6 @@ export function createSubscriptionMetadataRequestFromJSON(
|
|
|
918
911
|
);
|
|
919
912
|
}
|
|
920
913
|
|
|
921
|
-
/** @internal */
|
|
922
|
-
export const CreateSubscriptionMetadataRequestUnion$inboundSchema: z.ZodType<
|
|
923
|
-
CreateSubscriptionMetadataRequestUnion,
|
|
924
|
-
z.ZodTypeDef,
|
|
925
|
-
unknown
|
|
926
|
-
> = z.union([
|
|
927
|
-
z.lazy(() => CreateSubscriptionMetadataRequest$inboundSchema),
|
|
928
|
-
z.string(),
|
|
929
|
-
z.array(z.string()),
|
|
930
|
-
]);
|
|
931
|
-
|
|
932
|
-
/** @internal */
|
|
933
|
-
export type CreateSubscriptionMetadataRequestUnion$Outbound =
|
|
934
|
-
| CreateSubscriptionMetadataRequest$Outbound
|
|
935
|
-
| string
|
|
936
|
-
| Array<string>;
|
|
937
|
-
|
|
938
|
-
/** @internal */
|
|
939
|
-
export const CreateSubscriptionMetadataRequestUnion$outboundSchema: z.ZodType<
|
|
940
|
-
CreateSubscriptionMetadataRequestUnion$Outbound,
|
|
941
|
-
z.ZodTypeDef,
|
|
942
|
-
CreateSubscriptionMetadataRequestUnion
|
|
943
|
-
> = z.union([
|
|
944
|
-
z.lazy(() => CreateSubscriptionMetadataRequest$outboundSchema),
|
|
945
|
-
z.string(),
|
|
946
|
-
z.array(z.string()),
|
|
947
|
-
]);
|
|
948
|
-
|
|
949
|
-
/**
|
|
950
|
-
* @internal
|
|
951
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
952
|
-
*/
|
|
953
|
-
export namespace CreateSubscriptionMetadataRequestUnion$ {
|
|
954
|
-
/** @deprecated use `CreateSubscriptionMetadataRequestUnion$inboundSchema` instead. */
|
|
955
|
-
export const inboundSchema =
|
|
956
|
-
CreateSubscriptionMetadataRequestUnion$inboundSchema;
|
|
957
|
-
/** @deprecated use `CreateSubscriptionMetadataRequestUnion$outboundSchema` instead. */
|
|
958
|
-
export const outboundSchema =
|
|
959
|
-
CreateSubscriptionMetadataRequestUnion$outboundSchema;
|
|
960
|
-
/** @deprecated use `CreateSubscriptionMetadataRequestUnion$Outbound` instead. */
|
|
961
|
-
export type Outbound = CreateSubscriptionMetadataRequestUnion$Outbound;
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
export function createSubscriptionMetadataRequestUnionToJSON(
|
|
965
|
-
createSubscriptionMetadataRequestUnion:
|
|
966
|
-
CreateSubscriptionMetadataRequestUnion,
|
|
967
|
-
): string {
|
|
968
|
-
return JSON.stringify(
|
|
969
|
-
CreateSubscriptionMetadataRequestUnion$outboundSchema.parse(
|
|
970
|
-
createSubscriptionMetadataRequestUnion,
|
|
971
|
-
),
|
|
972
|
-
);
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
export function createSubscriptionMetadataRequestUnionFromJSON(
|
|
976
|
-
jsonString: string,
|
|
977
|
-
): SafeParseResult<CreateSubscriptionMetadataRequestUnion, SDKValidationError> {
|
|
978
|
-
return safeParse(
|
|
979
|
-
jsonString,
|
|
980
|
-
(x) =>
|
|
981
|
-
CreateSubscriptionMetadataRequestUnion$inboundSchema.parse(JSON.parse(x)),
|
|
982
|
-
`Failed to parse 'CreateSubscriptionMetadataRequestUnion' from JSON`,
|
|
983
|
-
);
|
|
984
|
-
}
|
|
985
|
-
|
|
986
914
|
/** @internal */
|
|
987
915
|
export const CreateSubscriptionRequestBody$inboundSchema: z.ZodType<
|
|
988
916
|
CreateSubscriptionRequestBody,
|
|
@@ -999,11 +927,7 @@ export const CreateSubscriptionRequestBody$inboundSchema: z.ZodType<
|
|
|
999
927
|
CreateSubscriptionApplicationFeeRequest$inboundSchema
|
|
1000
928
|
).optional(),
|
|
1001
929
|
metadata: z.nullable(
|
|
1002
|
-
z.union([
|
|
1003
|
-
z.lazy(() => CreateSubscriptionMetadataRequest$inboundSchema),
|
|
1004
|
-
z.string(),
|
|
1005
|
-
z.array(z.string()),
|
|
1006
|
-
]),
|
|
930
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1007
931
|
).optional(),
|
|
1008
932
|
webhookUrl: z.string().optional(),
|
|
1009
933
|
mandateId: z.nullable(z.string()).optional(),
|
|
@@ -1019,12 +943,7 @@ export type CreateSubscriptionRequestBody$Outbound = {
|
|
|
1019
943
|
description: string;
|
|
1020
944
|
method?: string | null | undefined;
|
|
1021
945
|
applicationFee?: CreateSubscriptionApplicationFeeRequest$Outbound | undefined;
|
|
1022
|
-
metadata?:
|
|
1023
|
-
| CreateSubscriptionMetadataRequest$Outbound
|
|
1024
|
-
| string
|
|
1025
|
-
| Array<string>
|
|
1026
|
-
| null
|
|
1027
|
-
| undefined;
|
|
946
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
1028
947
|
webhookUrl?: string | undefined;
|
|
1029
948
|
mandateId?: string | null | undefined;
|
|
1030
949
|
testmode?: boolean | null | undefined;
|
|
@@ -1046,11 +965,7 @@ export const CreateSubscriptionRequestBody$outboundSchema: z.ZodType<
|
|
|
1046
965
|
CreateSubscriptionApplicationFeeRequest$outboundSchema
|
|
1047
966
|
).optional(),
|
|
1048
967
|
metadata: z.nullable(
|
|
1049
|
-
z.union([
|
|
1050
|
-
z.lazy(() => CreateSubscriptionMetadataRequest$outboundSchema),
|
|
1051
|
-
z.string(),
|
|
1052
|
-
z.array(z.string()),
|
|
1053
|
-
]),
|
|
968
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1054
969
|
).optional(),
|
|
1055
970
|
webhookUrl: z.string().optional(),
|
|
1056
971
|
mandateId: z.nullable(z.string()).optional(),
|
|
@@ -1577,17 +1492,19 @@ export const CreateSubscriptionMetadataResponse$inboundSchema: z.ZodType<
|
|
|
1577
1492
|
CreateSubscriptionMetadataResponse,
|
|
1578
1493
|
z.ZodTypeDef,
|
|
1579
1494
|
unknown
|
|
1580
|
-
> = z.
|
|
1495
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
1581
1496
|
|
|
1582
1497
|
/** @internal */
|
|
1583
|
-
export type CreateSubscriptionMetadataResponse$Outbound = {
|
|
1498
|
+
export type CreateSubscriptionMetadataResponse$Outbound = string | {
|
|
1499
|
+
[k: string]: any;
|
|
1500
|
+
} | Array<string>;
|
|
1584
1501
|
|
|
1585
1502
|
/** @internal */
|
|
1586
1503
|
export const CreateSubscriptionMetadataResponse$outboundSchema: z.ZodType<
|
|
1587
1504
|
CreateSubscriptionMetadataResponse$Outbound,
|
|
1588
1505
|
z.ZodTypeDef,
|
|
1589
1506
|
CreateSubscriptionMetadataResponse
|
|
1590
|
-
> = z.
|
|
1507
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
1591
1508
|
|
|
1592
1509
|
/**
|
|
1593
1510
|
* @internal
|
|
@@ -1624,76 +1541,6 @@ export function createSubscriptionMetadataResponseFromJSON(
|
|
|
1624
1541
|
);
|
|
1625
1542
|
}
|
|
1626
1543
|
|
|
1627
|
-
/** @internal */
|
|
1628
|
-
export const CreateSubscriptionMetadataResponseUnion$inboundSchema: z.ZodType<
|
|
1629
|
-
CreateSubscriptionMetadataResponseUnion,
|
|
1630
|
-
z.ZodTypeDef,
|
|
1631
|
-
unknown
|
|
1632
|
-
> = z.union([
|
|
1633
|
-
z.lazy(() => CreateSubscriptionMetadataResponse$inboundSchema),
|
|
1634
|
-
z.string(),
|
|
1635
|
-
z.array(z.string()),
|
|
1636
|
-
]);
|
|
1637
|
-
|
|
1638
|
-
/** @internal */
|
|
1639
|
-
export type CreateSubscriptionMetadataResponseUnion$Outbound =
|
|
1640
|
-
| CreateSubscriptionMetadataResponse$Outbound
|
|
1641
|
-
| string
|
|
1642
|
-
| Array<string>;
|
|
1643
|
-
|
|
1644
|
-
/** @internal */
|
|
1645
|
-
export const CreateSubscriptionMetadataResponseUnion$outboundSchema: z.ZodType<
|
|
1646
|
-
CreateSubscriptionMetadataResponseUnion$Outbound,
|
|
1647
|
-
z.ZodTypeDef,
|
|
1648
|
-
CreateSubscriptionMetadataResponseUnion
|
|
1649
|
-
> = z.union([
|
|
1650
|
-
z.lazy(() => CreateSubscriptionMetadataResponse$outboundSchema),
|
|
1651
|
-
z.string(),
|
|
1652
|
-
z.array(z.string()),
|
|
1653
|
-
]);
|
|
1654
|
-
|
|
1655
|
-
/**
|
|
1656
|
-
* @internal
|
|
1657
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1658
|
-
*/
|
|
1659
|
-
export namespace CreateSubscriptionMetadataResponseUnion$ {
|
|
1660
|
-
/** @deprecated use `CreateSubscriptionMetadataResponseUnion$inboundSchema` instead. */
|
|
1661
|
-
export const inboundSchema =
|
|
1662
|
-
CreateSubscriptionMetadataResponseUnion$inboundSchema;
|
|
1663
|
-
/** @deprecated use `CreateSubscriptionMetadataResponseUnion$outboundSchema` instead. */
|
|
1664
|
-
export const outboundSchema =
|
|
1665
|
-
CreateSubscriptionMetadataResponseUnion$outboundSchema;
|
|
1666
|
-
/** @deprecated use `CreateSubscriptionMetadataResponseUnion$Outbound` instead. */
|
|
1667
|
-
export type Outbound = CreateSubscriptionMetadataResponseUnion$Outbound;
|
|
1668
|
-
}
|
|
1669
|
-
|
|
1670
|
-
export function createSubscriptionMetadataResponseUnionToJSON(
|
|
1671
|
-
createSubscriptionMetadataResponseUnion:
|
|
1672
|
-
CreateSubscriptionMetadataResponseUnion,
|
|
1673
|
-
): string {
|
|
1674
|
-
return JSON.stringify(
|
|
1675
|
-
CreateSubscriptionMetadataResponseUnion$outboundSchema.parse(
|
|
1676
|
-
createSubscriptionMetadataResponseUnion,
|
|
1677
|
-
),
|
|
1678
|
-
);
|
|
1679
|
-
}
|
|
1680
|
-
|
|
1681
|
-
export function createSubscriptionMetadataResponseUnionFromJSON(
|
|
1682
|
-
jsonString: string,
|
|
1683
|
-
): SafeParseResult<
|
|
1684
|
-
CreateSubscriptionMetadataResponseUnion,
|
|
1685
|
-
SDKValidationError
|
|
1686
|
-
> {
|
|
1687
|
-
return safeParse(
|
|
1688
|
-
jsonString,
|
|
1689
|
-
(x) =>
|
|
1690
|
-
CreateSubscriptionMetadataResponseUnion$inboundSchema.parse(
|
|
1691
|
-
JSON.parse(x),
|
|
1692
|
-
),
|
|
1693
|
-
`Failed to parse 'CreateSubscriptionMetadataResponseUnion' from JSON`,
|
|
1694
|
-
);
|
|
1695
|
-
}
|
|
1696
|
-
|
|
1697
1544
|
/** @internal */
|
|
1698
1545
|
export const CreateSubscriptionSelf$inboundSchema: z.ZodType<
|
|
1699
1546
|
CreateSubscriptionSelf,
|
|
@@ -2133,11 +1980,7 @@ export const CreateSubscriptionResponse$inboundSchema: z.ZodType<
|
|
|
2133
1980
|
CreateSubscriptionApplicationFeeResponse$inboundSchema
|
|
2134
1981
|
).optional(),
|
|
2135
1982
|
metadata: z.nullable(
|
|
2136
|
-
z.union([
|
|
2137
|
-
z.lazy(() => CreateSubscriptionMetadataResponse$inboundSchema),
|
|
2138
|
-
z.string(),
|
|
2139
|
-
z.array(z.string()),
|
|
2140
|
-
]),
|
|
1983
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
2141
1984
|
),
|
|
2142
1985
|
webhookUrl: z.string(),
|
|
2143
1986
|
customerId: z.string(),
|
|
@@ -2168,11 +2011,7 @@ export type CreateSubscriptionResponse$Outbound = {
|
|
|
2168
2011
|
applicationFee?:
|
|
2169
2012
|
| CreateSubscriptionApplicationFeeResponse$Outbound
|
|
2170
2013
|
| undefined;
|
|
2171
|
-
metadata:
|
|
2172
|
-
| CreateSubscriptionMetadataResponse$Outbound
|
|
2173
|
-
| string
|
|
2174
|
-
| Array<string>
|
|
2175
|
-
| null;
|
|
2014
|
+
metadata: string | { [k: string]: any } | Array<string> | null;
|
|
2176
2015
|
webhookUrl: string;
|
|
2177
2016
|
customerId: string;
|
|
2178
2017
|
mandateId?: string | null | undefined;
|
|
@@ -2203,11 +2042,7 @@ export const CreateSubscriptionResponse$outboundSchema: z.ZodType<
|
|
|
2203
2042
|
CreateSubscriptionApplicationFeeResponse$outboundSchema
|
|
2204
2043
|
).optional(),
|
|
2205
2044
|
metadata: z.nullable(
|
|
2206
|
-
z.union([
|
|
2207
|
-
z.lazy(() => CreateSubscriptionMetadataResponse$outboundSchema),
|
|
2208
|
-
z.string(),
|
|
2209
|
-
z.array(z.string()),
|
|
2210
|
-
]),
|
|
2045
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
2211
2046
|
),
|
|
2212
2047
|
webhookUrl: z.string(),
|
|
2213
2048
|
customerId: z.string(),
|