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
|
@@ -783,17 +783,15 @@ export type ListSubscriptionPaymentsMethod = ClosedEnum<
|
|
|
783
783
|
typeof ListSubscriptionPaymentsMethod
|
|
784
784
|
>;
|
|
785
785
|
|
|
786
|
-
export type ListSubscriptionPaymentsMetadata = {};
|
|
787
|
-
|
|
788
786
|
/**
|
|
789
787
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
790
788
|
*
|
|
791
789
|
* @remarks
|
|
792
790
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
793
791
|
*/
|
|
794
|
-
export type
|
|
795
|
-
| ListSubscriptionPaymentsMetadata
|
|
792
|
+
export type ListSubscriptionPaymentsMetadata =
|
|
796
793
|
| string
|
|
794
|
+
| { [k: string]: any }
|
|
797
795
|
| Array<string>;
|
|
798
796
|
|
|
799
797
|
/**
|
|
@@ -1616,12 +1614,7 @@ export type ListSubscriptionPaymentsPaymentOutput = {
|
|
|
1616
1614
|
* @remarks
|
|
1617
1615
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
1618
1616
|
*/
|
|
1619
|
-
metadata?:
|
|
1620
|
-
| ListSubscriptionPaymentsMetadata
|
|
1621
|
-
| string
|
|
1622
|
-
| Array<string>
|
|
1623
|
-
| null
|
|
1624
|
-
| undefined;
|
|
1617
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
1625
1618
|
/**
|
|
1626
1619
|
* 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#/)
|
|
1627
1620
|
*
|
|
@@ -3379,17 +3372,19 @@ export const ListSubscriptionPaymentsMetadata$inboundSchema: z.ZodType<
|
|
|
3379
3372
|
ListSubscriptionPaymentsMetadata,
|
|
3380
3373
|
z.ZodTypeDef,
|
|
3381
3374
|
unknown
|
|
3382
|
-
> = z.
|
|
3375
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
3383
3376
|
|
|
3384
3377
|
/** @internal */
|
|
3385
|
-
export type ListSubscriptionPaymentsMetadata$Outbound = {
|
|
3378
|
+
export type ListSubscriptionPaymentsMetadata$Outbound = string | {
|
|
3379
|
+
[k: string]: any;
|
|
3380
|
+
} | Array<string>;
|
|
3386
3381
|
|
|
3387
3382
|
/** @internal */
|
|
3388
3383
|
export const ListSubscriptionPaymentsMetadata$outboundSchema: z.ZodType<
|
|
3389
3384
|
ListSubscriptionPaymentsMetadata$Outbound,
|
|
3390
3385
|
z.ZodTypeDef,
|
|
3391
3386
|
ListSubscriptionPaymentsMetadata
|
|
3392
|
-
> = z.
|
|
3387
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
3393
3388
|
|
|
3394
3389
|
/**
|
|
3395
3390
|
* @internal
|
|
@@ -3424,70 +3419,6 @@ export function listSubscriptionPaymentsMetadataFromJSON(
|
|
|
3424
3419
|
);
|
|
3425
3420
|
}
|
|
3426
3421
|
|
|
3427
|
-
/** @internal */
|
|
3428
|
-
export const ListSubscriptionPaymentsMetadataUnion$inboundSchema: z.ZodType<
|
|
3429
|
-
ListSubscriptionPaymentsMetadataUnion,
|
|
3430
|
-
z.ZodTypeDef,
|
|
3431
|
-
unknown
|
|
3432
|
-
> = z.union([
|
|
3433
|
-
z.lazy(() => ListSubscriptionPaymentsMetadata$inboundSchema),
|
|
3434
|
-
z.string(),
|
|
3435
|
-
z.array(z.string()),
|
|
3436
|
-
]);
|
|
3437
|
-
|
|
3438
|
-
/** @internal */
|
|
3439
|
-
export type ListSubscriptionPaymentsMetadataUnion$Outbound =
|
|
3440
|
-
| ListSubscriptionPaymentsMetadata$Outbound
|
|
3441
|
-
| string
|
|
3442
|
-
| Array<string>;
|
|
3443
|
-
|
|
3444
|
-
/** @internal */
|
|
3445
|
-
export const ListSubscriptionPaymentsMetadataUnion$outboundSchema: z.ZodType<
|
|
3446
|
-
ListSubscriptionPaymentsMetadataUnion$Outbound,
|
|
3447
|
-
z.ZodTypeDef,
|
|
3448
|
-
ListSubscriptionPaymentsMetadataUnion
|
|
3449
|
-
> = z.union([
|
|
3450
|
-
z.lazy(() => ListSubscriptionPaymentsMetadata$outboundSchema),
|
|
3451
|
-
z.string(),
|
|
3452
|
-
z.array(z.string()),
|
|
3453
|
-
]);
|
|
3454
|
-
|
|
3455
|
-
/**
|
|
3456
|
-
* @internal
|
|
3457
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3458
|
-
*/
|
|
3459
|
-
export namespace ListSubscriptionPaymentsMetadataUnion$ {
|
|
3460
|
-
/** @deprecated use `ListSubscriptionPaymentsMetadataUnion$inboundSchema` instead. */
|
|
3461
|
-
export const inboundSchema =
|
|
3462
|
-
ListSubscriptionPaymentsMetadataUnion$inboundSchema;
|
|
3463
|
-
/** @deprecated use `ListSubscriptionPaymentsMetadataUnion$outboundSchema` instead. */
|
|
3464
|
-
export const outboundSchema =
|
|
3465
|
-
ListSubscriptionPaymentsMetadataUnion$outboundSchema;
|
|
3466
|
-
/** @deprecated use `ListSubscriptionPaymentsMetadataUnion$Outbound` instead. */
|
|
3467
|
-
export type Outbound = ListSubscriptionPaymentsMetadataUnion$Outbound;
|
|
3468
|
-
}
|
|
3469
|
-
|
|
3470
|
-
export function listSubscriptionPaymentsMetadataUnionToJSON(
|
|
3471
|
-
listSubscriptionPaymentsMetadataUnion: ListSubscriptionPaymentsMetadataUnion,
|
|
3472
|
-
): string {
|
|
3473
|
-
return JSON.stringify(
|
|
3474
|
-
ListSubscriptionPaymentsMetadataUnion$outboundSchema.parse(
|
|
3475
|
-
listSubscriptionPaymentsMetadataUnion,
|
|
3476
|
-
),
|
|
3477
|
-
);
|
|
3478
|
-
}
|
|
3479
|
-
|
|
3480
|
-
export function listSubscriptionPaymentsMetadataUnionFromJSON(
|
|
3481
|
-
jsonString: string,
|
|
3482
|
-
): SafeParseResult<ListSubscriptionPaymentsMetadataUnion, SDKValidationError> {
|
|
3483
|
-
return safeParse(
|
|
3484
|
-
jsonString,
|
|
3485
|
-
(x) =>
|
|
3486
|
-
ListSubscriptionPaymentsMetadataUnion$inboundSchema.parse(JSON.parse(x)),
|
|
3487
|
-
`Failed to parse 'ListSubscriptionPaymentsMetadataUnion' from JSON`,
|
|
3488
|
-
);
|
|
3489
|
-
}
|
|
3490
|
-
|
|
3491
3422
|
/** @internal */
|
|
3492
3423
|
export const ListSubscriptionPaymentsCaptureMode$inboundSchema: z.ZodNativeEnum<
|
|
3493
3424
|
typeof ListSubscriptionPaymentsCaptureMode
|
|
@@ -5304,11 +5235,7 @@ export const ListSubscriptionPaymentsPaymentOutput$inboundSchema: z.ZodType<
|
|
|
5304
5235
|
method: z.nullable(ListSubscriptionPaymentsMethod$inboundSchema).optional(),
|
|
5305
5236
|
restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
|
|
5306
5237
|
metadata: z.nullable(
|
|
5307
|
-
z.union([
|
|
5308
|
-
z.lazy(() => ListSubscriptionPaymentsMetadata$inboundSchema),
|
|
5309
|
-
z.string(),
|
|
5310
|
-
z.array(z.string()),
|
|
5311
|
-
]),
|
|
5238
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
5312
5239
|
).optional(),
|
|
5313
5240
|
captureMode: z.nullable(ListSubscriptionPaymentsCaptureMode$inboundSchema)
|
|
5314
5241
|
.optional(),
|
|
@@ -5377,12 +5304,7 @@ export type ListSubscriptionPaymentsPaymentOutput$Outbound = {
|
|
|
5377
5304
|
countryCode?: string | null | undefined;
|
|
5378
5305
|
method?: string | null | undefined;
|
|
5379
5306
|
restrictPaymentMethodsToCountry?: string | null | undefined;
|
|
5380
|
-
metadata?:
|
|
5381
|
-
| ListSubscriptionPaymentsMetadata$Outbound
|
|
5382
|
-
| string
|
|
5383
|
-
| Array<string>
|
|
5384
|
-
| null
|
|
5385
|
-
| undefined;
|
|
5307
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
5386
5308
|
captureMode?: string | null | undefined;
|
|
5387
5309
|
captureDelay?: string | null | undefined;
|
|
5388
5310
|
captureBefore?: string | null | undefined;
|
|
@@ -5458,11 +5380,7 @@ export const ListSubscriptionPaymentsPaymentOutput$outboundSchema: z.ZodType<
|
|
|
5458
5380
|
method: z.nullable(ListSubscriptionPaymentsMethod$outboundSchema).optional(),
|
|
5459
5381
|
restrictPaymentMethodsToCountry: z.nullable(z.string()).optional(),
|
|
5460
5382
|
metadata: z.nullable(
|
|
5461
|
-
z.union([
|
|
5462
|
-
z.lazy(() => ListSubscriptionPaymentsMetadata$outboundSchema),
|
|
5463
|
-
z.string(),
|
|
5464
|
-
z.array(z.string()),
|
|
5465
|
-
]),
|
|
5383
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
5466
5384
|
).optional(),
|
|
5467
5385
|
captureMode: z.nullable(ListSubscriptionPaymentsCaptureMode$outboundSchema)
|
|
5468
5386
|
.optional(),
|
|
@@ -215,8 +215,6 @@ export type ListSubscriptionsApplicationFee = {
|
|
|
215
215
|
description: string;
|
|
216
216
|
};
|
|
217
217
|
|
|
218
|
-
export type ListSubscriptionsMetadata = {};
|
|
219
|
-
|
|
220
218
|
/**
|
|
221
219
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity.
|
|
222
220
|
*
|
|
@@ -226,9 +224,9 @@ export type ListSubscriptionsMetadata = {};
|
|
|
226
224
|
*
|
|
227
225
|
* Any metadata added to the subscription will be automatically forwarded to the payments generated for it.
|
|
228
226
|
*/
|
|
229
|
-
export type
|
|
230
|
-
| ListSubscriptionsMetadata
|
|
227
|
+
export type ListSubscriptionsMetadata =
|
|
231
228
|
| string
|
|
229
|
+
| { [k: string]: any }
|
|
232
230
|
| Array<string>;
|
|
233
231
|
|
|
234
232
|
/**
|
|
@@ -447,7 +445,7 @@ export type ListSubscriptionsSubscription = {
|
|
|
447
445
|
*
|
|
448
446
|
* Any metadata added to the subscription will be automatically forwarded to the payments generated for it.
|
|
449
447
|
*/
|
|
450
|
-
metadata:
|
|
448
|
+
metadata: string | { [k: string]: any } | Array<string> | null;
|
|
451
449
|
/**
|
|
452
450
|
* We will call this URL for any payment status changes of payments resulting from this subscription.
|
|
453
451
|
*
|
|
@@ -1193,17 +1191,20 @@ export const ListSubscriptionsMetadata$inboundSchema: z.ZodType<
|
|
|
1193
1191
|
ListSubscriptionsMetadata,
|
|
1194
1192
|
z.ZodTypeDef,
|
|
1195
1193
|
unknown
|
|
1196
|
-
> = z.
|
|
1194
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
1197
1195
|
|
|
1198
1196
|
/** @internal */
|
|
1199
|
-
export type ListSubscriptionsMetadata$Outbound =
|
|
1197
|
+
export type ListSubscriptionsMetadata$Outbound =
|
|
1198
|
+
| string
|
|
1199
|
+
| { [k: string]: any }
|
|
1200
|
+
| Array<string>;
|
|
1200
1201
|
|
|
1201
1202
|
/** @internal */
|
|
1202
1203
|
export const ListSubscriptionsMetadata$outboundSchema: z.ZodType<
|
|
1203
1204
|
ListSubscriptionsMetadata$Outbound,
|
|
1204
1205
|
z.ZodTypeDef,
|
|
1205
1206
|
ListSubscriptionsMetadata
|
|
1206
|
-
> = z.
|
|
1207
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
1207
1208
|
|
|
1208
1209
|
/**
|
|
1209
1210
|
* @internal
|
|
@@ -1236,67 +1237,6 @@ export function listSubscriptionsMetadataFromJSON(
|
|
|
1236
1237
|
);
|
|
1237
1238
|
}
|
|
1238
1239
|
|
|
1239
|
-
/** @internal */
|
|
1240
|
-
export const ListSubscriptionsMetadataUnion$inboundSchema: z.ZodType<
|
|
1241
|
-
ListSubscriptionsMetadataUnion,
|
|
1242
|
-
z.ZodTypeDef,
|
|
1243
|
-
unknown
|
|
1244
|
-
> = z.union([
|
|
1245
|
-
z.lazy(() => ListSubscriptionsMetadata$inboundSchema),
|
|
1246
|
-
z.string(),
|
|
1247
|
-
z.array(z.string()),
|
|
1248
|
-
]);
|
|
1249
|
-
|
|
1250
|
-
/** @internal */
|
|
1251
|
-
export type ListSubscriptionsMetadataUnion$Outbound =
|
|
1252
|
-
| ListSubscriptionsMetadata$Outbound
|
|
1253
|
-
| string
|
|
1254
|
-
| Array<string>;
|
|
1255
|
-
|
|
1256
|
-
/** @internal */
|
|
1257
|
-
export const ListSubscriptionsMetadataUnion$outboundSchema: z.ZodType<
|
|
1258
|
-
ListSubscriptionsMetadataUnion$Outbound,
|
|
1259
|
-
z.ZodTypeDef,
|
|
1260
|
-
ListSubscriptionsMetadataUnion
|
|
1261
|
-
> = z.union([
|
|
1262
|
-
z.lazy(() => ListSubscriptionsMetadata$outboundSchema),
|
|
1263
|
-
z.string(),
|
|
1264
|
-
z.array(z.string()),
|
|
1265
|
-
]);
|
|
1266
|
-
|
|
1267
|
-
/**
|
|
1268
|
-
* @internal
|
|
1269
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1270
|
-
*/
|
|
1271
|
-
export namespace ListSubscriptionsMetadataUnion$ {
|
|
1272
|
-
/** @deprecated use `ListSubscriptionsMetadataUnion$inboundSchema` instead. */
|
|
1273
|
-
export const inboundSchema = ListSubscriptionsMetadataUnion$inboundSchema;
|
|
1274
|
-
/** @deprecated use `ListSubscriptionsMetadataUnion$outboundSchema` instead. */
|
|
1275
|
-
export const outboundSchema = ListSubscriptionsMetadataUnion$outboundSchema;
|
|
1276
|
-
/** @deprecated use `ListSubscriptionsMetadataUnion$Outbound` instead. */
|
|
1277
|
-
export type Outbound = ListSubscriptionsMetadataUnion$Outbound;
|
|
1278
|
-
}
|
|
1279
|
-
|
|
1280
|
-
export function listSubscriptionsMetadataUnionToJSON(
|
|
1281
|
-
listSubscriptionsMetadataUnion: ListSubscriptionsMetadataUnion,
|
|
1282
|
-
): string {
|
|
1283
|
-
return JSON.stringify(
|
|
1284
|
-
ListSubscriptionsMetadataUnion$outboundSchema.parse(
|
|
1285
|
-
listSubscriptionsMetadataUnion,
|
|
1286
|
-
),
|
|
1287
|
-
);
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
export function listSubscriptionsMetadataUnionFromJSON(
|
|
1291
|
-
jsonString: string,
|
|
1292
|
-
): SafeParseResult<ListSubscriptionsMetadataUnion, SDKValidationError> {
|
|
1293
|
-
return safeParse(
|
|
1294
|
-
jsonString,
|
|
1295
|
-
(x) => ListSubscriptionsMetadataUnion$inboundSchema.parse(JSON.parse(x)),
|
|
1296
|
-
`Failed to parse 'ListSubscriptionsMetadataUnion' from JSON`,
|
|
1297
|
-
);
|
|
1298
|
-
}
|
|
1299
|
-
|
|
1300
1240
|
/** @internal */
|
|
1301
1241
|
export const ListSubscriptionsSubscriptionSelf$inboundSchema: z.ZodType<
|
|
1302
1242
|
ListSubscriptionsSubscriptionSelf,
|
|
@@ -1754,11 +1694,7 @@ export const ListSubscriptionsSubscription$inboundSchema: z.ZodType<
|
|
|
1754
1694
|
applicationFee: z.lazy(() => ListSubscriptionsApplicationFee$inboundSchema)
|
|
1755
1695
|
.optional(),
|
|
1756
1696
|
metadata: z.nullable(
|
|
1757
|
-
z.union([
|
|
1758
|
-
z.lazy(() => ListSubscriptionsMetadata$inboundSchema),
|
|
1759
|
-
z.string(),
|
|
1760
|
-
z.array(z.string()),
|
|
1761
|
-
]),
|
|
1697
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1762
1698
|
),
|
|
1763
1699
|
webhookUrl: z.string(),
|
|
1764
1700
|
customerId: z.string(),
|
|
@@ -1788,7 +1724,7 @@ export type ListSubscriptionsSubscription$Outbound = {
|
|
|
1788
1724
|
description: string;
|
|
1789
1725
|
method: string | null;
|
|
1790
1726
|
applicationFee?: ListSubscriptionsApplicationFee$Outbound | undefined;
|
|
1791
|
-
metadata:
|
|
1727
|
+
metadata: string | { [k: string]: any } | Array<string> | null;
|
|
1792
1728
|
webhookUrl: string;
|
|
1793
1729
|
customerId: string;
|
|
1794
1730
|
mandateId?: string | null | undefined;
|
|
@@ -1818,11 +1754,7 @@ export const ListSubscriptionsSubscription$outboundSchema: z.ZodType<
|
|
|
1818
1754
|
applicationFee: z.lazy(() => ListSubscriptionsApplicationFee$outboundSchema)
|
|
1819
1755
|
.optional(),
|
|
1820
1756
|
metadata: z.nullable(
|
|
1821
|
-
z.union([
|
|
1822
|
-
z.lazy(() => ListSubscriptionsMetadata$outboundSchema),
|
|
1823
|
-
z.string(),
|
|
1824
|
-
z.array(z.string()),
|
|
1825
|
-
]),
|
|
1757
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1826
1758
|
),
|
|
1827
1759
|
webhookUrl: z.string(),
|
|
1828
1760
|
customerId: z.string(),
|
|
@@ -49,17 +49,15 @@ export type UpdateCustomerLocaleRequest = ClosedEnum<
|
|
|
49
49
|
typeof UpdateCustomerLocaleRequest
|
|
50
50
|
>;
|
|
51
51
|
|
|
52
|
-
export type UpdateCustomerMetadataRequest = {};
|
|
53
|
-
|
|
54
52
|
/**
|
|
55
53
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
56
54
|
*
|
|
57
55
|
* @remarks
|
|
58
56
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
59
57
|
*/
|
|
60
|
-
export type
|
|
61
|
-
| UpdateCustomerMetadataRequest
|
|
58
|
+
export type UpdateCustomerMetadataRequest =
|
|
62
59
|
| string
|
|
60
|
+
| { [k: string]: any }
|
|
63
61
|
| Array<string>;
|
|
64
62
|
|
|
65
63
|
export type UpdateCustomerRequestBody = {
|
|
@@ -84,12 +82,7 @@ export type UpdateCustomerRequestBody = {
|
|
|
84
82
|
* @remarks
|
|
85
83
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
86
84
|
*/
|
|
87
|
-
metadata?:
|
|
88
|
-
| UpdateCustomerMetadataRequest
|
|
89
|
-
| string
|
|
90
|
-
| Array<string>
|
|
91
|
-
| null
|
|
92
|
-
| undefined;
|
|
85
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
93
86
|
/**
|
|
94
87
|
* Whether to create the entity in test mode or live mode.
|
|
95
88
|
*
|
|
@@ -177,17 +170,15 @@ export type UpdateCustomerLocaleResponse = ClosedEnum<
|
|
|
177
170
|
typeof UpdateCustomerLocaleResponse
|
|
178
171
|
>;
|
|
179
172
|
|
|
180
|
-
export type UpdateCustomerMetadataResponse = {};
|
|
181
|
-
|
|
182
173
|
/**
|
|
183
174
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
184
175
|
*
|
|
185
176
|
* @remarks
|
|
186
177
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
187
178
|
*/
|
|
188
|
-
export type
|
|
189
|
-
| UpdateCustomerMetadataResponse
|
|
179
|
+
export type UpdateCustomerMetadataResponse =
|
|
190
180
|
| string
|
|
181
|
+
| { [k: string]: any }
|
|
191
182
|
| Array<string>;
|
|
192
183
|
|
|
193
184
|
/**
|
|
@@ -359,7 +350,7 @@ export type UpdateCustomerResponse = {
|
|
|
359
350
|
* @remarks
|
|
360
351
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
361
352
|
*/
|
|
362
|
-
metadata:
|
|
353
|
+
metadata: string | { [k: string]: any } | Array<string> | null;
|
|
363
354
|
/**
|
|
364
355
|
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
365
356
|
*/
|
|
@@ -396,17 +387,19 @@ export const UpdateCustomerMetadataRequest$inboundSchema: z.ZodType<
|
|
|
396
387
|
UpdateCustomerMetadataRequest,
|
|
397
388
|
z.ZodTypeDef,
|
|
398
389
|
unknown
|
|
399
|
-
> = z.
|
|
390
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
400
391
|
|
|
401
392
|
/** @internal */
|
|
402
|
-
export type UpdateCustomerMetadataRequest$Outbound = {
|
|
393
|
+
export type UpdateCustomerMetadataRequest$Outbound = string | {
|
|
394
|
+
[k: string]: any;
|
|
395
|
+
} | Array<string>;
|
|
403
396
|
|
|
404
397
|
/** @internal */
|
|
405
398
|
export const UpdateCustomerMetadataRequest$outboundSchema: z.ZodType<
|
|
406
399
|
UpdateCustomerMetadataRequest$Outbound,
|
|
407
400
|
z.ZodTypeDef,
|
|
408
401
|
UpdateCustomerMetadataRequest
|
|
409
|
-
> = z.
|
|
402
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
410
403
|
|
|
411
404
|
/**
|
|
412
405
|
* @internal
|
|
@@ -441,69 +434,6 @@ export function updateCustomerMetadataRequestFromJSON(
|
|
|
441
434
|
);
|
|
442
435
|
}
|
|
443
436
|
|
|
444
|
-
/** @internal */
|
|
445
|
-
export const UpdateCustomerMetadataRequestUnion$inboundSchema: z.ZodType<
|
|
446
|
-
UpdateCustomerMetadataRequestUnion,
|
|
447
|
-
z.ZodTypeDef,
|
|
448
|
-
unknown
|
|
449
|
-
> = z.union([
|
|
450
|
-
z.lazy(() => UpdateCustomerMetadataRequest$inboundSchema),
|
|
451
|
-
z.string(),
|
|
452
|
-
z.array(z.string()),
|
|
453
|
-
]);
|
|
454
|
-
|
|
455
|
-
/** @internal */
|
|
456
|
-
export type UpdateCustomerMetadataRequestUnion$Outbound =
|
|
457
|
-
| UpdateCustomerMetadataRequest$Outbound
|
|
458
|
-
| string
|
|
459
|
-
| Array<string>;
|
|
460
|
-
|
|
461
|
-
/** @internal */
|
|
462
|
-
export const UpdateCustomerMetadataRequestUnion$outboundSchema: z.ZodType<
|
|
463
|
-
UpdateCustomerMetadataRequestUnion$Outbound,
|
|
464
|
-
z.ZodTypeDef,
|
|
465
|
-
UpdateCustomerMetadataRequestUnion
|
|
466
|
-
> = z.union([
|
|
467
|
-
z.lazy(() => UpdateCustomerMetadataRequest$outboundSchema),
|
|
468
|
-
z.string(),
|
|
469
|
-
z.array(z.string()),
|
|
470
|
-
]);
|
|
471
|
-
|
|
472
|
-
/**
|
|
473
|
-
* @internal
|
|
474
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
475
|
-
*/
|
|
476
|
-
export namespace UpdateCustomerMetadataRequestUnion$ {
|
|
477
|
-
/** @deprecated use `UpdateCustomerMetadataRequestUnion$inboundSchema` instead. */
|
|
478
|
-
export const inboundSchema = UpdateCustomerMetadataRequestUnion$inboundSchema;
|
|
479
|
-
/** @deprecated use `UpdateCustomerMetadataRequestUnion$outboundSchema` instead. */
|
|
480
|
-
export const outboundSchema =
|
|
481
|
-
UpdateCustomerMetadataRequestUnion$outboundSchema;
|
|
482
|
-
/** @deprecated use `UpdateCustomerMetadataRequestUnion$Outbound` instead. */
|
|
483
|
-
export type Outbound = UpdateCustomerMetadataRequestUnion$Outbound;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
export function updateCustomerMetadataRequestUnionToJSON(
|
|
487
|
-
updateCustomerMetadataRequestUnion: UpdateCustomerMetadataRequestUnion,
|
|
488
|
-
): string {
|
|
489
|
-
return JSON.stringify(
|
|
490
|
-
UpdateCustomerMetadataRequestUnion$outboundSchema.parse(
|
|
491
|
-
updateCustomerMetadataRequestUnion,
|
|
492
|
-
),
|
|
493
|
-
);
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
export function updateCustomerMetadataRequestUnionFromJSON(
|
|
497
|
-
jsonString: string,
|
|
498
|
-
): SafeParseResult<UpdateCustomerMetadataRequestUnion, SDKValidationError> {
|
|
499
|
-
return safeParse(
|
|
500
|
-
jsonString,
|
|
501
|
-
(x) =>
|
|
502
|
-
UpdateCustomerMetadataRequestUnion$inboundSchema.parse(JSON.parse(x)),
|
|
503
|
-
`Failed to parse 'UpdateCustomerMetadataRequestUnion' from JSON`,
|
|
504
|
-
);
|
|
505
|
-
}
|
|
506
|
-
|
|
507
437
|
/** @internal */
|
|
508
438
|
export const UpdateCustomerRequestBody$inboundSchema: z.ZodType<
|
|
509
439
|
UpdateCustomerRequestBody,
|
|
@@ -514,11 +444,7 @@ export const UpdateCustomerRequestBody$inboundSchema: z.ZodType<
|
|
|
514
444
|
email: z.nullable(z.string()).optional(),
|
|
515
445
|
locale: z.nullable(UpdateCustomerLocaleRequest$inboundSchema).optional(),
|
|
516
446
|
metadata: z.nullable(
|
|
517
|
-
z.union([
|
|
518
|
-
z.lazy(() => UpdateCustomerMetadataRequest$inboundSchema),
|
|
519
|
-
z.string(),
|
|
520
|
-
z.array(z.string()),
|
|
521
|
-
]),
|
|
447
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
522
448
|
).optional(),
|
|
523
449
|
testmode: z.nullable(z.boolean()).optional(),
|
|
524
450
|
});
|
|
@@ -528,12 +454,7 @@ export type UpdateCustomerRequestBody$Outbound = {
|
|
|
528
454
|
name?: string | null | undefined;
|
|
529
455
|
email?: string | null | undefined;
|
|
530
456
|
locale?: string | null | undefined;
|
|
531
|
-
metadata?:
|
|
532
|
-
| UpdateCustomerMetadataRequest$Outbound
|
|
533
|
-
| string
|
|
534
|
-
| Array<string>
|
|
535
|
-
| null
|
|
536
|
-
| undefined;
|
|
457
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
537
458
|
testmode?: boolean | null | undefined;
|
|
538
459
|
};
|
|
539
460
|
|
|
@@ -547,11 +468,7 @@ export const UpdateCustomerRequestBody$outboundSchema: z.ZodType<
|
|
|
547
468
|
email: z.nullable(z.string()).optional(),
|
|
548
469
|
locale: z.nullable(UpdateCustomerLocaleRequest$outboundSchema).optional(),
|
|
549
470
|
metadata: z.nullable(
|
|
550
|
-
z.union([
|
|
551
|
-
z.lazy(() => UpdateCustomerMetadataRequest$outboundSchema),
|
|
552
|
-
z.string(),
|
|
553
|
-
z.array(z.string()),
|
|
554
|
-
]),
|
|
471
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
555
472
|
).optional(),
|
|
556
473
|
testmode: z.nullable(z.boolean()).optional(),
|
|
557
474
|
});
|
|
@@ -822,17 +739,19 @@ export const UpdateCustomerMetadataResponse$inboundSchema: z.ZodType<
|
|
|
822
739
|
UpdateCustomerMetadataResponse,
|
|
823
740
|
z.ZodTypeDef,
|
|
824
741
|
unknown
|
|
825
|
-
> = z.
|
|
742
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
826
743
|
|
|
827
744
|
/** @internal */
|
|
828
|
-
export type UpdateCustomerMetadataResponse$Outbound = {
|
|
745
|
+
export type UpdateCustomerMetadataResponse$Outbound = string | {
|
|
746
|
+
[k: string]: any;
|
|
747
|
+
} | Array<string>;
|
|
829
748
|
|
|
830
749
|
/** @internal */
|
|
831
750
|
export const UpdateCustomerMetadataResponse$outboundSchema: z.ZodType<
|
|
832
751
|
UpdateCustomerMetadataResponse$Outbound,
|
|
833
752
|
z.ZodTypeDef,
|
|
834
753
|
UpdateCustomerMetadataResponse
|
|
835
|
-
> = z.
|
|
754
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
836
755
|
|
|
837
756
|
/**
|
|
838
757
|
* @internal
|
|
@@ -867,70 +786,6 @@ export function updateCustomerMetadataResponseFromJSON(
|
|
|
867
786
|
);
|
|
868
787
|
}
|
|
869
788
|
|
|
870
|
-
/** @internal */
|
|
871
|
-
export const UpdateCustomerMetadataResponseUnion$inboundSchema: z.ZodType<
|
|
872
|
-
UpdateCustomerMetadataResponseUnion,
|
|
873
|
-
z.ZodTypeDef,
|
|
874
|
-
unknown
|
|
875
|
-
> = z.union([
|
|
876
|
-
z.lazy(() => UpdateCustomerMetadataResponse$inboundSchema),
|
|
877
|
-
z.string(),
|
|
878
|
-
z.array(z.string()),
|
|
879
|
-
]);
|
|
880
|
-
|
|
881
|
-
/** @internal */
|
|
882
|
-
export type UpdateCustomerMetadataResponseUnion$Outbound =
|
|
883
|
-
| UpdateCustomerMetadataResponse$Outbound
|
|
884
|
-
| string
|
|
885
|
-
| Array<string>;
|
|
886
|
-
|
|
887
|
-
/** @internal */
|
|
888
|
-
export const UpdateCustomerMetadataResponseUnion$outboundSchema: z.ZodType<
|
|
889
|
-
UpdateCustomerMetadataResponseUnion$Outbound,
|
|
890
|
-
z.ZodTypeDef,
|
|
891
|
-
UpdateCustomerMetadataResponseUnion
|
|
892
|
-
> = z.union([
|
|
893
|
-
z.lazy(() => UpdateCustomerMetadataResponse$outboundSchema),
|
|
894
|
-
z.string(),
|
|
895
|
-
z.array(z.string()),
|
|
896
|
-
]);
|
|
897
|
-
|
|
898
|
-
/**
|
|
899
|
-
* @internal
|
|
900
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
901
|
-
*/
|
|
902
|
-
export namespace UpdateCustomerMetadataResponseUnion$ {
|
|
903
|
-
/** @deprecated use `UpdateCustomerMetadataResponseUnion$inboundSchema` instead. */
|
|
904
|
-
export const inboundSchema =
|
|
905
|
-
UpdateCustomerMetadataResponseUnion$inboundSchema;
|
|
906
|
-
/** @deprecated use `UpdateCustomerMetadataResponseUnion$outboundSchema` instead. */
|
|
907
|
-
export const outboundSchema =
|
|
908
|
-
UpdateCustomerMetadataResponseUnion$outboundSchema;
|
|
909
|
-
/** @deprecated use `UpdateCustomerMetadataResponseUnion$Outbound` instead. */
|
|
910
|
-
export type Outbound = UpdateCustomerMetadataResponseUnion$Outbound;
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
export function updateCustomerMetadataResponseUnionToJSON(
|
|
914
|
-
updateCustomerMetadataResponseUnion: UpdateCustomerMetadataResponseUnion,
|
|
915
|
-
): string {
|
|
916
|
-
return JSON.stringify(
|
|
917
|
-
UpdateCustomerMetadataResponseUnion$outboundSchema.parse(
|
|
918
|
-
updateCustomerMetadataResponseUnion,
|
|
919
|
-
),
|
|
920
|
-
);
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
export function updateCustomerMetadataResponseUnionFromJSON(
|
|
924
|
-
jsonString: string,
|
|
925
|
-
): SafeParseResult<UpdateCustomerMetadataResponseUnion, SDKValidationError> {
|
|
926
|
-
return safeParse(
|
|
927
|
-
jsonString,
|
|
928
|
-
(x) =>
|
|
929
|
-
UpdateCustomerMetadataResponseUnion$inboundSchema.parse(JSON.parse(x)),
|
|
930
|
-
`Failed to parse 'UpdateCustomerMetadataResponseUnion' from JSON`,
|
|
931
|
-
);
|
|
932
|
-
}
|
|
933
|
-
|
|
934
789
|
/** @internal */
|
|
935
790
|
export const UpdateCustomerSelf$inboundSchema: z.ZodType<
|
|
936
791
|
UpdateCustomerSelf,
|
|
@@ -1367,11 +1222,7 @@ export const UpdateCustomerResponse$inboundSchema: z.ZodType<
|
|
|
1367
1222
|
email: z.nullable(z.string()),
|
|
1368
1223
|
locale: z.nullable(UpdateCustomerLocaleResponse$inboundSchema),
|
|
1369
1224
|
metadata: z.nullable(
|
|
1370
|
-
z.union([
|
|
1371
|
-
z.lazy(() => UpdateCustomerMetadataResponse$inboundSchema),
|
|
1372
|
-
z.string(),
|
|
1373
|
-
z.array(z.string()),
|
|
1374
|
-
]),
|
|
1225
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1375
1226
|
),
|
|
1376
1227
|
createdAt: z.string(),
|
|
1377
1228
|
_links: z.lazy(() => UpdateCustomerLinks$inboundSchema),
|
|
@@ -1389,11 +1240,7 @@ export type UpdateCustomerResponse$Outbound = {
|
|
|
1389
1240
|
name: string | null;
|
|
1390
1241
|
email: string | null;
|
|
1391
1242
|
locale: string | null;
|
|
1392
|
-
metadata:
|
|
1393
|
-
| UpdateCustomerMetadataResponse$Outbound
|
|
1394
|
-
| string
|
|
1395
|
-
| Array<string>
|
|
1396
|
-
| null;
|
|
1243
|
+
metadata: string | { [k: string]: any } | Array<string> | null;
|
|
1397
1244
|
createdAt: string;
|
|
1398
1245
|
_links: UpdateCustomerLinks$Outbound;
|
|
1399
1246
|
};
|
|
@@ -1411,11 +1258,7 @@ export const UpdateCustomerResponse$outboundSchema: z.ZodType<
|
|
|
1411
1258
|
email: z.nullable(z.string()),
|
|
1412
1259
|
locale: z.nullable(UpdateCustomerLocaleResponse$outboundSchema),
|
|
1413
1260
|
metadata: z.nullable(
|
|
1414
|
-
z.union([
|
|
1415
|
-
z.lazy(() => UpdateCustomerMetadataResponse$outboundSchema),
|
|
1416
|
-
z.string(),
|
|
1417
|
-
z.array(z.string()),
|
|
1418
|
-
]),
|
|
1261
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1419
1262
|
),
|
|
1420
1263
|
createdAt: z.string(),
|
|
1421
1264
|
links: z.lazy(() => UpdateCustomerLinks$outboundSchema),
|