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
|
@@ -129,18 +129,13 @@ export const GetCaptureStatus = {
|
|
|
129
129
|
*/
|
|
130
130
|
export type GetCaptureStatus = ClosedEnum<typeof GetCaptureStatus>;
|
|
131
131
|
|
|
132
|
-
export type GetCaptureMetadata = {};
|
|
133
|
-
|
|
134
132
|
/**
|
|
135
133
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
136
134
|
*
|
|
137
135
|
* @remarks
|
|
138
136
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
139
137
|
*/
|
|
140
|
-
export type
|
|
141
|
-
| GetCaptureMetadata
|
|
142
|
-
| string
|
|
143
|
-
| Array<string>;
|
|
138
|
+
export type GetCaptureMetadata = string | { [k: string]: any } | Array<string>;
|
|
144
139
|
|
|
145
140
|
/**
|
|
146
141
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
@@ -295,7 +290,7 @@ export type GetCaptureResponse = {
|
|
|
295
290
|
* @remarks
|
|
296
291
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
297
292
|
*/
|
|
298
|
-
metadata?:
|
|
293
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
299
294
|
/**
|
|
300
295
|
* The unique identifier of the payment this capture was created for. For example: `tr_5B8cwPMGnU6qLbRvo7qEZo`.
|
|
301
296
|
*
|
|
@@ -685,17 +680,20 @@ export const GetCaptureMetadata$inboundSchema: z.ZodType<
|
|
|
685
680
|
GetCaptureMetadata,
|
|
686
681
|
z.ZodTypeDef,
|
|
687
682
|
unknown
|
|
688
|
-
> = z.
|
|
683
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
689
684
|
|
|
690
685
|
/** @internal */
|
|
691
|
-
export type GetCaptureMetadata$Outbound =
|
|
686
|
+
export type GetCaptureMetadata$Outbound =
|
|
687
|
+
| string
|
|
688
|
+
| { [k: string]: any }
|
|
689
|
+
| Array<string>;
|
|
692
690
|
|
|
693
691
|
/** @internal */
|
|
694
692
|
export const GetCaptureMetadata$outboundSchema: z.ZodType<
|
|
695
693
|
GetCaptureMetadata$Outbound,
|
|
696
694
|
z.ZodTypeDef,
|
|
697
695
|
GetCaptureMetadata
|
|
698
|
-
> = z.
|
|
696
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
699
697
|
|
|
700
698
|
/**
|
|
701
699
|
* @internal
|
|
@@ -728,65 +726,6 @@ export function getCaptureMetadataFromJSON(
|
|
|
728
726
|
);
|
|
729
727
|
}
|
|
730
728
|
|
|
731
|
-
/** @internal */
|
|
732
|
-
export const GetCaptureMetadataUnion$inboundSchema: z.ZodType<
|
|
733
|
-
GetCaptureMetadataUnion,
|
|
734
|
-
z.ZodTypeDef,
|
|
735
|
-
unknown
|
|
736
|
-
> = z.union([
|
|
737
|
-
z.lazy(() => GetCaptureMetadata$inboundSchema),
|
|
738
|
-
z.string(),
|
|
739
|
-
z.array(z.string()),
|
|
740
|
-
]);
|
|
741
|
-
|
|
742
|
-
/** @internal */
|
|
743
|
-
export type GetCaptureMetadataUnion$Outbound =
|
|
744
|
-
| GetCaptureMetadata$Outbound
|
|
745
|
-
| string
|
|
746
|
-
| Array<string>;
|
|
747
|
-
|
|
748
|
-
/** @internal */
|
|
749
|
-
export const GetCaptureMetadataUnion$outboundSchema: z.ZodType<
|
|
750
|
-
GetCaptureMetadataUnion$Outbound,
|
|
751
|
-
z.ZodTypeDef,
|
|
752
|
-
GetCaptureMetadataUnion
|
|
753
|
-
> = z.union([
|
|
754
|
-
z.lazy(() => GetCaptureMetadata$outboundSchema),
|
|
755
|
-
z.string(),
|
|
756
|
-
z.array(z.string()),
|
|
757
|
-
]);
|
|
758
|
-
|
|
759
|
-
/**
|
|
760
|
-
* @internal
|
|
761
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
762
|
-
*/
|
|
763
|
-
export namespace GetCaptureMetadataUnion$ {
|
|
764
|
-
/** @deprecated use `GetCaptureMetadataUnion$inboundSchema` instead. */
|
|
765
|
-
export const inboundSchema = GetCaptureMetadataUnion$inboundSchema;
|
|
766
|
-
/** @deprecated use `GetCaptureMetadataUnion$outboundSchema` instead. */
|
|
767
|
-
export const outboundSchema = GetCaptureMetadataUnion$outboundSchema;
|
|
768
|
-
/** @deprecated use `GetCaptureMetadataUnion$Outbound` instead. */
|
|
769
|
-
export type Outbound = GetCaptureMetadataUnion$Outbound;
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
export function getCaptureMetadataUnionToJSON(
|
|
773
|
-
getCaptureMetadataUnion: GetCaptureMetadataUnion,
|
|
774
|
-
): string {
|
|
775
|
-
return JSON.stringify(
|
|
776
|
-
GetCaptureMetadataUnion$outboundSchema.parse(getCaptureMetadataUnion),
|
|
777
|
-
);
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
export function getCaptureMetadataUnionFromJSON(
|
|
781
|
-
jsonString: string,
|
|
782
|
-
): SafeParseResult<GetCaptureMetadataUnion, SDKValidationError> {
|
|
783
|
-
return safeParse(
|
|
784
|
-
jsonString,
|
|
785
|
-
(x) => GetCaptureMetadataUnion$inboundSchema.parse(JSON.parse(x)),
|
|
786
|
-
`Failed to parse 'GetCaptureMetadataUnion' from JSON`,
|
|
787
|
-
);
|
|
788
|
-
}
|
|
789
|
-
|
|
790
729
|
/** @internal */
|
|
791
730
|
export const GetCaptureSelf$inboundSchema: z.ZodType<
|
|
792
731
|
GetCaptureSelf,
|
|
@@ -1152,11 +1091,7 @@ export const GetCaptureResponse$inboundSchema: z.ZodType<
|
|
|
1152
1091
|
).optional(),
|
|
1153
1092
|
status: GetCaptureStatus$inboundSchema,
|
|
1154
1093
|
metadata: z.nullable(
|
|
1155
|
-
z.union([
|
|
1156
|
-
z.lazy(() => GetCaptureMetadata$inboundSchema),
|
|
1157
|
-
z.string(),
|
|
1158
|
-
z.array(z.string()),
|
|
1159
|
-
]),
|
|
1094
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1160
1095
|
).optional(),
|
|
1161
1096
|
paymentId: z.string(),
|
|
1162
1097
|
shipmentId: z.nullable(z.string()).optional(),
|
|
@@ -1178,12 +1113,7 @@ export type GetCaptureResponse$Outbound = {
|
|
|
1178
1113
|
amount: GetCaptureAmount$Outbound | null;
|
|
1179
1114
|
settlementAmount?: GetCaptureSettlementAmount$Outbound | null | undefined;
|
|
1180
1115
|
status: string;
|
|
1181
|
-
metadata?:
|
|
1182
|
-
| GetCaptureMetadata$Outbound
|
|
1183
|
-
| string
|
|
1184
|
-
| Array<string>
|
|
1185
|
-
| null
|
|
1186
|
-
| undefined;
|
|
1116
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
1187
1117
|
paymentId: string;
|
|
1188
1118
|
shipmentId?: string | null | undefined;
|
|
1189
1119
|
settlementId?: string | null | undefined;
|
|
@@ -1207,11 +1137,7 @@ export const GetCaptureResponse$outboundSchema: z.ZodType<
|
|
|
1207
1137
|
).optional(),
|
|
1208
1138
|
status: GetCaptureStatus$outboundSchema,
|
|
1209
1139
|
metadata: z.nullable(
|
|
1210
|
-
z.union([
|
|
1211
|
-
z.lazy(() => GetCaptureMetadata$outboundSchema),
|
|
1212
|
-
z.string(),
|
|
1213
|
-
z.array(z.string()),
|
|
1214
|
-
]),
|
|
1140
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1215
1141
|
).optional(),
|
|
1216
1142
|
paymentId: z.string(),
|
|
1217
1143
|
shipmentId: z.nullable(z.string()).optional(),
|
|
@@ -106,18 +106,13 @@ export const GetCustomerLocale = {
|
|
|
106
106
|
*/
|
|
107
107
|
export type GetCustomerLocale = ClosedEnum<typeof GetCustomerLocale>;
|
|
108
108
|
|
|
109
|
-
export type GetCustomerMetadata = {};
|
|
110
|
-
|
|
111
109
|
/**
|
|
112
110
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
113
111
|
*
|
|
114
112
|
* @remarks
|
|
115
113
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
116
114
|
*/
|
|
117
|
-
export type
|
|
118
|
-
| GetCustomerMetadata
|
|
119
|
-
| string
|
|
120
|
-
| Array<string>;
|
|
115
|
+
export type GetCustomerMetadata = string | { [k: string]: any } | Array<string>;
|
|
121
116
|
|
|
122
117
|
/**
|
|
123
118
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
@@ -326,7 +321,7 @@ export type GetCustomerResponse = {
|
|
|
326
321
|
* @remarks
|
|
327
322
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
328
323
|
*/
|
|
329
|
-
metadata:
|
|
324
|
+
metadata: string | { [k: string]: any } | Array<string> | null;
|
|
330
325
|
/**
|
|
331
326
|
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
332
327
|
*/
|
|
@@ -579,17 +574,20 @@ export const GetCustomerMetadata$inboundSchema: z.ZodType<
|
|
|
579
574
|
GetCustomerMetadata,
|
|
580
575
|
z.ZodTypeDef,
|
|
581
576
|
unknown
|
|
582
|
-
> = z.
|
|
577
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
583
578
|
|
|
584
579
|
/** @internal */
|
|
585
|
-
export type GetCustomerMetadata$Outbound =
|
|
580
|
+
export type GetCustomerMetadata$Outbound =
|
|
581
|
+
| string
|
|
582
|
+
| { [k: string]: any }
|
|
583
|
+
| Array<string>;
|
|
586
584
|
|
|
587
585
|
/** @internal */
|
|
588
586
|
export const GetCustomerMetadata$outboundSchema: z.ZodType<
|
|
589
587
|
GetCustomerMetadata$Outbound,
|
|
590
588
|
z.ZodTypeDef,
|
|
591
589
|
GetCustomerMetadata
|
|
592
|
-
> = z.
|
|
590
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
593
591
|
|
|
594
592
|
/**
|
|
595
593
|
* @internal
|
|
@@ -622,65 +620,6 @@ export function getCustomerMetadataFromJSON(
|
|
|
622
620
|
);
|
|
623
621
|
}
|
|
624
622
|
|
|
625
|
-
/** @internal */
|
|
626
|
-
export const GetCustomerMetadataUnion$inboundSchema: z.ZodType<
|
|
627
|
-
GetCustomerMetadataUnion,
|
|
628
|
-
z.ZodTypeDef,
|
|
629
|
-
unknown
|
|
630
|
-
> = z.union([
|
|
631
|
-
z.lazy(() => GetCustomerMetadata$inboundSchema),
|
|
632
|
-
z.string(),
|
|
633
|
-
z.array(z.string()),
|
|
634
|
-
]);
|
|
635
|
-
|
|
636
|
-
/** @internal */
|
|
637
|
-
export type GetCustomerMetadataUnion$Outbound =
|
|
638
|
-
| GetCustomerMetadata$Outbound
|
|
639
|
-
| string
|
|
640
|
-
| Array<string>;
|
|
641
|
-
|
|
642
|
-
/** @internal */
|
|
643
|
-
export const GetCustomerMetadataUnion$outboundSchema: z.ZodType<
|
|
644
|
-
GetCustomerMetadataUnion$Outbound,
|
|
645
|
-
z.ZodTypeDef,
|
|
646
|
-
GetCustomerMetadataUnion
|
|
647
|
-
> = z.union([
|
|
648
|
-
z.lazy(() => GetCustomerMetadata$outboundSchema),
|
|
649
|
-
z.string(),
|
|
650
|
-
z.array(z.string()),
|
|
651
|
-
]);
|
|
652
|
-
|
|
653
|
-
/**
|
|
654
|
-
* @internal
|
|
655
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
656
|
-
*/
|
|
657
|
-
export namespace GetCustomerMetadataUnion$ {
|
|
658
|
-
/** @deprecated use `GetCustomerMetadataUnion$inboundSchema` instead. */
|
|
659
|
-
export const inboundSchema = GetCustomerMetadataUnion$inboundSchema;
|
|
660
|
-
/** @deprecated use `GetCustomerMetadataUnion$outboundSchema` instead. */
|
|
661
|
-
export const outboundSchema = GetCustomerMetadataUnion$outboundSchema;
|
|
662
|
-
/** @deprecated use `GetCustomerMetadataUnion$Outbound` instead. */
|
|
663
|
-
export type Outbound = GetCustomerMetadataUnion$Outbound;
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
export function getCustomerMetadataUnionToJSON(
|
|
667
|
-
getCustomerMetadataUnion: GetCustomerMetadataUnion,
|
|
668
|
-
): string {
|
|
669
|
-
return JSON.stringify(
|
|
670
|
-
GetCustomerMetadataUnion$outboundSchema.parse(getCustomerMetadataUnion),
|
|
671
|
-
);
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
export function getCustomerMetadataUnionFromJSON(
|
|
675
|
-
jsonString: string,
|
|
676
|
-
): SafeParseResult<GetCustomerMetadataUnion, SDKValidationError> {
|
|
677
|
-
return safeParse(
|
|
678
|
-
jsonString,
|
|
679
|
-
(x) => GetCustomerMetadataUnion$inboundSchema.parse(JSON.parse(x)),
|
|
680
|
-
`Failed to parse 'GetCustomerMetadataUnion' from JSON`,
|
|
681
|
-
);
|
|
682
|
-
}
|
|
683
|
-
|
|
684
623
|
/** @internal */
|
|
685
624
|
export const GetCustomerSelf$inboundSchema: z.ZodType<
|
|
686
625
|
GetCustomerSelf,
|
|
@@ -1275,11 +1214,7 @@ export const GetCustomerResponse$inboundSchema: z.ZodType<
|
|
|
1275
1214
|
email: z.nullable(z.string()),
|
|
1276
1215
|
locale: z.nullable(GetCustomerLocale$inboundSchema),
|
|
1277
1216
|
metadata: z.nullable(
|
|
1278
|
-
z.union([
|
|
1279
|
-
z.lazy(() => GetCustomerMetadata$inboundSchema),
|
|
1280
|
-
z.string(),
|
|
1281
|
-
z.array(z.string()),
|
|
1282
|
-
]),
|
|
1217
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1283
1218
|
),
|
|
1284
1219
|
createdAt: z.string(),
|
|
1285
1220
|
_links: z.lazy(() => GetCustomerLinks$inboundSchema),
|
|
@@ -1298,7 +1233,7 @@ export type GetCustomerResponse$Outbound = {
|
|
|
1298
1233
|
name: string | null;
|
|
1299
1234
|
email: string | null;
|
|
1300
1235
|
locale: string | null;
|
|
1301
|
-
metadata:
|
|
1236
|
+
metadata: string | { [k: string]: any } | Array<string> | null;
|
|
1302
1237
|
createdAt: string;
|
|
1303
1238
|
_links: GetCustomerLinks$Outbound;
|
|
1304
1239
|
events?: Array<Event$Outbound> | undefined;
|
|
@@ -1317,11 +1252,7 @@ export const GetCustomerResponse$outboundSchema: z.ZodType<
|
|
|
1317
1252
|
email: z.nullable(z.string()),
|
|
1318
1253
|
locale: z.nullable(GetCustomerLocale$outboundSchema),
|
|
1319
1254
|
metadata: z.nullable(
|
|
1320
|
-
z.union([
|
|
1321
|
-
z.lazy(() => GetCustomerMetadata$outboundSchema),
|
|
1322
|
-
z.string(),
|
|
1323
|
-
z.array(z.string()),
|
|
1324
|
-
]),
|
|
1255
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1325
1256
|
),
|
|
1326
1257
|
createdAt: z.string(),
|
|
1327
1258
|
links: z.lazy(() => GetCustomerLinks$outboundSchema),
|
|
@@ -761,18 +761,13 @@ export const GetPaymentMethod = {
|
|
|
761
761
|
*/
|
|
762
762
|
export type GetPaymentMethod = ClosedEnum<typeof GetPaymentMethod>;
|
|
763
763
|
|
|
764
|
-
export type GetPaymentMetadata = {};
|
|
765
|
-
|
|
766
764
|
/**
|
|
767
765
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
768
766
|
*
|
|
769
767
|
* @remarks
|
|
770
768
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
771
769
|
*/
|
|
772
|
-
export type
|
|
773
|
-
| GetPaymentMetadata
|
|
774
|
-
| string
|
|
775
|
-
| Array<string>;
|
|
770
|
+
export type GetPaymentMetadata = string | { [k: string]: any } | Array<string>;
|
|
776
771
|
|
|
777
772
|
/**
|
|
778
773
|
* 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#/)
|
|
@@ -1587,7 +1582,7 @@ export type GetPaymentResponse = {
|
|
|
1587
1582
|
* @remarks
|
|
1588
1583
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
1589
1584
|
*/
|
|
1590
|
-
metadata?:
|
|
1585
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
1591
1586
|
/**
|
|
1592
1587
|
* 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#/)
|
|
1593
1588
|
*
|
|
@@ -3112,17 +3107,20 @@ export const GetPaymentMetadata$inboundSchema: z.ZodType<
|
|
|
3112
3107
|
GetPaymentMetadata,
|
|
3113
3108
|
z.ZodTypeDef,
|
|
3114
3109
|
unknown
|
|
3115
|
-
> = z.
|
|
3110
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
3116
3111
|
|
|
3117
3112
|
/** @internal */
|
|
3118
|
-
export type GetPaymentMetadata$Outbound =
|
|
3113
|
+
export type GetPaymentMetadata$Outbound =
|
|
3114
|
+
| string
|
|
3115
|
+
| { [k: string]: any }
|
|
3116
|
+
| Array<string>;
|
|
3119
3117
|
|
|
3120
3118
|
/** @internal */
|
|
3121
3119
|
export const GetPaymentMetadata$outboundSchema: z.ZodType<
|
|
3122
3120
|
GetPaymentMetadata$Outbound,
|
|
3123
3121
|
z.ZodTypeDef,
|
|
3124
3122
|
GetPaymentMetadata
|
|
3125
|
-
> = z.
|
|
3123
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
3126
3124
|
|
|
3127
3125
|
/**
|
|
3128
3126
|
* @internal
|
|
@@ -3155,65 +3153,6 @@ export function getPaymentMetadataFromJSON(
|
|
|
3155
3153
|
);
|
|
3156
3154
|
}
|
|
3157
3155
|
|
|
3158
|
-
/** @internal */
|
|
3159
|
-
export const GetPaymentMetadataUnion$inboundSchema: z.ZodType<
|
|
3160
|
-
GetPaymentMetadataUnion,
|
|
3161
|
-
z.ZodTypeDef,
|
|
3162
|
-
unknown
|
|
3163
|
-
> = z.union([
|
|
3164
|
-
z.lazy(() => GetPaymentMetadata$inboundSchema),
|
|
3165
|
-
z.string(),
|
|
3166
|
-
z.array(z.string()),
|
|
3167
|
-
]);
|
|
3168
|
-
|
|
3169
|
-
/** @internal */
|
|
3170
|
-
export type GetPaymentMetadataUnion$Outbound =
|
|
3171
|
-
| GetPaymentMetadata$Outbound
|
|
3172
|
-
| string
|
|
3173
|
-
| Array<string>;
|
|
3174
|
-
|
|
3175
|
-
/** @internal */
|
|
3176
|
-
export const GetPaymentMetadataUnion$outboundSchema: z.ZodType<
|
|
3177
|
-
GetPaymentMetadataUnion$Outbound,
|
|
3178
|
-
z.ZodTypeDef,
|
|
3179
|
-
GetPaymentMetadataUnion
|
|
3180
|
-
> = z.union([
|
|
3181
|
-
z.lazy(() => GetPaymentMetadata$outboundSchema),
|
|
3182
|
-
z.string(),
|
|
3183
|
-
z.array(z.string()),
|
|
3184
|
-
]);
|
|
3185
|
-
|
|
3186
|
-
/**
|
|
3187
|
-
* @internal
|
|
3188
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3189
|
-
*/
|
|
3190
|
-
export namespace GetPaymentMetadataUnion$ {
|
|
3191
|
-
/** @deprecated use `GetPaymentMetadataUnion$inboundSchema` instead. */
|
|
3192
|
-
export const inboundSchema = GetPaymentMetadataUnion$inboundSchema;
|
|
3193
|
-
/** @deprecated use `GetPaymentMetadataUnion$outboundSchema` instead. */
|
|
3194
|
-
export const outboundSchema = GetPaymentMetadataUnion$outboundSchema;
|
|
3195
|
-
/** @deprecated use `GetPaymentMetadataUnion$Outbound` instead. */
|
|
3196
|
-
export type Outbound = GetPaymentMetadataUnion$Outbound;
|
|
3197
|
-
}
|
|
3198
|
-
|
|
3199
|
-
export function getPaymentMetadataUnionToJSON(
|
|
3200
|
-
getPaymentMetadataUnion: GetPaymentMetadataUnion,
|
|
3201
|
-
): string {
|
|
3202
|
-
return JSON.stringify(
|
|
3203
|
-
GetPaymentMetadataUnion$outboundSchema.parse(getPaymentMetadataUnion),
|
|
3204
|
-
);
|
|
3205
|
-
}
|
|
3206
|
-
|
|
3207
|
-
export function getPaymentMetadataUnionFromJSON(
|
|
3208
|
-
jsonString: string,
|
|
3209
|
-
): SafeParseResult<GetPaymentMetadataUnion, SDKValidationError> {
|
|
3210
|
-
return safeParse(
|
|
3211
|
-
jsonString,
|
|
3212
|
-
(x) => GetPaymentMetadataUnion$inboundSchema.parse(JSON.parse(x)),
|
|
3213
|
-
`Failed to parse 'GetPaymentMetadataUnion' from JSON`,
|
|
3214
|
-
);
|
|
3215
|
-
}
|
|
3216
|
-
|
|
3217
3156
|
/** @internal */
|
|
3218
3157
|
export const GetPaymentCaptureMode$inboundSchema: z.ZodNativeEnum<
|
|
3219
3158
|
typeof GetPaymentCaptureMode
|
|
@@ -4848,11 +4787,7 @@ export const GetPaymentResponse$inboundSchema: z.ZodType<
|
|
|
4848
4787
|
method: z.nullable(GetPaymentMethod$inboundSchema).optional(),
|
|
4849
4788
|
restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
|
|
4850
4789
|
metadata: z.nullable(
|
|
4851
|
-
z.union([
|
|
4852
|
-
z.lazy(() => GetPaymentMetadata$inboundSchema),
|
|
4853
|
-
z.string(),
|
|
4854
|
-
z.array(z.string()),
|
|
4855
|
-
]),
|
|
4790
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
4856
4791
|
).optional(),
|
|
4857
4792
|
captureMode: z.nullable(GetPaymentCaptureMode$inboundSchema).optional(),
|
|
4858
4793
|
captureDelay: z.nullable(z.string()).optional(),
|
|
@@ -4910,12 +4845,7 @@ export type GetPaymentResponse$Outbound = {
|
|
|
4910
4845
|
countryCode?: string | null | undefined;
|
|
4911
4846
|
method?: string | null | undefined;
|
|
4912
4847
|
restrictPaymentMethodsToCountry?: string | null | undefined;
|
|
4913
|
-
metadata?:
|
|
4914
|
-
| GetPaymentMetadata$Outbound
|
|
4915
|
-
| string
|
|
4916
|
-
| Array<string>
|
|
4917
|
-
| null
|
|
4918
|
-
| undefined;
|
|
4848
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
4919
4849
|
captureMode?: string | null | undefined;
|
|
4920
4850
|
captureDelay?: string | null | undefined;
|
|
4921
4851
|
captureBefore?: string | null | undefined;
|
|
@@ -4977,11 +4907,7 @@ export const GetPaymentResponse$outboundSchema: z.ZodType<
|
|
|
4977
4907
|
method: z.nullable(GetPaymentMethod$outboundSchema).optional(),
|
|
4978
4908
|
restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
|
|
4979
4909
|
metadata: z.nullable(
|
|
4980
|
-
z.union([
|
|
4981
|
-
z.lazy(() => GetPaymentMetadata$outboundSchema),
|
|
4982
|
-
z.string(),
|
|
4983
|
-
z.array(z.string()),
|
|
4984
|
-
]),
|
|
4910
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
4985
4911
|
).optional(),
|
|
4986
4912
|
captureMode: z.nullable(GetPaymentCaptureMode$outboundSchema).optional(),
|
|
4987
4913
|
captureDelay: z.nullable(z.string()).optional(),
|
|
@@ -769,17 +769,15 @@ export type GetPaymentLinkPaymentsMethod = ClosedEnum<
|
|
|
769
769
|
typeof GetPaymentLinkPaymentsMethod
|
|
770
770
|
>;
|
|
771
771
|
|
|
772
|
-
export type GetPaymentLinkPaymentsMetadata = {};
|
|
773
|
-
|
|
774
772
|
/**
|
|
775
773
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
776
774
|
*
|
|
777
775
|
* @remarks
|
|
778
776
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
779
777
|
*/
|
|
780
|
-
export type
|
|
781
|
-
| GetPaymentLinkPaymentsMetadata
|
|
778
|
+
export type GetPaymentLinkPaymentsMetadata =
|
|
782
779
|
| string
|
|
780
|
+
| { [k: string]: any }
|
|
783
781
|
| Array<string>;
|
|
784
782
|
|
|
785
783
|
/**
|
|
@@ -1602,12 +1600,7 @@ export type GetPaymentLinkPaymentsPaymentOutput = {
|
|
|
1602
1600
|
* @remarks
|
|
1603
1601
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
1604
1602
|
*/
|
|
1605
|
-
metadata?:
|
|
1606
|
-
| GetPaymentLinkPaymentsMetadata
|
|
1607
|
-
| string
|
|
1608
|
-
| Array<string>
|
|
1609
|
-
| null
|
|
1610
|
-
| undefined;
|
|
1603
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
1611
1604
|
/**
|
|
1612
1605
|
* 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#/)
|
|
1613
1606
|
*
|
|
@@ -3315,17 +3308,19 @@ export const GetPaymentLinkPaymentsMetadata$inboundSchema: z.ZodType<
|
|
|
3315
3308
|
GetPaymentLinkPaymentsMetadata,
|
|
3316
3309
|
z.ZodTypeDef,
|
|
3317
3310
|
unknown
|
|
3318
|
-
> = z.
|
|
3311
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
3319
3312
|
|
|
3320
3313
|
/** @internal */
|
|
3321
|
-
export type GetPaymentLinkPaymentsMetadata$Outbound = {
|
|
3314
|
+
export type GetPaymentLinkPaymentsMetadata$Outbound = string | {
|
|
3315
|
+
[k: string]: any;
|
|
3316
|
+
} | Array<string>;
|
|
3322
3317
|
|
|
3323
3318
|
/** @internal */
|
|
3324
3319
|
export const GetPaymentLinkPaymentsMetadata$outboundSchema: z.ZodType<
|
|
3325
3320
|
GetPaymentLinkPaymentsMetadata$Outbound,
|
|
3326
3321
|
z.ZodTypeDef,
|
|
3327
3322
|
GetPaymentLinkPaymentsMetadata
|
|
3328
|
-
> = z.
|
|
3323
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
3329
3324
|
|
|
3330
3325
|
/**
|
|
3331
3326
|
* @internal
|
|
@@ -3360,70 +3355,6 @@ export function getPaymentLinkPaymentsMetadataFromJSON(
|
|
|
3360
3355
|
);
|
|
3361
3356
|
}
|
|
3362
3357
|
|
|
3363
|
-
/** @internal */
|
|
3364
|
-
export const GetPaymentLinkPaymentsMetadataUnion$inboundSchema: z.ZodType<
|
|
3365
|
-
GetPaymentLinkPaymentsMetadataUnion,
|
|
3366
|
-
z.ZodTypeDef,
|
|
3367
|
-
unknown
|
|
3368
|
-
> = z.union([
|
|
3369
|
-
z.lazy(() => GetPaymentLinkPaymentsMetadata$inboundSchema),
|
|
3370
|
-
z.string(),
|
|
3371
|
-
z.array(z.string()),
|
|
3372
|
-
]);
|
|
3373
|
-
|
|
3374
|
-
/** @internal */
|
|
3375
|
-
export type GetPaymentLinkPaymentsMetadataUnion$Outbound =
|
|
3376
|
-
| GetPaymentLinkPaymentsMetadata$Outbound
|
|
3377
|
-
| string
|
|
3378
|
-
| Array<string>;
|
|
3379
|
-
|
|
3380
|
-
/** @internal */
|
|
3381
|
-
export const GetPaymentLinkPaymentsMetadataUnion$outboundSchema: z.ZodType<
|
|
3382
|
-
GetPaymentLinkPaymentsMetadataUnion$Outbound,
|
|
3383
|
-
z.ZodTypeDef,
|
|
3384
|
-
GetPaymentLinkPaymentsMetadataUnion
|
|
3385
|
-
> = z.union([
|
|
3386
|
-
z.lazy(() => GetPaymentLinkPaymentsMetadata$outboundSchema),
|
|
3387
|
-
z.string(),
|
|
3388
|
-
z.array(z.string()),
|
|
3389
|
-
]);
|
|
3390
|
-
|
|
3391
|
-
/**
|
|
3392
|
-
* @internal
|
|
3393
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3394
|
-
*/
|
|
3395
|
-
export namespace GetPaymentLinkPaymentsMetadataUnion$ {
|
|
3396
|
-
/** @deprecated use `GetPaymentLinkPaymentsMetadataUnion$inboundSchema` instead. */
|
|
3397
|
-
export const inboundSchema =
|
|
3398
|
-
GetPaymentLinkPaymentsMetadataUnion$inboundSchema;
|
|
3399
|
-
/** @deprecated use `GetPaymentLinkPaymentsMetadataUnion$outboundSchema` instead. */
|
|
3400
|
-
export const outboundSchema =
|
|
3401
|
-
GetPaymentLinkPaymentsMetadataUnion$outboundSchema;
|
|
3402
|
-
/** @deprecated use `GetPaymentLinkPaymentsMetadataUnion$Outbound` instead. */
|
|
3403
|
-
export type Outbound = GetPaymentLinkPaymentsMetadataUnion$Outbound;
|
|
3404
|
-
}
|
|
3405
|
-
|
|
3406
|
-
export function getPaymentLinkPaymentsMetadataUnionToJSON(
|
|
3407
|
-
getPaymentLinkPaymentsMetadataUnion: GetPaymentLinkPaymentsMetadataUnion,
|
|
3408
|
-
): string {
|
|
3409
|
-
return JSON.stringify(
|
|
3410
|
-
GetPaymentLinkPaymentsMetadataUnion$outboundSchema.parse(
|
|
3411
|
-
getPaymentLinkPaymentsMetadataUnion,
|
|
3412
|
-
),
|
|
3413
|
-
);
|
|
3414
|
-
}
|
|
3415
|
-
|
|
3416
|
-
export function getPaymentLinkPaymentsMetadataUnionFromJSON(
|
|
3417
|
-
jsonString: string,
|
|
3418
|
-
): SafeParseResult<GetPaymentLinkPaymentsMetadataUnion, SDKValidationError> {
|
|
3419
|
-
return safeParse(
|
|
3420
|
-
jsonString,
|
|
3421
|
-
(x) =>
|
|
3422
|
-
GetPaymentLinkPaymentsMetadataUnion$inboundSchema.parse(JSON.parse(x)),
|
|
3423
|
-
`Failed to parse 'GetPaymentLinkPaymentsMetadataUnion' from JSON`,
|
|
3424
|
-
);
|
|
3425
|
-
}
|
|
3426
|
-
|
|
3427
3358
|
/** @internal */
|
|
3428
3359
|
export const GetPaymentLinkPaymentsCaptureMode$inboundSchema: z.ZodNativeEnum<
|
|
3429
3360
|
typeof GetPaymentLinkPaymentsCaptureMode
|
|
@@ -5208,11 +5139,7 @@ export const GetPaymentLinkPaymentsPaymentOutput$inboundSchema: z.ZodType<
|
|
|
5208
5139
|
method: z.nullable(GetPaymentLinkPaymentsMethod$inboundSchema).optional(),
|
|
5209
5140
|
restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
|
|
5210
5141
|
metadata: z.nullable(
|
|
5211
|
-
z.union([
|
|
5212
|
-
z.lazy(() => GetPaymentLinkPaymentsMetadata$inboundSchema),
|
|
5213
|
-
z.string(),
|
|
5214
|
-
z.array(z.string()),
|
|
5215
|
-
]),
|
|
5142
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
5216
5143
|
).optional(),
|
|
5217
5144
|
captureMode: z.nullable(GetPaymentLinkPaymentsCaptureMode$inboundSchema)
|
|
5218
5145
|
.optional(),
|
|
@@ -5277,12 +5204,7 @@ export type GetPaymentLinkPaymentsPaymentOutput$Outbound = {
|
|
|
5277
5204
|
countryCode?: string | null | undefined;
|
|
5278
5205
|
method?: string | null | undefined;
|
|
5279
5206
|
restrictPaymentMethodsToCountry?: string | null | undefined;
|
|
5280
|
-
metadata?:
|
|
5281
|
-
| GetPaymentLinkPaymentsMetadata$Outbound
|
|
5282
|
-
| string
|
|
5283
|
-
| Array<string>
|
|
5284
|
-
| null
|
|
5285
|
-
| undefined;
|
|
5207
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
5286
5208
|
captureMode?: string | null | undefined;
|
|
5287
5209
|
captureDelay?: string | null | undefined;
|
|
5288
5210
|
captureBefore?: string | null | undefined;
|
|
@@ -5355,11 +5277,7 @@ export const GetPaymentLinkPaymentsPaymentOutput$outboundSchema: z.ZodType<
|
|
|
5355
5277
|
method: z.nullable(GetPaymentLinkPaymentsMethod$outboundSchema).optional(),
|
|
5356
5278
|
restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
|
|
5357
5279
|
metadata: z.nullable(
|
|
5358
|
-
z.union([
|
|
5359
|
-
z.lazy(() => GetPaymentLinkPaymentsMetadata$outboundSchema),
|
|
5360
|
-
z.string(),
|
|
5361
|
-
z.array(z.string()),
|
|
5362
|
-
]),
|
|
5280
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
5363
5281
|
).optional(),
|
|
5364
5282
|
captureMode: z.nullable(GetPaymentLinkPaymentsCaptureMode$outboundSchema)
|
|
5365
5283
|
.optional(),
|