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
|
@@ -609,17 +609,15 @@ export type CreateCustomerPaymentMethodRequest = ClosedEnum<
|
|
|
609
609
|
typeof CreateCustomerPaymentMethodRequest
|
|
610
610
|
>;
|
|
611
611
|
|
|
612
|
-
export type CreateCustomerPaymentMetadataRequest = {};
|
|
613
|
-
|
|
614
612
|
/**
|
|
615
613
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
616
614
|
*
|
|
617
615
|
* @remarks
|
|
618
616
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
619
617
|
*/
|
|
620
|
-
export type
|
|
621
|
-
| CreateCustomerPaymentMetadataRequest
|
|
618
|
+
export type CreateCustomerPaymentMetadataRequest =
|
|
622
619
|
| string
|
|
620
|
+
| { [k: string]: any }
|
|
623
621
|
| Array<string>;
|
|
624
622
|
|
|
625
623
|
/**
|
|
@@ -1013,12 +1011,7 @@ export type CreateCustomerPaymentRequestBody = {
|
|
|
1013
1011
|
* @remarks
|
|
1014
1012
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
1015
1013
|
*/
|
|
1016
|
-
metadata?:
|
|
1017
|
-
| CreateCustomerPaymentMetadataRequest
|
|
1018
|
-
| string
|
|
1019
|
-
| Array<string>
|
|
1020
|
-
| null
|
|
1021
|
-
| undefined;
|
|
1014
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
1022
1015
|
/**
|
|
1023
1016
|
* 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#/)
|
|
1024
1017
|
*
|
|
@@ -1878,18 +1871,15 @@ export type CreateCustomerPaymentMethodResponse = ClosedEnum<
|
|
|
1878
1871
|
typeof CreateCustomerPaymentMethodResponse
|
|
1879
1872
|
>;
|
|
1880
1873
|
|
|
1881
|
-
export type CreateCustomerPaymentMetadataResponse = {};
|
|
1882
|
-
|
|
1883
1874
|
/**
|
|
1884
1875
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
1885
1876
|
*
|
|
1886
1877
|
* @remarks
|
|
1887
1878
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
1888
1879
|
*/
|
|
1889
|
-
export type
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
| Array<string>;
|
|
1880
|
+
export type CreateCustomerPaymentMetadataResponse = string | {
|
|
1881
|
+
[k: string]: any;
|
|
1882
|
+
} | Array<string>;
|
|
1893
1883
|
|
|
1894
1884
|
/**
|
|
1895
1885
|
* 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#/)
|
|
@@ -2714,12 +2704,7 @@ export type CreateCustomerPaymentResponse = {
|
|
|
2714
2704
|
* @remarks
|
|
2715
2705
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
2716
2706
|
*/
|
|
2717
|
-
metadata?:
|
|
2718
|
-
| CreateCustomerPaymentMetadataResponse
|
|
2719
|
-
| string
|
|
2720
|
-
| Array<string>
|
|
2721
|
-
| null
|
|
2722
|
-
| undefined;
|
|
2707
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
2723
2708
|
/**
|
|
2724
2709
|
* 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#/)
|
|
2725
2710
|
*
|
|
@@ -3832,17 +3817,19 @@ export const CreateCustomerPaymentMetadataRequest$inboundSchema: z.ZodType<
|
|
|
3832
3817
|
CreateCustomerPaymentMetadataRequest,
|
|
3833
3818
|
z.ZodTypeDef,
|
|
3834
3819
|
unknown
|
|
3835
|
-
> = z.
|
|
3820
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
3836
3821
|
|
|
3837
3822
|
/** @internal */
|
|
3838
|
-
export type CreateCustomerPaymentMetadataRequest$Outbound = {
|
|
3823
|
+
export type CreateCustomerPaymentMetadataRequest$Outbound = string | {
|
|
3824
|
+
[k: string]: any;
|
|
3825
|
+
} | Array<string>;
|
|
3839
3826
|
|
|
3840
3827
|
/** @internal */
|
|
3841
3828
|
export const CreateCustomerPaymentMetadataRequest$outboundSchema: z.ZodType<
|
|
3842
3829
|
CreateCustomerPaymentMetadataRequest$Outbound,
|
|
3843
3830
|
z.ZodTypeDef,
|
|
3844
3831
|
CreateCustomerPaymentMetadataRequest
|
|
3845
|
-
> = z.
|
|
3832
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
3846
3833
|
|
|
3847
3834
|
/**
|
|
3848
3835
|
* @internal
|
|
@@ -3880,77 +3867,6 @@ export function createCustomerPaymentMetadataRequestFromJSON(
|
|
|
3880
3867
|
);
|
|
3881
3868
|
}
|
|
3882
3869
|
|
|
3883
|
-
/** @internal */
|
|
3884
|
-
export const CreateCustomerPaymentMetadataRequestUnion$inboundSchema: z.ZodType<
|
|
3885
|
-
CreateCustomerPaymentMetadataRequestUnion,
|
|
3886
|
-
z.ZodTypeDef,
|
|
3887
|
-
unknown
|
|
3888
|
-
> = z.union([
|
|
3889
|
-
z.lazy(() => CreateCustomerPaymentMetadataRequest$inboundSchema),
|
|
3890
|
-
z.string(),
|
|
3891
|
-
z.array(z.string()),
|
|
3892
|
-
]);
|
|
3893
|
-
|
|
3894
|
-
/** @internal */
|
|
3895
|
-
export type CreateCustomerPaymentMetadataRequestUnion$Outbound =
|
|
3896
|
-
| CreateCustomerPaymentMetadataRequest$Outbound
|
|
3897
|
-
| string
|
|
3898
|
-
| Array<string>;
|
|
3899
|
-
|
|
3900
|
-
/** @internal */
|
|
3901
|
-
export const CreateCustomerPaymentMetadataRequestUnion$outboundSchema:
|
|
3902
|
-
z.ZodType<
|
|
3903
|
-
CreateCustomerPaymentMetadataRequestUnion$Outbound,
|
|
3904
|
-
z.ZodTypeDef,
|
|
3905
|
-
CreateCustomerPaymentMetadataRequestUnion
|
|
3906
|
-
> = z.union([
|
|
3907
|
-
z.lazy(() => CreateCustomerPaymentMetadataRequest$outboundSchema),
|
|
3908
|
-
z.string(),
|
|
3909
|
-
z.array(z.string()),
|
|
3910
|
-
]);
|
|
3911
|
-
|
|
3912
|
-
/**
|
|
3913
|
-
* @internal
|
|
3914
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3915
|
-
*/
|
|
3916
|
-
export namespace CreateCustomerPaymentMetadataRequestUnion$ {
|
|
3917
|
-
/** @deprecated use `CreateCustomerPaymentMetadataRequestUnion$inboundSchema` instead. */
|
|
3918
|
-
export const inboundSchema =
|
|
3919
|
-
CreateCustomerPaymentMetadataRequestUnion$inboundSchema;
|
|
3920
|
-
/** @deprecated use `CreateCustomerPaymentMetadataRequestUnion$outboundSchema` instead. */
|
|
3921
|
-
export const outboundSchema =
|
|
3922
|
-
CreateCustomerPaymentMetadataRequestUnion$outboundSchema;
|
|
3923
|
-
/** @deprecated use `CreateCustomerPaymentMetadataRequestUnion$Outbound` instead. */
|
|
3924
|
-
export type Outbound = CreateCustomerPaymentMetadataRequestUnion$Outbound;
|
|
3925
|
-
}
|
|
3926
|
-
|
|
3927
|
-
export function createCustomerPaymentMetadataRequestUnionToJSON(
|
|
3928
|
-
createCustomerPaymentMetadataRequestUnion:
|
|
3929
|
-
CreateCustomerPaymentMetadataRequestUnion,
|
|
3930
|
-
): string {
|
|
3931
|
-
return JSON.stringify(
|
|
3932
|
-
CreateCustomerPaymentMetadataRequestUnion$outboundSchema.parse(
|
|
3933
|
-
createCustomerPaymentMetadataRequestUnion,
|
|
3934
|
-
),
|
|
3935
|
-
);
|
|
3936
|
-
}
|
|
3937
|
-
|
|
3938
|
-
export function createCustomerPaymentMetadataRequestUnionFromJSON(
|
|
3939
|
-
jsonString: string,
|
|
3940
|
-
): SafeParseResult<
|
|
3941
|
-
CreateCustomerPaymentMetadataRequestUnion,
|
|
3942
|
-
SDKValidationError
|
|
3943
|
-
> {
|
|
3944
|
-
return safeParse(
|
|
3945
|
-
jsonString,
|
|
3946
|
-
(x) =>
|
|
3947
|
-
CreateCustomerPaymentMetadataRequestUnion$inboundSchema.parse(
|
|
3948
|
-
JSON.parse(x),
|
|
3949
|
-
),
|
|
3950
|
-
`Failed to parse 'CreateCustomerPaymentMetadataRequestUnion' from JSON`,
|
|
3951
|
-
);
|
|
3952
|
-
}
|
|
3953
|
-
|
|
3954
3870
|
/** @internal */
|
|
3955
3871
|
export const CreateCustomerPaymentCaptureModeRequest$inboundSchema:
|
|
3956
3872
|
z.ZodNativeEnum<typeof CreateCustomerPaymentCaptureModeRequest> = z
|
|
@@ -4591,11 +4507,7 @@ export const CreateCustomerPaymentRequestBody$inboundSchema: z.ZodType<
|
|
|
4591
4507
|
issuer: z.nullable(z.string()).optional(),
|
|
4592
4508
|
restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
|
|
4593
4509
|
metadata: z.nullable(
|
|
4594
|
-
z.union([
|
|
4595
|
-
z.lazy(() => CreateCustomerPaymentMetadataRequest$inboundSchema),
|
|
4596
|
-
z.string(),
|
|
4597
|
-
z.array(z.string()),
|
|
4598
|
-
]),
|
|
4510
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
4599
4511
|
).optional(),
|
|
4600
4512
|
captureMode: z.nullable(CreateCustomerPaymentCaptureModeRequest$inboundSchema)
|
|
4601
4513
|
.optional(),
|
|
@@ -4634,12 +4546,7 @@ export type CreateCustomerPaymentRequestBody$Outbound = {
|
|
|
4634
4546
|
method?: string | null | undefined;
|
|
4635
4547
|
issuer?: string | null | undefined;
|
|
4636
4548
|
restrictPaymentMethodsToCountry?: string | null | undefined;
|
|
4637
|
-
metadata?:
|
|
4638
|
-
| CreateCustomerPaymentMetadataRequest$Outbound
|
|
4639
|
-
| string
|
|
4640
|
-
| Array<string>
|
|
4641
|
-
| null
|
|
4642
|
-
| undefined;
|
|
4549
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
4643
4550
|
captureMode?: string | null | undefined;
|
|
4644
4551
|
captureDelay?: string | null | undefined;
|
|
4645
4552
|
applicationFee?:
|
|
@@ -4685,11 +4592,7 @@ export const CreateCustomerPaymentRequestBody$outboundSchema: z.ZodType<
|
|
|
4685
4592
|
issuer: z.nullable(z.string()).optional(),
|
|
4686
4593
|
restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
|
|
4687
4594
|
metadata: z.nullable(
|
|
4688
|
-
z.union([
|
|
4689
|
-
z.lazy(() => CreateCustomerPaymentMetadataRequest$outboundSchema),
|
|
4690
|
-
z.string(),
|
|
4691
|
-
z.array(z.string()),
|
|
4692
|
-
]),
|
|
4595
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
4693
4596
|
).optional(),
|
|
4694
4597
|
captureMode: z.nullable(
|
|
4695
4598
|
CreateCustomerPaymentCaptureModeRequest$outboundSchema,
|
|
@@ -6338,17 +6241,19 @@ export const CreateCustomerPaymentMetadataResponse$inboundSchema: z.ZodType<
|
|
|
6338
6241
|
CreateCustomerPaymentMetadataResponse,
|
|
6339
6242
|
z.ZodTypeDef,
|
|
6340
6243
|
unknown
|
|
6341
|
-
> = z.
|
|
6244
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
6342
6245
|
|
|
6343
6246
|
/** @internal */
|
|
6344
|
-
export type CreateCustomerPaymentMetadataResponse$Outbound = {
|
|
6247
|
+
export type CreateCustomerPaymentMetadataResponse$Outbound = string | {
|
|
6248
|
+
[k: string]: any;
|
|
6249
|
+
} | Array<string>;
|
|
6345
6250
|
|
|
6346
6251
|
/** @internal */
|
|
6347
6252
|
export const CreateCustomerPaymentMetadataResponse$outboundSchema: z.ZodType<
|
|
6348
6253
|
CreateCustomerPaymentMetadataResponse$Outbound,
|
|
6349
6254
|
z.ZodTypeDef,
|
|
6350
6255
|
CreateCustomerPaymentMetadataResponse
|
|
6351
|
-
> = z.
|
|
6256
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
6352
6257
|
|
|
6353
6258
|
/**
|
|
6354
6259
|
* @internal
|
|
@@ -6386,75 +6291,6 @@ export function createCustomerPaymentMetadataResponseFromJSON(
|
|
|
6386
6291
|
);
|
|
6387
6292
|
}
|
|
6388
6293
|
|
|
6389
|
-
/** @internal */
|
|
6390
|
-
export const CreateCustomerPaymentMetadataResponseUnion$inboundSchema:
|
|
6391
|
-
z.ZodType<CreateCustomerPaymentMetadataResponseUnion, z.ZodTypeDef, unknown> =
|
|
6392
|
-
z.union([
|
|
6393
|
-
z.lazy(() => CreateCustomerPaymentMetadataResponse$inboundSchema),
|
|
6394
|
-
z.string(),
|
|
6395
|
-
z.array(z.string()),
|
|
6396
|
-
]);
|
|
6397
|
-
|
|
6398
|
-
/** @internal */
|
|
6399
|
-
export type CreateCustomerPaymentMetadataResponseUnion$Outbound =
|
|
6400
|
-
| CreateCustomerPaymentMetadataResponse$Outbound
|
|
6401
|
-
| string
|
|
6402
|
-
| Array<string>;
|
|
6403
|
-
|
|
6404
|
-
/** @internal */
|
|
6405
|
-
export const CreateCustomerPaymentMetadataResponseUnion$outboundSchema:
|
|
6406
|
-
z.ZodType<
|
|
6407
|
-
CreateCustomerPaymentMetadataResponseUnion$Outbound,
|
|
6408
|
-
z.ZodTypeDef,
|
|
6409
|
-
CreateCustomerPaymentMetadataResponseUnion
|
|
6410
|
-
> = z.union([
|
|
6411
|
-
z.lazy(() => CreateCustomerPaymentMetadataResponse$outboundSchema),
|
|
6412
|
-
z.string(),
|
|
6413
|
-
z.array(z.string()),
|
|
6414
|
-
]);
|
|
6415
|
-
|
|
6416
|
-
/**
|
|
6417
|
-
* @internal
|
|
6418
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6419
|
-
*/
|
|
6420
|
-
export namespace CreateCustomerPaymentMetadataResponseUnion$ {
|
|
6421
|
-
/** @deprecated use `CreateCustomerPaymentMetadataResponseUnion$inboundSchema` instead. */
|
|
6422
|
-
export const inboundSchema =
|
|
6423
|
-
CreateCustomerPaymentMetadataResponseUnion$inboundSchema;
|
|
6424
|
-
/** @deprecated use `CreateCustomerPaymentMetadataResponseUnion$outboundSchema` instead. */
|
|
6425
|
-
export const outboundSchema =
|
|
6426
|
-
CreateCustomerPaymentMetadataResponseUnion$outboundSchema;
|
|
6427
|
-
/** @deprecated use `CreateCustomerPaymentMetadataResponseUnion$Outbound` instead. */
|
|
6428
|
-
export type Outbound = CreateCustomerPaymentMetadataResponseUnion$Outbound;
|
|
6429
|
-
}
|
|
6430
|
-
|
|
6431
|
-
export function createCustomerPaymentMetadataResponseUnionToJSON(
|
|
6432
|
-
createCustomerPaymentMetadataResponseUnion:
|
|
6433
|
-
CreateCustomerPaymentMetadataResponseUnion,
|
|
6434
|
-
): string {
|
|
6435
|
-
return JSON.stringify(
|
|
6436
|
-
CreateCustomerPaymentMetadataResponseUnion$outboundSchema.parse(
|
|
6437
|
-
createCustomerPaymentMetadataResponseUnion,
|
|
6438
|
-
),
|
|
6439
|
-
);
|
|
6440
|
-
}
|
|
6441
|
-
|
|
6442
|
-
export function createCustomerPaymentMetadataResponseUnionFromJSON(
|
|
6443
|
-
jsonString: string,
|
|
6444
|
-
): SafeParseResult<
|
|
6445
|
-
CreateCustomerPaymentMetadataResponseUnion,
|
|
6446
|
-
SDKValidationError
|
|
6447
|
-
> {
|
|
6448
|
-
return safeParse(
|
|
6449
|
-
jsonString,
|
|
6450
|
-
(x) =>
|
|
6451
|
-
CreateCustomerPaymentMetadataResponseUnion$inboundSchema.parse(
|
|
6452
|
-
JSON.parse(x),
|
|
6453
|
-
),
|
|
6454
|
-
`Failed to parse 'CreateCustomerPaymentMetadataResponseUnion' from JSON`,
|
|
6455
|
-
);
|
|
6456
|
-
}
|
|
6457
|
-
|
|
6458
6294
|
/** @internal */
|
|
6459
6295
|
export const CreateCustomerPaymentCaptureModeResponse$inboundSchema:
|
|
6460
6296
|
z.ZodNativeEnum<typeof CreateCustomerPaymentCaptureModeResponse> = z
|
|
@@ -8276,11 +8112,7 @@ export const CreateCustomerPaymentResponse$inboundSchema: z.ZodType<
|
|
|
8276
8112
|
.optional(),
|
|
8277
8113
|
restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
|
|
8278
8114
|
metadata: z.nullable(
|
|
8279
|
-
z.union([
|
|
8280
|
-
z.lazy(() => CreateCustomerPaymentMetadataResponse$inboundSchema),
|
|
8281
|
-
z.string(),
|
|
8282
|
-
z.array(z.string()),
|
|
8283
|
-
]),
|
|
8115
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
8284
8116
|
).optional(),
|
|
8285
8117
|
captureMode: z.nullable(
|
|
8286
8118
|
CreateCustomerPaymentCaptureModeResponse$inboundSchema,
|
|
@@ -8350,12 +8182,7 @@ export type CreateCustomerPaymentResponse$Outbound = {
|
|
|
8350
8182
|
countryCode?: string | null | undefined;
|
|
8351
8183
|
method?: string | null | undefined;
|
|
8352
8184
|
restrictPaymentMethodsToCountry?: string | null | undefined;
|
|
8353
|
-
metadata?:
|
|
8354
|
-
| CreateCustomerPaymentMetadataResponse$Outbound
|
|
8355
|
-
| string
|
|
8356
|
-
| Array<string>
|
|
8357
|
-
| null
|
|
8358
|
-
| undefined;
|
|
8185
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
8359
8186
|
captureMode?: string | null | undefined;
|
|
8360
8187
|
captureDelay?: string | null | undefined;
|
|
8361
8188
|
captureBefore?: string | null | undefined;
|
|
@@ -8433,11 +8260,7 @@ export const CreateCustomerPaymentResponse$outboundSchema: z.ZodType<
|
|
|
8433
8260
|
.optional(),
|
|
8434
8261
|
restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
|
|
8435
8262
|
metadata: z.nullable(
|
|
8436
|
-
z.union([
|
|
8437
|
-
z.lazy(() => CreateCustomerPaymentMetadataResponse$outboundSchema),
|
|
8438
|
-
z.string(),
|
|
8439
|
-
z.array(z.string()),
|
|
8440
|
-
]),
|
|
8263
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
8441
8264
|
).optional(),
|
|
8442
8265
|
captureMode: z.nullable(
|
|
8443
8266
|
CreateCustomerPaymentCaptureModeResponse$outboundSchema,
|
|
@@ -620,17 +620,15 @@ export type CreatePaymentMethodRequest = ClosedEnum<
|
|
|
620
620
|
typeof CreatePaymentMethodRequest
|
|
621
621
|
>;
|
|
622
622
|
|
|
623
|
-
export type CreatePaymentMetadataRequest = {};
|
|
624
|
-
|
|
625
623
|
/**
|
|
626
624
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
627
625
|
*
|
|
628
626
|
* @remarks
|
|
629
627
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
630
628
|
*/
|
|
631
|
-
export type
|
|
632
|
-
| CreatePaymentMetadataRequest
|
|
629
|
+
export type CreatePaymentMetadataRequest =
|
|
633
630
|
| string
|
|
631
|
+
| { [k: string]: any }
|
|
634
632
|
| Array<string>;
|
|
635
633
|
|
|
636
634
|
/**
|
|
@@ -1024,12 +1022,7 @@ export type CreatePaymentRequestBody = {
|
|
|
1024
1022
|
* @remarks
|
|
1025
1023
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
1026
1024
|
*/
|
|
1027
|
-
metadata?:
|
|
1028
|
-
| CreatePaymentMetadataRequest
|
|
1029
|
-
| string
|
|
1030
|
-
| Array<string>
|
|
1031
|
-
| null
|
|
1032
|
-
| undefined;
|
|
1025
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
1033
1026
|
/**
|
|
1034
1027
|
* 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#/)
|
|
1035
1028
|
*
|
|
@@ -1884,17 +1877,15 @@ export type CreatePaymentMethodResponse = ClosedEnum<
|
|
|
1884
1877
|
typeof CreatePaymentMethodResponse
|
|
1885
1878
|
>;
|
|
1886
1879
|
|
|
1887
|
-
export type CreatePaymentMetadataResponse = {};
|
|
1888
|
-
|
|
1889
1880
|
/**
|
|
1890
1881
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
1891
1882
|
*
|
|
1892
1883
|
* @remarks
|
|
1893
1884
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
1894
1885
|
*/
|
|
1895
|
-
export type
|
|
1896
|
-
| CreatePaymentMetadataResponse
|
|
1886
|
+
export type CreatePaymentMetadataResponse =
|
|
1897
1887
|
| string
|
|
1888
|
+
| { [k: string]: any }
|
|
1898
1889
|
| Array<string>;
|
|
1899
1890
|
|
|
1900
1891
|
/**
|
|
@@ -2718,12 +2709,7 @@ export type CreatePaymentResponse = {
|
|
|
2718
2709
|
* @remarks
|
|
2719
2710
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
2720
2711
|
*/
|
|
2721
|
-
metadata?:
|
|
2722
|
-
| CreatePaymentMetadataResponse
|
|
2723
|
-
| string
|
|
2724
|
-
| Array<string>
|
|
2725
|
-
| null
|
|
2726
|
-
| undefined;
|
|
2712
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
2727
2713
|
/**
|
|
2728
2714
|
* 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#/)
|
|
2729
2715
|
*
|
|
@@ -3780,17 +3766,19 @@ export const CreatePaymentMetadataRequest$inboundSchema: z.ZodType<
|
|
|
3780
3766
|
CreatePaymentMetadataRequest,
|
|
3781
3767
|
z.ZodTypeDef,
|
|
3782
3768
|
unknown
|
|
3783
|
-
> = z.
|
|
3769
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
3784
3770
|
|
|
3785
3771
|
/** @internal */
|
|
3786
|
-
export type CreatePaymentMetadataRequest$Outbound = {
|
|
3772
|
+
export type CreatePaymentMetadataRequest$Outbound = string | {
|
|
3773
|
+
[k: string]: any;
|
|
3774
|
+
} | Array<string>;
|
|
3787
3775
|
|
|
3788
3776
|
/** @internal */
|
|
3789
3777
|
export const CreatePaymentMetadataRequest$outboundSchema: z.ZodType<
|
|
3790
3778
|
CreatePaymentMetadataRequest$Outbound,
|
|
3791
3779
|
z.ZodTypeDef,
|
|
3792
3780
|
CreatePaymentMetadataRequest
|
|
3793
|
-
> = z.
|
|
3781
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
3794
3782
|
|
|
3795
3783
|
/**
|
|
3796
3784
|
* @internal
|
|
@@ -3825,68 +3813,6 @@ export function createPaymentMetadataRequestFromJSON(
|
|
|
3825
3813
|
);
|
|
3826
3814
|
}
|
|
3827
3815
|
|
|
3828
|
-
/** @internal */
|
|
3829
|
-
export const CreatePaymentMetadataRequestUnion$inboundSchema: z.ZodType<
|
|
3830
|
-
CreatePaymentMetadataRequestUnion,
|
|
3831
|
-
z.ZodTypeDef,
|
|
3832
|
-
unknown
|
|
3833
|
-
> = z.union([
|
|
3834
|
-
z.lazy(() => CreatePaymentMetadataRequest$inboundSchema),
|
|
3835
|
-
z.string(),
|
|
3836
|
-
z.array(z.string()),
|
|
3837
|
-
]);
|
|
3838
|
-
|
|
3839
|
-
/** @internal */
|
|
3840
|
-
export type CreatePaymentMetadataRequestUnion$Outbound =
|
|
3841
|
-
| CreatePaymentMetadataRequest$Outbound
|
|
3842
|
-
| string
|
|
3843
|
-
| Array<string>;
|
|
3844
|
-
|
|
3845
|
-
/** @internal */
|
|
3846
|
-
export const CreatePaymentMetadataRequestUnion$outboundSchema: z.ZodType<
|
|
3847
|
-
CreatePaymentMetadataRequestUnion$Outbound,
|
|
3848
|
-
z.ZodTypeDef,
|
|
3849
|
-
CreatePaymentMetadataRequestUnion
|
|
3850
|
-
> = z.union([
|
|
3851
|
-
z.lazy(() => CreatePaymentMetadataRequest$outboundSchema),
|
|
3852
|
-
z.string(),
|
|
3853
|
-
z.array(z.string()),
|
|
3854
|
-
]);
|
|
3855
|
-
|
|
3856
|
-
/**
|
|
3857
|
-
* @internal
|
|
3858
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3859
|
-
*/
|
|
3860
|
-
export namespace CreatePaymentMetadataRequestUnion$ {
|
|
3861
|
-
/** @deprecated use `CreatePaymentMetadataRequestUnion$inboundSchema` instead. */
|
|
3862
|
-
export const inboundSchema = CreatePaymentMetadataRequestUnion$inboundSchema;
|
|
3863
|
-
/** @deprecated use `CreatePaymentMetadataRequestUnion$outboundSchema` instead. */
|
|
3864
|
-
export const outboundSchema =
|
|
3865
|
-
CreatePaymentMetadataRequestUnion$outboundSchema;
|
|
3866
|
-
/** @deprecated use `CreatePaymentMetadataRequestUnion$Outbound` instead. */
|
|
3867
|
-
export type Outbound = CreatePaymentMetadataRequestUnion$Outbound;
|
|
3868
|
-
}
|
|
3869
|
-
|
|
3870
|
-
export function createPaymentMetadataRequestUnionToJSON(
|
|
3871
|
-
createPaymentMetadataRequestUnion: CreatePaymentMetadataRequestUnion,
|
|
3872
|
-
): string {
|
|
3873
|
-
return JSON.stringify(
|
|
3874
|
-
CreatePaymentMetadataRequestUnion$outboundSchema.parse(
|
|
3875
|
-
createPaymentMetadataRequestUnion,
|
|
3876
|
-
),
|
|
3877
|
-
);
|
|
3878
|
-
}
|
|
3879
|
-
|
|
3880
|
-
export function createPaymentMetadataRequestUnionFromJSON(
|
|
3881
|
-
jsonString: string,
|
|
3882
|
-
): SafeParseResult<CreatePaymentMetadataRequestUnion, SDKValidationError> {
|
|
3883
|
-
return safeParse(
|
|
3884
|
-
jsonString,
|
|
3885
|
-
(x) => CreatePaymentMetadataRequestUnion$inboundSchema.parse(JSON.parse(x)),
|
|
3886
|
-
`Failed to parse 'CreatePaymentMetadataRequestUnion' from JSON`,
|
|
3887
|
-
);
|
|
3888
|
-
}
|
|
3889
|
-
|
|
3890
3816
|
/** @internal */
|
|
3891
3817
|
export const CreatePaymentCaptureModeRequest$inboundSchema: z.ZodNativeEnum<
|
|
3892
3818
|
typeof CreatePaymentCaptureModeRequest
|
|
@@ -4470,11 +4396,7 @@ export const CreatePaymentRequestBody$inboundSchema: z.ZodType<
|
|
|
4470
4396
|
issuer: z.nullable(z.string()).optional(),
|
|
4471
4397
|
restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
|
|
4472
4398
|
metadata: z.nullable(
|
|
4473
|
-
z.union([
|
|
4474
|
-
z.lazy(() => CreatePaymentMetadataRequest$inboundSchema),
|
|
4475
|
-
z.string(),
|
|
4476
|
-
z.array(z.string()),
|
|
4477
|
-
]),
|
|
4399
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
4478
4400
|
).optional(),
|
|
4479
4401
|
captureMode: z.nullable(CreatePaymentCaptureModeRequest$inboundSchema)
|
|
4480
4402
|
.optional(),
|
|
@@ -4508,12 +4430,7 @@ export type CreatePaymentRequestBody$Outbound = {
|
|
|
4508
4430
|
method?: string | null | undefined;
|
|
4509
4431
|
issuer?: string | null | undefined;
|
|
4510
4432
|
restrictPaymentMethodsToCountry?: string | null | undefined;
|
|
4511
|
-
metadata?:
|
|
4512
|
-
| CreatePaymentMetadataRequest$Outbound
|
|
4513
|
-
| string
|
|
4514
|
-
| Array<string>
|
|
4515
|
-
| null
|
|
4516
|
-
| undefined;
|
|
4433
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
4517
4434
|
captureMode?: string | null | undefined;
|
|
4518
4435
|
captureDelay?: string | null | undefined;
|
|
4519
4436
|
applicationFee?:
|
|
@@ -4554,11 +4471,7 @@ export const CreatePaymentRequestBody$outboundSchema: z.ZodType<
|
|
|
4554
4471
|
issuer: z.nullable(z.string()).optional(),
|
|
4555
4472
|
restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
|
|
4556
4473
|
metadata: z.nullable(
|
|
4557
|
-
z.union([
|
|
4558
|
-
z.lazy(() => CreatePaymentMetadataRequest$outboundSchema),
|
|
4559
|
-
z.string(),
|
|
4560
|
-
z.array(z.string()),
|
|
4561
|
-
]),
|
|
4474
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
4562
4475
|
).optional(),
|
|
4563
4476
|
captureMode: z.nullable(CreatePaymentCaptureModeRequest$outboundSchema)
|
|
4564
4477
|
.optional(),
|
|
@@ -6081,17 +5994,19 @@ export const CreatePaymentMetadataResponse$inboundSchema: z.ZodType<
|
|
|
6081
5994
|
CreatePaymentMetadataResponse,
|
|
6082
5995
|
z.ZodTypeDef,
|
|
6083
5996
|
unknown
|
|
6084
|
-
> = z.
|
|
5997
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
6085
5998
|
|
|
6086
5999
|
/** @internal */
|
|
6087
|
-
export type CreatePaymentMetadataResponse$Outbound = {
|
|
6000
|
+
export type CreatePaymentMetadataResponse$Outbound = string | {
|
|
6001
|
+
[k: string]: any;
|
|
6002
|
+
} | Array<string>;
|
|
6088
6003
|
|
|
6089
6004
|
/** @internal */
|
|
6090
6005
|
export const CreatePaymentMetadataResponse$outboundSchema: z.ZodType<
|
|
6091
6006
|
CreatePaymentMetadataResponse$Outbound,
|
|
6092
6007
|
z.ZodTypeDef,
|
|
6093
6008
|
CreatePaymentMetadataResponse
|
|
6094
|
-
> = z.
|
|
6009
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
6095
6010
|
|
|
6096
6011
|
/**
|
|
6097
6012
|
* @internal
|
|
@@ -6126,69 +6041,6 @@ export function createPaymentMetadataResponseFromJSON(
|
|
|
6126
6041
|
);
|
|
6127
6042
|
}
|
|
6128
6043
|
|
|
6129
|
-
/** @internal */
|
|
6130
|
-
export const CreatePaymentMetadataResponseUnion$inboundSchema: z.ZodType<
|
|
6131
|
-
CreatePaymentMetadataResponseUnion,
|
|
6132
|
-
z.ZodTypeDef,
|
|
6133
|
-
unknown
|
|
6134
|
-
> = z.union([
|
|
6135
|
-
z.lazy(() => CreatePaymentMetadataResponse$inboundSchema),
|
|
6136
|
-
z.string(),
|
|
6137
|
-
z.array(z.string()),
|
|
6138
|
-
]);
|
|
6139
|
-
|
|
6140
|
-
/** @internal */
|
|
6141
|
-
export type CreatePaymentMetadataResponseUnion$Outbound =
|
|
6142
|
-
| CreatePaymentMetadataResponse$Outbound
|
|
6143
|
-
| string
|
|
6144
|
-
| Array<string>;
|
|
6145
|
-
|
|
6146
|
-
/** @internal */
|
|
6147
|
-
export const CreatePaymentMetadataResponseUnion$outboundSchema: z.ZodType<
|
|
6148
|
-
CreatePaymentMetadataResponseUnion$Outbound,
|
|
6149
|
-
z.ZodTypeDef,
|
|
6150
|
-
CreatePaymentMetadataResponseUnion
|
|
6151
|
-
> = z.union([
|
|
6152
|
-
z.lazy(() => CreatePaymentMetadataResponse$outboundSchema),
|
|
6153
|
-
z.string(),
|
|
6154
|
-
z.array(z.string()),
|
|
6155
|
-
]);
|
|
6156
|
-
|
|
6157
|
-
/**
|
|
6158
|
-
* @internal
|
|
6159
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6160
|
-
*/
|
|
6161
|
-
export namespace CreatePaymentMetadataResponseUnion$ {
|
|
6162
|
-
/** @deprecated use `CreatePaymentMetadataResponseUnion$inboundSchema` instead. */
|
|
6163
|
-
export const inboundSchema = CreatePaymentMetadataResponseUnion$inboundSchema;
|
|
6164
|
-
/** @deprecated use `CreatePaymentMetadataResponseUnion$outboundSchema` instead. */
|
|
6165
|
-
export const outboundSchema =
|
|
6166
|
-
CreatePaymentMetadataResponseUnion$outboundSchema;
|
|
6167
|
-
/** @deprecated use `CreatePaymentMetadataResponseUnion$Outbound` instead. */
|
|
6168
|
-
export type Outbound = CreatePaymentMetadataResponseUnion$Outbound;
|
|
6169
|
-
}
|
|
6170
|
-
|
|
6171
|
-
export function createPaymentMetadataResponseUnionToJSON(
|
|
6172
|
-
createPaymentMetadataResponseUnion: CreatePaymentMetadataResponseUnion,
|
|
6173
|
-
): string {
|
|
6174
|
-
return JSON.stringify(
|
|
6175
|
-
CreatePaymentMetadataResponseUnion$outboundSchema.parse(
|
|
6176
|
-
createPaymentMetadataResponseUnion,
|
|
6177
|
-
),
|
|
6178
|
-
);
|
|
6179
|
-
}
|
|
6180
|
-
|
|
6181
|
-
export function createPaymentMetadataResponseUnionFromJSON(
|
|
6182
|
-
jsonString: string,
|
|
6183
|
-
): SafeParseResult<CreatePaymentMetadataResponseUnion, SDKValidationError> {
|
|
6184
|
-
return safeParse(
|
|
6185
|
-
jsonString,
|
|
6186
|
-
(x) =>
|
|
6187
|
-
CreatePaymentMetadataResponseUnion$inboundSchema.parse(JSON.parse(x)),
|
|
6188
|
-
`Failed to parse 'CreatePaymentMetadataResponseUnion' from JSON`,
|
|
6189
|
-
);
|
|
6190
|
-
}
|
|
6191
|
-
|
|
6192
6044
|
/** @internal */
|
|
6193
6045
|
export const CreatePaymentCaptureModeResponse$inboundSchema: z.ZodNativeEnum<
|
|
6194
6046
|
typeof CreatePaymentCaptureModeResponse
|
|
@@ -7871,11 +7723,7 @@ export const CreatePaymentResponse$inboundSchema: z.ZodType<
|
|
|
7871
7723
|
method: z.nullable(CreatePaymentMethodResponse$inboundSchema).optional(),
|
|
7872
7724
|
restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
|
|
7873
7725
|
metadata: z.nullable(
|
|
7874
|
-
z.union([
|
|
7875
|
-
z.lazy(() => CreatePaymentMetadataResponse$inboundSchema),
|
|
7876
|
-
z.string(),
|
|
7877
|
-
z.array(z.string()),
|
|
7878
|
-
]),
|
|
7726
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
7879
7727
|
).optional(),
|
|
7880
7728
|
captureMode: z.nullable(CreatePaymentCaptureModeResponse$inboundSchema)
|
|
7881
7729
|
.optional(),
|
|
@@ -7936,12 +7784,7 @@ export type CreatePaymentResponse$Outbound = {
|
|
|
7936
7784
|
countryCode?: string | null | undefined;
|
|
7937
7785
|
method?: string | null | undefined;
|
|
7938
7786
|
restrictPaymentMethodsToCountry?: string | null | undefined;
|
|
7939
|
-
metadata?:
|
|
7940
|
-
| CreatePaymentMetadataResponse$Outbound
|
|
7941
|
-
| string
|
|
7942
|
-
| Array<string>
|
|
7943
|
-
| null
|
|
7944
|
-
| undefined;
|
|
7787
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
7945
7788
|
captureMode?: string | null | undefined;
|
|
7946
7789
|
captureDelay?: string | null | undefined;
|
|
7947
7790
|
captureBefore?: string | null | undefined;
|
|
@@ -8009,11 +7852,7 @@ export const CreatePaymentResponse$outboundSchema: z.ZodType<
|
|
|
8009
7852
|
method: z.nullable(CreatePaymentMethodResponse$outboundSchema).optional(),
|
|
8010
7853
|
restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
|
|
8011
7854
|
metadata: z.nullable(
|
|
8012
|
-
z.union([
|
|
8013
|
-
z.lazy(() => CreatePaymentMetadataResponse$outboundSchema),
|
|
8014
|
-
z.string(),
|
|
8015
|
-
z.array(z.string()),
|
|
8016
|
-
]),
|
|
7855
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
8017
7856
|
).optional(),
|
|
8018
7857
|
captureMode: z.nullable(CreatePaymentCaptureModeResponse$outboundSchema)
|
|
8019
7858
|
.optional(),
|