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
|
@@ -151,17 +151,15 @@ export const ListCapturesStatus = {
|
|
|
151
151
|
*/
|
|
152
152
|
export type ListCapturesStatus = ClosedEnum<typeof ListCapturesStatus>;
|
|
153
153
|
|
|
154
|
-
export type ListCapturesMetadata = {};
|
|
155
|
-
|
|
156
154
|
/**
|
|
157
155
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
158
156
|
*
|
|
159
157
|
* @remarks
|
|
160
158
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
161
159
|
*/
|
|
162
|
-
export type
|
|
163
|
-
| ListCapturesMetadata
|
|
160
|
+
export type ListCapturesMetadata =
|
|
164
161
|
| string
|
|
162
|
+
| { [k: string]: any }
|
|
165
163
|
| Array<string>;
|
|
166
164
|
|
|
167
165
|
/**
|
|
@@ -314,7 +312,7 @@ export type ListCapturesCapture = {
|
|
|
314
312
|
* @remarks
|
|
315
313
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
316
314
|
*/
|
|
317
|
-
metadata?:
|
|
315
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
318
316
|
/**
|
|
319
317
|
* The unique identifier of the payment this capture was created for. For example: `tr_5B8cwPMGnU6qLbRvo7qEZo`.
|
|
320
318
|
*
|
|
@@ -938,17 +936,20 @@ export const ListCapturesMetadata$inboundSchema: z.ZodType<
|
|
|
938
936
|
ListCapturesMetadata,
|
|
939
937
|
z.ZodTypeDef,
|
|
940
938
|
unknown
|
|
941
|
-
> = z.
|
|
939
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
942
940
|
|
|
943
941
|
/** @internal */
|
|
944
|
-
export type ListCapturesMetadata$Outbound =
|
|
942
|
+
export type ListCapturesMetadata$Outbound =
|
|
943
|
+
| string
|
|
944
|
+
| { [k: string]: any }
|
|
945
|
+
| Array<string>;
|
|
945
946
|
|
|
946
947
|
/** @internal */
|
|
947
948
|
export const ListCapturesMetadata$outboundSchema: z.ZodType<
|
|
948
949
|
ListCapturesMetadata$Outbound,
|
|
949
950
|
z.ZodTypeDef,
|
|
950
951
|
ListCapturesMetadata
|
|
951
|
-
> = z.
|
|
952
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
952
953
|
|
|
953
954
|
/**
|
|
954
955
|
* @internal
|
|
@@ -981,65 +982,6 @@ export function listCapturesMetadataFromJSON(
|
|
|
981
982
|
);
|
|
982
983
|
}
|
|
983
984
|
|
|
984
|
-
/** @internal */
|
|
985
|
-
export const ListCapturesMetadataUnion$inboundSchema: z.ZodType<
|
|
986
|
-
ListCapturesMetadataUnion,
|
|
987
|
-
z.ZodTypeDef,
|
|
988
|
-
unknown
|
|
989
|
-
> = z.union([
|
|
990
|
-
z.lazy(() => ListCapturesMetadata$inboundSchema),
|
|
991
|
-
z.string(),
|
|
992
|
-
z.array(z.string()),
|
|
993
|
-
]);
|
|
994
|
-
|
|
995
|
-
/** @internal */
|
|
996
|
-
export type ListCapturesMetadataUnion$Outbound =
|
|
997
|
-
| ListCapturesMetadata$Outbound
|
|
998
|
-
| string
|
|
999
|
-
| Array<string>;
|
|
1000
|
-
|
|
1001
|
-
/** @internal */
|
|
1002
|
-
export const ListCapturesMetadataUnion$outboundSchema: z.ZodType<
|
|
1003
|
-
ListCapturesMetadataUnion$Outbound,
|
|
1004
|
-
z.ZodTypeDef,
|
|
1005
|
-
ListCapturesMetadataUnion
|
|
1006
|
-
> = z.union([
|
|
1007
|
-
z.lazy(() => ListCapturesMetadata$outboundSchema),
|
|
1008
|
-
z.string(),
|
|
1009
|
-
z.array(z.string()),
|
|
1010
|
-
]);
|
|
1011
|
-
|
|
1012
|
-
/**
|
|
1013
|
-
* @internal
|
|
1014
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1015
|
-
*/
|
|
1016
|
-
export namespace ListCapturesMetadataUnion$ {
|
|
1017
|
-
/** @deprecated use `ListCapturesMetadataUnion$inboundSchema` instead. */
|
|
1018
|
-
export const inboundSchema = ListCapturesMetadataUnion$inboundSchema;
|
|
1019
|
-
/** @deprecated use `ListCapturesMetadataUnion$outboundSchema` instead. */
|
|
1020
|
-
export const outboundSchema = ListCapturesMetadataUnion$outboundSchema;
|
|
1021
|
-
/** @deprecated use `ListCapturesMetadataUnion$Outbound` instead. */
|
|
1022
|
-
export type Outbound = ListCapturesMetadataUnion$Outbound;
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
export function listCapturesMetadataUnionToJSON(
|
|
1026
|
-
listCapturesMetadataUnion: ListCapturesMetadataUnion,
|
|
1027
|
-
): string {
|
|
1028
|
-
return JSON.stringify(
|
|
1029
|
-
ListCapturesMetadataUnion$outboundSchema.parse(listCapturesMetadataUnion),
|
|
1030
|
-
);
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1033
|
-
export function listCapturesMetadataUnionFromJSON(
|
|
1034
|
-
jsonString: string,
|
|
1035
|
-
): SafeParseResult<ListCapturesMetadataUnion, SDKValidationError> {
|
|
1036
|
-
return safeParse(
|
|
1037
|
-
jsonString,
|
|
1038
|
-
(x) => ListCapturesMetadataUnion$inboundSchema.parse(JSON.parse(x)),
|
|
1039
|
-
`Failed to parse 'ListCapturesMetadataUnion' from JSON`,
|
|
1040
|
-
);
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
985
|
/** @internal */
|
|
1044
986
|
export const ListCapturesCaptureSelf$inboundSchema: z.ZodType<
|
|
1045
987
|
ListCapturesCaptureSelf,
|
|
@@ -1413,11 +1355,7 @@ export const ListCapturesCapture$inboundSchema: z.ZodType<
|
|
|
1413
1355
|
).optional(),
|
|
1414
1356
|
status: ListCapturesStatus$inboundSchema,
|
|
1415
1357
|
metadata: z.nullable(
|
|
1416
|
-
z.union([
|
|
1417
|
-
z.lazy(() => ListCapturesMetadata$inboundSchema),
|
|
1418
|
-
z.string(),
|
|
1419
|
-
z.array(z.string()),
|
|
1420
|
-
]),
|
|
1358
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1421
1359
|
).optional(),
|
|
1422
1360
|
paymentId: z.string(),
|
|
1423
1361
|
shipmentId: z.nullable(z.string()).optional(),
|
|
@@ -1439,12 +1377,7 @@ export type ListCapturesCapture$Outbound = {
|
|
|
1439
1377
|
amount: ListCapturesAmount$Outbound | null;
|
|
1440
1378
|
settlementAmount?: ListCapturesSettlementAmount$Outbound | null | undefined;
|
|
1441
1379
|
status: string;
|
|
1442
|
-
metadata?:
|
|
1443
|
-
| ListCapturesMetadata$Outbound
|
|
1444
|
-
| string
|
|
1445
|
-
| Array<string>
|
|
1446
|
-
| null
|
|
1447
|
-
| undefined;
|
|
1380
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
1448
1381
|
paymentId: string;
|
|
1449
1382
|
shipmentId?: string | null | undefined;
|
|
1450
1383
|
settlementId?: string | null | undefined;
|
|
@@ -1468,11 +1401,7 @@ export const ListCapturesCapture$outboundSchema: z.ZodType<
|
|
|
1468
1401
|
).optional(),
|
|
1469
1402
|
status: ListCapturesStatus$outboundSchema,
|
|
1470
1403
|
metadata: z.nullable(
|
|
1471
|
-
z.union([
|
|
1472
|
-
z.lazy(() => ListCapturesMetadata$outboundSchema),
|
|
1473
|
-
z.string(),
|
|
1474
|
-
z.array(z.string()),
|
|
1475
|
-
]),
|
|
1404
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1476
1405
|
).optional(),
|
|
1477
1406
|
paymentId: z.string(),
|
|
1478
1407
|
shipmentId: z.nullable(z.string()).optional(),
|
|
@@ -779,17 +779,15 @@ export type ListCustomerPaymentsMethod = ClosedEnum<
|
|
|
779
779
|
typeof ListCustomerPaymentsMethod
|
|
780
780
|
>;
|
|
781
781
|
|
|
782
|
-
export type ListCustomerPaymentsMetadata = {};
|
|
783
|
-
|
|
784
782
|
/**
|
|
785
783
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
786
784
|
*
|
|
787
785
|
* @remarks
|
|
788
786
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
789
787
|
*/
|
|
790
|
-
export type
|
|
791
|
-
| ListCustomerPaymentsMetadata
|
|
788
|
+
export type ListCustomerPaymentsMetadata =
|
|
792
789
|
| string
|
|
790
|
+
| { [k: string]: any }
|
|
793
791
|
| Array<string>;
|
|
794
792
|
|
|
795
793
|
/**
|
|
@@ -1612,12 +1610,7 @@ export type ListCustomerPaymentsPaymentOutput = {
|
|
|
1612
1610
|
* @remarks
|
|
1613
1611
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
1614
1612
|
*/
|
|
1615
|
-
metadata?:
|
|
1616
|
-
| ListCustomerPaymentsMetadata
|
|
1617
|
-
| string
|
|
1618
|
-
| Array<string>
|
|
1619
|
-
| null
|
|
1620
|
-
| undefined;
|
|
1613
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
1621
1614
|
/**
|
|
1622
1615
|
* 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#/)
|
|
1623
1616
|
*
|
|
@@ -3313,17 +3306,19 @@ export const ListCustomerPaymentsMetadata$inboundSchema: z.ZodType<
|
|
|
3313
3306
|
ListCustomerPaymentsMetadata,
|
|
3314
3307
|
z.ZodTypeDef,
|
|
3315
3308
|
unknown
|
|
3316
|
-
> = z.
|
|
3309
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
3317
3310
|
|
|
3318
3311
|
/** @internal */
|
|
3319
|
-
export type ListCustomerPaymentsMetadata$Outbound = {
|
|
3312
|
+
export type ListCustomerPaymentsMetadata$Outbound = string | {
|
|
3313
|
+
[k: string]: any;
|
|
3314
|
+
} | Array<string>;
|
|
3320
3315
|
|
|
3321
3316
|
/** @internal */
|
|
3322
3317
|
export const ListCustomerPaymentsMetadata$outboundSchema: z.ZodType<
|
|
3323
3318
|
ListCustomerPaymentsMetadata$Outbound,
|
|
3324
3319
|
z.ZodTypeDef,
|
|
3325
3320
|
ListCustomerPaymentsMetadata
|
|
3326
|
-
> = z.
|
|
3321
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
3327
3322
|
|
|
3328
3323
|
/**
|
|
3329
3324
|
* @internal
|
|
@@ -3358,68 +3353,6 @@ export function listCustomerPaymentsMetadataFromJSON(
|
|
|
3358
3353
|
);
|
|
3359
3354
|
}
|
|
3360
3355
|
|
|
3361
|
-
/** @internal */
|
|
3362
|
-
export const ListCustomerPaymentsMetadataUnion$inboundSchema: z.ZodType<
|
|
3363
|
-
ListCustomerPaymentsMetadataUnion,
|
|
3364
|
-
z.ZodTypeDef,
|
|
3365
|
-
unknown
|
|
3366
|
-
> = z.union([
|
|
3367
|
-
z.lazy(() => ListCustomerPaymentsMetadata$inboundSchema),
|
|
3368
|
-
z.string(),
|
|
3369
|
-
z.array(z.string()),
|
|
3370
|
-
]);
|
|
3371
|
-
|
|
3372
|
-
/** @internal */
|
|
3373
|
-
export type ListCustomerPaymentsMetadataUnion$Outbound =
|
|
3374
|
-
| ListCustomerPaymentsMetadata$Outbound
|
|
3375
|
-
| string
|
|
3376
|
-
| Array<string>;
|
|
3377
|
-
|
|
3378
|
-
/** @internal */
|
|
3379
|
-
export const ListCustomerPaymentsMetadataUnion$outboundSchema: z.ZodType<
|
|
3380
|
-
ListCustomerPaymentsMetadataUnion$Outbound,
|
|
3381
|
-
z.ZodTypeDef,
|
|
3382
|
-
ListCustomerPaymentsMetadataUnion
|
|
3383
|
-
> = z.union([
|
|
3384
|
-
z.lazy(() => ListCustomerPaymentsMetadata$outboundSchema),
|
|
3385
|
-
z.string(),
|
|
3386
|
-
z.array(z.string()),
|
|
3387
|
-
]);
|
|
3388
|
-
|
|
3389
|
-
/**
|
|
3390
|
-
* @internal
|
|
3391
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3392
|
-
*/
|
|
3393
|
-
export namespace ListCustomerPaymentsMetadataUnion$ {
|
|
3394
|
-
/** @deprecated use `ListCustomerPaymentsMetadataUnion$inboundSchema` instead. */
|
|
3395
|
-
export const inboundSchema = ListCustomerPaymentsMetadataUnion$inboundSchema;
|
|
3396
|
-
/** @deprecated use `ListCustomerPaymentsMetadataUnion$outboundSchema` instead. */
|
|
3397
|
-
export const outboundSchema =
|
|
3398
|
-
ListCustomerPaymentsMetadataUnion$outboundSchema;
|
|
3399
|
-
/** @deprecated use `ListCustomerPaymentsMetadataUnion$Outbound` instead. */
|
|
3400
|
-
export type Outbound = ListCustomerPaymentsMetadataUnion$Outbound;
|
|
3401
|
-
}
|
|
3402
|
-
|
|
3403
|
-
export function listCustomerPaymentsMetadataUnionToJSON(
|
|
3404
|
-
listCustomerPaymentsMetadataUnion: ListCustomerPaymentsMetadataUnion,
|
|
3405
|
-
): string {
|
|
3406
|
-
return JSON.stringify(
|
|
3407
|
-
ListCustomerPaymentsMetadataUnion$outboundSchema.parse(
|
|
3408
|
-
listCustomerPaymentsMetadataUnion,
|
|
3409
|
-
),
|
|
3410
|
-
);
|
|
3411
|
-
}
|
|
3412
|
-
|
|
3413
|
-
export function listCustomerPaymentsMetadataUnionFromJSON(
|
|
3414
|
-
jsonString: string,
|
|
3415
|
-
): SafeParseResult<ListCustomerPaymentsMetadataUnion, SDKValidationError> {
|
|
3416
|
-
return safeParse(
|
|
3417
|
-
jsonString,
|
|
3418
|
-
(x) => ListCustomerPaymentsMetadataUnion$inboundSchema.parse(JSON.parse(x)),
|
|
3419
|
-
`Failed to parse 'ListCustomerPaymentsMetadataUnion' from JSON`,
|
|
3420
|
-
);
|
|
3421
|
-
}
|
|
3422
|
-
|
|
3423
3356
|
/** @internal */
|
|
3424
3357
|
export const ListCustomerPaymentsCaptureMode$inboundSchema: z.ZodNativeEnum<
|
|
3425
3358
|
typeof ListCustomerPaymentsCaptureMode
|
|
@@ -5161,11 +5094,7 @@ export const ListCustomerPaymentsPaymentOutput$inboundSchema: z.ZodType<
|
|
|
5161
5094
|
method: z.nullable(ListCustomerPaymentsMethod$inboundSchema).optional(),
|
|
5162
5095
|
restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
|
|
5163
5096
|
metadata: z.nullable(
|
|
5164
|
-
z.union([
|
|
5165
|
-
z.lazy(() => ListCustomerPaymentsMetadata$inboundSchema),
|
|
5166
|
-
z.string(),
|
|
5167
|
-
z.array(z.string()),
|
|
5168
|
-
]),
|
|
5097
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
5169
5098
|
).optional(),
|
|
5170
5099
|
captureMode: z.nullable(ListCustomerPaymentsCaptureMode$inboundSchema)
|
|
5171
5100
|
.optional(),
|
|
@@ -5228,12 +5157,7 @@ export type ListCustomerPaymentsPaymentOutput$Outbound = {
|
|
|
5228
5157
|
countryCode?: string | null | undefined;
|
|
5229
5158
|
method?: string | null | undefined;
|
|
5230
5159
|
restrictPaymentMethodsToCountry?: string | null | undefined;
|
|
5231
|
-
metadata?:
|
|
5232
|
-
| ListCustomerPaymentsMetadata$Outbound
|
|
5233
|
-
| string
|
|
5234
|
-
| Array<string>
|
|
5235
|
-
| null
|
|
5236
|
-
| undefined;
|
|
5160
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
5237
5161
|
captureMode?: string | null | undefined;
|
|
5238
5162
|
captureDelay?: string | null | undefined;
|
|
5239
5163
|
captureBefore?: string | null | undefined;
|
|
@@ -5306,11 +5230,7 @@ export const ListCustomerPaymentsPaymentOutput$outboundSchema: z.ZodType<
|
|
|
5306
5230
|
method: z.nullable(ListCustomerPaymentsMethod$outboundSchema).optional(),
|
|
5307
5231
|
restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
|
|
5308
5232
|
metadata: z.nullable(
|
|
5309
|
-
z.union([
|
|
5310
|
-
z.lazy(() => ListCustomerPaymentsMetadata$outboundSchema),
|
|
5311
|
-
z.string(),
|
|
5312
|
-
z.array(z.string()),
|
|
5313
|
-
]),
|
|
5233
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
5314
5234
|
).optional(),
|
|
5315
5235
|
captureMode: z.nullable(ListCustomerPaymentsCaptureMode$outboundSchema)
|
|
5316
5236
|
.optional(),
|
|
@@ -138,17 +138,15 @@ export const ListCustomersLocale = {
|
|
|
138
138
|
*/
|
|
139
139
|
export type ListCustomersLocale = ClosedEnum<typeof ListCustomersLocale>;
|
|
140
140
|
|
|
141
|
-
export type ListCustomersMetadata = {};
|
|
142
|
-
|
|
143
141
|
/**
|
|
144
142
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
145
143
|
*
|
|
146
144
|
* @remarks
|
|
147
145
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
148
146
|
*/
|
|
149
|
-
export type
|
|
150
|
-
| ListCustomersMetadata
|
|
147
|
+
export type ListCustomersMetadata =
|
|
151
148
|
| string
|
|
149
|
+
| { [k: string]: any }
|
|
152
150
|
| Array<string>;
|
|
153
151
|
|
|
154
152
|
/**
|
|
@@ -317,7 +315,7 @@ export type ListCustomersCustomer = {
|
|
|
317
315
|
* @remarks
|
|
318
316
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
319
317
|
*/
|
|
320
|
-
metadata:
|
|
318
|
+
metadata: string | { [k: string]: any } | Array<string> | null;
|
|
321
319
|
/**
|
|
322
320
|
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
323
321
|
*/
|
|
@@ -804,17 +802,20 @@ export const ListCustomersMetadata$inboundSchema: z.ZodType<
|
|
|
804
802
|
ListCustomersMetadata,
|
|
805
803
|
z.ZodTypeDef,
|
|
806
804
|
unknown
|
|
807
|
-
> = z.
|
|
805
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
808
806
|
|
|
809
807
|
/** @internal */
|
|
810
|
-
export type ListCustomersMetadata$Outbound =
|
|
808
|
+
export type ListCustomersMetadata$Outbound =
|
|
809
|
+
| string
|
|
810
|
+
| { [k: string]: any }
|
|
811
|
+
| Array<string>;
|
|
811
812
|
|
|
812
813
|
/** @internal */
|
|
813
814
|
export const ListCustomersMetadata$outboundSchema: z.ZodType<
|
|
814
815
|
ListCustomersMetadata$Outbound,
|
|
815
816
|
z.ZodTypeDef,
|
|
816
817
|
ListCustomersMetadata
|
|
817
|
-
> = z.
|
|
818
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
818
819
|
|
|
819
820
|
/**
|
|
820
821
|
* @internal
|
|
@@ -847,65 +848,6 @@ export function listCustomersMetadataFromJSON(
|
|
|
847
848
|
);
|
|
848
849
|
}
|
|
849
850
|
|
|
850
|
-
/** @internal */
|
|
851
|
-
export const ListCustomersMetadataUnion$inboundSchema: z.ZodType<
|
|
852
|
-
ListCustomersMetadataUnion,
|
|
853
|
-
z.ZodTypeDef,
|
|
854
|
-
unknown
|
|
855
|
-
> = z.union([
|
|
856
|
-
z.lazy(() => ListCustomersMetadata$inboundSchema),
|
|
857
|
-
z.string(),
|
|
858
|
-
z.array(z.string()),
|
|
859
|
-
]);
|
|
860
|
-
|
|
861
|
-
/** @internal */
|
|
862
|
-
export type ListCustomersMetadataUnion$Outbound =
|
|
863
|
-
| ListCustomersMetadata$Outbound
|
|
864
|
-
| string
|
|
865
|
-
| Array<string>;
|
|
866
|
-
|
|
867
|
-
/** @internal */
|
|
868
|
-
export const ListCustomersMetadataUnion$outboundSchema: z.ZodType<
|
|
869
|
-
ListCustomersMetadataUnion$Outbound,
|
|
870
|
-
z.ZodTypeDef,
|
|
871
|
-
ListCustomersMetadataUnion
|
|
872
|
-
> = z.union([
|
|
873
|
-
z.lazy(() => ListCustomersMetadata$outboundSchema),
|
|
874
|
-
z.string(),
|
|
875
|
-
z.array(z.string()),
|
|
876
|
-
]);
|
|
877
|
-
|
|
878
|
-
/**
|
|
879
|
-
* @internal
|
|
880
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
881
|
-
*/
|
|
882
|
-
export namespace ListCustomersMetadataUnion$ {
|
|
883
|
-
/** @deprecated use `ListCustomersMetadataUnion$inboundSchema` instead. */
|
|
884
|
-
export const inboundSchema = ListCustomersMetadataUnion$inboundSchema;
|
|
885
|
-
/** @deprecated use `ListCustomersMetadataUnion$outboundSchema` instead. */
|
|
886
|
-
export const outboundSchema = ListCustomersMetadataUnion$outboundSchema;
|
|
887
|
-
/** @deprecated use `ListCustomersMetadataUnion$Outbound` instead. */
|
|
888
|
-
export type Outbound = ListCustomersMetadataUnion$Outbound;
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
export function listCustomersMetadataUnionToJSON(
|
|
892
|
-
listCustomersMetadataUnion: ListCustomersMetadataUnion,
|
|
893
|
-
): string {
|
|
894
|
-
return JSON.stringify(
|
|
895
|
-
ListCustomersMetadataUnion$outboundSchema.parse(listCustomersMetadataUnion),
|
|
896
|
-
);
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
export function listCustomersMetadataUnionFromJSON(
|
|
900
|
-
jsonString: string,
|
|
901
|
-
): SafeParseResult<ListCustomersMetadataUnion, SDKValidationError> {
|
|
902
|
-
return safeParse(
|
|
903
|
-
jsonString,
|
|
904
|
-
(x) => ListCustomersMetadataUnion$inboundSchema.parse(JSON.parse(x)),
|
|
905
|
-
`Failed to parse 'ListCustomersMetadataUnion' from JSON`,
|
|
906
|
-
);
|
|
907
|
-
}
|
|
908
|
-
|
|
909
851
|
/** @internal */
|
|
910
852
|
export const CustomerSelf$inboundSchema: z.ZodType<
|
|
911
853
|
CustomerSelf,
|
|
@@ -1330,11 +1272,7 @@ export const ListCustomersCustomer$inboundSchema: z.ZodType<
|
|
|
1330
1272
|
email: z.nullable(z.string()),
|
|
1331
1273
|
locale: z.nullable(ListCustomersLocale$inboundSchema),
|
|
1332
1274
|
metadata: z.nullable(
|
|
1333
|
-
z.union([
|
|
1334
|
-
z.lazy(() => ListCustomersMetadata$inboundSchema),
|
|
1335
|
-
z.string(),
|
|
1336
|
-
z.array(z.string()),
|
|
1337
|
-
]),
|
|
1275
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1338
1276
|
),
|
|
1339
1277
|
createdAt: z.string(),
|
|
1340
1278
|
_links: z.lazy(() => CustomerLinks$inboundSchema),
|
|
@@ -1352,7 +1290,7 @@ export type ListCustomersCustomer$Outbound = {
|
|
|
1352
1290
|
name: string | null;
|
|
1353
1291
|
email: string | null;
|
|
1354
1292
|
locale: string | null;
|
|
1355
|
-
metadata:
|
|
1293
|
+
metadata: string | { [k: string]: any } | Array<string> | null;
|
|
1356
1294
|
createdAt: string;
|
|
1357
1295
|
_links: CustomerLinks$Outbound;
|
|
1358
1296
|
};
|
|
@@ -1370,11 +1308,7 @@ export const ListCustomersCustomer$outboundSchema: z.ZodType<
|
|
|
1370
1308
|
email: z.nullable(z.string()),
|
|
1371
1309
|
locale: z.nullable(ListCustomersLocale$outboundSchema),
|
|
1372
1310
|
metadata: z.nullable(
|
|
1373
|
-
z.union([
|
|
1374
|
-
z.lazy(() => ListCustomersMetadata$outboundSchema),
|
|
1375
|
-
z.string(),
|
|
1376
|
-
z.array(z.string()),
|
|
1377
|
-
]),
|
|
1311
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1378
1312
|
),
|
|
1379
1313
|
createdAt: z.string(),
|
|
1380
1314
|
links: z.lazy(() => CustomerLinks$outboundSchema),
|
|
@@ -761,17 +761,15 @@ export const ListPaymentsMethod = {
|
|
|
761
761
|
*/
|
|
762
762
|
export type ListPaymentsMethod = ClosedEnum<typeof ListPaymentsMethod>;
|
|
763
763
|
|
|
764
|
-
export type ListPaymentsMetadata = {};
|
|
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
|
-
| ListPaymentsMetadata
|
|
770
|
+
export type ListPaymentsMetadata =
|
|
774
771
|
| string
|
|
772
|
+
| { [k: string]: any }
|
|
775
773
|
| Array<string>;
|
|
776
774
|
|
|
777
775
|
/**
|
|
@@ -1592,7 +1590,7 @@ export type ListPaymentsPaymentOutput = {
|
|
|
1592
1590
|
* @remarks
|
|
1593
1591
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
1594
1592
|
*/
|
|
1595
|
-
metadata?:
|
|
1593
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
1596
1594
|
/**
|
|
1597
1595
|
* 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#/)
|
|
1598
1596
|
*
|
|
@@ -3226,17 +3224,20 @@ export const ListPaymentsMetadata$inboundSchema: z.ZodType<
|
|
|
3226
3224
|
ListPaymentsMetadata,
|
|
3227
3225
|
z.ZodTypeDef,
|
|
3228
3226
|
unknown
|
|
3229
|
-
> = z.
|
|
3227
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
3230
3228
|
|
|
3231
3229
|
/** @internal */
|
|
3232
|
-
export type ListPaymentsMetadata$Outbound =
|
|
3230
|
+
export type ListPaymentsMetadata$Outbound =
|
|
3231
|
+
| string
|
|
3232
|
+
| { [k: string]: any }
|
|
3233
|
+
| Array<string>;
|
|
3233
3234
|
|
|
3234
3235
|
/** @internal */
|
|
3235
3236
|
export const ListPaymentsMetadata$outboundSchema: z.ZodType<
|
|
3236
3237
|
ListPaymentsMetadata$Outbound,
|
|
3237
3238
|
z.ZodTypeDef,
|
|
3238
3239
|
ListPaymentsMetadata
|
|
3239
|
-
> = z.
|
|
3240
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
3240
3241
|
|
|
3241
3242
|
/**
|
|
3242
3243
|
* @internal
|
|
@@ -3269,65 +3270,6 @@ export function listPaymentsMetadataFromJSON(
|
|
|
3269
3270
|
);
|
|
3270
3271
|
}
|
|
3271
3272
|
|
|
3272
|
-
/** @internal */
|
|
3273
|
-
export const ListPaymentsMetadataUnion$inboundSchema: z.ZodType<
|
|
3274
|
-
ListPaymentsMetadataUnion,
|
|
3275
|
-
z.ZodTypeDef,
|
|
3276
|
-
unknown
|
|
3277
|
-
> = z.union([
|
|
3278
|
-
z.lazy(() => ListPaymentsMetadata$inboundSchema),
|
|
3279
|
-
z.string(),
|
|
3280
|
-
z.array(z.string()),
|
|
3281
|
-
]);
|
|
3282
|
-
|
|
3283
|
-
/** @internal */
|
|
3284
|
-
export type ListPaymentsMetadataUnion$Outbound =
|
|
3285
|
-
| ListPaymentsMetadata$Outbound
|
|
3286
|
-
| string
|
|
3287
|
-
| Array<string>;
|
|
3288
|
-
|
|
3289
|
-
/** @internal */
|
|
3290
|
-
export const ListPaymentsMetadataUnion$outboundSchema: z.ZodType<
|
|
3291
|
-
ListPaymentsMetadataUnion$Outbound,
|
|
3292
|
-
z.ZodTypeDef,
|
|
3293
|
-
ListPaymentsMetadataUnion
|
|
3294
|
-
> = z.union([
|
|
3295
|
-
z.lazy(() => ListPaymentsMetadata$outboundSchema),
|
|
3296
|
-
z.string(),
|
|
3297
|
-
z.array(z.string()),
|
|
3298
|
-
]);
|
|
3299
|
-
|
|
3300
|
-
/**
|
|
3301
|
-
* @internal
|
|
3302
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3303
|
-
*/
|
|
3304
|
-
export namespace ListPaymentsMetadataUnion$ {
|
|
3305
|
-
/** @deprecated use `ListPaymentsMetadataUnion$inboundSchema` instead. */
|
|
3306
|
-
export const inboundSchema = ListPaymentsMetadataUnion$inboundSchema;
|
|
3307
|
-
/** @deprecated use `ListPaymentsMetadataUnion$outboundSchema` instead. */
|
|
3308
|
-
export const outboundSchema = ListPaymentsMetadataUnion$outboundSchema;
|
|
3309
|
-
/** @deprecated use `ListPaymentsMetadataUnion$Outbound` instead. */
|
|
3310
|
-
export type Outbound = ListPaymentsMetadataUnion$Outbound;
|
|
3311
|
-
}
|
|
3312
|
-
|
|
3313
|
-
export function listPaymentsMetadataUnionToJSON(
|
|
3314
|
-
listPaymentsMetadataUnion: ListPaymentsMetadataUnion,
|
|
3315
|
-
): string {
|
|
3316
|
-
return JSON.stringify(
|
|
3317
|
-
ListPaymentsMetadataUnion$outboundSchema.parse(listPaymentsMetadataUnion),
|
|
3318
|
-
);
|
|
3319
|
-
}
|
|
3320
|
-
|
|
3321
|
-
export function listPaymentsMetadataUnionFromJSON(
|
|
3322
|
-
jsonString: string,
|
|
3323
|
-
): SafeParseResult<ListPaymentsMetadataUnion, SDKValidationError> {
|
|
3324
|
-
return safeParse(
|
|
3325
|
-
jsonString,
|
|
3326
|
-
(x) => ListPaymentsMetadataUnion$inboundSchema.parse(JSON.parse(x)),
|
|
3327
|
-
`Failed to parse 'ListPaymentsMetadataUnion' from JSON`,
|
|
3328
|
-
);
|
|
3329
|
-
}
|
|
3330
|
-
|
|
3331
3273
|
/** @internal */
|
|
3332
3274
|
export const ListPaymentsCaptureMode$inboundSchema: z.ZodNativeEnum<
|
|
3333
3275
|
typeof ListPaymentsCaptureMode
|
|
@@ -4976,11 +4918,7 @@ export const ListPaymentsPaymentOutput$inboundSchema: z.ZodType<
|
|
|
4976
4918
|
method: z.nullable(ListPaymentsMethod$inboundSchema).optional(),
|
|
4977
4919
|
restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
|
|
4978
4920
|
metadata: z.nullable(
|
|
4979
|
-
z.union([
|
|
4980
|
-
z.lazy(() => ListPaymentsMetadata$inboundSchema),
|
|
4981
|
-
z.string(),
|
|
4982
|
-
z.array(z.string()),
|
|
4983
|
-
]),
|
|
4921
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
4984
4922
|
).optional(),
|
|
4985
4923
|
captureMode: z.nullable(ListPaymentsCaptureMode$inboundSchema).optional(),
|
|
4986
4924
|
captureDelay: z.nullable(z.string()).optional(),
|
|
@@ -5038,12 +4976,7 @@ export type ListPaymentsPaymentOutput$Outbound = {
|
|
|
5038
4976
|
countryCode?: string | null | undefined;
|
|
5039
4977
|
method?: string | null | undefined;
|
|
5040
4978
|
restrictPaymentMethodsToCountry?: string | null | undefined;
|
|
5041
|
-
metadata?:
|
|
5042
|
-
| ListPaymentsMetadata$Outbound
|
|
5043
|
-
| string
|
|
5044
|
-
| Array<string>
|
|
5045
|
-
| null
|
|
5046
|
-
| undefined;
|
|
4979
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
5047
4980
|
captureMode?: string | null | undefined;
|
|
5048
4981
|
captureDelay?: string | null | undefined;
|
|
5049
4982
|
captureBefore?: string | null | undefined;
|
|
@@ -5105,11 +5038,7 @@ export const ListPaymentsPaymentOutput$outboundSchema: z.ZodType<
|
|
|
5105
5038
|
method: z.nullable(ListPaymentsMethod$outboundSchema).optional(),
|
|
5106
5039
|
restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
|
|
5107
5040
|
metadata: z.nullable(
|
|
5108
|
-
z.union([
|
|
5109
|
-
z.lazy(() => ListPaymentsMetadata$outboundSchema),
|
|
5110
|
-
z.string(),
|
|
5111
|
-
z.array(z.string()),
|
|
5112
|
-
]),
|
|
5041
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
5113
5042
|
).optional(),
|
|
5114
5043
|
captureMode: z.nullable(ListPaymentsCaptureMode$outboundSchema).optional(),
|
|
5115
5044
|
captureDelay: z.nullable(z.string()).optional(),
|