mollie-api-typescript 0.9.5 → 0.9.6
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 +2840 -1135
- package/bin/mcp-server.js.map +84 -69
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/entitybalance.d.ts +42 -42
- package/dist/commonjs/models/entitybalance.d.ts.map +1 -1
- package/dist/commonjs/models/entitybalance.js +53 -51
- package/dist/commonjs/models/entitybalance.js.map +1 -1
- package/dist/commonjs/models/entitychargeback.d.ts +8 -8
- package/dist/commonjs/models/entitychargeback.d.ts.map +1 -1
- package/dist/commonjs/models/entitychargeback.js +13 -12
- package/dist/commonjs/models/entitychargeback.js.map +1 -1
- package/dist/commonjs/models/entityinvoice.d.ts +24 -24
- package/dist/commonjs/models/entityinvoice.d.ts.map +1 -1
- package/dist/commonjs/models/entityinvoice.js +31 -31
- package/dist/commonjs/models/entityinvoice.js.map +1 -1
- package/dist/commonjs/models/entitysettlement.d.ts +32 -32
- package/dist/commonjs/models/entitysettlement.d.ts.map +1 -1
- package/dist/commonjs/models/entitysettlement.js +43 -43
- package/dist/commonjs/models/entitysettlement.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +17 -2
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +17 -2
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/listcustomerresponse.d.ts +107 -0
- package/dist/commonjs/models/listcustomerresponse.d.ts.map +1 -0
- package/dist/commonjs/models/listcustomerresponse.js +112 -0
- package/dist/commonjs/models/listcustomerresponse.js.map +1 -0
- package/dist/commonjs/models/listentitybalance.d.ts +300 -0
- package/dist/commonjs/models/listentitybalance.d.ts.map +1 -0
- package/dist/commonjs/models/listentitybalance.js +245 -0
- package/dist/commonjs/models/listentitybalance.js.map +1 -0
- package/dist/commonjs/models/listentitychargeback.d.ts +175 -0
- package/dist/commonjs/models/listentitychargeback.d.ts.map +1 -0
- package/dist/commonjs/models/listentitychargeback.js +146 -0
- package/dist/commonjs/models/listentitychargeback.js.map +1 -0
- package/dist/commonjs/models/listentityinvoice.d.ts +236 -0
- package/dist/commonjs/models/listentityinvoice.d.ts.map +1 -0
- package/dist/commonjs/models/listentityinvoice.js +202 -0
- package/dist/commonjs/models/listentityinvoice.js.map +1 -0
- package/dist/commonjs/models/listentitymethod.d.ts +319 -0
- package/dist/commonjs/models/listentitymethod.d.ts.map +1 -0
- package/dist/commonjs/models/listentitymethod.js +264 -0
- package/dist/commonjs/models/listentitymethod.js.map +1 -0
- package/dist/commonjs/models/{entitymethodall.d.ts → listentitymethodall.d.ts} +60 -65
- package/dist/commonjs/models/listentitymethodall.d.ts.map +1 -0
- package/dist/commonjs/models/listentitymethodall.js +289 -0
- package/dist/commonjs/models/listentitymethodall.js.map +1 -0
- package/dist/commonjs/models/listentitypermission.d.ts +63 -0
- package/dist/commonjs/models/listentitypermission.d.ts.map +1 -0
- package/dist/commonjs/models/listentitypermission.js +92 -0
- package/dist/commonjs/models/listentitypermission.js.map +1 -0
- package/dist/commonjs/models/listentityrefund.d.ts +256 -0
- package/dist/commonjs/models/listentityrefund.d.ts.map +1 -0
- package/dist/commonjs/models/listentityrefund.js +202 -0
- package/dist/commonjs/models/listentityrefund.js.map +1 -0
- package/dist/commonjs/models/listentitysettlement.d.ts +321 -0
- package/dist/commonjs/models/listentitysettlement.d.ts.map +1 -0
- package/dist/commonjs/models/listentitysettlement.js +248 -0
- package/dist/commonjs/models/listentitysettlement.js.map +1 -0
- package/dist/commonjs/models/listentityterminal.d.ts +130 -0
- package/dist/commonjs/models/listentityterminal.d.ts.map +1 -0
- package/dist/commonjs/models/listentityterminal.js +124 -0
- package/dist/commonjs/models/listentityterminal.js.map +1 -0
- package/dist/commonjs/models/listentitywebhook.d.ts +91 -0
- package/dist/commonjs/models/listentitywebhook.d.ts.map +1 -0
- package/dist/commonjs/models/listentitywebhook.js +105 -0
- package/dist/commonjs/models/listentitywebhook.js.map +1 -0
- package/dist/commonjs/models/listmandateresponse.d.ts +176 -0
- package/dist/commonjs/models/listmandateresponse.d.ts.map +1 -0
- package/dist/commonjs/models/listmandateresponse.js +157 -0
- package/dist/commonjs/models/listmandateresponse.js.map +1 -0
- package/dist/commonjs/models/listpaymentresponse.d.ts +1348 -0
- package/dist/commonjs/models/listpaymentresponse.d.ts.map +1 -0
- package/dist/commonjs/models/listpaymentresponse.js +620 -0
- package/dist/commonjs/models/listpaymentresponse.js.map +1 -0
- package/dist/commonjs/models/listprofileresponse.d.ts +202 -0
- package/dist/commonjs/models/listprofileresponse.d.ts.map +1 -0
- package/dist/commonjs/models/listprofileresponse.js +159 -0
- package/dist/commonjs/models/listprofileresponse.js.map +1 -0
- package/dist/commonjs/models/{routegetresponse.d.ts → listroutegetresponse.d.ts} +23 -28
- package/dist/commonjs/models/listroutegetresponse.d.ts.map +1 -0
- package/dist/commonjs/models/{routegetresponse.js → listroutegetresponse.js} +30 -32
- package/dist/commonjs/models/listroutegetresponse.js.map +1 -0
- package/dist/commonjs/models/listsalesinvoiceresponse.d.ts +375 -0
- package/dist/commonjs/models/listsalesinvoiceresponse.d.ts.map +1 -0
- package/dist/commonjs/models/listsalesinvoiceresponse.js +267 -0
- package/dist/commonjs/models/listsalesinvoiceresponse.js.map +1 -0
- package/dist/commonjs/models/listsubscriptionresponse.d.ts +249 -0
- package/dist/commonjs/models/listsubscriptionresponse.d.ts.map +1 -0
- package/dist/commonjs/models/listsubscriptionresponse.js +171 -0
- package/dist/commonjs/models/listsubscriptionresponse.js.map +1 -0
- package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts +2 -2
- package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getpaymentlinkpayments.js +2 -2
- package/dist/commonjs/models/operations/getpaymentlinkpayments.js.map +1 -1
- package/dist/commonjs/models/operations/listallchargebacks.d.ts +2 -2
- package/dist/commonjs/models/operations/listallchargebacks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listallchargebacks.js +2 -2
- package/dist/commonjs/models/operations/listallchargebacks.js.map +1 -1
- package/dist/commonjs/models/operations/listallmethods.d.ts +2 -2
- package/dist/commonjs/models/operations/listallmethods.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listallmethods.js +2 -2
- package/dist/commonjs/models/operations/listallmethods.js.map +1 -1
- package/dist/commonjs/models/operations/listallrefunds.d.ts +2 -2
- package/dist/commonjs/models/operations/listallrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listallrefunds.js +2 -2
- package/dist/commonjs/models/operations/listallrefunds.js.map +1 -1
- package/dist/commonjs/models/operations/listallsubscriptions.d.ts +2 -2
- package/dist/commonjs/models/operations/listallsubscriptions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listallsubscriptions.js +4 -2
- package/dist/commonjs/models/operations/listallsubscriptions.js.map +1 -1
- package/dist/commonjs/models/operations/listbalances.d.ts +2 -2
- package/dist/commonjs/models/operations/listbalances.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listbalances.js +2 -2
- package/dist/commonjs/models/operations/listbalances.js.map +1 -1
- package/dist/commonjs/models/operations/listchargebacks.d.ts +2 -2
- package/dist/commonjs/models/operations/listchargebacks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listchargebacks.js +2 -2
- package/dist/commonjs/models/operations/listchargebacks.js.map +1 -1
- package/dist/commonjs/models/operations/listclients.d.ts +0 -5
- package/dist/commonjs/models/operations/listclients.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listclients.js +0 -2
- package/dist/commonjs/models/operations/listclients.js.map +1 -1
- package/dist/commonjs/models/operations/listcustomerpayments.d.ts +2 -2
- package/dist/commonjs/models/operations/listcustomerpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listcustomerpayments.js +2 -2
- package/dist/commonjs/models/operations/listcustomerpayments.js.map +1 -1
- package/dist/commonjs/models/operations/listcustomers.d.ts +2 -2
- package/dist/commonjs/models/operations/listcustomers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listcustomers.js +2 -2
- package/dist/commonjs/models/operations/listcustomers.js.map +1 -1
- package/dist/commonjs/models/operations/listinvoices.d.ts +2 -2
- package/dist/commonjs/models/operations/listinvoices.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listinvoices.js +2 -2
- package/dist/commonjs/models/operations/listinvoices.js.map +1 -1
- package/dist/commonjs/models/operations/listmandates.d.ts +2 -2
- package/dist/commonjs/models/operations/listmandates.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmandates.js +2 -2
- package/dist/commonjs/models/operations/listmandates.js.map +1 -1
- package/dist/commonjs/models/operations/listmethods.d.ts +2 -2
- package/dist/commonjs/models/operations/listmethods.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmethods.js +2 -2
- package/dist/commonjs/models/operations/listmethods.js.map +1 -1
- package/dist/commonjs/models/operations/listpayments.d.ts +2 -2
- package/dist/commonjs/models/operations/listpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listpayments.js +2 -2
- package/dist/commonjs/models/operations/listpayments.js.map +1 -1
- package/dist/commonjs/models/operations/listpermissions.d.ts +2 -2
- package/dist/commonjs/models/operations/listpermissions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listpermissions.js +2 -2
- package/dist/commonjs/models/operations/listpermissions.js.map +1 -1
- package/dist/commonjs/models/operations/listprofiles.d.ts +2 -2
- package/dist/commonjs/models/operations/listprofiles.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listprofiles.js +2 -2
- package/dist/commonjs/models/operations/listprofiles.js.map +1 -1
- package/dist/commonjs/models/operations/listrefunds.d.ts +2 -2
- package/dist/commonjs/models/operations/listrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listrefunds.js +2 -2
- package/dist/commonjs/models/operations/listrefunds.js.map +1 -1
- package/dist/commonjs/models/operations/listsalesinvoices.d.ts +2 -2
- package/dist/commonjs/models/operations/listsalesinvoices.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsalesinvoices.js +4 -2
- package/dist/commonjs/models/operations/listsalesinvoices.js.map +1 -1
- package/dist/commonjs/models/operations/listsettlementchargebacks.d.ts +2 -2
- package/dist/commonjs/models/operations/listsettlementchargebacks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsettlementchargebacks.js +2 -2
- package/dist/commonjs/models/operations/listsettlementchargebacks.js.map +1 -1
- package/dist/commonjs/models/operations/listsettlementpayments.d.ts +2 -2
- package/dist/commonjs/models/operations/listsettlementpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsettlementpayments.js +2 -2
- package/dist/commonjs/models/operations/listsettlementpayments.js.map +1 -1
- package/dist/commonjs/models/operations/listsettlementrefunds.d.ts +2 -2
- package/dist/commonjs/models/operations/listsettlementrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsettlementrefunds.js +2 -2
- package/dist/commonjs/models/operations/listsettlementrefunds.js.map +1 -1
- package/dist/commonjs/models/operations/listsettlements.d.ts +2 -2
- package/dist/commonjs/models/operations/listsettlements.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsettlements.js +2 -2
- package/dist/commonjs/models/operations/listsettlements.js.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts +2 -2
- package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptionpayments.js +2 -2
- package/dist/commonjs/models/operations/listsubscriptionpayments.js.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptions.d.ts +2 -2
- package/dist/commonjs/models/operations/listsubscriptions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptions.js +4 -2
- package/dist/commonjs/models/operations/listsubscriptions.js.map +1 -1
- package/dist/commonjs/models/operations/listterminals.d.ts +2 -2
- package/dist/commonjs/models/operations/listterminals.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listterminals.js +2 -2
- package/dist/commonjs/models/operations/listterminals.js.map +1 -1
- package/dist/commonjs/models/operations/listwebhooks.d.ts +2 -2
- package/dist/commonjs/models/operations/listwebhooks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listwebhooks.js +2 -2
- package/dist/commonjs/models/operations/listwebhooks.js.map +1 -1
- package/dist/commonjs/models/operations/paymentlistroutes.d.ts +2 -2
- package/dist/commonjs/models/operations/paymentlistroutes.d.ts.map +1 -1
- package/dist/commonjs/models/operations/paymentlistroutes.js +2 -2
- package/dist/commonjs/models/operations/paymentlistroutes.js.map +1 -1
- package/dist/commonjs/models/paymentresponse.d.ts +48 -48
- package/dist/commonjs/models/paymentresponse.d.ts.map +1 -1
- package/dist/commonjs/models/paymentresponse.js +67 -62
- package/dist/commonjs/models/paymentresponse.js.map +1 -1
- package/dist/commonjs/models/profileresponse.d.ts +8 -8
- package/dist/commonjs/models/profileresponse.d.ts.map +1 -1
- package/dist/commonjs/models/profileresponse.js +11 -12
- package/dist/commonjs/models/profileresponse.js.map +1 -1
- package/dist/commonjs/models/salesinvoiceresponse.d.ts +40 -40
- package/dist/commonjs/models/salesinvoiceresponse.d.ts.map +1 -1
- package/dist/commonjs/models/salesinvoiceresponse.js +56 -51
- package/dist/commonjs/models/salesinvoiceresponse.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/entitybalance.d.ts +42 -42
- package/dist/esm/models/entitybalance.d.ts.map +1 -1
- package/dist/esm/models/entitybalance.js +44 -42
- package/dist/esm/models/entitybalance.js.map +1 -1
- package/dist/esm/models/entitychargeback.d.ts +8 -8
- package/dist/esm/models/entitychargeback.d.ts.map +1 -1
- package/dist/esm/models/entitychargeback.js +10 -9
- package/dist/esm/models/entitychargeback.js.map +1 -1
- package/dist/esm/models/entityinvoice.d.ts +24 -24
- package/dist/esm/models/entityinvoice.d.ts.map +1 -1
- package/dist/esm/models/entityinvoice.js +24 -24
- package/dist/esm/models/entityinvoice.js.map +1 -1
- package/dist/esm/models/entitysettlement.d.ts +32 -32
- package/dist/esm/models/entitysettlement.d.ts.map +1 -1
- package/dist/esm/models/entitysettlement.js +34 -34
- package/dist/esm/models/entitysettlement.js.map +1 -1
- package/dist/esm/models/index.d.ts +17 -2
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +17 -2
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/listcustomerresponse.d.ts +107 -0
- package/dist/esm/models/listcustomerresponse.d.ts.map +1 -0
- package/dist/esm/models/listcustomerresponse.js +72 -0
- package/dist/esm/models/listcustomerresponse.js.map +1 -0
- package/dist/esm/models/listentitybalance.d.ts +300 -0
- package/dist/esm/models/listentitybalance.d.ts.map +1 -0
- package/dist/esm/models/listentitybalance.js +197 -0
- package/dist/esm/models/listentitybalance.js.map +1 -0
- package/dist/esm/models/listentitychargeback.d.ts +175 -0
- package/dist/esm/models/listentitychargeback.d.ts.map +1 -0
- package/dist/esm/models/listentitychargeback.js +102 -0
- package/dist/esm/models/listentitychargeback.js.map +1 -0
- package/dist/esm/models/listentityinvoice.d.ts +236 -0
- package/dist/esm/models/listentityinvoice.d.ts.map +1 -0
- package/dist/esm/models/listentityinvoice.js +154 -0
- package/dist/esm/models/listentityinvoice.js.map +1 -0
- package/dist/esm/models/listentitymethod.d.ts +319 -0
- package/dist/esm/models/listentitymethod.d.ts.map +1 -0
- package/dist/esm/models/listentitymethod.js +214 -0
- package/dist/esm/models/listentitymethod.js.map +1 -0
- package/dist/esm/models/{entitymethodall.d.ts → listentitymethodall.d.ts} +60 -65
- package/dist/esm/models/listentitymethodall.d.ts.map +1 -0
- package/dist/esm/models/listentitymethodall.js +237 -0
- package/dist/esm/models/listentitymethodall.js.map +1 -0
- package/dist/esm/models/listentitypermission.d.ts +63 -0
- package/dist/esm/models/listentitypermission.d.ts.map +1 -0
- package/dist/esm/models/listentitypermission.js +52 -0
- package/dist/esm/models/listentitypermission.js.map +1 -0
- package/dist/esm/models/listentityrefund.d.ts +256 -0
- package/dist/esm/models/listentityrefund.d.ts.map +1 -0
- package/dist/esm/models/listentityrefund.js +154 -0
- package/dist/esm/models/listentityrefund.js.map +1 -0
- package/dist/esm/models/listentitysettlement.d.ts +321 -0
- package/dist/esm/models/listentitysettlement.d.ts.map +1 -0
- package/dist/esm/models/listentitysettlement.js +198 -0
- package/dist/esm/models/listentitysettlement.js.map +1 -0
- package/dist/esm/models/listentityterminal.d.ts +130 -0
- package/dist/esm/models/listentityterminal.d.ts.map +1 -0
- package/dist/esm/models/listentityterminal.js +84 -0
- package/dist/esm/models/listentityterminal.js.map +1 -0
- package/dist/esm/models/listentitywebhook.d.ts +91 -0
- package/dist/esm/models/listentitywebhook.d.ts.map +1 -0
- package/dist/esm/models/listentitywebhook.js +65 -0
- package/dist/esm/models/listentitywebhook.js.map +1 -0
- package/dist/esm/models/listmandateresponse.d.ts +176 -0
- package/dist/esm/models/listmandateresponse.d.ts.map +1 -0
- package/dist/esm/models/listmandateresponse.js +115 -0
- package/dist/esm/models/listmandateresponse.js.map +1 -0
- package/dist/esm/models/listpaymentresponse.d.ts +1348 -0
- package/dist/esm/models/listpaymentresponse.d.ts.map +1 -0
- package/dist/esm/models/listpaymentresponse.js +558 -0
- package/dist/esm/models/listpaymentresponse.js.map +1 -0
- package/dist/esm/models/listprofileresponse.d.ts +202 -0
- package/dist/esm/models/listprofileresponse.d.ts.map +1 -0
- package/dist/esm/models/listprofileresponse.js +117 -0
- package/dist/esm/models/listprofileresponse.js.map +1 -0
- package/dist/esm/models/{routegetresponse.d.ts → listroutegetresponse.d.ts} +23 -28
- package/dist/esm/models/listroutegetresponse.d.ts.map +1 -0
- package/dist/esm/models/listroutegetresponse.js +76 -0
- package/dist/esm/models/listroutegetresponse.js.map +1 -0
- package/dist/esm/models/listsalesinvoiceresponse.d.ts +375 -0
- package/dist/esm/models/listsalesinvoiceresponse.d.ts.map +1 -0
- package/dist/esm/models/listsalesinvoiceresponse.js +215 -0
- package/dist/esm/models/listsalesinvoiceresponse.js.map +1 -0
- package/dist/esm/models/listsubscriptionresponse.d.ts +249 -0
- package/dist/esm/models/listsubscriptionresponse.d.ts.map +1 -0
- package/dist/esm/models/listsubscriptionresponse.js +129 -0
- package/dist/esm/models/listsubscriptionresponse.js.map +1 -0
- package/dist/esm/models/operations/getpaymentlinkpayments.d.ts +2 -2
- package/dist/esm/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/getpaymentlinkpayments.js +2 -2
- package/dist/esm/models/operations/getpaymentlinkpayments.js.map +1 -1
- package/dist/esm/models/operations/listallchargebacks.d.ts +2 -2
- package/dist/esm/models/operations/listallchargebacks.d.ts.map +1 -1
- package/dist/esm/models/operations/listallchargebacks.js +2 -2
- package/dist/esm/models/operations/listallchargebacks.js.map +1 -1
- package/dist/esm/models/operations/listallmethods.d.ts +2 -2
- package/dist/esm/models/operations/listallmethods.d.ts.map +1 -1
- package/dist/esm/models/operations/listallmethods.js +2 -2
- package/dist/esm/models/operations/listallmethods.js.map +1 -1
- package/dist/esm/models/operations/listallrefunds.d.ts +2 -2
- package/dist/esm/models/operations/listallrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listallrefunds.js +2 -2
- package/dist/esm/models/operations/listallrefunds.js.map +1 -1
- package/dist/esm/models/operations/listallsubscriptions.d.ts +2 -2
- package/dist/esm/models/operations/listallsubscriptions.d.ts.map +1 -1
- package/dist/esm/models/operations/listallsubscriptions.js +4 -2
- package/dist/esm/models/operations/listallsubscriptions.js.map +1 -1
- package/dist/esm/models/operations/listbalances.d.ts +2 -2
- package/dist/esm/models/operations/listbalances.d.ts.map +1 -1
- package/dist/esm/models/operations/listbalances.js +2 -2
- package/dist/esm/models/operations/listbalances.js.map +1 -1
- package/dist/esm/models/operations/listchargebacks.d.ts +2 -2
- package/dist/esm/models/operations/listchargebacks.d.ts.map +1 -1
- package/dist/esm/models/operations/listchargebacks.js +2 -2
- package/dist/esm/models/operations/listchargebacks.js.map +1 -1
- package/dist/esm/models/operations/listclients.d.ts +0 -5
- package/dist/esm/models/operations/listclients.d.ts.map +1 -1
- package/dist/esm/models/operations/listclients.js +0 -2
- package/dist/esm/models/operations/listclients.js.map +1 -1
- package/dist/esm/models/operations/listcustomerpayments.d.ts +2 -2
- package/dist/esm/models/operations/listcustomerpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/listcustomerpayments.js +2 -2
- package/dist/esm/models/operations/listcustomerpayments.js.map +1 -1
- package/dist/esm/models/operations/listcustomers.d.ts +2 -2
- package/dist/esm/models/operations/listcustomers.d.ts.map +1 -1
- package/dist/esm/models/operations/listcustomers.js +2 -2
- package/dist/esm/models/operations/listcustomers.js.map +1 -1
- package/dist/esm/models/operations/listinvoices.d.ts +2 -2
- package/dist/esm/models/operations/listinvoices.d.ts.map +1 -1
- package/dist/esm/models/operations/listinvoices.js +2 -2
- package/dist/esm/models/operations/listinvoices.js.map +1 -1
- package/dist/esm/models/operations/listmandates.d.ts +2 -2
- package/dist/esm/models/operations/listmandates.d.ts.map +1 -1
- package/dist/esm/models/operations/listmandates.js +2 -2
- package/dist/esm/models/operations/listmandates.js.map +1 -1
- package/dist/esm/models/operations/listmethods.d.ts +2 -2
- package/dist/esm/models/operations/listmethods.d.ts.map +1 -1
- package/dist/esm/models/operations/listmethods.js +2 -2
- package/dist/esm/models/operations/listmethods.js.map +1 -1
- package/dist/esm/models/operations/listpayments.d.ts +2 -2
- package/dist/esm/models/operations/listpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/listpayments.js +2 -2
- package/dist/esm/models/operations/listpayments.js.map +1 -1
- package/dist/esm/models/operations/listpermissions.d.ts +2 -2
- package/dist/esm/models/operations/listpermissions.d.ts.map +1 -1
- package/dist/esm/models/operations/listpermissions.js +2 -2
- package/dist/esm/models/operations/listpermissions.js.map +1 -1
- package/dist/esm/models/operations/listprofiles.d.ts +2 -2
- package/dist/esm/models/operations/listprofiles.d.ts.map +1 -1
- package/dist/esm/models/operations/listprofiles.js +2 -2
- package/dist/esm/models/operations/listprofiles.js.map +1 -1
- package/dist/esm/models/operations/listrefunds.d.ts +2 -2
- package/dist/esm/models/operations/listrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listrefunds.js +2 -2
- package/dist/esm/models/operations/listrefunds.js.map +1 -1
- package/dist/esm/models/operations/listsalesinvoices.d.ts +2 -2
- package/dist/esm/models/operations/listsalesinvoices.d.ts.map +1 -1
- package/dist/esm/models/operations/listsalesinvoices.js +4 -2
- package/dist/esm/models/operations/listsalesinvoices.js.map +1 -1
- package/dist/esm/models/operations/listsettlementchargebacks.d.ts +2 -2
- package/dist/esm/models/operations/listsettlementchargebacks.d.ts.map +1 -1
- package/dist/esm/models/operations/listsettlementchargebacks.js +2 -2
- package/dist/esm/models/operations/listsettlementchargebacks.js.map +1 -1
- package/dist/esm/models/operations/listsettlementpayments.d.ts +2 -2
- package/dist/esm/models/operations/listsettlementpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/listsettlementpayments.js +2 -2
- package/dist/esm/models/operations/listsettlementpayments.js.map +1 -1
- package/dist/esm/models/operations/listsettlementrefunds.d.ts +2 -2
- package/dist/esm/models/operations/listsettlementrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listsettlementrefunds.js +2 -2
- package/dist/esm/models/operations/listsettlementrefunds.js.map +1 -1
- package/dist/esm/models/operations/listsettlements.d.ts +2 -2
- package/dist/esm/models/operations/listsettlements.d.ts.map +1 -1
- package/dist/esm/models/operations/listsettlements.js +2 -2
- package/dist/esm/models/operations/listsettlements.js.map +1 -1
- package/dist/esm/models/operations/listsubscriptionpayments.d.ts +2 -2
- package/dist/esm/models/operations/listsubscriptionpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/listsubscriptionpayments.js +2 -2
- package/dist/esm/models/operations/listsubscriptionpayments.js.map +1 -1
- package/dist/esm/models/operations/listsubscriptions.d.ts +2 -2
- package/dist/esm/models/operations/listsubscriptions.d.ts.map +1 -1
- package/dist/esm/models/operations/listsubscriptions.js +4 -2
- package/dist/esm/models/operations/listsubscriptions.js.map +1 -1
- package/dist/esm/models/operations/listterminals.d.ts +2 -2
- package/dist/esm/models/operations/listterminals.d.ts.map +1 -1
- package/dist/esm/models/operations/listterminals.js +2 -2
- package/dist/esm/models/operations/listterminals.js.map +1 -1
- package/dist/esm/models/operations/listwebhooks.d.ts +2 -2
- package/dist/esm/models/operations/listwebhooks.d.ts.map +1 -1
- package/dist/esm/models/operations/listwebhooks.js +2 -2
- package/dist/esm/models/operations/listwebhooks.js.map +1 -1
- package/dist/esm/models/operations/paymentlistroutes.d.ts +2 -2
- package/dist/esm/models/operations/paymentlistroutes.d.ts.map +1 -1
- package/dist/esm/models/operations/paymentlistroutes.js +2 -2
- package/dist/esm/models/operations/paymentlistroutes.js.map +1 -1
- package/dist/esm/models/paymentresponse.d.ts +48 -48
- package/dist/esm/models/paymentresponse.d.ts.map +1 -1
- package/dist/esm/models/paymentresponse.js +54 -49
- package/dist/esm/models/paymentresponse.js.map +1 -1
- package/dist/esm/models/profileresponse.d.ts +8 -8
- package/dist/esm/models/profileresponse.d.ts.map +1 -1
- package/dist/esm/models/profileresponse.js +8 -9
- package/dist/esm/models/profileresponse.js.map +1 -1
- package/dist/esm/models/salesinvoiceresponse.d.ts +40 -40
- package/dist/esm/models/salesinvoiceresponse.d.ts.map +1 -1
- package/dist/esm/models/salesinvoiceresponse.js +45 -40
- package/dist/esm/models/salesinvoiceresponse.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 +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/entitybalance.ts +112 -93
- package/src/models/entitychargeback.ts +29 -20
- package/src/models/entityinvoice.ts +63 -51
- package/src/models/entitysettlement.ts +140 -96
- package/src/models/index.ts +17 -2
- package/src/models/listcustomerresponse.ts +223 -0
- package/src/models/listentitybalance.ts +598 -0
- package/src/models/listentitychargeback.ts +361 -0
- package/src/models/listentityinvoice.ts +492 -0
- package/src/models/listentitymethod.ts +608 -0
- package/src/models/{entitymethodall.ts → listentitymethodall.ts} +139 -142
- package/src/models/listentitypermission.ts +149 -0
- package/src/models/listentityrefund.ts +544 -0
- package/src/models/listentitysettlement.ts +651 -0
- package/src/models/listentityterminal.ts +253 -0
- package/src/models/listentitywebhook.ts +195 -0
- package/src/models/listmandateresponse.ts +343 -0
- package/src/models/listpaymentresponse.ts +2225 -0
- package/src/models/listprofileresponse.ts +365 -0
- package/src/models/{routegetresponse.ts → listroutegetresponse.ts} +51 -58
- package/src/models/listsalesinvoiceresponse.ts +799 -0
- package/src/models/listsubscriptionresponse.ts +447 -0
- package/src/models/operations/getpaymentlinkpayments.ts +4 -4
- package/src/models/operations/listallchargebacks.ts +4 -4
- package/src/models/operations/listallmethods.ts +4 -4
- package/src/models/operations/listallrefunds.ts +4 -4
- package/src/models/operations/listallsubscriptions.ts +6 -4
- package/src/models/operations/listbalances.ts +4 -4
- package/src/models/operations/listchargebacks.ts +4 -4
- package/src/models/operations/listclients.ts +0 -7
- package/src/models/operations/listcustomerpayments.ts +4 -4
- package/src/models/operations/listcustomers.ts +4 -4
- package/src/models/operations/listinvoices.ts +4 -4
- package/src/models/operations/listmandates.ts +4 -4
- package/src/models/operations/listmethods.ts +4 -4
- package/src/models/operations/listpayments.ts +4 -4
- package/src/models/operations/listpermissions.ts +4 -4
- package/src/models/operations/listprofiles.ts +4 -4
- package/src/models/operations/listrefunds.ts +4 -4
- package/src/models/operations/listsalesinvoices.ts +6 -4
- package/src/models/operations/listsettlementchargebacks.ts +4 -4
- package/src/models/operations/listsettlementpayments.ts +4 -4
- package/src/models/operations/listsettlementrefunds.ts +4 -4
- package/src/models/operations/listsettlements.ts +4 -4
- package/src/models/operations/listsubscriptionpayments.ts +4 -4
- package/src/models/operations/listsubscriptions.ts +6 -4
- package/src/models/operations/listterminals.ts +4 -4
- package/src/models/operations/listwebhooks.ts +4 -4
- package/src/models/operations/paymentlistroutes.ts +4 -4
- package/src/models/paymentresponse.ts +159 -117
- package/src/models/profileresponse.ts +26 -19
- package/src/models/salesinvoiceresponse.ts +149 -97
- package/dist/commonjs/models/entitymethodall.d.ts.map +0 -1
- package/dist/commonjs/models/entitymethodall.js +0 -291
- package/dist/commonjs/models/entitymethodall.js.map +0 -1
- package/dist/commonjs/models/routegetresponse.d.ts.map +0 -1
- package/dist/commonjs/models/routegetresponse.js.map +0 -1
- package/dist/esm/models/entitymethodall.d.ts.map +0 -1
- package/dist/esm/models/entitymethodall.js +0 -239
- package/dist/esm/models/entitymethodall.js.map +0 -1
- package/dist/esm/models/routegetresponse.d.ts.map +0 -1
- package/dist/esm/models/routegetresponse.js +0 -78
- package/dist/esm/models/routegetresponse.js.map +0 -1
|
@@ -0,0 +1,651 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../types/enums.js";
|
|
10
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
11
|
+
import {
|
|
12
|
+
Amount,
|
|
13
|
+
Amount$inboundSchema,
|
|
14
|
+
Amount$Outbound,
|
|
15
|
+
Amount$outboundSchema,
|
|
16
|
+
} from "./amount.js";
|
|
17
|
+
import {
|
|
18
|
+
AmountNullable,
|
|
19
|
+
AmountNullable$inboundSchema,
|
|
20
|
+
AmountNullable$Outbound,
|
|
21
|
+
AmountNullable$outboundSchema,
|
|
22
|
+
} from "./amountnullable.js";
|
|
23
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
24
|
+
import {
|
|
25
|
+
PaymentMethod,
|
|
26
|
+
PaymentMethod$inboundSchema,
|
|
27
|
+
PaymentMethod$outboundSchema,
|
|
28
|
+
} from "./paymentmethod.js";
|
|
29
|
+
import {
|
|
30
|
+
Url,
|
|
31
|
+
Url$inboundSchema,
|
|
32
|
+
Url$Outbound,
|
|
33
|
+
Url$outboundSchema,
|
|
34
|
+
} from "./url.js";
|
|
35
|
+
import {
|
|
36
|
+
UrlNullable,
|
|
37
|
+
UrlNullable$inboundSchema,
|
|
38
|
+
UrlNullable$Outbound,
|
|
39
|
+
UrlNullable$outboundSchema,
|
|
40
|
+
} from "./urlnullable.js";
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The status of the settlement.
|
|
44
|
+
*/
|
|
45
|
+
export const ListEntitySettlementStatus = {
|
|
46
|
+
Open: "open",
|
|
47
|
+
Pending: "pending",
|
|
48
|
+
Paidout: "paidout",
|
|
49
|
+
Failed: "failed",
|
|
50
|
+
} as const;
|
|
51
|
+
/**
|
|
52
|
+
* The status of the settlement.
|
|
53
|
+
*/
|
|
54
|
+
export type ListEntitySettlementStatus = OpenEnum<
|
|
55
|
+
typeof ListEntitySettlementStatus
|
|
56
|
+
>;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The total amount of the settlement.
|
|
60
|
+
*/
|
|
61
|
+
export type ListEntitySettlementAmount = {
|
|
62
|
+
/**
|
|
63
|
+
* A three-character ISO 4217 currency code.
|
|
64
|
+
*/
|
|
65
|
+
currency: string;
|
|
66
|
+
/**
|
|
67
|
+
* A string containing an exact monetary amount in the given currency.
|
|
68
|
+
*/
|
|
69
|
+
value: string;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The service rates, further divided into `fixed` and `percentage` costs.
|
|
74
|
+
*/
|
|
75
|
+
export type ListEntitySettlementRate = {
|
|
76
|
+
/**
|
|
77
|
+
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
78
|
+
*/
|
|
79
|
+
fixed?: Amount | undefined;
|
|
80
|
+
percentage?: string | undefined;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export type ListEntitySettlementCost = {
|
|
84
|
+
/**
|
|
85
|
+
* A description of the cost subtotal
|
|
86
|
+
*/
|
|
87
|
+
description: string;
|
|
88
|
+
/**
|
|
89
|
+
* The payment method, if applicable
|
|
90
|
+
*/
|
|
91
|
+
method: PaymentMethod | null;
|
|
92
|
+
/**
|
|
93
|
+
* The number of fees
|
|
94
|
+
*/
|
|
95
|
+
count: number;
|
|
96
|
+
/**
|
|
97
|
+
* The service rates, further divided into `fixed` and `percentage` costs.
|
|
98
|
+
*/
|
|
99
|
+
rate: ListEntitySettlementRate;
|
|
100
|
+
/**
|
|
101
|
+
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
102
|
+
*/
|
|
103
|
+
amountNet: Amount;
|
|
104
|
+
/**
|
|
105
|
+
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
106
|
+
*/
|
|
107
|
+
amountVat: AmountNullable | null;
|
|
108
|
+
/**
|
|
109
|
+
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
110
|
+
*/
|
|
111
|
+
amountGross: Amount;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export type ListEntitySettlementRevenue = {
|
|
115
|
+
/**
|
|
116
|
+
* A description of the revenue subtotal
|
|
117
|
+
*/
|
|
118
|
+
description: string;
|
|
119
|
+
/**
|
|
120
|
+
* The payment method, if applicable
|
|
121
|
+
*/
|
|
122
|
+
method: PaymentMethod | null;
|
|
123
|
+
/**
|
|
124
|
+
* The number of payments
|
|
125
|
+
*/
|
|
126
|
+
count: number;
|
|
127
|
+
/**
|
|
128
|
+
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
129
|
+
*/
|
|
130
|
+
amountNet: Amount;
|
|
131
|
+
/**
|
|
132
|
+
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
133
|
+
*/
|
|
134
|
+
amountVat: AmountNullable | null;
|
|
135
|
+
/**
|
|
136
|
+
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
137
|
+
*/
|
|
138
|
+
amountGross: Amount;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
export type ListEntitySettlementPeriods = {
|
|
142
|
+
/**
|
|
143
|
+
* An array of cost objects, describing the fees withheld for each payment method during this period.
|
|
144
|
+
*/
|
|
145
|
+
costs?: Array<ListEntitySettlementCost> | undefined;
|
|
146
|
+
/**
|
|
147
|
+
* An array of revenue objects containing the total revenue for each payment method during this period.
|
|
148
|
+
*/
|
|
149
|
+
revenue?: Array<ListEntitySettlementRevenue> | undefined;
|
|
150
|
+
invoiceId?: string | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* The invoice reference, if the invoice has been created already.
|
|
153
|
+
*/
|
|
154
|
+
invoiceReference?: string | null | undefined;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
159
|
+
*/
|
|
160
|
+
export type ListEntitySettlementLinks = {
|
|
161
|
+
/**
|
|
162
|
+
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
163
|
+
*/
|
|
164
|
+
self: Url;
|
|
165
|
+
/**
|
|
166
|
+
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
167
|
+
*/
|
|
168
|
+
payments?: Url | undefined;
|
|
169
|
+
/**
|
|
170
|
+
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
171
|
+
*/
|
|
172
|
+
captures?: Url | undefined;
|
|
173
|
+
/**
|
|
174
|
+
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
175
|
+
*/
|
|
176
|
+
refunds?: Url | undefined;
|
|
177
|
+
/**
|
|
178
|
+
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
179
|
+
*/
|
|
180
|
+
chargebacks?: Url | undefined;
|
|
181
|
+
/**
|
|
182
|
+
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
183
|
+
*/
|
|
184
|
+
invoice?: UrlNullable | null | undefined;
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
export type ListEntitySettlement = {
|
|
188
|
+
/**
|
|
189
|
+
* Indicates the response contains a settlement object. Will always contain the string `settlement` for this
|
|
190
|
+
*
|
|
191
|
+
* @remarks
|
|
192
|
+
* endpoint.
|
|
193
|
+
*/
|
|
194
|
+
resource: string;
|
|
195
|
+
/**
|
|
196
|
+
* The identifier uniquely referring to this settlement.
|
|
197
|
+
*/
|
|
198
|
+
id: string;
|
|
199
|
+
/**
|
|
200
|
+
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
201
|
+
*/
|
|
202
|
+
createdAt?: string | undefined;
|
|
203
|
+
/**
|
|
204
|
+
* The settlement's bank reference, as found in your Mollie account and on your bank statement.
|
|
205
|
+
*/
|
|
206
|
+
reference?: string | null | undefined;
|
|
207
|
+
/**
|
|
208
|
+
* The date on which the settlement was settled, in ISO 8601 format.
|
|
209
|
+
*
|
|
210
|
+
* @remarks
|
|
211
|
+
*
|
|
212
|
+
* For an [open settlement](get-open-settlement) or for the [next settlement](get-next-settlement), no settlement
|
|
213
|
+
* date is available.
|
|
214
|
+
*/
|
|
215
|
+
settledAt?: string | null | undefined;
|
|
216
|
+
status: ListEntitySettlementStatus;
|
|
217
|
+
/**
|
|
218
|
+
* The total amount of the settlement.
|
|
219
|
+
*/
|
|
220
|
+
amount: ListEntitySettlementAmount;
|
|
221
|
+
/**
|
|
222
|
+
* The balance token that the settlement was settled to.
|
|
223
|
+
*/
|
|
224
|
+
balanceId: string;
|
|
225
|
+
/**
|
|
226
|
+
* The ID of the oldest invoice created for all the periods, if the invoice has been created yet.
|
|
227
|
+
*/
|
|
228
|
+
invoiceId?: string | null | undefined;
|
|
229
|
+
/**
|
|
230
|
+
* For bookkeeping purposes, the settlement includes an overview of transactions included in the settlement. These
|
|
231
|
+
*
|
|
232
|
+
* @remarks
|
|
233
|
+
* transactions are grouped into 'period' objects — one for each calendar month.
|
|
234
|
+
*
|
|
235
|
+
* For example, if a settlement includes funds from 15 April until 4 May, it will include two period objects. One for
|
|
236
|
+
* all transactions processed between 15 April and 30 April, and one for all transactions between 1 May and 4 May.
|
|
237
|
+
*
|
|
238
|
+
* Period objects are grouped by year, and then by month. So in the above example, the full `periods` collection will
|
|
239
|
+
* look as follows: `{"2024": {"04": {...}, "05": {...}}}`. The year and month in this documentation are referred as `<year>` and `<month>`.
|
|
240
|
+
*
|
|
241
|
+
* The example response should give a good idea of what this looks like in practise.
|
|
242
|
+
*/
|
|
243
|
+
periods?:
|
|
244
|
+
| { [k: string]: { [k: string]: ListEntitySettlementPeriods } }
|
|
245
|
+
| undefined;
|
|
246
|
+
/**
|
|
247
|
+
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
248
|
+
*/
|
|
249
|
+
links: ListEntitySettlementLinks;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
/** @internal */
|
|
253
|
+
export const ListEntitySettlementStatus$inboundSchema: z.ZodType<
|
|
254
|
+
ListEntitySettlementStatus,
|
|
255
|
+
z.ZodTypeDef,
|
|
256
|
+
unknown
|
|
257
|
+
> = openEnums.inboundSchema(ListEntitySettlementStatus);
|
|
258
|
+
/** @internal */
|
|
259
|
+
export const ListEntitySettlementStatus$outboundSchema: z.ZodType<
|
|
260
|
+
string,
|
|
261
|
+
z.ZodTypeDef,
|
|
262
|
+
ListEntitySettlementStatus
|
|
263
|
+
> = openEnums.outboundSchema(ListEntitySettlementStatus);
|
|
264
|
+
|
|
265
|
+
/** @internal */
|
|
266
|
+
export const ListEntitySettlementAmount$inboundSchema: z.ZodType<
|
|
267
|
+
ListEntitySettlementAmount,
|
|
268
|
+
z.ZodTypeDef,
|
|
269
|
+
unknown
|
|
270
|
+
> = z.object({
|
|
271
|
+
currency: z.string(),
|
|
272
|
+
value: z.string(),
|
|
273
|
+
});
|
|
274
|
+
/** @internal */
|
|
275
|
+
export type ListEntitySettlementAmount$Outbound = {
|
|
276
|
+
currency: string;
|
|
277
|
+
value: string;
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
/** @internal */
|
|
281
|
+
export const ListEntitySettlementAmount$outboundSchema: z.ZodType<
|
|
282
|
+
ListEntitySettlementAmount$Outbound,
|
|
283
|
+
z.ZodTypeDef,
|
|
284
|
+
ListEntitySettlementAmount
|
|
285
|
+
> = z.object({
|
|
286
|
+
currency: z.string(),
|
|
287
|
+
value: z.string(),
|
|
288
|
+
});
|
|
289
|
+
|
|
290
|
+
export function listEntitySettlementAmountToJSON(
|
|
291
|
+
listEntitySettlementAmount: ListEntitySettlementAmount,
|
|
292
|
+
): string {
|
|
293
|
+
return JSON.stringify(
|
|
294
|
+
ListEntitySettlementAmount$outboundSchema.parse(listEntitySettlementAmount),
|
|
295
|
+
);
|
|
296
|
+
}
|
|
297
|
+
export function listEntitySettlementAmountFromJSON(
|
|
298
|
+
jsonString: string,
|
|
299
|
+
): SafeParseResult<ListEntitySettlementAmount, SDKValidationError> {
|
|
300
|
+
return safeParse(
|
|
301
|
+
jsonString,
|
|
302
|
+
(x) => ListEntitySettlementAmount$inboundSchema.parse(JSON.parse(x)),
|
|
303
|
+
`Failed to parse 'ListEntitySettlementAmount' from JSON`,
|
|
304
|
+
);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/** @internal */
|
|
308
|
+
export const ListEntitySettlementRate$inboundSchema: z.ZodType<
|
|
309
|
+
ListEntitySettlementRate,
|
|
310
|
+
z.ZodTypeDef,
|
|
311
|
+
unknown
|
|
312
|
+
> = z.object({
|
|
313
|
+
fixed: Amount$inboundSchema.optional(),
|
|
314
|
+
percentage: z.string().optional(),
|
|
315
|
+
});
|
|
316
|
+
/** @internal */
|
|
317
|
+
export type ListEntitySettlementRate$Outbound = {
|
|
318
|
+
fixed?: Amount$Outbound | undefined;
|
|
319
|
+
percentage?: string | undefined;
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
/** @internal */
|
|
323
|
+
export const ListEntitySettlementRate$outboundSchema: z.ZodType<
|
|
324
|
+
ListEntitySettlementRate$Outbound,
|
|
325
|
+
z.ZodTypeDef,
|
|
326
|
+
ListEntitySettlementRate
|
|
327
|
+
> = z.object({
|
|
328
|
+
fixed: Amount$outboundSchema.optional(),
|
|
329
|
+
percentage: z.string().optional(),
|
|
330
|
+
});
|
|
331
|
+
|
|
332
|
+
export function listEntitySettlementRateToJSON(
|
|
333
|
+
listEntitySettlementRate: ListEntitySettlementRate,
|
|
334
|
+
): string {
|
|
335
|
+
return JSON.stringify(
|
|
336
|
+
ListEntitySettlementRate$outboundSchema.parse(listEntitySettlementRate),
|
|
337
|
+
);
|
|
338
|
+
}
|
|
339
|
+
export function listEntitySettlementRateFromJSON(
|
|
340
|
+
jsonString: string,
|
|
341
|
+
): SafeParseResult<ListEntitySettlementRate, SDKValidationError> {
|
|
342
|
+
return safeParse(
|
|
343
|
+
jsonString,
|
|
344
|
+
(x) => ListEntitySettlementRate$inboundSchema.parse(JSON.parse(x)),
|
|
345
|
+
`Failed to parse 'ListEntitySettlementRate' from JSON`,
|
|
346
|
+
);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/** @internal */
|
|
350
|
+
export const ListEntitySettlementCost$inboundSchema: z.ZodType<
|
|
351
|
+
ListEntitySettlementCost,
|
|
352
|
+
z.ZodTypeDef,
|
|
353
|
+
unknown
|
|
354
|
+
> = z.object({
|
|
355
|
+
description: z.string(),
|
|
356
|
+
method: z.nullable(PaymentMethod$inboundSchema),
|
|
357
|
+
count: z.number().int(),
|
|
358
|
+
rate: z.lazy(() => ListEntitySettlementRate$inboundSchema),
|
|
359
|
+
amountNet: Amount$inboundSchema,
|
|
360
|
+
amountVat: z.nullable(AmountNullable$inboundSchema),
|
|
361
|
+
amountGross: Amount$inboundSchema,
|
|
362
|
+
});
|
|
363
|
+
/** @internal */
|
|
364
|
+
export type ListEntitySettlementCost$Outbound = {
|
|
365
|
+
description: string;
|
|
366
|
+
method: string | null;
|
|
367
|
+
count: number;
|
|
368
|
+
rate: ListEntitySettlementRate$Outbound;
|
|
369
|
+
amountNet: Amount$Outbound;
|
|
370
|
+
amountVat: AmountNullable$Outbound | null;
|
|
371
|
+
amountGross: Amount$Outbound;
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
/** @internal */
|
|
375
|
+
export const ListEntitySettlementCost$outboundSchema: z.ZodType<
|
|
376
|
+
ListEntitySettlementCost$Outbound,
|
|
377
|
+
z.ZodTypeDef,
|
|
378
|
+
ListEntitySettlementCost
|
|
379
|
+
> = z.object({
|
|
380
|
+
description: z.string(),
|
|
381
|
+
method: z.nullable(PaymentMethod$outboundSchema),
|
|
382
|
+
count: z.number().int(),
|
|
383
|
+
rate: z.lazy(() => ListEntitySettlementRate$outboundSchema),
|
|
384
|
+
amountNet: Amount$outboundSchema,
|
|
385
|
+
amountVat: z.nullable(AmountNullable$outboundSchema),
|
|
386
|
+
amountGross: Amount$outboundSchema,
|
|
387
|
+
});
|
|
388
|
+
|
|
389
|
+
export function listEntitySettlementCostToJSON(
|
|
390
|
+
listEntitySettlementCost: ListEntitySettlementCost,
|
|
391
|
+
): string {
|
|
392
|
+
return JSON.stringify(
|
|
393
|
+
ListEntitySettlementCost$outboundSchema.parse(listEntitySettlementCost),
|
|
394
|
+
);
|
|
395
|
+
}
|
|
396
|
+
export function listEntitySettlementCostFromJSON(
|
|
397
|
+
jsonString: string,
|
|
398
|
+
): SafeParseResult<ListEntitySettlementCost, SDKValidationError> {
|
|
399
|
+
return safeParse(
|
|
400
|
+
jsonString,
|
|
401
|
+
(x) => ListEntitySettlementCost$inboundSchema.parse(JSON.parse(x)),
|
|
402
|
+
`Failed to parse 'ListEntitySettlementCost' from JSON`,
|
|
403
|
+
);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/** @internal */
|
|
407
|
+
export const ListEntitySettlementRevenue$inboundSchema: z.ZodType<
|
|
408
|
+
ListEntitySettlementRevenue,
|
|
409
|
+
z.ZodTypeDef,
|
|
410
|
+
unknown
|
|
411
|
+
> = z.object({
|
|
412
|
+
description: z.string(),
|
|
413
|
+
method: z.nullable(PaymentMethod$inboundSchema),
|
|
414
|
+
count: z.number().int(),
|
|
415
|
+
amountNet: Amount$inboundSchema,
|
|
416
|
+
amountVat: z.nullable(AmountNullable$inboundSchema),
|
|
417
|
+
amountGross: Amount$inboundSchema,
|
|
418
|
+
});
|
|
419
|
+
/** @internal */
|
|
420
|
+
export type ListEntitySettlementRevenue$Outbound = {
|
|
421
|
+
description: string;
|
|
422
|
+
method: string | null;
|
|
423
|
+
count: number;
|
|
424
|
+
amountNet: Amount$Outbound;
|
|
425
|
+
amountVat: AmountNullable$Outbound | null;
|
|
426
|
+
amountGross: Amount$Outbound;
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
/** @internal */
|
|
430
|
+
export const ListEntitySettlementRevenue$outboundSchema: z.ZodType<
|
|
431
|
+
ListEntitySettlementRevenue$Outbound,
|
|
432
|
+
z.ZodTypeDef,
|
|
433
|
+
ListEntitySettlementRevenue
|
|
434
|
+
> = z.object({
|
|
435
|
+
description: z.string(),
|
|
436
|
+
method: z.nullable(PaymentMethod$outboundSchema),
|
|
437
|
+
count: z.number().int(),
|
|
438
|
+
amountNet: Amount$outboundSchema,
|
|
439
|
+
amountVat: z.nullable(AmountNullable$outboundSchema),
|
|
440
|
+
amountGross: Amount$outboundSchema,
|
|
441
|
+
});
|
|
442
|
+
|
|
443
|
+
export function listEntitySettlementRevenueToJSON(
|
|
444
|
+
listEntitySettlementRevenue: ListEntitySettlementRevenue,
|
|
445
|
+
): string {
|
|
446
|
+
return JSON.stringify(
|
|
447
|
+
ListEntitySettlementRevenue$outboundSchema.parse(
|
|
448
|
+
listEntitySettlementRevenue,
|
|
449
|
+
),
|
|
450
|
+
);
|
|
451
|
+
}
|
|
452
|
+
export function listEntitySettlementRevenueFromJSON(
|
|
453
|
+
jsonString: string,
|
|
454
|
+
): SafeParseResult<ListEntitySettlementRevenue, SDKValidationError> {
|
|
455
|
+
return safeParse(
|
|
456
|
+
jsonString,
|
|
457
|
+
(x) => ListEntitySettlementRevenue$inboundSchema.parse(JSON.parse(x)),
|
|
458
|
+
`Failed to parse 'ListEntitySettlementRevenue' from JSON`,
|
|
459
|
+
);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/** @internal */
|
|
463
|
+
export const ListEntitySettlementPeriods$inboundSchema: z.ZodType<
|
|
464
|
+
ListEntitySettlementPeriods,
|
|
465
|
+
z.ZodTypeDef,
|
|
466
|
+
unknown
|
|
467
|
+
> = z.object({
|
|
468
|
+
costs: z.array(z.lazy(() => ListEntitySettlementCost$inboundSchema))
|
|
469
|
+
.optional(),
|
|
470
|
+
revenue: z.array(z.lazy(() => ListEntitySettlementRevenue$inboundSchema))
|
|
471
|
+
.optional(),
|
|
472
|
+
invoiceId: z.string().optional(),
|
|
473
|
+
invoiceReference: z.nullable(z.string()).optional(),
|
|
474
|
+
});
|
|
475
|
+
/** @internal */
|
|
476
|
+
export type ListEntitySettlementPeriods$Outbound = {
|
|
477
|
+
costs?: Array<ListEntitySettlementCost$Outbound> | undefined;
|
|
478
|
+
revenue?: Array<ListEntitySettlementRevenue$Outbound> | undefined;
|
|
479
|
+
invoiceId?: string | undefined;
|
|
480
|
+
invoiceReference?: string | null | undefined;
|
|
481
|
+
};
|
|
482
|
+
|
|
483
|
+
/** @internal */
|
|
484
|
+
export const ListEntitySettlementPeriods$outboundSchema: z.ZodType<
|
|
485
|
+
ListEntitySettlementPeriods$Outbound,
|
|
486
|
+
z.ZodTypeDef,
|
|
487
|
+
ListEntitySettlementPeriods
|
|
488
|
+
> = z.object({
|
|
489
|
+
costs: z.array(z.lazy(() => ListEntitySettlementCost$outboundSchema))
|
|
490
|
+
.optional(),
|
|
491
|
+
revenue: z.array(z.lazy(() => ListEntitySettlementRevenue$outboundSchema))
|
|
492
|
+
.optional(),
|
|
493
|
+
invoiceId: z.string().optional(),
|
|
494
|
+
invoiceReference: z.nullable(z.string()).optional(),
|
|
495
|
+
});
|
|
496
|
+
|
|
497
|
+
export function listEntitySettlementPeriodsToJSON(
|
|
498
|
+
listEntitySettlementPeriods: ListEntitySettlementPeriods,
|
|
499
|
+
): string {
|
|
500
|
+
return JSON.stringify(
|
|
501
|
+
ListEntitySettlementPeriods$outboundSchema.parse(
|
|
502
|
+
listEntitySettlementPeriods,
|
|
503
|
+
),
|
|
504
|
+
);
|
|
505
|
+
}
|
|
506
|
+
export function listEntitySettlementPeriodsFromJSON(
|
|
507
|
+
jsonString: string,
|
|
508
|
+
): SafeParseResult<ListEntitySettlementPeriods, SDKValidationError> {
|
|
509
|
+
return safeParse(
|
|
510
|
+
jsonString,
|
|
511
|
+
(x) => ListEntitySettlementPeriods$inboundSchema.parse(JSON.parse(x)),
|
|
512
|
+
`Failed to parse 'ListEntitySettlementPeriods' from JSON`,
|
|
513
|
+
);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/** @internal */
|
|
517
|
+
export const ListEntitySettlementLinks$inboundSchema: z.ZodType<
|
|
518
|
+
ListEntitySettlementLinks,
|
|
519
|
+
z.ZodTypeDef,
|
|
520
|
+
unknown
|
|
521
|
+
> = z.object({
|
|
522
|
+
self: Url$inboundSchema,
|
|
523
|
+
payments: Url$inboundSchema.optional(),
|
|
524
|
+
captures: Url$inboundSchema.optional(),
|
|
525
|
+
refunds: Url$inboundSchema.optional(),
|
|
526
|
+
chargebacks: Url$inboundSchema.optional(),
|
|
527
|
+
invoice: z.nullable(UrlNullable$inboundSchema).optional(),
|
|
528
|
+
});
|
|
529
|
+
/** @internal */
|
|
530
|
+
export type ListEntitySettlementLinks$Outbound = {
|
|
531
|
+
self: Url$Outbound;
|
|
532
|
+
payments?: Url$Outbound | undefined;
|
|
533
|
+
captures?: Url$Outbound | undefined;
|
|
534
|
+
refunds?: Url$Outbound | undefined;
|
|
535
|
+
chargebacks?: Url$Outbound | undefined;
|
|
536
|
+
invoice?: UrlNullable$Outbound | null | undefined;
|
|
537
|
+
};
|
|
538
|
+
|
|
539
|
+
/** @internal */
|
|
540
|
+
export const ListEntitySettlementLinks$outboundSchema: z.ZodType<
|
|
541
|
+
ListEntitySettlementLinks$Outbound,
|
|
542
|
+
z.ZodTypeDef,
|
|
543
|
+
ListEntitySettlementLinks
|
|
544
|
+
> = z.object({
|
|
545
|
+
self: Url$outboundSchema,
|
|
546
|
+
payments: Url$outboundSchema.optional(),
|
|
547
|
+
captures: Url$outboundSchema.optional(),
|
|
548
|
+
refunds: Url$outboundSchema.optional(),
|
|
549
|
+
chargebacks: Url$outboundSchema.optional(),
|
|
550
|
+
invoice: z.nullable(UrlNullable$outboundSchema).optional(),
|
|
551
|
+
});
|
|
552
|
+
|
|
553
|
+
export function listEntitySettlementLinksToJSON(
|
|
554
|
+
listEntitySettlementLinks: ListEntitySettlementLinks,
|
|
555
|
+
): string {
|
|
556
|
+
return JSON.stringify(
|
|
557
|
+
ListEntitySettlementLinks$outboundSchema.parse(listEntitySettlementLinks),
|
|
558
|
+
);
|
|
559
|
+
}
|
|
560
|
+
export function listEntitySettlementLinksFromJSON(
|
|
561
|
+
jsonString: string,
|
|
562
|
+
): SafeParseResult<ListEntitySettlementLinks, SDKValidationError> {
|
|
563
|
+
return safeParse(
|
|
564
|
+
jsonString,
|
|
565
|
+
(x) => ListEntitySettlementLinks$inboundSchema.parse(JSON.parse(x)),
|
|
566
|
+
`Failed to parse 'ListEntitySettlementLinks' from JSON`,
|
|
567
|
+
);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/** @internal */
|
|
571
|
+
export const ListEntitySettlement$inboundSchema: z.ZodType<
|
|
572
|
+
ListEntitySettlement,
|
|
573
|
+
z.ZodTypeDef,
|
|
574
|
+
unknown
|
|
575
|
+
> = z.object({
|
|
576
|
+
resource: z.string(),
|
|
577
|
+
id: z.string(),
|
|
578
|
+
createdAt: z.string().optional(),
|
|
579
|
+
reference: z.nullable(z.string()).optional(),
|
|
580
|
+
settledAt: z.nullable(z.string()).optional(),
|
|
581
|
+
status: ListEntitySettlementStatus$inboundSchema,
|
|
582
|
+
amount: z.lazy(() => ListEntitySettlementAmount$inboundSchema),
|
|
583
|
+
balanceId: z.string(),
|
|
584
|
+
invoiceId: z.nullable(z.string()).optional(),
|
|
585
|
+
periods: z.record(
|
|
586
|
+
z.record(z.lazy(() => ListEntitySettlementPeriods$inboundSchema)),
|
|
587
|
+
).optional(),
|
|
588
|
+
_links: z.lazy(() => ListEntitySettlementLinks$inboundSchema),
|
|
589
|
+
}).transform((v) => {
|
|
590
|
+
return remap$(v, {
|
|
591
|
+
"_links": "links",
|
|
592
|
+
});
|
|
593
|
+
});
|
|
594
|
+
/** @internal */
|
|
595
|
+
export type ListEntitySettlement$Outbound = {
|
|
596
|
+
resource: string;
|
|
597
|
+
id: string;
|
|
598
|
+
createdAt?: string | undefined;
|
|
599
|
+
reference?: string | null | undefined;
|
|
600
|
+
settledAt?: string | null | undefined;
|
|
601
|
+
status: string;
|
|
602
|
+
amount: ListEntitySettlementAmount$Outbound;
|
|
603
|
+
balanceId: string;
|
|
604
|
+
invoiceId?: string | null | undefined;
|
|
605
|
+
periods?: {
|
|
606
|
+
[k: string]: { [k: string]: ListEntitySettlementPeriods$Outbound };
|
|
607
|
+
} | undefined;
|
|
608
|
+
_links: ListEntitySettlementLinks$Outbound;
|
|
609
|
+
};
|
|
610
|
+
|
|
611
|
+
/** @internal */
|
|
612
|
+
export const ListEntitySettlement$outboundSchema: z.ZodType<
|
|
613
|
+
ListEntitySettlement$Outbound,
|
|
614
|
+
z.ZodTypeDef,
|
|
615
|
+
ListEntitySettlement
|
|
616
|
+
> = z.object({
|
|
617
|
+
resource: z.string(),
|
|
618
|
+
id: z.string(),
|
|
619
|
+
createdAt: z.string().optional(),
|
|
620
|
+
reference: z.nullable(z.string()).optional(),
|
|
621
|
+
settledAt: z.nullable(z.string()).optional(),
|
|
622
|
+
status: ListEntitySettlementStatus$outboundSchema,
|
|
623
|
+
amount: z.lazy(() => ListEntitySettlementAmount$outboundSchema),
|
|
624
|
+
balanceId: z.string(),
|
|
625
|
+
invoiceId: z.nullable(z.string()).optional(),
|
|
626
|
+
periods: z.record(
|
|
627
|
+
z.record(z.lazy(() => ListEntitySettlementPeriods$outboundSchema)),
|
|
628
|
+
).optional(),
|
|
629
|
+
links: z.lazy(() => ListEntitySettlementLinks$outboundSchema),
|
|
630
|
+
}).transform((v) => {
|
|
631
|
+
return remap$(v, {
|
|
632
|
+
links: "_links",
|
|
633
|
+
});
|
|
634
|
+
});
|
|
635
|
+
|
|
636
|
+
export function listEntitySettlementToJSON(
|
|
637
|
+
listEntitySettlement: ListEntitySettlement,
|
|
638
|
+
): string {
|
|
639
|
+
return JSON.stringify(
|
|
640
|
+
ListEntitySettlement$outboundSchema.parse(listEntitySettlement),
|
|
641
|
+
);
|
|
642
|
+
}
|
|
643
|
+
export function listEntitySettlementFromJSON(
|
|
644
|
+
jsonString: string,
|
|
645
|
+
): SafeParseResult<ListEntitySettlement, SDKValidationError> {
|
|
646
|
+
return safeParse(
|
|
647
|
+
jsonString,
|
|
648
|
+
(x) => ListEntitySettlement$inboundSchema.parse(JSON.parse(x)),
|
|
649
|
+
`Failed to parse 'ListEntitySettlement' from JSON`,
|
|
650
|
+
);
|
|
651
|
+
}
|