mollie-api-typescript 0.1.0 → 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 +223 -1057
- package/bin/mcp-server.js.map +38 -38
- 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/createpaymentlink.d.ts +11 -0
- package/dist/commonjs/models/operations/createpaymentlink.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createpaymentlink.js +2 -0
- package/dist/commonjs/models/operations/createpaymentlink.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 +18 -31
- package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getpaymentlinkpayments.js +14 -55
- 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/getwebhookevent.d.ts +17 -17
- package/dist/commonjs/models/operations/getwebhookevent.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getwebhookevent.js +20 -20
- package/dist/commonjs/models/operations/getwebhookevent.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/listpaymentlinks.d.ts +21 -21
- package/dist/commonjs/models/operations/listpaymentlinks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listpaymentlinks.js +24 -24
- package/dist/commonjs/models/operations/listpaymentlinks.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/createpaymentlink.d.ts +11 -0
- package/dist/esm/models/operations/createpaymentlink.d.ts.map +1 -1
- package/dist/esm/models/operations/createpaymentlink.js +2 -0
- package/dist/esm/models/operations/createpaymentlink.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 +18 -31
- package/dist/esm/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/getpaymentlinkpayments.js +10 -49
- 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/getwebhookevent.d.ts +17 -17
- package/dist/esm/models/operations/getwebhookevent.d.ts.map +1 -1
- package/dist/esm/models/operations/getwebhookevent.js +17 -17
- package/dist/esm/models/operations/getwebhookevent.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/listpaymentlinks.d.ts +21 -21
- package/dist/esm/models/operations/listpaymentlinks.d.ts.map +1 -1
- package/dist/esm/models/operations/listpaymentlinks.js +21 -21
- package/dist/esm/models/operations/listpaymentlinks.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/docs/sdks/paymentlinks/README.md +2 -0
- package/examples/package-lock.json +1 -1
- package/examples/paymentsCreate.example.ts +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/createpaymentlink.ts +13 -0
- 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 +23 -107
- package/src/models/operations/getrefund.ts +11 -82
- package/src/models/operations/getsubscription.ts +12 -80
- package/src/models/operations/getwebhookevent.ts +34 -29
- 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/listpaymentlinks.ts +39 -38
- 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
|
@@ -49,17 +49,15 @@ export type CreateCustomerLocaleRequest = ClosedEnum<
|
|
|
49
49
|
typeof CreateCustomerLocaleRequest
|
|
50
50
|
>;
|
|
51
51
|
|
|
52
|
-
export type CreateCustomerMetadataRequest = {};
|
|
53
|
-
|
|
54
52
|
/**
|
|
55
53
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
56
54
|
*
|
|
57
55
|
* @remarks
|
|
58
56
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
59
57
|
*/
|
|
60
|
-
export type
|
|
61
|
-
| CreateCustomerMetadataRequest
|
|
58
|
+
export type CreateCustomerMetadataRequest =
|
|
62
59
|
| string
|
|
60
|
+
| { [k: string]: any }
|
|
63
61
|
| Array<string>;
|
|
64
62
|
|
|
65
63
|
export type CreateCustomerRequest = {
|
|
@@ -84,12 +82,7 @@ export type CreateCustomerRequest = {
|
|
|
84
82
|
* @remarks
|
|
85
83
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
86
84
|
*/
|
|
87
|
-
metadata?:
|
|
88
|
-
| CreateCustomerMetadataRequest
|
|
89
|
-
| string
|
|
90
|
-
| Array<string>
|
|
91
|
-
| null
|
|
92
|
-
| undefined;
|
|
85
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
93
86
|
/**
|
|
94
87
|
* Whether to create the entity in test mode or live mode.
|
|
95
88
|
*
|
|
@@ -169,17 +162,15 @@ export type CreateCustomerLocaleResponse = ClosedEnum<
|
|
|
169
162
|
typeof CreateCustomerLocaleResponse
|
|
170
163
|
>;
|
|
171
164
|
|
|
172
|
-
export type CreateCustomerMetadataResponse = {};
|
|
173
|
-
|
|
174
165
|
/**
|
|
175
166
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
176
167
|
*
|
|
177
168
|
* @remarks
|
|
178
169
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
179
170
|
*/
|
|
180
|
-
export type
|
|
181
|
-
| CreateCustomerMetadataResponse
|
|
171
|
+
export type CreateCustomerMetadataResponse =
|
|
182
172
|
| string
|
|
173
|
+
| { [k: string]: any }
|
|
183
174
|
| Array<string>;
|
|
184
175
|
|
|
185
176
|
/**
|
|
@@ -351,7 +342,7 @@ export type CreateCustomerResponse = {
|
|
|
351
342
|
* @remarks
|
|
352
343
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
353
344
|
*/
|
|
354
|
-
metadata:
|
|
345
|
+
metadata: string | { [k: string]: any } | Array<string> | null;
|
|
355
346
|
/**
|
|
356
347
|
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
357
348
|
*/
|
|
@@ -388,17 +379,19 @@ export const CreateCustomerMetadataRequest$inboundSchema: z.ZodType<
|
|
|
388
379
|
CreateCustomerMetadataRequest,
|
|
389
380
|
z.ZodTypeDef,
|
|
390
381
|
unknown
|
|
391
|
-
> = z.
|
|
382
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
392
383
|
|
|
393
384
|
/** @internal */
|
|
394
|
-
export type CreateCustomerMetadataRequest$Outbound = {
|
|
385
|
+
export type CreateCustomerMetadataRequest$Outbound = string | {
|
|
386
|
+
[k: string]: any;
|
|
387
|
+
} | Array<string>;
|
|
395
388
|
|
|
396
389
|
/** @internal */
|
|
397
390
|
export const CreateCustomerMetadataRequest$outboundSchema: z.ZodType<
|
|
398
391
|
CreateCustomerMetadataRequest$Outbound,
|
|
399
392
|
z.ZodTypeDef,
|
|
400
393
|
CreateCustomerMetadataRequest
|
|
401
|
-
> = z.
|
|
394
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
402
395
|
|
|
403
396
|
/**
|
|
404
397
|
* @internal
|
|
@@ -433,69 +426,6 @@ export function createCustomerMetadataRequestFromJSON(
|
|
|
433
426
|
);
|
|
434
427
|
}
|
|
435
428
|
|
|
436
|
-
/** @internal */
|
|
437
|
-
export const CreateCustomerMetadataRequestUnion$inboundSchema: z.ZodType<
|
|
438
|
-
CreateCustomerMetadataRequestUnion,
|
|
439
|
-
z.ZodTypeDef,
|
|
440
|
-
unknown
|
|
441
|
-
> = z.union([
|
|
442
|
-
z.lazy(() => CreateCustomerMetadataRequest$inboundSchema),
|
|
443
|
-
z.string(),
|
|
444
|
-
z.array(z.string()),
|
|
445
|
-
]);
|
|
446
|
-
|
|
447
|
-
/** @internal */
|
|
448
|
-
export type CreateCustomerMetadataRequestUnion$Outbound =
|
|
449
|
-
| CreateCustomerMetadataRequest$Outbound
|
|
450
|
-
| string
|
|
451
|
-
| Array<string>;
|
|
452
|
-
|
|
453
|
-
/** @internal */
|
|
454
|
-
export const CreateCustomerMetadataRequestUnion$outboundSchema: z.ZodType<
|
|
455
|
-
CreateCustomerMetadataRequestUnion$Outbound,
|
|
456
|
-
z.ZodTypeDef,
|
|
457
|
-
CreateCustomerMetadataRequestUnion
|
|
458
|
-
> = z.union([
|
|
459
|
-
z.lazy(() => CreateCustomerMetadataRequest$outboundSchema),
|
|
460
|
-
z.string(),
|
|
461
|
-
z.array(z.string()),
|
|
462
|
-
]);
|
|
463
|
-
|
|
464
|
-
/**
|
|
465
|
-
* @internal
|
|
466
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
467
|
-
*/
|
|
468
|
-
export namespace CreateCustomerMetadataRequestUnion$ {
|
|
469
|
-
/** @deprecated use `CreateCustomerMetadataRequestUnion$inboundSchema` instead. */
|
|
470
|
-
export const inboundSchema = CreateCustomerMetadataRequestUnion$inboundSchema;
|
|
471
|
-
/** @deprecated use `CreateCustomerMetadataRequestUnion$outboundSchema` instead. */
|
|
472
|
-
export const outboundSchema =
|
|
473
|
-
CreateCustomerMetadataRequestUnion$outboundSchema;
|
|
474
|
-
/** @deprecated use `CreateCustomerMetadataRequestUnion$Outbound` instead. */
|
|
475
|
-
export type Outbound = CreateCustomerMetadataRequestUnion$Outbound;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
export function createCustomerMetadataRequestUnionToJSON(
|
|
479
|
-
createCustomerMetadataRequestUnion: CreateCustomerMetadataRequestUnion,
|
|
480
|
-
): string {
|
|
481
|
-
return JSON.stringify(
|
|
482
|
-
CreateCustomerMetadataRequestUnion$outboundSchema.parse(
|
|
483
|
-
createCustomerMetadataRequestUnion,
|
|
484
|
-
),
|
|
485
|
-
);
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
export function createCustomerMetadataRequestUnionFromJSON(
|
|
489
|
-
jsonString: string,
|
|
490
|
-
): SafeParseResult<CreateCustomerMetadataRequestUnion, SDKValidationError> {
|
|
491
|
-
return safeParse(
|
|
492
|
-
jsonString,
|
|
493
|
-
(x) =>
|
|
494
|
-
CreateCustomerMetadataRequestUnion$inboundSchema.parse(JSON.parse(x)),
|
|
495
|
-
`Failed to parse 'CreateCustomerMetadataRequestUnion' from JSON`,
|
|
496
|
-
);
|
|
497
|
-
}
|
|
498
|
-
|
|
499
429
|
/** @internal */
|
|
500
430
|
export const CreateCustomerRequest$inboundSchema: z.ZodType<
|
|
501
431
|
CreateCustomerRequest,
|
|
@@ -506,11 +436,7 @@ export const CreateCustomerRequest$inboundSchema: z.ZodType<
|
|
|
506
436
|
email: z.nullable(z.string()).optional(),
|
|
507
437
|
locale: z.nullable(CreateCustomerLocaleRequest$inboundSchema).optional(),
|
|
508
438
|
metadata: z.nullable(
|
|
509
|
-
z.union([
|
|
510
|
-
z.lazy(() => CreateCustomerMetadataRequest$inboundSchema),
|
|
511
|
-
z.string(),
|
|
512
|
-
z.array(z.string()),
|
|
513
|
-
]),
|
|
439
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
514
440
|
).optional(),
|
|
515
441
|
testmode: z.nullable(z.boolean()).optional(),
|
|
516
442
|
});
|
|
@@ -520,12 +446,7 @@ export type CreateCustomerRequest$Outbound = {
|
|
|
520
446
|
name?: string | null | undefined;
|
|
521
447
|
email?: string | null | undefined;
|
|
522
448
|
locale?: string | null | undefined;
|
|
523
|
-
metadata?:
|
|
524
|
-
| CreateCustomerMetadataRequest$Outbound
|
|
525
|
-
| string
|
|
526
|
-
| Array<string>
|
|
527
|
-
| null
|
|
528
|
-
| undefined;
|
|
449
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
529
450
|
testmode?: boolean | null | undefined;
|
|
530
451
|
};
|
|
531
452
|
|
|
@@ -539,11 +460,7 @@ export const CreateCustomerRequest$outboundSchema: z.ZodType<
|
|
|
539
460
|
email: z.nullable(z.string()).optional(),
|
|
540
461
|
locale: z.nullable(CreateCustomerLocaleRequest$outboundSchema).optional(),
|
|
541
462
|
metadata: z.nullable(
|
|
542
|
-
z.union([
|
|
543
|
-
z.lazy(() => CreateCustomerMetadataRequest$outboundSchema),
|
|
544
|
-
z.string(),
|
|
545
|
-
z.array(z.string()),
|
|
546
|
-
]),
|
|
463
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
547
464
|
).optional(),
|
|
548
465
|
testmode: z.nullable(z.boolean()).optional(),
|
|
549
466
|
});
|
|
@@ -748,17 +665,19 @@ export const CreateCustomerMetadataResponse$inboundSchema: z.ZodType<
|
|
|
748
665
|
CreateCustomerMetadataResponse,
|
|
749
666
|
z.ZodTypeDef,
|
|
750
667
|
unknown
|
|
751
|
-
> = z.
|
|
668
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
752
669
|
|
|
753
670
|
/** @internal */
|
|
754
|
-
export type CreateCustomerMetadataResponse$Outbound = {
|
|
671
|
+
export type CreateCustomerMetadataResponse$Outbound = string | {
|
|
672
|
+
[k: string]: any;
|
|
673
|
+
} | Array<string>;
|
|
755
674
|
|
|
756
675
|
/** @internal */
|
|
757
676
|
export const CreateCustomerMetadataResponse$outboundSchema: z.ZodType<
|
|
758
677
|
CreateCustomerMetadataResponse$Outbound,
|
|
759
678
|
z.ZodTypeDef,
|
|
760
679
|
CreateCustomerMetadataResponse
|
|
761
|
-
> = z.
|
|
680
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
762
681
|
|
|
763
682
|
/**
|
|
764
683
|
* @internal
|
|
@@ -793,70 +712,6 @@ export function createCustomerMetadataResponseFromJSON(
|
|
|
793
712
|
);
|
|
794
713
|
}
|
|
795
714
|
|
|
796
|
-
/** @internal */
|
|
797
|
-
export const CreateCustomerMetadataResponseUnion$inboundSchema: z.ZodType<
|
|
798
|
-
CreateCustomerMetadataResponseUnion,
|
|
799
|
-
z.ZodTypeDef,
|
|
800
|
-
unknown
|
|
801
|
-
> = z.union([
|
|
802
|
-
z.lazy(() => CreateCustomerMetadataResponse$inboundSchema),
|
|
803
|
-
z.string(),
|
|
804
|
-
z.array(z.string()),
|
|
805
|
-
]);
|
|
806
|
-
|
|
807
|
-
/** @internal */
|
|
808
|
-
export type CreateCustomerMetadataResponseUnion$Outbound =
|
|
809
|
-
| CreateCustomerMetadataResponse$Outbound
|
|
810
|
-
| string
|
|
811
|
-
| Array<string>;
|
|
812
|
-
|
|
813
|
-
/** @internal */
|
|
814
|
-
export const CreateCustomerMetadataResponseUnion$outboundSchema: z.ZodType<
|
|
815
|
-
CreateCustomerMetadataResponseUnion$Outbound,
|
|
816
|
-
z.ZodTypeDef,
|
|
817
|
-
CreateCustomerMetadataResponseUnion
|
|
818
|
-
> = z.union([
|
|
819
|
-
z.lazy(() => CreateCustomerMetadataResponse$outboundSchema),
|
|
820
|
-
z.string(),
|
|
821
|
-
z.array(z.string()),
|
|
822
|
-
]);
|
|
823
|
-
|
|
824
|
-
/**
|
|
825
|
-
* @internal
|
|
826
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
827
|
-
*/
|
|
828
|
-
export namespace CreateCustomerMetadataResponseUnion$ {
|
|
829
|
-
/** @deprecated use `CreateCustomerMetadataResponseUnion$inboundSchema` instead. */
|
|
830
|
-
export const inboundSchema =
|
|
831
|
-
CreateCustomerMetadataResponseUnion$inboundSchema;
|
|
832
|
-
/** @deprecated use `CreateCustomerMetadataResponseUnion$outboundSchema` instead. */
|
|
833
|
-
export const outboundSchema =
|
|
834
|
-
CreateCustomerMetadataResponseUnion$outboundSchema;
|
|
835
|
-
/** @deprecated use `CreateCustomerMetadataResponseUnion$Outbound` instead. */
|
|
836
|
-
export type Outbound = CreateCustomerMetadataResponseUnion$Outbound;
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
export function createCustomerMetadataResponseUnionToJSON(
|
|
840
|
-
createCustomerMetadataResponseUnion: CreateCustomerMetadataResponseUnion,
|
|
841
|
-
): string {
|
|
842
|
-
return JSON.stringify(
|
|
843
|
-
CreateCustomerMetadataResponseUnion$outboundSchema.parse(
|
|
844
|
-
createCustomerMetadataResponseUnion,
|
|
845
|
-
),
|
|
846
|
-
);
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
export function createCustomerMetadataResponseUnionFromJSON(
|
|
850
|
-
jsonString: string,
|
|
851
|
-
): SafeParseResult<CreateCustomerMetadataResponseUnion, SDKValidationError> {
|
|
852
|
-
return safeParse(
|
|
853
|
-
jsonString,
|
|
854
|
-
(x) =>
|
|
855
|
-
CreateCustomerMetadataResponseUnion$inboundSchema.parse(JSON.parse(x)),
|
|
856
|
-
`Failed to parse 'CreateCustomerMetadataResponseUnion' from JSON`,
|
|
857
|
-
);
|
|
858
|
-
}
|
|
859
|
-
|
|
860
715
|
/** @internal */
|
|
861
716
|
export const CreateCustomerSelf$inboundSchema: z.ZodType<
|
|
862
717
|
CreateCustomerSelf,
|
|
@@ -1293,11 +1148,7 @@ export const CreateCustomerResponse$inboundSchema: z.ZodType<
|
|
|
1293
1148
|
email: z.nullable(z.string()),
|
|
1294
1149
|
locale: z.nullable(CreateCustomerLocaleResponse$inboundSchema),
|
|
1295
1150
|
metadata: z.nullable(
|
|
1296
|
-
z.union([
|
|
1297
|
-
z.lazy(() => CreateCustomerMetadataResponse$inboundSchema),
|
|
1298
|
-
z.string(),
|
|
1299
|
-
z.array(z.string()),
|
|
1300
|
-
]),
|
|
1151
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1301
1152
|
),
|
|
1302
1153
|
createdAt: z.string(),
|
|
1303
1154
|
_links: z.lazy(() => CreateCustomerLinks$inboundSchema),
|
|
@@ -1315,11 +1166,7 @@ export type CreateCustomerResponse$Outbound = {
|
|
|
1315
1166
|
name: string | null;
|
|
1316
1167
|
email: string | null;
|
|
1317
1168
|
locale: string | null;
|
|
1318
|
-
metadata:
|
|
1319
|
-
| CreateCustomerMetadataResponse$Outbound
|
|
1320
|
-
| string
|
|
1321
|
-
| Array<string>
|
|
1322
|
-
| null;
|
|
1169
|
+
metadata: string | { [k: string]: any } | Array<string> | null;
|
|
1323
1170
|
createdAt: string;
|
|
1324
1171
|
_links: CreateCustomerLinks$Outbound;
|
|
1325
1172
|
};
|
|
@@ -1337,11 +1184,7 @@ export const CreateCustomerResponse$outboundSchema: z.ZodType<
|
|
|
1337
1184
|
email: z.nullable(z.string()),
|
|
1338
1185
|
locale: z.nullable(CreateCustomerLocaleResponse$outboundSchema),
|
|
1339
1186
|
metadata: z.nullable(
|
|
1340
|
-
z.union([
|
|
1341
|
-
z.lazy(() => CreateCustomerMetadataResponse$outboundSchema),
|
|
1342
|
-
z.string(),
|
|
1343
|
-
z.array(z.string()),
|
|
1344
|
-
]),
|
|
1187
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1345
1188
|
),
|
|
1346
1189
|
createdAt: z.string(),
|
|
1347
1190
|
links: z.lazy(() => CreateCustomerLinks$outboundSchema),
|
|
@@ -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,
|