mollie-api-typescript 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +223 -1057
- package/bin/mcp-server.js.map +38 -38
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/operations/cancelpayment.d.ts +12 -25
- package/dist/commonjs/models/operations/cancelpayment.d.ts.map +1 -1
- package/dist/commonjs/models/operations/cancelpayment.js +7 -46
- package/dist/commonjs/models/operations/cancelpayment.js.map +1 -1
- package/dist/commonjs/models/operations/cancelsubscription.d.ts +12 -25
- package/dist/commonjs/models/operations/cancelsubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/cancelsubscription.js +6 -45
- package/dist/commonjs/models/operations/cancelsubscription.js.map +1 -1
- package/dist/commonjs/models/operations/createcapture.d.ts +24 -50
- package/dist/commonjs/models/operations/createcapture.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createcapture.js +10 -88
- package/dist/commonjs/models/operations/createcapture.js.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.d.ts +24 -50
- package/dist/commonjs/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.js +10 -88
- package/dist/commonjs/models/operations/createcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/createcustomerpayment.d.ts +24 -50
- package/dist/commonjs/models/operations/createcustomerpayment.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createcustomerpayment.js +13 -91
- package/dist/commonjs/models/operations/createcustomerpayment.js.map +1 -1
- package/dist/commonjs/models/operations/createpayment.d.ts +24 -50
- package/dist/commonjs/models/operations/createpayment.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createpayment.js +13 -91
- package/dist/commonjs/models/operations/createpayment.js.map +1 -1
- package/dist/commonjs/models/operations/createpaymentlink.d.ts +11 -0
- package/dist/commonjs/models/operations/createpaymentlink.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createpaymentlink.js +2 -0
- package/dist/commonjs/models/operations/createpaymentlink.js.map +1 -1
- package/dist/commonjs/models/operations/createrefund.d.ts +24 -50
- package/dist/commonjs/models/operations/createrefund.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createrefund.js +11 -89
- package/dist/commonjs/models/operations/createrefund.js.map +1 -1
- package/dist/commonjs/models/operations/createsubscription.d.ts +24 -50
- package/dist/commonjs/models/operations/createsubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createsubscription.js +10 -88
- package/dist/commonjs/models/operations/createsubscription.js.map +1 -1
- package/dist/commonjs/models/operations/getcapture.d.ts +12 -25
- package/dist/commonjs/models/operations/getcapture.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcapture.js +6 -45
- package/dist/commonjs/models/operations/getcapture.js.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.d.ts +12 -25
- package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.js +6 -45
- package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/getpayment.d.ts +12 -25
- package/dist/commonjs/models/operations/getpayment.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getpayment.js +7 -46
- package/dist/commonjs/models/operations/getpayment.js.map +1 -1
- package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts +18 -31
- package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getpaymentlinkpayments.js +14 -55
- package/dist/commonjs/models/operations/getpaymentlinkpayments.js.map +1 -1
- package/dist/commonjs/models/operations/getrefund.d.ts +12 -25
- package/dist/commonjs/models/operations/getrefund.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getrefund.js +6 -45
- package/dist/commonjs/models/operations/getrefund.js.map +1 -1
- package/dist/commonjs/models/operations/getsubscription.d.ts +12 -25
- package/dist/commonjs/models/operations/getsubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getsubscription.js +6 -45
- package/dist/commonjs/models/operations/getsubscription.js.map +1 -1
- package/dist/commonjs/models/operations/getwebhookevent.d.ts +17 -17
- package/dist/commonjs/models/operations/getwebhookevent.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getwebhookevent.js +20 -20
- package/dist/commonjs/models/operations/getwebhookevent.js.map +1 -1
- package/dist/commonjs/models/operations/listallrefunds.d.ts +12 -25
- package/dist/commonjs/models/operations/listallrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listallrefunds.js +6 -45
- package/dist/commonjs/models/operations/listallrefunds.js.map +1 -1
- package/dist/commonjs/models/operations/listallsubscriptions.d.ts +12 -25
- package/dist/commonjs/models/operations/listallsubscriptions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listallsubscriptions.js +6 -45
- package/dist/commonjs/models/operations/listallsubscriptions.js.map +1 -1
- package/dist/commonjs/models/operations/listcaptures.d.ts +12 -25
- package/dist/commonjs/models/operations/listcaptures.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listcaptures.js +6 -45
- package/dist/commonjs/models/operations/listcaptures.js.map +1 -1
- package/dist/commonjs/models/operations/listcustomerpayments.d.ts +12 -25
- package/dist/commonjs/models/operations/listcustomerpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listcustomerpayments.js +8 -47
- package/dist/commonjs/models/operations/listcustomerpayments.js.map +1 -1
- package/dist/commonjs/models/operations/listcustomers.d.ts +12 -25
- package/dist/commonjs/models/operations/listcustomers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listcustomers.js +6 -45
- package/dist/commonjs/models/operations/listcustomers.js.map +1 -1
- package/dist/commonjs/models/operations/listpaymentlinks.d.ts +21 -21
- package/dist/commonjs/models/operations/listpaymentlinks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listpaymentlinks.js +24 -24
- package/dist/commonjs/models/operations/listpaymentlinks.js.map +1 -1
- package/dist/commonjs/models/operations/listpayments.d.ts +12 -25
- package/dist/commonjs/models/operations/listpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listpayments.js +8 -47
- package/dist/commonjs/models/operations/listpayments.js.map +1 -1
- package/dist/commonjs/models/operations/listrefunds.d.ts +12 -25
- package/dist/commonjs/models/operations/listrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listrefunds.js +6 -45
- package/dist/commonjs/models/operations/listrefunds.js.map +1 -1
- package/dist/commonjs/models/operations/listsettlementcaptures.d.ts +12 -25
- package/dist/commonjs/models/operations/listsettlementcaptures.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsettlementcaptures.js +6 -45
- package/dist/commonjs/models/operations/listsettlementcaptures.js.map +1 -1
- package/dist/commonjs/models/operations/listsettlementpayments.d.ts +12 -25
- package/dist/commonjs/models/operations/listsettlementpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsettlementpayments.js +8 -47
- package/dist/commonjs/models/operations/listsettlementpayments.js.map +1 -1
- package/dist/commonjs/models/operations/listsettlementrefunds.d.ts +12 -25
- package/dist/commonjs/models/operations/listsettlementrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsettlementrefunds.js +6 -45
- package/dist/commonjs/models/operations/listsettlementrefunds.js.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts +12 -25
- package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptionpayments.js +8 -47
- package/dist/commonjs/models/operations/listsubscriptionpayments.js.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptions.d.ts +12 -25
- package/dist/commonjs/models/operations/listsubscriptions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptions.js +6 -45
- package/dist/commonjs/models/operations/listsubscriptions.js.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.d.ts +24 -50
- package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.js +10 -88
- package/dist/commonjs/models/operations/updatecustomer.js.map +1 -1
- package/dist/commonjs/models/operations/updatepayment.d.ts +24 -50
- package/dist/commonjs/models/operations/updatepayment.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatepayment.js +13 -91
- package/dist/commonjs/models/operations/updatepayment.js.map +1 -1
- package/dist/commonjs/models/operations/updatesubscription.d.ts +24 -50
- package/dist/commonjs/models/operations/updatesubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatesubscription.js +10 -88
- package/dist/commonjs/models/operations/updatesubscription.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/operations/cancelpayment.d.ts +12 -25
- package/dist/esm/models/operations/cancelpayment.d.ts.map +1 -1
- package/dist/esm/models/operations/cancelpayment.js +4 -41
- package/dist/esm/models/operations/cancelpayment.js.map +1 -1
- package/dist/esm/models/operations/cancelsubscription.d.ts +12 -25
- package/dist/esm/models/operations/cancelsubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/cancelsubscription.js +4 -41
- package/dist/esm/models/operations/cancelsubscription.js.map +1 -1
- package/dist/esm/models/operations/createcapture.d.ts +24 -50
- package/dist/esm/models/operations/createcapture.d.ts.map +1 -1
- package/dist/esm/models/operations/createcapture.js +8 -82
- package/dist/esm/models/operations/createcapture.js.map +1 -1
- package/dist/esm/models/operations/createcustomer.d.ts +24 -50
- package/dist/esm/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/createcustomer.js +8 -82
- package/dist/esm/models/operations/createcustomer.js.map +1 -1
- package/dist/esm/models/operations/createcustomerpayment.d.ts +24 -50
- package/dist/esm/models/operations/createcustomerpayment.d.ts.map +1 -1
- package/dist/esm/models/operations/createcustomerpayment.js +8 -82
- package/dist/esm/models/operations/createcustomerpayment.js.map +1 -1
- package/dist/esm/models/operations/createpayment.d.ts +24 -50
- package/dist/esm/models/operations/createpayment.d.ts.map +1 -1
- package/dist/esm/models/operations/createpayment.js +8 -82
- package/dist/esm/models/operations/createpayment.js.map +1 -1
- package/dist/esm/models/operations/createpaymentlink.d.ts +11 -0
- package/dist/esm/models/operations/createpaymentlink.d.ts.map +1 -1
- package/dist/esm/models/operations/createpaymentlink.js +2 -0
- package/dist/esm/models/operations/createpaymentlink.js.map +1 -1
- package/dist/esm/models/operations/createrefund.d.ts +24 -50
- package/dist/esm/models/operations/createrefund.d.ts.map +1 -1
- package/dist/esm/models/operations/createrefund.js +8 -82
- package/dist/esm/models/operations/createrefund.js.map +1 -1
- package/dist/esm/models/operations/createsubscription.d.ts +24 -50
- package/dist/esm/models/operations/createsubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/createsubscription.js +8 -82
- package/dist/esm/models/operations/createsubscription.js.map +1 -1
- package/dist/esm/models/operations/getcapture.d.ts +12 -25
- package/dist/esm/models/operations/getcapture.d.ts.map +1 -1
- package/dist/esm/models/operations/getcapture.js +4 -41
- package/dist/esm/models/operations/getcapture.js.map +1 -1
- package/dist/esm/models/operations/getcustomer.d.ts +12 -25
- package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomer.js +4 -41
- package/dist/esm/models/operations/getcustomer.js.map +1 -1
- package/dist/esm/models/operations/getpayment.d.ts +12 -25
- package/dist/esm/models/operations/getpayment.d.ts.map +1 -1
- package/dist/esm/models/operations/getpayment.js +4 -41
- package/dist/esm/models/operations/getpayment.js.map +1 -1
- package/dist/esm/models/operations/getpaymentlinkpayments.d.ts +18 -31
- package/dist/esm/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/getpaymentlinkpayments.js +10 -49
- package/dist/esm/models/operations/getpaymentlinkpayments.js.map +1 -1
- package/dist/esm/models/operations/getrefund.d.ts +12 -25
- package/dist/esm/models/operations/getrefund.d.ts.map +1 -1
- package/dist/esm/models/operations/getrefund.js +4 -41
- package/dist/esm/models/operations/getrefund.js.map +1 -1
- package/dist/esm/models/operations/getsubscription.d.ts +12 -25
- package/dist/esm/models/operations/getsubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/getsubscription.js +4 -41
- package/dist/esm/models/operations/getsubscription.js.map +1 -1
- package/dist/esm/models/operations/getwebhookevent.d.ts +17 -17
- package/dist/esm/models/operations/getwebhookevent.d.ts.map +1 -1
- package/dist/esm/models/operations/getwebhookevent.js +17 -17
- package/dist/esm/models/operations/getwebhookevent.js.map +1 -1
- package/dist/esm/models/operations/listallrefunds.d.ts +12 -25
- package/dist/esm/models/operations/listallrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listallrefunds.js +4 -41
- package/dist/esm/models/operations/listallrefunds.js.map +1 -1
- package/dist/esm/models/operations/listallsubscriptions.d.ts +12 -25
- package/dist/esm/models/operations/listallsubscriptions.d.ts.map +1 -1
- package/dist/esm/models/operations/listallsubscriptions.js +4 -41
- package/dist/esm/models/operations/listallsubscriptions.js.map +1 -1
- package/dist/esm/models/operations/listcaptures.d.ts +12 -25
- package/dist/esm/models/operations/listcaptures.d.ts.map +1 -1
- package/dist/esm/models/operations/listcaptures.js +4 -41
- package/dist/esm/models/operations/listcaptures.js.map +1 -1
- package/dist/esm/models/operations/listcustomerpayments.d.ts +12 -25
- package/dist/esm/models/operations/listcustomerpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/listcustomerpayments.js +4 -41
- package/dist/esm/models/operations/listcustomerpayments.js.map +1 -1
- package/dist/esm/models/operations/listcustomers.d.ts +12 -25
- package/dist/esm/models/operations/listcustomers.d.ts.map +1 -1
- package/dist/esm/models/operations/listcustomers.js +4 -41
- package/dist/esm/models/operations/listcustomers.js.map +1 -1
- package/dist/esm/models/operations/listpaymentlinks.d.ts +21 -21
- package/dist/esm/models/operations/listpaymentlinks.d.ts.map +1 -1
- package/dist/esm/models/operations/listpaymentlinks.js +21 -21
- package/dist/esm/models/operations/listpaymentlinks.js.map +1 -1
- package/dist/esm/models/operations/listpayments.d.ts +12 -25
- package/dist/esm/models/operations/listpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/listpayments.js +4 -41
- package/dist/esm/models/operations/listpayments.js.map +1 -1
- package/dist/esm/models/operations/listrefunds.d.ts +12 -25
- package/dist/esm/models/operations/listrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listrefunds.js +4 -41
- package/dist/esm/models/operations/listrefunds.js.map +1 -1
- package/dist/esm/models/operations/listsettlementcaptures.d.ts +12 -25
- package/dist/esm/models/operations/listsettlementcaptures.d.ts.map +1 -1
- package/dist/esm/models/operations/listsettlementcaptures.js +4 -41
- package/dist/esm/models/operations/listsettlementcaptures.js.map +1 -1
- package/dist/esm/models/operations/listsettlementpayments.d.ts +12 -25
- package/dist/esm/models/operations/listsettlementpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/listsettlementpayments.js +4 -41
- package/dist/esm/models/operations/listsettlementpayments.js.map +1 -1
- package/dist/esm/models/operations/listsettlementrefunds.d.ts +12 -25
- package/dist/esm/models/operations/listsettlementrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listsettlementrefunds.js +4 -41
- package/dist/esm/models/operations/listsettlementrefunds.js.map +1 -1
- package/dist/esm/models/operations/listsubscriptionpayments.d.ts +12 -25
- package/dist/esm/models/operations/listsubscriptionpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/listsubscriptionpayments.js +4 -41
- package/dist/esm/models/operations/listsubscriptionpayments.js.map +1 -1
- package/dist/esm/models/operations/listsubscriptions.d.ts +12 -25
- package/dist/esm/models/operations/listsubscriptions.d.ts.map +1 -1
- package/dist/esm/models/operations/listsubscriptions.js +4 -41
- package/dist/esm/models/operations/listsubscriptions.js.map +1 -1
- package/dist/esm/models/operations/updatecustomer.d.ts +24 -50
- package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/updatecustomer.js +8 -82
- package/dist/esm/models/operations/updatecustomer.js.map +1 -1
- package/dist/esm/models/operations/updatepayment.d.ts +24 -50
- package/dist/esm/models/operations/updatepayment.d.ts.map +1 -1
- package/dist/esm/models/operations/updatepayment.js +8 -82
- package/dist/esm/models/operations/updatepayment.js.map +1 -1
- package/dist/esm/models/operations/updatesubscription.d.ts +24 -50
- package/dist/esm/models/operations/updatesubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/updatesubscription.js +8 -82
- package/dist/esm/models/operations/updatesubscription.js.map +1 -1
- package/docs/sdks/paymentlinks/README.md +2 -0
- package/examples/package-lock.json +1 -1
- package/examples/paymentsCreate.example.ts +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +4 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/cancelpayment.ts +12 -83
- package/src/models/operations/cancelsubscription.ts +12 -80
- package/src/models/operations/createcapture.ts +22 -183
- package/src/models/operations/createcustomer.ts +22 -179
- package/src/models/operations/createcustomerpayment.ts +23 -200
- package/src/models/operations/createpayment.ts +22 -183
- package/src/models/operations/createpaymentlink.ts +13 -0
- package/src/models/operations/createrefund.ts +23 -181
- package/src/models/operations/createsubscription.ts +22 -187
- package/src/models/operations/getcapture.ts +11 -85
- package/src/models/operations/getcustomer.ts +11 -80
- package/src/models/operations/getpayment.ts +11 -85
- package/src/models/operations/getpaymentlinkpayments.ts +23 -107
- package/src/models/operations/getrefund.ts +11 -82
- package/src/models/operations/getsubscription.ts +12 -80
- package/src/models/operations/getwebhookevent.ts +34 -29
- package/src/models/operations/listallrefunds.ts +12 -85
- package/src/models/operations/listallsubscriptions.ts +11 -85
- package/src/models/operations/listcaptures.ts +12 -83
- package/src/models/operations/listcustomerpayments.ts +11 -91
- package/src/models/operations/listcustomers.ts +12 -78
- package/src/models/operations/listpaymentlinks.ts +39 -38
- package/src/models/operations/listpayments.ts +12 -83
- package/src/models/operations/listrefunds.ts +11 -85
- package/src/models/operations/listsettlementcaptures.ts +11 -93
- package/src/models/operations/listsettlementpayments.ts +11 -93
- package/src/models/operations/listsettlementrefunds.ts +11 -92
- package/src/models/operations/listsubscriptionpayments.ts +11 -93
- package/src/models/operations/listsubscriptions.ts +12 -80
- package/src/models/operations/updatecustomer.ts +22 -179
- package/src/models/operations/updatepayment.ts +22 -183
- package/src/models/operations/updatesubscription.ts +22 -187
|
@@ -896,7 +896,7 @@ export type EntityLinks1 = {
|
|
|
896
896
|
paymentLink: GetWebhookEventLinksPaymentLink;
|
|
897
897
|
};
|
|
898
898
|
|
|
899
|
-
export type
|
|
899
|
+
export type GetWebhookEventPaymentLinkOutput = {
|
|
900
900
|
/**
|
|
901
901
|
* Indicates the response contains a payment link object. Will always contain the string `payment-link` for this
|
|
902
902
|
*
|
|
@@ -1073,13 +1073,16 @@ export type GetWebhookEventPaymentLink = {
|
|
|
1073
1073
|
links: EntityLinks1;
|
|
1074
1074
|
};
|
|
1075
1075
|
|
|
1076
|
-
export type Entity =
|
|
1076
|
+
export type Entity = GetWebhookEventPaymentLinkOutput | GetWebhookEventProfile;
|
|
1077
1077
|
|
|
1078
1078
|
/**
|
|
1079
1079
|
* Full payload of the event.
|
|
1080
1080
|
*/
|
|
1081
1081
|
export type GetWebhookEventEmbedded = {
|
|
1082
|
-
entity?:
|
|
1082
|
+
entity?:
|
|
1083
|
+
| GetWebhookEventPaymentLinkOutput
|
|
1084
|
+
| GetWebhookEventProfile
|
|
1085
|
+
| undefined;
|
|
1083
1086
|
};
|
|
1084
1087
|
|
|
1085
1088
|
/**
|
|
@@ -3092,8 +3095,8 @@ export function entityLinks1FromJSON(
|
|
|
3092
3095
|
}
|
|
3093
3096
|
|
|
3094
3097
|
/** @internal */
|
|
3095
|
-
export const
|
|
3096
|
-
|
|
3098
|
+
export const GetWebhookEventPaymentLinkOutput$inboundSchema: z.ZodType<
|
|
3099
|
+
GetWebhookEventPaymentLinkOutput,
|
|
3097
3100
|
z.ZodTypeDef,
|
|
3098
3101
|
unknown
|
|
3099
3102
|
> = z.object({
|
|
@@ -3133,7 +3136,7 @@ export const GetWebhookEventPaymentLink$inboundSchema: z.ZodType<
|
|
|
3133
3136
|
});
|
|
3134
3137
|
|
|
3135
3138
|
/** @internal */
|
|
3136
|
-
export type
|
|
3139
|
+
export type GetWebhookEventPaymentLinkOutput$Outbound = {
|
|
3137
3140
|
resource: string;
|
|
3138
3141
|
id: string;
|
|
3139
3142
|
mode: string;
|
|
@@ -3159,10 +3162,10 @@ export type GetWebhookEventPaymentLink$Outbound = {
|
|
|
3159
3162
|
};
|
|
3160
3163
|
|
|
3161
3164
|
/** @internal */
|
|
3162
|
-
export const
|
|
3163
|
-
|
|
3165
|
+
export const GetWebhookEventPaymentLinkOutput$outboundSchema: z.ZodType<
|
|
3166
|
+
GetWebhookEventPaymentLinkOutput$Outbound,
|
|
3164
3167
|
z.ZodTypeDef,
|
|
3165
|
-
|
|
3168
|
+
GetWebhookEventPaymentLinkOutput
|
|
3166
3169
|
> = z.object({
|
|
3167
3170
|
resource: z.string(),
|
|
3168
3171
|
id: z.string(),
|
|
@@ -3203,43 +3206,45 @@ export const GetWebhookEventPaymentLink$outboundSchema: z.ZodType<
|
|
|
3203
3206
|
* @internal
|
|
3204
3207
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3205
3208
|
*/
|
|
3206
|
-
export namespace
|
|
3207
|
-
/** @deprecated use `
|
|
3208
|
-
export const inboundSchema =
|
|
3209
|
-
/** @deprecated use `
|
|
3210
|
-
export const outboundSchema =
|
|
3211
|
-
/** @deprecated use `
|
|
3212
|
-
export type Outbound =
|
|
3209
|
+
export namespace GetWebhookEventPaymentLinkOutput$ {
|
|
3210
|
+
/** @deprecated use `GetWebhookEventPaymentLinkOutput$inboundSchema` instead. */
|
|
3211
|
+
export const inboundSchema = GetWebhookEventPaymentLinkOutput$inboundSchema;
|
|
3212
|
+
/** @deprecated use `GetWebhookEventPaymentLinkOutput$outboundSchema` instead. */
|
|
3213
|
+
export const outboundSchema = GetWebhookEventPaymentLinkOutput$outboundSchema;
|
|
3214
|
+
/** @deprecated use `GetWebhookEventPaymentLinkOutput$Outbound` instead. */
|
|
3215
|
+
export type Outbound = GetWebhookEventPaymentLinkOutput$Outbound;
|
|
3213
3216
|
}
|
|
3214
3217
|
|
|
3215
|
-
export function
|
|
3216
|
-
|
|
3218
|
+
export function getWebhookEventPaymentLinkOutputToJSON(
|
|
3219
|
+
getWebhookEventPaymentLinkOutput: GetWebhookEventPaymentLinkOutput,
|
|
3217
3220
|
): string {
|
|
3218
3221
|
return JSON.stringify(
|
|
3219
|
-
|
|
3222
|
+
GetWebhookEventPaymentLinkOutput$outboundSchema.parse(
|
|
3223
|
+
getWebhookEventPaymentLinkOutput,
|
|
3224
|
+
),
|
|
3220
3225
|
);
|
|
3221
3226
|
}
|
|
3222
3227
|
|
|
3223
|
-
export function
|
|
3228
|
+
export function getWebhookEventPaymentLinkOutputFromJSON(
|
|
3224
3229
|
jsonString: string,
|
|
3225
|
-
): SafeParseResult<
|
|
3230
|
+
): SafeParseResult<GetWebhookEventPaymentLinkOutput, SDKValidationError> {
|
|
3226
3231
|
return safeParse(
|
|
3227
3232
|
jsonString,
|
|
3228
|
-
(x) =>
|
|
3229
|
-
`Failed to parse '
|
|
3233
|
+
(x) => GetWebhookEventPaymentLinkOutput$inboundSchema.parse(JSON.parse(x)),
|
|
3234
|
+
`Failed to parse 'GetWebhookEventPaymentLinkOutput' from JSON`,
|
|
3230
3235
|
);
|
|
3231
3236
|
}
|
|
3232
3237
|
|
|
3233
3238
|
/** @internal */
|
|
3234
3239
|
export const Entity$inboundSchema: z.ZodType<Entity, z.ZodTypeDef, unknown> = z
|
|
3235
3240
|
.union([
|
|
3236
|
-
z.lazy(() =>
|
|
3241
|
+
z.lazy(() => GetWebhookEventPaymentLinkOutput$inboundSchema),
|
|
3237
3242
|
z.lazy(() => GetWebhookEventProfile$inboundSchema),
|
|
3238
3243
|
]);
|
|
3239
3244
|
|
|
3240
3245
|
/** @internal */
|
|
3241
3246
|
export type Entity$Outbound =
|
|
3242
|
-
|
|
|
3247
|
+
| GetWebhookEventPaymentLinkOutput$Outbound
|
|
3243
3248
|
| GetWebhookEventProfile$Outbound;
|
|
3244
3249
|
|
|
3245
3250
|
/** @internal */
|
|
@@ -3248,7 +3253,7 @@ export const Entity$outboundSchema: z.ZodType<
|
|
|
3248
3253
|
z.ZodTypeDef,
|
|
3249
3254
|
Entity
|
|
3250
3255
|
> = z.union([
|
|
3251
|
-
z.lazy(() =>
|
|
3256
|
+
z.lazy(() => GetWebhookEventPaymentLinkOutput$outboundSchema),
|
|
3252
3257
|
z.lazy(() => GetWebhookEventProfile$outboundSchema),
|
|
3253
3258
|
]);
|
|
3254
3259
|
|
|
@@ -3286,7 +3291,7 @@ export const GetWebhookEventEmbedded$inboundSchema: z.ZodType<
|
|
|
3286
3291
|
unknown
|
|
3287
3292
|
> = z.object({
|
|
3288
3293
|
entity: z.union([
|
|
3289
|
-
z.lazy(() =>
|
|
3294
|
+
z.lazy(() => GetWebhookEventPaymentLinkOutput$inboundSchema),
|
|
3290
3295
|
z.lazy(() => GetWebhookEventProfile$inboundSchema),
|
|
3291
3296
|
]).optional(),
|
|
3292
3297
|
});
|
|
@@ -3294,7 +3299,7 @@ export const GetWebhookEventEmbedded$inboundSchema: z.ZodType<
|
|
|
3294
3299
|
/** @internal */
|
|
3295
3300
|
export type GetWebhookEventEmbedded$Outbound = {
|
|
3296
3301
|
entity?:
|
|
3297
|
-
|
|
|
3302
|
+
| GetWebhookEventPaymentLinkOutput$Outbound
|
|
3298
3303
|
| GetWebhookEventProfile$Outbound
|
|
3299
3304
|
| undefined;
|
|
3300
3305
|
};
|
|
@@ -3306,7 +3311,7 @@ export const GetWebhookEventEmbedded$outboundSchema: z.ZodType<
|
|
|
3306
3311
|
GetWebhookEventEmbedded
|
|
3307
3312
|
> = z.object({
|
|
3308
3313
|
entity: z.union([
|
|
3309
|
-
z.lazy(() =>
|
|
3314
|
+
z.lazy(() => GetWebhookEventPaymentLinkOutput$outboundSchema),
|
|
3310
3315
|
z.lazy(() => GetWebhookEventProfile$outboundSchema),
|
|
3311
3316
|
]).optional(),
|
|
3312
3317
|
});
|
|
@@ -164,17 +164,15 @@ export type ListAllRefundsSettlementAmount = {
|
|
|
164
164
|
value: string;
|
|
165
165
|
};
|
|
166
166
|
|
|
167
|
-
export type ListAllRefundsMetadata = {};
|
|
168
|
-
|
|
169
167
|
/**
|
|
170
168
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
171
169
|
*
|
|
172
170
|
* @remarks
|
|
173
171
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
174
172
|
*/
|
|
175
|
-
export type
|
|
176
|
-
| ListAllRefundsMetadata
|
|
173
|
+
export type ListAllRefundsMetadata =
|
|
177
174
|
| string
|
|
175
|
+
| { [k: string]: any }
|
|
178
176
|
| Array<string>;
|
|
179
177
|
|
|
180
178
|
/**
|
|
@@ -388,7 +386,7 @@ export type ListAllRefundsRefund = {
|
|
|
388
386
|
* @remarks
|
|
389
387
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
390
388
|
*/
|
|
391
|
-
metadata?:
|
|
389
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
392
390
|
/**
|
|
393
391
|
* The unique identifier of the payment this refund was created for.
|
|
394
392
|
*
|
|
@@ -909,17 +907,20 @@ export const ListAllRefundsMetadata$inboundSchema: z.ZodType<
|
|
|
909
907
|
ListAllRefundsMetadata,
|
|
910
908
|
z.ZodTypeDef,
|
|
911
909
|
unknown
|
|
912
|
-
> = z.
|
|
910
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
913
911
|
|
|
914
912
|
/** @internal */
|
|
915
|
-
export type ListAllRefundsMetadata$Outbound =
|
|
913
|
+
export type ListAllRefundsMetadata$Outbound =
|
|
914
|
+
| string
|
|
915
|
+
| { [k: string]: any }
|
|
916
|
+
| Array<string>;
|
|
916
917
|
|
|
917
918
|
/** @internal */
|
|
918
919
|
export const ListAllRefundsMetadata$outboundSchema: z.ZodType<
|
|
919
920
|
ListAllRefundsMetadata$Outbound,
|
|
920
921
|
z.ZodTypeDef,
|
|
921
922
|
ListAllRefundsMetadata
|
|
922
|
-
> = z.
|
|
923
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
923
924
|
|
|
924
925
|
/**
|
|
925
926
|
* @internal
|
|
@@ -952,67 +953,6 @@ export function listAllRefundsMetadataFromJSON(
|
|
|
952
953
|
);
|
|
953
954
|
}
|
|
954
955
|
|
|
955
|
-
/** @internal */
|
|
956
|
-
export const ListAllRefundsMetadataUnion$inboundSchema: z.ZodType<
|
|
957
|
-
ListAllRefundsMetadataUnion,
|
|
958
|
-
z.ZodTypeDef,
|
|
959
|
-
unknown
|
|
960
|
-
> = z.union([
|
|
961
|
-
z.lazy(() => ListAllRefundsMetadata$inboundSchema),
|
|
962
|
-
z.string(),
|
|
963
|
-
z.array(z.string()),
|
|
964
|
-
]);
|
|
965
|
-
|
|
966
|
-
/** @internal */
|
|
967
|
-
export type ListAllRefundsMetadataUnion$Outbound =
|
|
968
|
-
| ListAllRefundsMetadata$Outbound
|
|
969
|
-
| string
|
|
970
|
-
| Array<string>;
|
|
971
|
-
|
|
972
|
-
/** @internal */
|
|
973
|
-
export const ListAllRefundsMetadataUnion$outboundSchema: z.ZodType<
|
|
974
|
-
ListAllRefundsMetadataUnion$Outbound,
|
|
975
|
-
z.ZodTypeDef,
|
|
976
|
-
ListAllRefundsMetadataUnion
|
|
977
|
-
> = z.union([
|
|
978
|
-
z.lazy(() => ListAllRefundsMetadata$outboundSchema),
|
|
979
|
-
z.string(),
|
|
980
|
-
z.array(z.string()),
|
|
981
|
-
]);
|
|
982
|
-
|
|
983
|
-
/**
|
|
984
|
-
* @internal
|
|
985
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
986
|
-
*/
|
|
987
|
-
export namespace ListAllRefundsMetadataUnion$ {
|
|
988
|
-
/** @deprecated use `ListAllRefundsMetadataUnion$inboundSchema` instead. */
|
|
989
|
-
export const inboundSchema = ListAllRefundsMetadataUnion$inboundSchema;
|
|
990
|
-
/** @deprecated use `ListAllRefundsMetadataUnion$outboundSchema` instead. */
|
|
991
|
-
export const outboundSchema = ListAllRefundsMetadataUnion$outboundSchema;
|
|
992
|
-
/** @deprecated use `ListAllRefundsMetadataUnion$Outbound` instead. */
|
|
993
|
-
export type Outbound = ListAllRefundsMetadataUnion$Outbound;
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
export function listAllRefundsMetadataUnionToJSON(
|
|
997
|
-
listAllRefundsMetadataUnion: ListAllRefundsMetadataUnion,
|
|
998
|
-
): string {
|
|
999
|
-
return JSON.stringify(
|
|
1000
|
-
ListAllRefundsMetadataUnion$outboundSchema.parse(
|
|
1001
|
-
listAllRefundsMetadataUnion,
|
|
1002
|
-
),
|
|
1003
|
-
);
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
export function listAllRefundsMetadataUnionFromJSON(
|
|
1007
|
-
jsonString: string,
|
|
1008
|
-
): SafeParseResult<ListAllRefundsMetadataUnion, SDKValidationError> {
|
|
1009
|
-
return safeParse(
|
|
1010
|
-
jsonString,
|
|
1011
|
-
(x) => ListAllRefundsMetadataUnion$inboundSchema.parse(JSON.parse(x)),
|
|
1012
|
-
`Failed to parse 'ListAllRefundsMetadataUnion' from JSON`,
|
|
1013
|
-
);
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
956
|
/** @internal */
|
|
1017
957
|
export const ListAllRefundsStatus$inboundSchema: z.ZodNativeEnum<
|
|
1018
958
|
typeof ListAllRefundsStatus
|
|
@@ -1602,11 +1542,7 @@ export const ListAllRefundsRefund$inboundSchema: z.ZodType<
|
|
|
1602
1542
|
z.lazy(() => ListAllRefundsSettlementAmount$inboundSchema),
|
|
1603
1543
|
).optional(),
|
|
1604
1544
|
metadata: z.nullable(
|
|
1605
|
-
z.union([
|
|
1606
|
-
z.lazy(() => ListAllRefundsMetadata$inboundSchema),
|
|
1607
|
-
z.string(),
|
|
1608
|
-
z.array(z.string()),
|
|
1609
|
-
]),
|
|
1545
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1610
1546
|
).optional(),
|
|
1611
1547
|
paymentId: z.string().optional(),
|
|
1612
1548
|
settlementId: z.nullable(z.string()).optional(),
|
|
@@ -1632,12 +1568,7 @@ export type ListAllRefundsRefund$Outbound = {
|
|
|
1632
1568
|
description?: string | undefined;
|
|
1633
1569
|
amount?: ListAllRefundsAmount$Outbound | undefined;
|
|
1634
1570
|
settlementAmount?: ListAllRefundsSettlementAmount$Outbound | null | undefined;
|
|
1635
|
-
metadata?:
|
|
1636
|
-
| ListAllRefundsMetadata$Outbound
|
|
1637
|
-
| string
|
|
1638
|
-
| Array<string>
|
|
1639
|
-
| null
|
|
1640
|
-
| undefined;
|
|
1571
|
+
metadata?: string | { [k: string]: any } | Array<string> | null | undefined;
|
|
1641
1572
|
paymentId?: string | undefined;
|
|
1642
1573
|
settlementId?: string | null | undefined;
|
|
1643
1574
|
status?: string | undefined;
|
|
@@ -1665,11 +1596,7 @@ export const ListAllRefundsRefund$outboundSchema: z.ZodType<
|
|
|
1665
1596
|
z.lazy(() => ListAllRefundsSettlementAmount$outboundSchema),
|
|
1666
1597
|
).optional(),
|
|
1667
1598
|
metadata: z.nullable(
|
|
1668
|
-
z.union([
|
|
1669
|
-
z.lazy(() => ListAllRefundsMetadata$outboundSchema),
|
|
1670
|
-
z.string(),
|
|
1671
|
-
z.array(z.string()),
|
|
1672
|
-
]),
|
|
1599
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1673
1600
|
).optional(),
|
|
1674
1601
|
paymentId: z.string().optional(),
|
|
1675
1602
|
settlementId: z.nullable(z.string()).optional(),
|
|
@@ -199,8 +199,6 @@ export type ListAllSubscriptionsApplicationFee = {
|
|
|
199
199
|
description: string;
|
|
200
200
|
};
|
|
201
201
|
|
|
202
|
-
export type ListAllSubscriptionsMetadata = {};
|
|
203
|
-
|
|
204
202
|
/**
|
|
205
203
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity.
|
|
206
204
|
*
|
|
@@ -210,9 +208,9 @@ export type ListAllSubscriptionsMetadata = {};
|
|
|
210
208
|
*
|
|
211
209
|
* Any metadata added to the subscription will be automatically forwarded to the payments generated for it.
|
|
212
210
|
*/
|
|
213
|
-
export type
|
|
214
|
-
| ListAllSubscriptionsMetadata
|
|
211
|
+
export type ListAllSubscriptionsMetadata =
|
|
215
212
|
| string
|
|
213
|
+
| { [k: string]: any }
|
|
216
214
|
| Array<string>;
|
|
217
215
|
|
|
218
216
|
/**
|
|
@@ -431,7 +429,7 @@ export type ListAllSubscriptionsSubscription = {
|
|
|
431
429
|
*
|
|
432
430
|
* Any metadata added to the subscription will be automatically forwarded to the payments generated for it.
|
|
433
431
|
*/
|
|
434
|
-
metadata:
|
|
432
|
+
metadata: string | { [k: string]: any } | Array<string> | null;
|
|
435
433
|
/**
|
|
436
434
|
* We will call this URL for any payment status changes of payments resulting from this subscription.
|
|
437
435
|
*
|
|
@@ -1175,17 +1173,19 @@ export const ListAllSubscriptionsMetadata$inboundSchema: z.ZodType<
|
|
|
1175
1173
|
ListAllSubscriptionsMetadata,
|
|
1176
1174
|
z.ZodTypeDef,
|
|
1177
1175
|
unknown
|
|
1178
|
-
> = z.
|
|
1176
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
1179
1177
|
|
|
1180
1178
|
/** @internal */
|
|
1181
|
-
export type ListAllSubscriptionsMetadata$Outbound = {
|
|
1179
|
+
export type ListAllSubscriptionsMetadata$Outbound = string | {
|
|
1180
|
+
[k: string]: any;
|
|
1181
|
+
} | Array<string>;
|
|
1182
1182
|
|
|
1183
1183
|
/** @internal */
|
|
1184
1184
|
export const ListAllSubscriptionsMetadata$outboundSchema: z.ZodType<
|
|
1185
1185
|
ListAllSubscriptionsMetadata$Outbound,
|
|
1186
1186
|
z.ZodTypeDef,
|
|
1187
1187
|
ListAllSubscriptionsMetadata
|
|
1188
|
-
> = z.
|
|
1188
|
+
> = z.union([z.string(), z.record(z.any()), z.array(z.string())]);
|
|
1189
1189
|
|
|
1190
1190
|
/**
|
|
1191
1191
|
* @internal
|
|
@@ -1220,68 +1220,6 @@ export function listAllSubscriptionsMetadataFromJSON(
|
|
|
1220
1220
|
);
|
|
1221
1221
|
}
|
|
1222
1222
|
|
|
1223
|
-
/** @internal */
|
|
1224
|
-
export const ListAllSubscriptionsMetadataUnion$inboundSchema: z.ZodType<
|
|
1225
|
-
ListAllSubscriptionsMetadataUnion,
|
|
1226
|
-
z.ZodTypeDef,
|
|
1227
|
-
unknown
|
|
1228
|
-
> = z.union([
|
|
1229
|
-
z.lazy(() => ListAllSubscriptionsMetadata$inboundSchema),
|
|
1230
|
-
z.string(),
|
|
1231
|
-
z.array(z.string()),
|
|
1232
|
-
]);
|
|
1233
|
-
|
|
1234
|
-
/** @internal */
|
|
1235
|
-
export type ListAllSubscriptionsMetadataUnion$Outbound =
|
|
1236
|
-
| ListAllSubscriptionsMetadata$Outbound
|
|
1237
|
-
| string
|
|
1238
|
-
| Array<string>;
|
|
1239
|
-
|
|
1240
|
-
/** @internal */
|
|
1241
|
-
export const ListAllSubscriptionsMetadataUnion$outboundSchema: z.ZodType<
|
|
1242
|
-
ListAllSubscriptionsMetadataUnion$Outbound,
|
|
1243
|
-
z.ZodTypeDef,
|
|
1244
|
-
ListAllSubscriptionsMetadataUnion
|
|
1245
|
-
> = z.union([
|
|
1246
|
-
z.lazy(() => ListAllSubscriptionsMetadata$outboundSchema),
|
|
1247
|
-
z.string(),
|
|
1248
|
-
z.array(z.string()),
|
|
1249
|
-
]);
|
|
1250
|
-
|
|
1251
|
-
/**
|
|
1252
|
-
* @internal
|
|
1253
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1254
|
-
*/
|
|
1255
|
-
export namespace ListAllSubscriptionsMetadataUnion$ {
|
|
1256
|
-
/** @deprecated use `ListAllSubscriptionsMetadataUnion$inboundSchema` instead. */
|
|
1257
|
-
export const inboundSchema = ListAllSubscriptionsMetadataUnion$inboundSchema;
|
|
1258
|
-
/** @deprecated use `ListAllSubscriptionsMetadataUnion$outboundSchema` instead. */
|
|
1259
|
-
export const outboundSchema =
|
|
1260
|
-
ListAllSubscriptionsMetadataUnion$outboundSchema;
|
|
1261
|
-
/** @deprecated use `ListAllSubscriptionsMetadataUnion$Outbound` instead. */
|
|
1262
|
-
export type Outbound = ListAllSubscriptionsMetadataUnion$Outbound;
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
export function listAllSubscriptionsMetadataUnionToJSON(
|
|
1266
|
-
listAllSubscriptionsMetadataUnion: ListAllSubscriptionsMetadataUnion,
|
|
1267
|
-
): string {
|
|
1268
|
-
return JSON.stringify(
|
|
1269
|
-
ListAllSubscriptionsMetadataUnion$outboundSchema.parse(
|
|
1270
|
-
listAllSubscriptionsMetadataUnion,
|
|
1271
|
-
),
|
|
1272
|
-
);
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
|
-
export function listAllSubscriptionsMetadataUnionFromJSON(
|
|
1276
|
-
jsonString: string,
|
|
1277
|
-
): SafeParseResult<ListAllSubscriptionsMetadataUnion, SDKValidationError> {
|
|
1278
|
-
return safeParse(
|
|
1279
|
-
jsonString,
|
|
1280
|
-
(x) => ListAllSubscriptionsMetadataUnion$inboundSchema.parse(JSON.parse(x)),
|
|
1281
|
-
`Failed to parse 'ListAllSubscriptionsMetadataUnion' from JSON`,
|
|
1282
|
-
);
|
|
1283
|
-
}
|
|
1284
|
-
|
|
1285
1223
|
/** @internal */
|
|
1286
1224
|
export const ListAllSubscriptionsSubscriptionSelf$inboundSchema: z.ZodType<
|
|
1287
1225
|
ListAllSubscriptionsSubscriptionSelf,
|
|
@@ -1758,11 +1696,7 @@ export const ListAllSubscriptionsSubscription$inboundSchema: z.ZodType<
|
|
|
1758
1696
|
applicationFee: z.lazy(() => ListAllSubscriptionsApplicationFee$inboundSchema)
|
|
1759
1697
|
.optional(),
|
|
1760
1698
|
metadata: z.nullable(
|
|
1761
|
-
z.union([
|
|
1762
|
-
z.lazy(() => ListAllSubscriptionsMetadata$inboundSchema),
|
|
1763
|
-
z.string(),
|
|
1764
|
-
z.array(z.string()),
|
|
1765
|
-
]),
|
|
1699
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1766
1700
|
),
|
|
1767
1701
|
webhookUrl: z.string(),
|
|
1768
1702
|
customerId: z.string(),
|
|
@@ -1792,11 +1726,7 @@ export type ListAllSubscriptionsSubscription$Outbound = {
|
|
|
1792
1726
|
description: string;
|
|
1793
1727
|
method: string | null;
|
|
1794
1728
|
applicationFee?: ListAllSubscriptionsApplicationFee$Outbound | undefined;
|
|
1795
|
-
metadata:
|
|
1796
|
-
| ListAllSubscriptionsMetadata$Outbound
|
|
1797
|
-
| string
|
|
1798
|
-
| Array<string>
|
|
1799
|
-
| null;
|
|
1729
|
+
metadata: string | { [k: string]: any } | Array<string> | null;
|
|
1800
1730
|
webhookUrl: string;
|
|
1801
1731
|
customerId: string;
|
|
1802
1732
|
mandateId?: string | null | undefined;
|
|
@@ -1827,11 +1757,7 @@ export const ListAllSubscriptionsSubscription$outboundSchema: z.ZodType<
|
|
|
1827
1757
|
ListAllSubscriptionsApplicationFee$outboundSchema
|
|
1828
1758
|
).optional(),
|
|
1829
1759
|
metadata: z.nullable(
|
|
1830
|
-
z.union([
|
|
1831
|
-
z.lazy(() => ListAllSubscriptionsMetadata$outboundSchema),
|
|
1832
|
-
z.string(),
|
|
1833
|
-
z.array(z.string()),
|
|
1834
|
-
]),
|
|
1760
|
+
z.union([z.string(), z.record(z.any()), z.array(z.string())]),
|
|
1835
1761
|
),
|
|
1836
1762
|
webhookUrl: z.string(),
|
|
1837
1763
|
customerId: z.string(),
|
|
@@ -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(),
|