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
|
@@ -9,17 +9,15 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export type UpdatePaymentMetadataRequest = {};
|
|
13
|
-
|
|
14
12
|
/**
|
|
15
13
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
16
14
|
*
|
|
17
15
|
* @remarks
|
|
18
16
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
19
17
|
*/
|
|
20
|
-
export type
|
|
21
|
-
| UpdatePaymentMetadataRequest
|
|
18
|
+
export type UpdatePaymentMetadataRequest =
|
|
22
19
|
| string
|
|
20
|
+
| { [k: string]: any }
|
|
23
21
|
| Array<string>;
|
|
24
22
|
|
|
25
23
|
/**
|
|
@@ -344,12 +342,7 @@ export type UpdatePaymentRequestBody = {
|
|
|
344
342
|
* @remarks
|
|
345
343
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
346
344
|
*/
|
|
347
|
-
metadata?:
|
|
348
|
-
| UpdatePaymentMetadataRequest
|
|
349
|
-
| string
|
|
350
|
-
| Array<string>
|
|
351
|
-
| null
|
|
352
|
-
| undefined;
|
|
345
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
353
346
|
/**
|
|
354
347
|
* Normally, a payment method screen is shown. However, when using this parameter, you can choose a specific payment
|
|
355
348
|
*
|
|
@@ -1138,17 +1131,15 @@ export type UpdatePaymentMethodResponse = ClosedEnum<
|
|
|
1138
1131
|
typeof UpdatePaymentMethodResponse
|
|
1139
1132
|
>;
|
|
1140
1133
|
|
|
1141
|
-
export type UpdatePaymentMetadataResponse = {};
|
|
1142
|
-
|
|
1143
1134
|
/**
|
|
1144
1135
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
1145
1136
|
*
|
|
1146
1137
|
* @remarks
|
|
1147
1138
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
1148
1139
|
*/
|
|
1149
|
-
export type
|
|
1150
|
-
| UpdatePaymentMetadataResponse
|
|
1140
|
+
export type UpdatePaymentMetadataResponse =
|
|
1151
1141
|
| string
|
|
1142
|
+
| { [k: string]: any }
|
|
1152
1143
|
| Array<string>;
|
|
1153
1144
|
|
|
1154
1145
|
/**
|
|
@@ -1972,12 +1963,7 @@ export type UpdatePaymentResponse = {
|
|
|
1972
1963
|
* @remarks
|
|
1973
1964
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
1974
1965
|
*/
|
|
1975
|
-
metadata?:
|
|
1976
|
-
| UpdatePaymentMetadataResponse
|
|
1977
|
-
| string
|
|
1978
|
-
| Array<string>
|
|
1979
|
-
| null
|
|
1980
|
-
| undefined;
|
|
1966
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
1981
1967
|
/**
|
|
1982
1968
|
* Indicate if the funds should be captured immediately or if you want to [place a hold](https://docs.mollie.com/docs/place-a-hold-for-a-payment#/)
|
|
1983
1969
|
*
|
|
@@ -2198,17 +2184,19 @@ export const UpdatePaymentMetadataRequest$inboundSchema: z.ZodType<
|
|
|
2198
2184
|
UpdatePaymentMetadataRequest,
|
|
2199
2185
|
z.ZodTypeDef,
|
|
2200
2186
|
unknown
|
|
2201
|
-
> = z.
|
|
2187
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
2202
2188
|
|
|
2203
2189
|
/** @internal */
|
|
2204
|
-
export type UpdatePaymentMetadataRequest$Outbound = {
|
|
2190
|
+
export type UpdatePaymentMetadataRequest$Outbound = string | {
|
|
2191
|
+
[k: string]: any;
|
|
2192
|
+
} | Array<string>;
|
|
2205
2193
|
|
|
2206
2194
|
/** @internal */
|
|
2207
2195
|
export const UpdatePaymentMetadataRequest$outboundSchema: z.ZodType<
|
|
2208
2196
|
UpdatePaymentMetadataRequest$Outbound,
|
|
2209
2197
|
z.ZodTypeDef,
|
|
2210
2198
|
UpdatePaymentMetadataRequest
|
|
2211
|
-
> = z.
|
|
2199
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
2212
2200
|
|
|
2213
2201
|
/**
|
|
2214
2202
|
* @internal
|
|
@@ -2243,68 +2231,6 @@ export function updatePaymentMetadataRequestFromJSON(
|
|
|
2243
2231
|
);
|
|
2244
2232
|
}
|
|
2245
2233
|
|
|
2246
|
-
/** @internal */
|
|
2247
|
-
export const UpdatePaymentMetadataRequestUnion$inboundSchema: z.ZodType<
|
|
2248
|
-
UpdatePaymentMetadataRequestUnion,
|
|
2249
|
-
z.ZodTypeDef,
|
|
2250
|
-
unknown
|
|
2251
|
-
> = z.union([
|
|
2252
|
-
z.lazy(() => UpdatePaymentMetadataRequest$inboundSchema),
|
|
2253
|
-
z.string(),
|
|
2254
|
-
z.array(z.string()),
|
|
2255
|
-
]);
|
|
2256
|
-
|
|
2257
|
-
/** @internal */
|
|
2258
|
-
export type UpdatePaymentMetadataRequestUnion$Outbound =
|
|
2259
|
-
| UpdatePaymentMetadataRequest$Outbound
|
|
2260
|
-
| string
|
|
2261
|
-
| Array<string>;
|
|
2262
|
-
|
|
2263
|
-
/** @internal */
|
|
2264
|
-
export const UpdatePaymentMetadataRequestUnion$outboundSchema: z.ZodType<
|
|
2265
|
-
UpdatePaymentMetadataRequestUnion$Outbound,
|
|
2266
|
-
z.ZodTypeDef,
|
|
2267
|
-
UpdatePaymentMetadataRequestUnion
|
|
2268
|
-
> = z.union([
|
|
2269
|
-
z.lazy(() => UpdatePaymentMetadataRequest$outboundSchema),
|
|
2270
|
-
z.string(),
|
|
2271
|
-
z.array(z.string()),
|
|
2272
|
-
]);
|
|
2273
|
-
|
|
2274
|
-
/**
|
|
2275
|
-
* @internal
|
|
2276
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2277
|
-
*/
|
|
2278
|
-
export namespace UpdatePaymentMetadataRequestUnion$ {
|
|
2279
|
-
/** @deprecated use `UpdatePaymentMetadataRequestUnion$inboundSchema` instead. */
|
|
2280
|
-
export const inboundSchema = UpdatePaymentMetadataRequestUnion$inboundSchema;
|
|
2281
|
-
/** @deprecated use `UpdatePaymentMetadataRequestUnion$outboundSchema` instead. */
|
|
2282
|
-
export const outboundSchema =
|
|
2283
|
-
UpdatePaymentMetadataRequestUnion$outboundSchema;
|
|
2284
|
-
/** @deprecated use `UpdatePaymentMetadataRequestUnion$Outbound` instead. */
|
|
2285
|
-
export type Outbound = UpdatePaymentMetadataRequestUnion$Outbound;
|
|
2286
|
-
}
|
|
2287
|
-
|
|
2288
|
-
export function updatePaymentMetadataRequestUnionToJSON(
|
|
2289
|
-
updatePaymentMetadataRequestUnion: UpdatePaymentMetadataRequestUnion,
|
|
2290
|
-
): string {
|
|
2291
|
-
return JSON.stringify(
|
|
2292
|
-
UpdatePaymentMetadataRequestUnion$outboundSchema.parse(
|
|
2293
|
-
updatePaymentMetadataRequestUnion,
|
|
2294
|
-
),
|
|
2295
|
-
);
|
|
2296
|
-
}
|
|
2297
|
-
|
|
2298
|
-
export function updatePaymentMetadataRequestUnionFromJSON(
|
|
2299
|
-
jsonString: string,
|
|
2300
|
-
): SafeParseResult<UpdatePaymentMetadataRequestUnion, SDKValidationError> {
|
|
2301
|
-
return safeParse(
|
|
2302
|
-
jsonString,
|
|
2303
|
-
(x) => UpdatePaymentMetadataRequestUnion$inboundSchema.parse(JSON.parse(x)),
|
|
2304
|
-
`Failed to parse 'UpdatePaymentMetadataRequestUnion' from JSON`,
|
|
2305
|
-
);
|
|
2306
|
-
}
|
|
2307
|
-
|
|
2308
2234
|
/** @internal */
|
|
2309
2235
|
export const UpdatePaymentMethodRequest$inboundSchema: z.ZodNativeEnum<
|
|
2310
2236
|
typeof UpdatePaymentMethodRequest
|
|
@@ -2541,11 +2467,7 @@ export const UpdatePaymentRequestBody$inboundSchema: z.ZodType<
|
|
|
2541
2467
|
cancelUrl: z.nullable(z.string()).optional(),
|
|
2542
2468
|
webhookUrl: z.nullable(z.string()).optional(),
|
|
2543
2469
|
metadata: z.nullable(
|
|
2544
|
-
z.union([
|
|
2545
|
-
z.lazy(() => UpdatePaymentMetadataRequest$inboundSchema),
|
|
2546
|
-
z.string(),
|
|
2547
|
-
z.array(z.string()),
|
|
2548
|
-
]),
|
|
2470
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
2549
2471
|
).optional(),
|
|
2550
2472
|
method: z.nullable(UpdatePaymentMethodRequest$inboundSchema).optional(),
|
|
2551
2473
|
locale: UpdatePaymentLocaleRequest$inboundSchema.optional(),
|
|
@@ -2567,12 +2489,7 @@ export type UpdatePaymentRequestBody$Outbound = {
|
|
|
2567
2489
|
redirectUrl?: string | null | undefined;
|
|
2568
2490
|
cancelUrl?: string | null | undefined;
|
|
2569
2491
|
webhookUrl?: string | null | undefined;
|
|
2570
|
-
metadata?:
|
|
2571
|
-
| UpdatePaymentMetadataRequest$Outbound
|
|
2572
|
-
| string
|
|
2573
|
-
| Array<string>
|
|
2574
|
-
| null
|
|
2575
|
-
| undefined;
|
|
2492
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
2576
2493
|
method?: string | null | undefined;
|
|
2577
2494
|
locale?: string | undefined;
|
|
2578
2495
|
dueDate?: string | undefined;
|
|
@@ -2595,11 +2512,7 @@ export const UpdatePaymentRequestBody$outboundSchema: z.ZodType<
|
|
|
2595
2512
|
cancelUrl: z.nullable(z.string()).optional(),
|
|
2596
2513
|
webhookUrl: z.nullable(z.string()).optional(),
|
|
2597
2514
|
metadata: z.nullable(
|
|
2598
|
-
z.union([
|
|
2599
|
-
z.lazy(() => UpdatePaymentMetadataRequest$outboundSchema),
|
|
2600
|
-
z.string(),
|
|
2601
|
-
z.array(z.string()),
|
|
2602
|
-
]),
|
|
2515
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
2603
2516
|
).optional(),
|
|
2604
2517
|
method: z.nullable(UpdatePaymentMethodRequest$outboundSchema).optional(),
|
|
2605
2518
|
locale: UpdatePaymentLocaleRequest$outboundSchema.optional(),
|
|
@@ -4079,17 +3992,19 @@ export const UpdatePaymentMetadataResponse$inboundSchema: z.ZodType<
|
|
|
4079
3992
|
UpdatePaymentMetadataResponse,
|
|
4080
3993
|
z.ZodTypeDef,
|
|
4081
3994
|
unknown
|
|
4082
|
-
> = z.
|
|
3995
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
4083
3996
|
|
|
4084
3997
|
/** @internal */
|
|
4085
|
-
export type UpdatePaymentMetadataResponse$Outbound = {
|
|
3998
|
+
export type UpdatePaymentMetadataResponse$Outbound = string | {
|
|
3999
|
+
[k: string]: any;
|
|
4000
|
+
} | Array<string>;
|
|
4086
4001
|
|
|
4087
4002
|
/** @internal */
|
|
4088
4003
|
export const UpdatePaymentMetadataResponse$outboundSchema: z.ZodType<
|
|
4089
4004
|
UpdatePaymentMetadataResponse$Outbound,
|
|
4090
4005
|
z.ZodTypeDef,
|
|
4091
4006
|
UpdatePaymentMetadataResponse
|
|
4092
|
-
> = z.
|
|
4007
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
4093
4008
|
|
|
4094
4009
|
/**
|
|
4095
4010
|
* @internal
|
|
@@ -4124,69 +4039,6 @@ export function updatePaymentMetadataResponseFromJSON(
|
|
|
4124
4039
|
);
|
|
4125
4040
|
}
|
|
4126
4041
|
|
|
4127
|
-
/** @internal */
|
|
4128
|
-
export const UpdatePaymentMetadataResponseUnion$inboundSchema: z.ZodType<
|
|
4129
|
-
UpdatePaymentMetadataResponseUnion,
|
|
4130
|
-
z.ZodTypeDef,
|
|
4131
|
-
unknown
|
|
4132
|
-
> = z.union([
|
|
4133
|
-
z.lazy(() => UpdatePaymentMetadataResponse$inboundSchema),
|
|
4134
|
-
z.string(),
|
|
4135
|
-
z.array(z.string()),
|
|
4136
|
-
]);
|
|
4137
|
-
|
|
4138
|
-
/** @internal */
|
|
4139
|
-
export type UpdatePaymentMetadataResponseUnion$Outbound =
|
|
4140
|
-
| UpdatePaymentMetadataResponse$Outbound
|
|
4141
|
-
| string
|
|
4142
|
-
| Array<string>;
|
|
4143
|
-
|
|
4144
|
-
/** @internal */
|
|
4145
|
-
export const UpdatePaymentMetadataResponseUnion$outboundSchema: z.ZodType<
|
|
4146
|
-
UpdatePaymentMetadataResponseUnion$Outbound,
|
|
4147
|
-
z.ZodTypeDef,
|
|
4148
|
-
UpdatePaymentMetadataResponseUnion
|
|
4149
|
-
> = z.union([
|
|
4150
|
-
z.lazy(() => UpdatePaymentMetadataResponse$outboundSchema),
|
|
4151
|
-
z.string(),
|
|
4152
|
-
z.array(z.string()),
|
|
4153
|
-
]);
|
|
4154
|
-
|
|
4155
|
-
/**
|
|
4156
|
-
* @internal
|
|
4157
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4158
|
-
*/
|
|
4159
|
-
export namespace UpdatePaymentMetadataResponseUnion$ {
|
|
4160
|
-
/** @deprecated use `UpdatePaymentMetadataResponseUnion$inboundSchema` instead. */
|
|
4161
|
-
export const inboundSchema = UpdatePaymentMetadataResponseUnion$inboundSchema;
|
|
4162
|
-
/** @deprecated use `UpdatePaymentMetadataResponseUnion$outboundSchema` instead. */
|
|
4163
|
-
export const outboundSchema =
|
|
4164
|
-
UpdatePaymentMetadataResponseUnion$outboundSchema;
|
|
4165
|
-
/** @deprecated use `UpdatePaymentMetadataResponseUnion$Outbound` instead. */
|
|
4166
|
-
export type Outbound = UpdatePaymentMetadataResponseUnion$Outbound;
|
|
4167
|
-
}
|
|
4168
|
-
|
|
4169
|
-
export function updatePaymentMetadataResponseUnionToJSON(
|
|
4170
|
-
updatePaymentMetadataResponseUnion: UpdatePaymentMetadataResponseUnion,
|
|
4171
|
-
): string {
|
|
4172
|
-
return JSON.stringify(
|
|
4173
|
-
UpdatePaymentMetadataResponseUnion$outboundSchema.parse(
|
|
4174
|
-
updatePaymentMetadataResponseUnion,
|
|
4175
|
-
),
|
|
4176
|
-
);
|
|
4177
|
-
}
|
|
4178
|
-
|
|
4179
|
-
export function updatePaymentMetadataResponseUnionFromJSON(
|
|
4180
|
-
jsonString: string,
|
|
4181
|
-
): SafeParseResult<UpdatePaymentMetadataResponseUnion, SDKValidationError> {
|
|
4182
|
-
return safeParse(
|
|
4183
|
-
jsonString,
|
|
4184
|
-
(x) =>
|
|
4185
|
-
UpdatePaymentMetadataResponseUnion$inboundSchema.parse(JSON.parse(x)),
|
|
4186
|
-
`Failed to parse 'UpdatePaymentMetadataResponseUnion' from JSON`,
|
|
4187
|
-
);
|
|
4188
|
-
}
|
|
4189
|
-
|
|
4190
4042
|
/** @internal */
|
|
4191
4043
|
export const UpdatePaymentCaptureMode$inboundSchema: z.ZodNativeEnum<
|
|
4192
4044
|
typeof UpdatePaymentCaptureMode
|
|
@@ -5840,11 +5692,7 @@ export const UpdatePaymentResponse$inboundSchema: z.ZodType<
|
|
|
5840
5692
|
method: z.nullable(UpdatePaymentMethodResponse$inboundSchema).optional(),
|
|
5841
5693
|
restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
|
|
5842
5694
|
metadata: z.nullable(
|
|
5843
|
-
z.union([
|
|
5844
|
-
z.lazy(() => UpdatePaymentMetadataResponse$inboundSchema),
|
|
5845
|
-
z.string(),
|
|
5846
|
-
z.array(z.string()),
|
|
5847
|
-
]),
|
|
5695
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
5848
5696
|
).optional(),
|
|
5849
5697
|
captureMode: z.nullable(UpdatePaymentCaptureMode$inboundSchema).optional(),
|
|
5850
5698
|
captureDelay: z.nullable(z.string()).optional(),
|
|
@@ -5903,12 +5751,7 @@ export type UpdatePaymentResponse$Outbound = {
|
|
|
5903
5751
|
countryCode?: string | null | undefined;
|
|
5904
5752
|
method?: string | null | undefined;
|
|
5905
5753
|
restrictPaymentMethodsToCountry?: string | null | undefined;
|
|
5906
|
-
metadata?:
|
|
5907
|
-
| UpdatePaymentMetadataResponse$Outbound
|
|
5908
|
-
| string
|
|
5909
|
-
| Array<string>
|
|
5910
|
-
| null
|
|
5911
|
-
| undefined;
|
|
5754
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
5912
5755
|
captureMode?: string | null | undefined;
|
|
5913
5756
|
captureDelay?: string | null | undefined;
|
|
5914
5757
|
captureBefore?: string | null | undefined;
|
|
@@ -5972,11 +5815,7 @@ export const UpdatePaymentResponse$outboundSchema: z.ZodType<
|
|
|
5972
5815
|
method: z.nullable(UpdatePaymentMethodResponse$outboundSchema).optional(),
|
|
5973
5816
|
restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
|
|
5974
5817
|
metadata: z.nullable(
|
|
5975
|
-
z.union([
|
|
5976
|
-
z.lazy(() => UpdatePaymentMetadataResponse$outboundSchema),
|
|
5977
|
-
z.string(),
|
|
5978
|
-
z.array(z.string()),
|
|
5979
|
-
]),
|
|
5818
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
5980
5819
|
).optional(),
|
|
5981
5820
|
captureMode: z.nullable(UpdatePaymentCaptureMode$outboundSchema).optional(),
|
|
5982
5821
|
captureDelay: z.nullable(z.string()).optional(),
|
|
@@ -46,8 +46,6 @@ export type UpdateSubscriptionIntervalRequest = ClosedEnum<
|
|
|
46
46
|
typeof UpdateSubscriptionIntervalRequest
|
|
47
47
|
>;
|
|
48
48
|
|
|
49
|
-
export type UpdateSubscriptionMetadataRequest = {};
|
|
50
|
-
|
|
51
49
|
/**
|
|
52
50
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the
|
|
53
51
|
*
|
|
@@ -57,9 +55,9 @@ export type UpdateSubscriptionMetadataRequest = {};
|
|
|
57
55
|
*
|
|
58
56
|
* Any metadata added to the subscription will be automatically forwarded to the payments generated for it.
|
|
59
57
|
*/
|
|
60
|
-
export type
|
|
61
|
-
| UpdateSubscriptionMetadataRequest
|
|
58
|
+
export type UpdateSubscriptionMetadataRequest =
|
|
62
59
|
| string
|
|
60
|
+
| { [k: string]: any }
|
|
63
61
|
| Array<string>;
|
|
64
62
|
|
|
65
63
|
export type UpdateSubscriptionRequestBody = {
|
|
@@ -106,12 +104,7 @@ export type UpdateSubscriptionRequestBody = {
|
|
|
106
104
|
*
|
|
107
105
|
* Any metadata added to the subscription will be automatically forwarded to the payments generated for it.
|
|
108
106
|
*/
|
|
109
|
-
metadata?:
|
|
110
|
-
| UpdateSubscriptionMetadataRequest
|
|
111
|
-
| string
|
|
112
|
-
| Array<string>
|
|
113
|
-
| null
|
|
114
|
-
| undefined;
|
|
107
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
115
108
|
/**
|
|
116
109
|
* We will call this URL for any payment status changes of payments resulting from this subscription.
|
|
117
110
|
*
|
|
@@ -286,8 +279,6 @@ export type UpdateSubscriptionApplicationFee = {
|
|
|
286
279
|
description: string;
|
|
287
280
|
};
|
|
288
281
|
|
|
289
|
-
export type UpdateSubscriptionMetadataResponse = {};
|
|
290
|
-
|
|
291
282
|
/**
|
|
292
283
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity.
|
|
293
284
|
*
|
|
@@ -297,9 +288,9 @@ export type UpdateSubscriptionMetadataResponse = {};
|
|
|
297
288
|
*
|
|
298
289
|
* Any metadata added to the subscription will be automatically forwarded to the payments generated for it.
|
|
299
290
|
*/
|
|
300
|
-
export type
|
|
301
|
-
| UpdateSubscriptionMetadataResponse
|
|
291
|
+
export type UpdateSubscriptionMetadataResponse =
|
|
302
292
|
| string
|
|
293
|
+
| { [k: string]: any }
|
|
303
294
|
| Array<string>;
|
|
304
295
|
|
|
305
296
|
/**
|
|
@@ -521,7 +512,7 @@ export type UpdateSubscriptionResponse = {
|
|
|
521
512
|
*
|
|
522
513
|
* Any metadata added to the subscription will be automatically forwarded to the payments generated for it.
|
|
523
514
|
*/
|
|
524
|
-
metadata:
|
|
515
|
+
metadata: string | { [k: string]: any } | Array<string> | null;
|
|
525
516
|
/**
|
|
526
517
|
* We will call this URL for any payment status changes of payments resulting from this subscription.
|
|
527
518
|
*
|
|
@@ -642,17 +633,19 @@ export const UpdateSubscriptionMetadataRequest$inboundSchema: z.ZodType<
|
|
|
642
633
|
UpdateSubscriptionMetadataRequest,
|
|
643
634
|
z.ZodTypeDef,
|
|
644
635
|
unknown
|
|
645
|
-
> = z.
|
|
636
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
646
637
|
|
|
647
638
|
/** @internal */
|
|
648
|
-
export type UpdateSubscriptionMetadataRequest$Outbound = {
|
|
639
|
+
export type UpdateSubscriptionMetadataRequest$Outbound = string | {
|
|
640
|
+
[k: string]: any;
|
|
641
|
+
} | Array<string>;
|
|
649
642
|
|
|
650
643
|
/** @internal */
|
|
651
644
|
export const UpdateSubscriptionMetadataRequest$outboundSchema: z.ZodType<
|
|
652
645
|
UpdateSubscriptionMetadataRequest$Outbound,
|
|
653
646
|
z.ZodTypeDef,
|
|
654
647
|
UpdateSubscriptionMetadataRequest
|
|
655
|
-
> = z.
|
|
648
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
656
649
|
|
|
657
650
|
/**
|
|
658
651
|
* @internal
|
|
@@ -688,71 +681,6 @@ export function updateSubscriptionMetadataRequestFromJSON(
|
|
|
688
681
|
);
|
|
689
682
|
}
|
|
690
683
|
|
|
691
|
-
/** @internal */
|
|
692
|
-
export const UpdateSubscriptionMetadataRequestUnion$inboundSchema: z.ZodType<
|
|
693
|
-
UpdateSubscriptionMetadataRequestUnion,
|
|
694
|
-
z.ZodTypeDef,
|
|
695
|
-
unknown
|
|
696
|
-
> = z.union([
|
|
697
|
-
z.lazy(() => UpdateSubscriptionMetadataRequest$inboundSchema),
|
|
698
|
-
z.string(),
|
|
699
|
-
z.array(z.string()),
|
|
700
|
-
]);
|
|
701
|
-
|
|
702
|
-
/** @internal */
|
|
703
|
-
export type UpdateSubscriptionMetadataRequestUnion$Outbound =
|
|
704
|
-
| UpdateSubscriptionMetadataRequest$Outbound
|
|
705
|
-
| string
|
|
706
|
-
| Array<string>;
|
|
707
|
-
|
|
708
|
-
/** @internal */
|
|
709
|
-
export const UpdateSubscriptionMetadataRequestUnion$outboundSchema: z.ZodType<
|
|
710
|
-
UpdateSubscriptionMetadataRequestUnion$Outbound,
|
|
711
|
-
z.ZodTypeDef,
|
|
712
|
-
UpdateSubscriptionMetadataRequestUnion
|
|
713
|
-
> = z.union([
|
|
714
|
-
z.lazy(() => UpdateSubscriptionMetadataRequest$outboundSchema),
|
|
715
|
-
z.string(),
|
|
716
|
-
z.array(z.string()),
|
|
717
|
-
]);
|
|
718
|
-
|
|
719
|
-
/**
|
|
720
|
-
* @internal
|
|
721
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
722
|
-
*/
|
|
723
|
-
export namespace UpdateSubscriptionMetadataRequestUnion$ {
|
|
724
|
-
/** @deprecated use `UpdateSubscriptionMetadataRequestUnion$inboundSchema` instead. */
|
|
725
|
-
export const inboundSchema =
|
|
726
|
-
UpdateSubscriptionMetadataRequestUnion$inboundSchema;
|
|
727
|
-
/** @deprecated use `UpdateSubscriptionMetadataRequestUnion$outboundSchema` instead. */
|
|
728
|
-
export const outboundSchema =
|
|
729
|
-
UpdateSubscriptionMetadataRequestUnion$outboundSchema;
|
|
730
|
-
/** @deprecated use `UpdateSubscriptionMetadataRequestUnion$Outbound` instead. */
|
|
731
|
-
export type Outbound = UpdateSubscriptionMetadataRequestUnion$Outbound;
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
export function updateSubscriptionMetadataRequestUnionToJSON(
|
|
735
|
-
updateSubscriptionMetadataRequestUnion:
|
|
736
|
-
UpdateSubscriptionMetadataRequestUnion,
|
|
737
|
-
): string {
|
|
738
|
-
return JSON.stringify(
|
|
739
|
-
UpdateSubscriptionMetadataRequestUnion$outboundSchema.parse(
|
|
740
|
-
updateSubscriptionMetadataRequestUnion,
|
|
741
|
-
),
|
|
742
|
-
);
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
export function updateSubscriptionMetadataRequestUnionFromJSON(
|
|
746
|
-
jsonString: string,
|
|
747
|
-
): SafeParseResult<UpdateSubscriptionMetadataRequestUnion, SDKValidationError> {
|
|
748
|
-
return safeParse(
|
|
749
|
-
jsonString,
|
|
750
|
-
(x) =>
|
|
751
|
-
UpdateSubscriptionMetadataRequestUnion$inboundSchema.parse(JSON.parse(x)),
|
|
752
|
-
`Failed to parse 'UpdateSubscriptionMetadataRequestUnion' from JSON`,
|
|
753
|
-
);
|
|
754
|
-
}
|
|
755
|
-
|
|
756
684
|
/** @internal */
|
|
757
685
|
export const UpdateSubscriptionRequestBody$inboundSchema: z.ZodType<
|
|
758
686
|
UpdateSubscriptionRequestBody,
|
|
@@ -766,11 +694,7 @@ export const UpdateSubscriptionRequestBody$inboundSchema: z.ZodType<
|
|
|
766
694
|
startDate: z.string().optional(),
|
|
767
695
|
times: z.number().int().optional(),
|
|
768
696
|
metadata: z.nullable(
|
|
769
|
-
z.union([
|
|
770
|
-
z.lazy(() => UpdateSubscriptionMetadataRequest$inboundSchema),
|
|
771
|
-
z.string(),
|
|
772
|
-
z.array(z.string()),
|
|
773
|
-
]),
|
|
697
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
774
698
|
).optional(),
|
|
775
699
|
webhookUrl: z.string().optional(),
|
|
776
700
|
mandateId: z.string().optional(),
|
|
@@ -784,12 +708,7 @@ export type UpdateSubscriptionRequestBody$Outbound = {
|
|
|
784
708
|
interval?: string | undefined;
|
|
785
709
|
startDate?: string | undefined;
|
|
786
710
|
times?: number | undefined;
|
|
787
|
-
metadata?:
|
|
788
|
-
| UpdateSubscriptionMetadataRequest$Outbound
|
|
789
|
-
| string
|
|
790
|
-
| Array<string>
|
|
791
|
-
| null
|
|
792
|
-
| undefined;
|
|
711
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
793
712
|
webhookUrl?: string | undefined;
|
|
794
713
|
mandateId?: string | undefined;
|
|
795
714
|
testmode?: boolean | null | undefined;
|
|
@@ -808,11 +727,7 @@ export const UpdateSubscriptionRequestBody$outboundSchema: z.ZodType<
|
|
|
808
727
|
startDate: z.string().optional(),
|
|
809
728
|
times: z.number().int().optional(),
|
|
810
729
|
metadata: z.nullable(
|
|
811
|
-
z.union([
|
|
812
|
-
z.lazy(() => UpdateSubscriptionMetadataRequest$outboundSchema),
|
|
813
|
-
z.string(),
|
|
814
|
-
z.array(z.string()),
|
|
815
|
-
]),
|
|
730
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
816
731
|
).optional(),
|
|
817
732
|
webhookUrl: z.string().optional(),
|
|
818
733
|
mandateId: z.string().optional(),
|
|
@@ -1321,17 +1236,19 @@ export const UpdateSubscriptionMetadataResponse$inboundSchema: z.ZodType<
|
|
|
1321
1236
|
UpdateSubscriptionMetadataResponse,
|
|
1322
1237
|
z.ZodTypeDef,
|
|
1323
1238
|
unknown
|
|
1324
|
-
> = z.
|
|
1239
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
1325
1240
|
|
|
1326
1241
|
/** @internal */
|
|
1327
|
-
export type UpdateSubscriptionMetadataResponse$Outbound = {
|
|
1242
|
+
export type UpdateSubscriptionMetadataResponse$Outbound = string | {
|
|
1243
|
+
[k: string]: any;
|
|
1244
|
+
} | Array<string>;
|
|
1328
1245
|
|
|
1329
1246
|
/** @internal */
|
|
1330
1247
|
export const UpdateSubscriptionMetadataResponse$outboundSchema: z.ZodType<
|
|
1331
1248
|
UpdateSubscriptionMetadataResponse$Outbound,
|
|
1332
1249
|
z.ZodTypeDef,
|
|
1333
1250
|
UpdateSubscriptionMetadataResponse
|
|
1334
|
-
> = z.
|
|
1251
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
1335
1252
|
|
|
1336
1253
|
/**
|
|
1337
1254
|
* @internal
|
|
@@ -1368,76 +1285,6 @@ export function updateSubscriptionMetadataResponseFromJSON(
|
|
|
1368
1285
|
);
|
|
1369
1286
|
}
|
|
1370
1287
|
|
|
1371
|
-
/** @internal */
|
|
1372
|
-
export const UpdateSubscriptionMetadataResponseUnion$inboundSchema: z.ZodType<
|
|
1373
|
-
UpdateSubscriptionMetadataResponseUnion,
|
|
1374
|
-
z.ZodTypeDef,
|
|
1375
|
-
unknown
|
|
1376
|
-
> = z.union([
|
|
1377
|
-
z.lazy(() => UpdateSubscriptionMetadataResponse$inboundSchema),
|
|
1378
|
-
z.string(),
|
|
1379
|
-
z.array(z.string()),
|
|
1380
|
-
]);
|
|
1381
|
-
|
|
1382
|
-
/** @internal */
|
|
1383
|
-
export type UpdateSubscriptionMetadataResponseUnion$Outbound =
|
|
1384
|
-
| UpdateSubscriptionMetadataResponse$Outbound
|
|
1385
|
-
| string
|
|
1386
|
-
| Array<string>;
|
|
1387
|
-
|
|
1388
|
-
/** @internal */
|
|
1389
|
-
export const UpdateSubscriptionMetadataResponseUnion$outboundSchema: z.ZodType<
|
|
1390
|
-
UpdateSubscriptionMetadataResponseUnion$Outbound,
|
|
1391
|
-
z.ZodTypeDef,
|
|
1392
|
-
UpdateSubscriptionMetadataResponseUnion
|
|
1393
|
-
> = z.union([
|
|
1394
|
-
z.lazy(() => UpdateSubscriptionMetadataResponse$outboundSchema),
|
|
1395
|
-
z.string(),
|
|
1396
|
-
z.array(z.string()),
|
|
1397
|
-
]);
|
|
1398
|
-
|
|
1399
|
-
/**
|
|
1400
|
-
* @internal
|
|
1401
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1402
|
-
*/
|
|
1403
|
-
export namespace UpdateSubscriptionMetadataResponseUnion$ {
|
|
1404
|
-
/** @deprecated use `UpdateSubscriptionMetadataResponseUnion$inboundSchema` instead. */
|
|
1405
|
-
export const inboundSchema =
|
|
1406
|
-
UpdateSubscriptionMetadataResponseUnion$inboundSchema;
|
|
1407
|
-
/** @deprecated use `UpdateSubscriptionMetadataResponseUnion$outboundSchema` instead. */
|
|
1408
|
-
export const outboundSchema =
|
|
1409
|
-
UpdateSubscriptionMetadataResponseUnion$outboundSchema;
|
|
1410
|
-
/** @deprecated use `UpdateSubscriptionMetadataResponseUnion$Outbound` instead. */
|
|
1411
|
-
export type Outbound = UpdateSubscriptionMetadataResponseUnion$Outbound;
|
|
1412
|
-
}
|
|
1413
|
-
|
|
1414
|
-
export function updateSubscriptionMetadataResponseUnionToJSON(
|
|
1415
|
-
updateSubscriptionMetadataResponseUnion:
|
|
1416
|
-
UpdateSubscriptionMetadataResponseUnion,
|
|
1417
|
-
): string {
|
|
1418
|
-
return JSON.stringify(
|
|
1419
|
-
UpdateSubscriptionMetadataResponseUnion$outboundSchema.parse(
|
|
1420
|
-
updateSubscriptionMetadataResponseUnion,
|
|
1421
|
-
),
|
|
1422
|
-
);
|
|
1423
|
-
}
|
|
1424
|
-
|
|
1425
|
-
export function updateSubscriptionMetadataResponseUnionFromJSON(
|
|
1426
|
-
jsonString: string,
|
|
1427
|
-
): SafeParseResult<
|
|
1428
|
-
UpdateSubscriptionMetadataResponseUnion,
|
|
1429
|
-
SDKValidationError
|
|
1430
|
-
> {
|
|
1431
|
-
return safeParse(
|
|
1432
|
-
jsonString,
|
|
1433
|
-
(x) =>
|
|
1434
|
-
UpdateSubscriptionMetadataResponseUnion$inboundSchema.parse(
|
|
1435
|
-
JSON.parse(x),
|
|
1436
|
-
),
|
|
1437
|
-
`Failed to parse 'UpdateSubscriptionMetadataResponseUnion' from JSON`,
|
|
1438
|
-
);
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
1288
|
/** @internal */
|
|
1442
1289
|
export const UpdateSubscriptionSelf$inboundSchema: z.ZodType<
|
|
1443
1290
|
UpdateSubscriptionSelf,
|
|
@@ -1876,11 +1723,7 @@ export const UpdateSubscriptionResponse$inboundSchema: z.ZodType<
|
|
|
1876
1723
|
applicationFee: z.lazy(() => UpdateSubscriptionApplicationFee$inboundSchema)
|
|
1877
1724
|
.optional(),
|
|
1878
1725
|
metadata: z.nullable(
|
|
1879
|
-
z.union([
|
|
1880
|
-
z.lazy(() => UpdateSubscriptionMetadataResponse$inboundSchema),
|
|
1881
|
-
z.string(),
|
|
1882
|
-
z.array(z.string()),
|
|
1883
|
-
]),
|
|
1726
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1884
1727
|
),
|
|
1885
1728
|
webhookUrl: z.string(),
|
|
1886
1729
|
customerId: z.string(),
|
|
@@ -1909,11 +1752,7 @@ export type UpdateSubscriptionResponse$Outbound = {
|
|
|
1909
1752
|
description: string;
|
|
1910
1753
|
method: string | null;
|
|
1911
1754
|
applicationFee?: UpdateSubscriptionApplicationFee$Outbound | undefined;
|
|
1912
|
-
metadata:
|
|
1913
|
-
| UpdateSubscriptionMetadataResponse$Outbound
|
|
1914
|
-
| string
|
|
1915
|
-
| Array<string>
|
|
1916
|
-
| null;
|
|
1755
|
+
metadata: string | { [k: string]: any } | Array<string> | null;
|
|
1917
1756
|
webhookUrl: string;
|
|
1918
1757
|
customerId: string;
|
|
1919
1758
|
mandateId?: string | null | undefined;
|
|
@@ -1943,11 +1782,7 @@ export const UpdateSubscriptionResponse$outboundSchema: z.ZodType<
|
|
|
1943
1782
|
applicationFee: z.lazy(() => UpdateSubscriptionApplicationFee$outboundSchema)
|
|
1944
1783
|
.optional(),
|
|
1945
1784
|
metadata: z.nullable(
|
|
1946
|
-
z.union([
|
|
1947
|
-
z.lazy(() => UpdateSubscriptionMetadataResponse$outboundSchema),
|
|
1948
|
-
z.string(),
|
|
1949
|
-
z.array(z.string()),
|
|
1950
|
-
]),
|
|
1785
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1951
1786
|
),
|
|
1952
1787
|
webhookUrl: z.string(),
|
|
1953
1788
|
customerId: z.string(),
|