mollie-api-typescript 0.9.3 → 0.9.5
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/_speakeasy/.github/action-inputs-config.json +53 -0
- package/_speakeasy/.github/action-security-config.json +88 -0
- package/bin/mcp-server.js +26346 -9774
- package/bin/mcp-server.js.map +243 -92
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/prompts.d.ts +3 -3
- package/dist/commonjs/mcp-server/prompts.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/prompts.js.map +1 -1
- package/dist/commonjs/mcp-server/resources.d.ts +3 -3
- package/dist/commonjs/mcp-server/resources.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/resources.js.map +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools.d.ts +3 -3
- package/dist/commonjs/mcp-server/tools.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools.js.map +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 +51 -53
- 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 +12 -13
- 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/entitymethod.d.ts +2 -2
- package/dist/commonjs/models/entitymethod.d.ts.map +1 -1
- package/dist/commonjs/models/entitymethod.js +2 -2
- package/dist/commonjs/models/entitymethod.js.map +1 -1
- package/dist/{esm/models/listentitymethodall.d.ts → commonjs/models/entitymethodall.d.ts} +62 -62
- package/dist/commonjs/models/entitymethodall.d.ts.map +1 -0
- package/dist/commonjs/models/entitymethodall.js +291 -0
- package/dist/commonjs/models/entitymethodall.js.map +1 -0
- 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 +2 -17
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +2 -17
- package/dist/commonjs/models/index.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/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/listcaptures.d.ts +2 -2
- package/dist/commonjs/models/operations/listcaptures.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listcaptures.js +2 -2
- package/dist/commonjs/models/operations/listcaptures.js.map +1 -1
- package/dist/commonjs/models/operations/listclients.d.ts +5 -0
- package/dist/commonjs/models/operations/listclients.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listclients.js +2 -0
- package/dist/commonjs/models/operations/listclients.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/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/listsalesinvoices.d.ts +2 -2
- package/dist/commonjs/models/operations/listsalesinvoices.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsalesinvoices.js +2 -4
- 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/listsubscriptions.d.ts +2 -2
- package/dist/commonjs/models/operations/listsubscriptions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptions.js +2 -4
- 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 +62 -67
- 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 +12 -11
- package/dist/commonjs/models/profileresponse.js.map +1 -1
- package/dist/{esm/models/listroutegetresponse.d.ts → commonjs/models/routegetresponse.d.ts} +28 -23
- package/dist/commonjs/models/routegetresponse.d.ts.map +1 -0
- package/dist/commonjs/models/{listroutegetresponse.js → routegetresponse.js} +32 -30
- package/dist/commonjs/models/routegetresponse.js.map +1 -0
- 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 +51 -56
- package/dist/commonjs/models/salesinvoiceresponse.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/prompts.d.ts +3 -3
- package/dist/esm/mcp-server/prompts.d.ts.map +1 -1
- package/dist/esm/mcp-server/prompts.js.map +1 -1
- package/dist/esm/mcp-server/resources.d.ts +3 -3
- package/dist/esm/mcp-server/resources.d.ts.map +1 -1
- package/dist/esm/mcp-server/resources.js.map +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools.d.ts +3 -3
- package/dist/esm/mcp-server/tools.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools.js.map +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 +42 -44
- 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 +9 -10
- 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/entitymethod.d.ts +2 -2
- package/dist/esm/models/entitymethod.d.ts.map +1 -1
- package/dist/esm/models/entitymethod.js +2 -2
- package/dist/esm/models/entitymethod.js.map +1 -1
- package/dist/{commonjs/models/listentitymethodall.d.ts → esm/models/entitymethodall.d.ts} +62 -62
- package/dist/esm/models/entitymethodall.d.ts.map +1 -0
- package/dist/esm/models/entitymethodall.js +239 -0
- package/dist/esm/models/entitymethodall.js.map +1 -0
- 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 +2 -17
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +2 -17
- package/dist/esm/models/index.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/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/listcaptures.d.ts +2 -2
- package/dist/esm/models/operations/listcaptures.d.ts.map +1 -1
- package/dist/esm/models/operations/listcaptures.js +2 -2
- package/dist/esm/models/operations/listcaptures.js.map +1 -1
- package/dist/esm/models/operations/listclients.d.ts +5 -0
- package/dist/esm/models/operations/listclients.d.ts.map +1 -1
- package/dist/esm/models/operations/listclients.js +2 -0
- package/dist/esm/models/operations/listclients.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/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/listsalesinvoices.d.ts +2 -2
- package/dist/esm/models/operations/listsalesinvoices.d.ts.map +1 -1
- package/dist/esm/models/operations/listsalesinvoices.js +2 -4
- 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/listsubscriptions.d.ts +2 -2
- package/dist/esm/models/operations/listsubscriptions.d.ts.map +1 -1
- package/dist/esm/models/operations/listsubscriptions.js +2 -4
- 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 +49 -54
- 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 +9 -8
- package/dist/esm/models/profileresponse.js.map +1 -1
- package/dist/{commonjs/models/listroutegetresponse.d.ts → esm/models/routegetresponse.d.ts} +28 -23
- package/dist/esm/models/routegetresponse.d.ts.map +1 -0
- package/dist/esm/models/routegetresponse.js +78 -0
- package/dist/esm/models/routegetresponse.js.map +1 -0
- 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 +40 -45
- package/dist/esm/models/salesinvoiceresponse.js.map +1 -1
- package/examples/package-lock.json +2 -2
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/prompts.ts +7 -3
- package/src/mcp-server/resources.ts +7 -3
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools.ts +7 -3
- package/src/models/entitybalance.ts +93 -112
- package/src/models/entitychargeback.ts +20 -29
- package/src/models/entityinvoice.ts +51 -63
- package/src/models/entitymethod.ts +4 -4
- package/src/models/{listentitymethodall.ts → entitymethodall.ts} +139 -143
- package/src/models/entitysettlement.ts +96 -140
- package/src/models/index.ts +2 -17
- package/src/models/operations/listallmethods.ts +4 -4
- package/src/models/operations/listbalances.ts +4 -4
- package/src/models/operations/listcaptures.ts +4 -4
- package/src/models/operations/listclients.ts +7 -0
- 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/listpermissions.ts +4 -4
- package/src/models/operations/listprofiles.ts +4 -4
- package/src/models/operations/listsalesinvoices.ts +4 -6
- 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/listsubscriptions.ts +4 -6
- 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 +117 -159
- package/src/models/profileresponse.ts +19 -26
- package/src/models/{listroutegetresponse.ts → routegetresponse.ts} +58 -51
- package/src/models/salesinvoiceresponse.ts +97 -149
- package/dist/commonjs/models/listcustomerresponse.d.ts +0 -107
- package/dist/commonjs/models/listcustomerresponse.d.ts.map +0 -1
- package/dist/commonjs/models/listcustomerresponse.js +0 -112
- package/dist/commonjs/models/listcustomerresponse.js.map +0 -1
- package/dist/commonjs/models/listentitybalance.d.ts +0 -300
- package/dist/commonjs/models/listentitybalance.d.ts.map +0 -1
- package/dist/commonjs/models/listentitybalance.js +0 -245
- package/dist/commonjs/models/listentitybalance.js.map +0 -1
- package/dist/commonjs/models/listentitychargeback.d.ts +0 -175
- package/dist/commonjs/models/listentitychargeback.d.ts.map +0 -1
- package/dist/commonjs/models/listentitychargeback.js +0 -146
- package/dist/commonjs/models/listentitychargeback.js.map +0 -1
- package/dist/commonjs/models/listentityinvoice.d.ts +0 -236
- package/dist/commonjs/models/listentityinvoice.d.ts.map +0 -1
- package/dist/commonjs/models/listentityinvoice.js +0 -202
- package/dist/commonjs/models/listentityinvoice.js.map +0 -1
- package/dist/commonjs/models/listentitymethod.d.ts +0 -319
- package/dist/commonjs/models/listentitymethod.d.ts.map +0 -1
- package/dist/commonjs/models/listentitymethod.js +0 -264
- package/dist/commonjs/models/listentitymethod.js.map +0 -1
- package/dist/commonjs/models/listentitymethodall.d.ts.map +0 -1
- package/dist/commonjs/models/listentitymethodall.js +0 -291
- package/dist/commonjs/models/listentitymethodall.js.map +0 -1
- package/dist/commonjs/models/listentitypermission.d.ts +0 -63
- package/dist/commonjs/models/listentitypermission.d.ts.map +0 -1
- package/dist/commonjs/models/listentitypermission.js +0 -92
- package/dist/commonjs/models/listentitypermission.js.map +0 -1
- package/dist/commonjs/models/listentityrefundresponse.d.ts +0 -256
- package/dist/commonjs/models/listentityrefundresponse.d.ts.map +0 -1
- package/dist/commonjs/models/listentityrefundresponse.js +0 -203
- package/dist/commonjs/models/listentityrefundresponse.js.map +0 -1
- package/dist/commonjs/models/listentitysettlement.d.ts +0 -321
- package/dist/commonjs/models/listentitysettlement.d.ts.map +0 -1
- package/dist/commonjs/models/listentitysettlement.js +0 -248
- package/dist/commonjs/models/listentitysettlement.js.map +0 -1
- package/dist/commonjs/models/listentityterminal.d.ts +0 -130
- package/dist/commonjs/models/listentityterminal.d.ts.map +0 -1
- package/dist/commonjs/models/listentityterminal.js +0 -124
- package/dist/commonjs/models/listentityterminal.js.map +0 -1
- package/dist/commonjs/models/listentitywebhook.d.ts +0 -91
- package/dist/commonjs/models/listentitywebhook.d.ts.map +0 -1
- package/dist/commonjs/models/listentitywebhook.js +0 -105
- package/dist/commonjs/models/listentitywebhook.js.map +0 -1
- package/dist/commonjs/models/listmandateresponse.d.ts +0 -176
- package/dist/commonjs/models/listmandateresponse.d.ts.map +0 -1
- package/dist/commonjs/models/listmandateresponse.js +0 -157
- package/dist/commonjs/models/listmandateresponse.js.map +0 -1
- package/dist/commonjs/models/listpaymentresponse.d.ts +0 -1348
- package/dist/commonjs/models/listpaymentresponse.d.ts.map +0 -1
- package/dist/commonjs/models/listpaymentresponse.js +0 -620
- package/dist/commonjs/models/listpaymentresponse.js.map +0 -1
- package/dist/commonjs/models/listprofileresponse.d.ts +0 -202
- package/dist/commonjs/models/listprofileresponse.d.ts.map +0 -1
- package/dist/commonjs/models/listprofileresponse.js +0 -159
- package/dist/commonjs/models/listprofileresponse.js.map +0 -1
- package/dist/commonjs/models/listroutegetresponse.d.ts.map +0 -1
- package/dist/commonjs/models/listroutegetresponse.js.map +0 -1
- package/dist/commonjs/models/listsalesinvoiceresponse.d.ts +0 -375
- package/dist/commonjs/models/listsalesinvoiceresponse.d.ts.map +0 -1
- package/dist/commonjs/models/listsalesinvoiceresponse.js +0 -267
- package/dist/commonjs/models/listsalesinvoiceresponse.js.map +0 -1
- package/dist/commonjs/models/listsubscriptionresponse.d.ts +0 -249
- package/dist/commonjs/models/listsubscriptionresponse.d.ts.map +0 -1
- package/dist/commonjs/models/listsubscriptionresponse.js +0 -171
- package/dist/commonjs/models/listsubscriptionresponse.js.map +0 -1
- package/dist/esm/models/listcustomerresponse.d.ts +0 -107
- package/dist/esm/models/listcustomerresponse.d.ts.map +0 -1
- package/dist/esm/models/listcustomerresponse.js +0 -72
- package/dist/esm/models/listcustomerresponse.js.map +0 -1
- package/dist/esm/models/listentitybalance.d.ts +0 -300
- package/dist/esm/models/listentitybalance.d.ts.map +0 -1
- package/dist/esm/models/listentitybalance.js +0 -197
- package/dist/esm/models/listentitybalance.js.map +0 -1
- package/dist/esm/models/listentitychargeback.d.ts +0 -175
- package/dist/esm/models/listentitychargeback.d.ts.map +0 -1
- package/dist/esm/models/listentitychargeback.js +0 -102
- package/dist/esm/models/listentitychargeback.js.map +0 -1
- package/dist/esm/models/listentityinvoice.d.ts +0 -236
- package/dist/esm/models/listentityinvoice.d.ts.map +0 -1
- package/dist/esm/models/listentityinvoice.js +0 -154
- package/dist/esm/models/listentityinvoice.js.map +0 -1
- package/dist/esm/models/listentitymethod.d.ts +0 -319
- package/dist/esm/models/listentitymethod.d.ts.map +0 -1
- package/dist/esm/models/listentitymethod.js +0 -214
- package/dist/esm/models/listentitymethod.js.map +0 -1
- package/dist/esm/models/listentitymethodall.d.ts.map +0 -1
- package/dist/esm/models/listentitymethodall.js +0 -239
- package/dist/esm/models/listentitymethodall.js.map +0 -1
- package/dist/esm/models/listentitypermission.d.ts +0 -63
- package/dist/esm/models/listentitypermission.d.ts.map +0 -1
- package/dist/esm/models/listentitypermission.js +0 -52
- package/dist/esm/models/listentitypermission.js.map +0 -1
- package/dist/esm/models/listentityrefundresponse.d.ts +0 -256
- package/dist/esm/models/listentityrefundresponse.d.ts.map +0 -1
- package/dist/esm/models/listentityrefundresponse.js +0 -155
- package/dist/esm/models/listentityrefundresponse.js.map +0 -1
- package/dist/esm/models/listentitysettlement.d.ts +0 -321
- package/dist/esm/models/listentitysettlement.d.ts.map +0 -1
- package/dist/esm/models/listentitysettlement.js +0 -198
- package/dist/esm/models/listentitysettlement.js.map +0 -1
- package/dist/esm/models/listentityterminal.d.ts +0 -130
- package/dist/esm/models/listentityterminal.d.ts.map +0 -1
- package/dist/esm/models/listentityterminal.js +0 -84
- package/dist/esm/models/listentityterminal.js.map +0 -1
- package/dist/esm/models/listentitywebhook.d.ts +0 -91
- package/dist/esm/models/listentitywebhook.d.ts.map +0 -1
- package/dist/esm/models/listentitywebhook.js +0 -65
- package/dist/esm/models/listentitywebhook.js.map +0 -1
- package/dist/esm/models/listmandateresponse.d.ts +0 -176
- package/dist/esm/models/listmandateresponse.d.ts.map +0 -1
- package/dist/esm/models/listmandateresponse.js +0 -115
- package/dist/esm/models/listmandateresponse.js.map +0 -1
- package/dist/esm/models/listpaymentresponse.d.ts +0 -1348
- package/dist/esm/models/listpaymentresponse.d.ts.map +0 -1
- package/dist/esm/models/listpaymentresponse.js +0 -558
- package/dist/esm/models/listpaymentresponse.js.map +0 -1
- package/dist/esm/models/listprofileresponse.d.ts +0 -202
- package/dist/esm/models/listprofileresponse.d.ts.map +0 -1
- package/dist/esm/models/listprofileresponse.js +0 -117
- package/dist/esm/models/listprofileresponse.js.map +0 -1
- package/dist/esm/models/listroutegetresponse.d.ts.map +0 -1
- package/dist/esm/models/listroutegetresponse.js +0 -76
- package/dist/esm/models/listroutegetresponse.js.map +0 -1
- package/dist/esm/models/listsalesinvoiceresponse.d.ts +0 -375
- package/dist/esm/models/listsalesinvoiceresponse.d.ts.map +0 -1
- package/dist/esm/models/listsalesinvoiceresponse.js +0 -215
- package/dist/esm/models/listsalesinvoiceresponse.js.map +0 -1
- package/dist/esm/models/listsubscriptionresponse.d.ts +0 -249
- package/dist/esm/models/listsubscriptionresponse.d.ts.map +0 -1
- package/dist/esm/models/listsubscriptionresponse.js +0 -129
- package/dist/esm/models/listsubscriptionresponse.js.map +0 -1
- package/src/models/listcustomerresponse.ts +0 -223
- package/src/models/listentitybalance.ts +0 -598
- package/src/models/listentitychargeback.ts +0 -361
- package/src/models/listentityinvoice.ts +0 -492
- package/src/models/listentitymethod.ts +0 -608
- package/src/models/listentitypermission.ts +0 -149
- package/src/models/listentityrefundresponse.ts +0 -585
- package/src/models/listentitysettlement.ts +0 -651
- package/src/models/listentityterminal.ts +0 -253
- package/src/models/listentitywebhook.ts +0 -195
- package/src/models/listmandateresponse.ts +0 -343
- package/src/models/listpaymentresponse.ts +0 -2225
- package/src/models/listprofileresponse.ts +0 -365
- package/src/models/listsalesinvoiceresponse.ts +0 -799
- package/src/models/listsubscriptionresponse.ts +0 -447
|
@@ -9,7 +9,11 @@ import {
|
|
|
9
9
|
} from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
10
10
|
import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js";
|
|
11
11
|
import { Variables } from "@modelcontextprotocol/sdk/shared/uriTemplate.js";
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
ReadResourceResult,
|
|
14
|
+
ServerNotification,
|
|
15
|
+
ServerRequest,
|
|
16
|
+
} from "@modelcontextprotocol/sdk/types.js";
|
|
13
17
|
import { ClientCore } from "../core.js";
|
|
14
18
|
import { ConsoleLogger } from "./console-logger.js";
|
|
15
19
|
import { MCPScope } from "./scopes.js";
|
|
@@ -18,7 +22,7 @@ import { isAsyncIterable, isBinaryData, valueToBase64 } from "./shared.js";
|
|
|
18
22
|
export type ReadResourceCallback = (
|
|
19
23
|
client: ClientCore,
|
|
20
24
|
uri: URL,
|
|
21
|
-
extra: RequestHandlerExtra,
|
|
25
|
+
extra: RequestHandlerExtra<ServerRequest, ServerNotification>,
|
|
22
26
|
) => ReadResourceResult | Promise<ReadResourceResult>;
|
|
23
27
|
|
|
24
28
|
export type ResourceDefinition = {
|
|
@@ -34,7 +38,7 @@ export type ReadResourceTemplateCallback = (
|
|
|
34
38
|
client: ClientCore,
|
|
35
39
|
uri: URL,
|
|
36
40
|
vars: Variables,
|
|
37
|
-
extra: RequestHandlerExtra,
|
|
41
|
+
extra: RequestHandlerExtra<ServerRequest, ServerNotification>,
|
|
38
42
|
) => ReadResourceResult | Promise<ReadResourceResult>;
|
|
39
43
|
|
|
40
44
|
export type ResourceTemplateDefinition = {
|
package/src/mcp-server/server.ts
CHANGED
package/src/mcp-server/tools.ts
CHANGED
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
6
6
|
import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js";
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
CallToolResult,
|
|
9
|
+
ServerNotification,
|
|
10
|
+
ServerRequest,
|
|
11
|
+
} from "@modelcontextprotocol/sdk/types.js";
|
|
8
12
|
import { objectOutputType, ZodRawShape, ZodTypeAny } from "zod/v3";
|
|
9
13
|
import { ClientCore } from "../core.js";
|
|
10
14
|
import { ConsoleLogger } from "./console-logger.js";
|
|
@@ -20,7 +24,7 @@ export type ToolDefinition<Args extends undefined | ZodRawShape = undefined> =
|
|
|
20
24
|
tool: (
|
|
21
25
|
client: ClientCore,
|
|
22
26
|
args: objectOutputType<Args, ZodTypeAny>,
|
|
23
|
-
extra: RequestHandlerExtra,
|
|
27
|
+
extra: RequestHandlerExtra<ServerRequest, ServerNotification>,
|
|
24
28
|
) => CallToolResult | Promise<CallToolResult>;
|
|
25
29
|
}
|
|
26
30
|
: {
|
|
@@ -30,7 +34,7 @@ export type ToolDefinition<Args extends undefined | ZodRawShape = undefined> =
|
|
|
30
34
|
args?: undefined;
|
|
31
35
|
tool: (
|
|
32
36
|
client: ClientCore,
|
|
33
|
-
extra: RequestHandlerExtra,
|
|
37
|
+
extra: RequestHandlerExtra<ServerRequest, ServerNotification>,
|
|
34
38
|
) => CallToolResult | Promise<CallToolResult>;
|
|
35
39
|
};
|
|
36
40
|
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
/**
|
|
26
26
|
* The balance's ISO 4217 currency code.
|
|
27
27
|
*/
|
|
28
|
-
export const
|
|
28
|
+
export const Currency = {
|
|
29
29
|
Eur: "EUR",
|
|
30
30
|
Gbp: "GBP",
|
|
31
31
|
Chf: "CHF",
|
|
@@ -42,7 +42,7 @@ export const EntityBalanceCurrency = {
|
|
|
42
42
|
/**
|
|
43
43
|
* The balance's ISO 4217 currency code.
|
|
44
44
|
*/
|
|
45
|
-
export type
|
|
45
|
+
export type Currency = OpenEnum<typeof Currency>;
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* The status of the balance.
|
|
@@ -64,7 +64,7 @@ export type EntityBalanceStatus = OpenEnum<typeof EntityBalanceStatus>;
|
|
|
64
64
|
*
|
|
65
65
|
* Settlements created during weekends or on bank holidays will take place on the next business day.
|
|
66
66
|
*/
|
|
67
|
-
export const
|
|
67
|
+
export const TransferFrequency = {
|
|
68
68
|
EveryDay: "every-day",
|
|
69
69
|
Daily: "daily",
|
|
70
70
|
EveryMonday: "every-monday",
|
|
@@ -84,9 +84,7 @@ export const EntityBalanceTransferFrequency = {
|
|
|
84
84
|
*
|
|
85
85
|
* Settlements created during weekends or on bank holidays will take place on the next business day.
|
|
86
86
|
*/
|
|
87
|
-
export type
|
|
88
|
-
typeof EntityBalanceTransferFrequency
|
|
89
|
-
>;
|
|
87
|
+
export type TransferFrequency = OpenEnum<typeof TransferFrequency>;
|
|
90
88
|
|
|
91
89
|
/**
|
|
92
90
|
* The minimum amount configured for scheduled automatic settlements. As soon as the amount on the balance exceeds
|
|
@@ -95,7 +93,7 @@ export type EntityBalanceTransferFrequency = OpenEnum<
|
|
|
95
93
|
* this threshold, the complete balance will be paid out to the transfer destination according to the configured
|
|
96
94
|
* frequency.
|
|
97
95
|
*/
|
|
98
|
-
export type
|
|
96
|
+
export type TransferThreshold = {
|
|
99
97
|
/**
|
|
100
98
|
* A three-character ISO 4217 currency code.
|
|
101
99
|
*/
|
|
@@ -112,7 +110,7 @@ export type EntityBalanceTransferThreshold = {
|
|
|
112
110
|
* @remarks
|
|
113
111
|
* transfer frequency.
|
|
114
112
|
*/
|
|
115
|
-
export type
|
|
113
|
+
export type TransferDestination = {
|
|
116
114
|
/**
|
|
117
115
|
* The default destination of automatic scheduled transfers. Currently only `bank-account` is supported.
|
|
118
116
|
*
|
|
@@ -134,7 +132,7 @@ export type EntityBalanceTransferDestination = {
|
|
|
134
132
|
/**
|
|
135
133
|
* The amount directly available on the balance, e.g. `{"currency":"EUR", "value":"100.00"}`.
|
|
136
134
|
*/
|
|
137
|
-
export type
|
|
135
|
+
export type AvailableAmount = {
|
|
138
136
|
/**
|
|
139
137
|
* A three-character ISO 4217 currency code.
|
|
140
138
|
*/
|
|
@@ -151,7 +149,7 @@ export type EntityBalanceAvailableAmount = {
|
|
|
151
149
|
* @remarks
|
|
152
150
|
* few days to clear.
|
|
153
151
|
*/
|
|
154
|
-
export type
|
|
152
|
+
export type PendingAmount = {
|
|
155
153
|
/**
|
|
156
154
|
* A three-character ISO 4217 currency code.
|
|
157
155
|
*/
|
|
@@ -196,13 +194,13 @@ export type EntityBalance = {
|
|
|
196
194
|
/**
|
|
197
195
|
* The balance's ISO 4217 currency code.
|
|
198
196
|
*/
|
|
199
|
-
currency:
|
|
197
|
+
currency: Currency;
|
|
200
198
|
/**
|
|
201
199
|
* The description or name of the balance. Can be used to denote the purpose of the balance.
|
|
202
200
|
*/
|
|
203
201
|
description: string;
|
|
204
202
|
status: EntityBalanceStatus;
|
|
205
|
-
transferFrequency?:
|
|
203
|
+
transferFrequency?: TransferFrequency | undefined;
|
|
206
204
|
/**
|
|
207
205
|
* The minimum amount configured for scheduled automatic settlements. As soon as the amount on the balance exceeds
|
|
208
206
|
*
|
|
@@ -210,7 +208,7 @@ export type EntityBalance = {
|
|
|
210
208
|
* this threshold, the complete balance will be paid out to the transfer destination according to the configured
|
|
211
209
|
* frequency.
|
|
212
210
|
*/
|
|
213
|
-
transferThreshold?:
|
|
211
|
+
transferThreshold?: TransferThreshold | undefined;
|
|
214
212
|
/**
|
|
215
213
|
* The transfer reference set to be included in all the transfers for this balance.
|
|
216
214
|
*/
|
|
@@ -221,18 +219,18 @@ export type EntityBalance = {
|
|
|
221
219
|
* @remarks
|
|
222
220
|
* transfer frequency.
|
|
223
221
|
*/
|
|
224
|
-
transferDestination?:
|
|
222
|
+
transferDestination?: TransferDestination | null | undefined;
|
|
225
223
|
/**
|
|
226
224
|
* The amount directly available on the balance, e.g. `{"currency":"EUR", "value":"100.00"}`.
|
|
227
225
|
*/
|
|
228
|
-
availableAmount:
|
|
226
|
+
availableAmount: AvailableAmount;
|
|
229
227
|
/**
|
|
230
228
|
* The total amount that is queued to be transferred to your balance. For example, a credit card payment can take a
|
|
231
229
|
*
|
|
232
230
|
* @remarks
|
|
233
231
|
* few days to clear.
|
|
234
232
|
*/
|
|
235
|
-
pendingAmount:
|
|
233
|
+
pendingAmount: PendingAmount;
|
|
236
234
|
/**
|
|
237
235
|
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
238
236
|
*/
|
|
@@ -240,17 +238,17 @@ export type EntityBalance = {
|
|
|
240
238
|
};
|
|
241
239
|
|
|
242
240
|
/** @internal */
|
|
243
|
-
export const
|
|
244
|
-
|
|
241
|
+
export const Currency$inboundSchema: z.ZodType<
|
|
242
|
+
Currency,
|
|
245
243
|
z.ZodTypeDef,
|
|
246
244
|
unknown
|
|
247
|
-
> = openEnums.inboundSchema(
|
|
245
|
+
> = openEnums.inboundSchema(Currency);
|
|
248
246
|
/** @internal */
|
|
249
|
-
export const
|
|
247
|
+
export const Currency$outboundSchema: z.ZodType<
|
|
250
248
|
string,
|
|
251
249
|
z.ZodTypeDef,
|
|
252
|
-
|
|
253
|
-
> = openEnums.outboundSchema(
|
|
250
|
+
Currency
|
|
251
|
+
> = openEnums.outboundSchema(Currency);
|
|
254
252
|
|
|
255
253
|
/** @internal */
|
|
256
254
|
export const EntityBalanceStatus$inboundSchema: z.ZodType<
|
|
@@ -266,21 +264,21 @@ export const EntityBalanceStatus$outboundSchema: z.ZodType<
|
|
|
266
264
|
> = openEnums.outboundSchema(EntityBalanceStatus);
|
|
267
265
|
|
|
268
266
|
/** @internal */
|
|
269
|
-
export const
|
|
270
|
-
|
|
267
|
+
export const TransferFrequency$inboundSchema: z.ZodType<
|
|
268
|
+
TransferFrequency,
|
|
271
269
|
z.ZodTypeDef,
|
|
272
270
|
unknown
|
|
273
|
-
> = openEnums.inboundSchema(
|
|
271
|
+
> = openEnums.inboundSchema(TransferFrequency);
|
|
274
272
|
/** @internal */
|
|
275
|
-
export const
|
|
273
|
+
export const TransferFrequency$outboundSchema: z.ZodType<
|
|
276
274
|
string,
|
|
277
275
|
z.ZodTypeDef,
|
|
278
|
-
|
|
279
|
-
> = openEnums.outboundSchema(
|
|
276
|
+
TransferFrequency
|
|
277
|
+
> = openEnums.outboundSchema(TransferFrequency);
|
|
280
278
|
|
|
281
279
|
/** @internal */
|
|
282
|
-
export const
|
|
283
|
-
|
|
280
|
+
export const TransferThreshold$inboundSchema: z.ZodType<
|
|
281
|
+
TransferThreshold,
|
|
284
282
|
z.ZodTypeDef,
|
|
285
283
|
unknown
|
|
286
284
|
> = z.object({
|
|
@@ -288,43 +286,41 @@ export const EntityBalanceTransferThreshold$inboundSchema: z.ZodType<
|
|
|
288
286
|
value: z.string(),
|
|
289
287
|
});
|
|
290
288
|
/** @internal */
|
|
291
|
-
export type
|
|
289
|
+
export type TransferThreshold$Outbound = {
|
|
292
290
|
currency: string;
|
|
293
291
|
value: string;
|
|
294
292
|
};
|
|
295
293
|
|
|
296
294
|
/** @internal */
|
|
297
|
-
export const
|
|
298
|
-
|
|
295
|
+
export const TransferThreshold$outboundSchema: z.ZodType<
|
|
296
|
+
TransferThreshold$Outbound,
|
|
299
297
|
z.ZodTypeDef,
|
|
300
|
-
|
|
298
|
+
TransferThreshold
|
|
301
299
|
> = z.object({
|
|
302
300
|
currency: z.string(),
|
|
303
301
|
value: z.string(),
|
|
304
302
|
});
|
|
305
303
|
|
|
306
|
-
export function
|
|
307
|
-
|
|
304
|
+
export function transferThresholdToJSON(
|
|
305
|
+
transferThreshold: TransferThreshold,
|
|
308
306
|
): string {
|
|
309
307
|
return JSON.stringify(
|
|
310
|
-
|
|
311
|
-
entityBalanceTransferThreshold,
|
|
312
|
-
),
|
|
308
|
+
TransferThreshold$outboundSchema.parse(transferThreshold),
|
|
313
309
|
);
|
|
314
310
|
}
|
|
315
|
-
export function
|
|
311
|
+
export function transferThresholdFromJSON(
|
|
316
312
|
jsonString: string,
|
|
317
|
-
): SafeParseResult<
|
|
313
|
+
): SafeParseResult<TransferThreshold, SDKValidationError> {
|
|
318
314
|
return safeParse(
|
|
319
315
|
jsonString,
|
|
320
|
-
(x) =>
|
|
321
|
-
`Failed to parse '
|
|
316
|
+
(x) => TransferThreshold$inboundSchema.parse(JSON.parse(x)),
|
|
317
|
+
`Failed to parse 'TransferThreshold' from JSON`,
|
|
322
318
|
);
|
|
323
319
|
}
|
|
324
320
|
|
|
325
321
|
/** @internal */
|
|
326
|
-
export const
|
|
327
|
-
|
|
322
|
+
export const TransferDestination$inboundSchema: z.ZodType<
|
|
323
|
+
TransferDestination,
|
|
328
324
|
z.ZodTypeDef,
|
|
329
325
|
unknown
|
|
330
326
|
> = z.object({
|
|
@@ -333,45 +329,43 @@ export const EntityBalanceTransferDestination$inboundSchema: z.ZodType<
|
|
|
333
329
|
beneficiaryName: z.string().optional(),
|
|
334
330
|
});
|
|
335
331
|
/** @internal */
|
|
336
|
-
export type
|
|
332
|
+
export type TransferDestination$Outbound = {
|
|
337
333
|
type?: string | undefined;
|
|
338
334
|
bankAccount?: string | undefined;
|
|
339
335
|
beneficiaryName?: string | undefined;
|
|
340
336
|
};
|
|
341
337
|
|
|
342
338
|
/** @internal */
|
|
343
|
-
export const
|
|
344
|
-
|
|
339
|
+
export const TransferDestination$outboundSchema: z.ZodType<
|
|
340
|
+
TransferDestination$Outbound,
|
|
345
341
|
z.ZodTypeDef,
|
|
346
|
-
|
|
342
|
+
TransferDestination
|
|
347
343
|
> = z.object({
|
|
348
344
|
type: BalanceTransferDestinationType$outboundSchema.optional(),
|
|
349
345
|
bankAccount: z.string().optional(),
|
|
350
346
|
beneficiaryName: z.string().optional(),
|
|
351
347
|
});
|
|
352
348
|
|
|
353
|
-
export function
|
|
354
|
-
|
|
349
|
+
export function transferDestinationToJSON(
|
|
350
|
+
transferDestination: TransferDestination,
|
|
355
351
|
): string {
|
|
356
352
|
return JSON.stringify(
|
|
357
|
-
|
|
358
|
-
entityBalanceTransferDestination,
|
|
359
|
-
),
|
|
353
|
+
TransferDestination$outboundSchema.parse(transferDestination),
|
|
360
354
|
);
|
|
361
355
|
}
|
|
362
|
-
export function
|
|
356
|
+
export function transferDestinationFromJSON(
|
|
363
357
|
jsonString: string,
|
|
364
|
-
): SafeParseResult<
|
|
358
|
+
): SafeParseResult<TransferDestination, SDKValidationError> {
|
|
365
359
|
return safeParse(
|
|
366
360
|
jsonString,
|
|
367
|
-
(x) =>
|
|
368
|
-
`Failed to parse '
|
|
361
|
+
(x) => TransferDestination$inboundSchema.parse(JSON.parse(x)),
|
|
362
|
+
`Failed to parse 'TransferDestination' from JSON`,
|
|
369
363
|
);
|
|
370
364
|
}
|
|
371
365
|
|
|
372
366
|
/** @internal */
|
|
373
|
-
export const
|
|
374
|
-
|
|
367
|
+
export const AvailableAmount$inboundSchema: z.ZodType<
|
|
368
|
+
AvailableAmount,
|
|
375
369
|
z.ZodTypeDef,
|
|
376
370
|
unknown
|
|
377
371
|
> = z.object({
|
|
@@ -379,43 +373,39 @@ export const EntityBalanceAvailableAmount$inboundSchema: z.ZodType<
|
|
|
379
373
|
value: z.string(),
|
|
380
374
|
});
|
|
381
375
|
/** @internal */
|
|
382
|
-
export type
|
|
376
|
+
export type AvailableAmount$Outbound = {
|
|
383
377
|
currency: string;
|
|
384
378
|
value: string;
|
|
385
379
|
};
|
|
386
380
|
|
|
387
381
|
/** @internal */
|
|
388
|
-
export const
|
|
389
|
-
|
|
382
|
+
export const AvailableAmount$outboundSchema: z.ZodType<
|
|
383
|
+
AvailableAmount$Outbound,
|
|
390
384
|
z.ZodTypeDef,
|
|
391
|
-
|
|
385
|
+
AvailableAmount
|
|
392
386
|
> = z.object({
|
|
393
387
|
currency: z.string(),
|
|
394
388
|
value: z.string(),
|
|
395
389
|
});
|
|
396
390
|
|
|
397
|
-
export function
|
|
398
|
-
|
|
391
|
+
export function availableAmountToJSON(
|
|
392
|
+
availableAmount: AvailableAmount,
|
|
399
393
|
): string {
|
|
400
|
-
return JSON.stringify(
|
|
401
|
-
EntityBalanceAvailableAmount$outboundSchema.parse(
|
|
402
|
-
entityBalanceAvailableAmount,
|
|
403
|
-
),
|
|
404
|
-
);
|
|
394
|
+
return JSON.stringify(AvailableAmount$outboundSchema.parse(availableAmount));
|
|
405
395
|
}
|
|
406
|
-
export function
|
|
396
|
+
export function availableAmountFromJSON(
|
|
407
397
|
jsonString: string,
|
|
408
|
-
): SafeParseResult<
|
|
398
|
+
): SafeParseResult<AvailableAmount, SDKValidationError> {
|
|
409
399
|
return safeParse(
|
|
410
400
|
jsonString,
|
|
411
|
-
(x) =>
|
|
412
|
-
`Failed to parse '
|
|
401
|
+
(x) => AvailableAmount$inboundSchema.parse(JSON.parse(x)),
|
|
402
|
+
`Failed to parse 'AvailableAmount' from JSON`,
|
|
413
403
|
);
|
|
414
404
|
}
|
|
415
405
|
|
|
416
406
|
/** @internal */
|
|
417
|
-
export const
|
|
418
|
-
|
|
407
|
+
export const PendingAmount$inboundSchema: z.ZodType<
|
|
408
|
+
PendingAmount,
|
|
419
409
|
z.ZodTypeDef,
|
|
420
410
|
unknown
|
|
421
411
|
> = z.object({
|
|
@@ -423,35 +413,31 @@ export const EntityBalancePendingAmount$inboundSchema: z.ZodType<
|
|
|
423
413
|
value: z.string(),
|
|
424
414
|
});
|
|
425
415
|
/** @internal */
|
|
426
|
-
export type
|
|
416
|
+
export type PendingAmount$Outbound = {
|
|
427
417
|
currency: string;
|
|
428
418
|
value: string;
|
|
429
419
|
};
|
|
430
420
|
|
|
431
421
|
/** @internal */
|
|
432
|
-
export const
|
|
433
|
-
|
|
422
|
+
export const PendingAmount$outboundSchema: z.ZodType<
|
|
423
|
+
PendingAmount$Outbound,
|
|
434
424
|
z.ZodTypeDef,
|
|
435
|
-
|
|
425
|
+
PendingAmount
|
|
436
426
|
> = z.object({
|
|
437
427
|
currency: z.string(),
|
|
438
428
|
value: z.string(),
|
|
439
429
|
});
|
|
440
430
|
|
|
441
|
-
export function
|
|
442
|
-
|
|
443
|
-
): string {
|
|
444
|
-
return JSON.stringify(
|
|
445
|
-
EntityBalancePendingAmount$outboundSchema.parse(entityBalancePendingAmount),
|
|
446
|
-
);
|
|
431
|
+
export function pendingAmountToJSON(pendingAmount: PendingAmount): string {
|
|
432
|
+
return JSON.stringify(PendingAmount$outboundSchema.parse(pendingAmount));
|
|
447
433
|
}
|
|
448
|
-
export function
|
|
434
|
+
export function pendingAmountFromJSON(
|
|
449
435
|
jsonString: string,
|
|
450
|
-
): SafeParseResult<
|
|
436
|
+
): SafeParseResult<PendingAmount, SDKValidationError> {
|
|
451
437
|
return safeParse(
|
|
452
438
|
jsonString,
|
|
453
|
-
(x) =>
|
|
454
|
-
`Failed to parse '
|
|
439
|
+
(x) => PendingAmount$inboundSchema.parse(JSON.parse(x)),
|
|
440
|
+
`Failed to parse 'PendingAmount' from JSON`,
|
|
455
441
|
);
|
|
456
442
|
}
|
|
457
443
|
|
|
@@ -507,18 +493,17 @@ export const EntityBalance$inboundSchema: z.ZodType<
|
|
|
507
493
|
id: z.string(),
|
|
508
494
|
mode: Mode$inboundSchema,
|
|
509
495
|
createdAt: z.string(),
|
|
510
|
-
currency:
|
|
496
|
+
currency: Currency$inboundSchema,
|
|
511
497
|
description: z.string(),
|
|
512
498
|
status: EntityBalanceStatus$inboundSchema,
|
|
513
|
-
transferFrequency:
|
|
514
|
-
transferThreshold: z.lazy(() =>
|
|
515
|
-
.optional(),
|
|
499
|
+
transferFrequency: TransferFrequency$inboundSchema.optional(),
|
|
500
|
+
transferThreshold: z.lazy(() => TransferThreshold$inboundSchema).optional(),
|
|
516
501
|
transferReference: z.nullable(z.string()).optional(),
|
|
517
502
|
transferDestination: z.nullable(
|
|
518
|
-
z.lazy(() =>
|
|
503
|
+
z.lazy(() => TransferDestination$inboundSchema),
|
|
519
504
|
).optional(),
|
|
520
|
-
availableAmount: z.lazy(() =>
|
|
521
|
-
pendingAmount: z.lazy(() =>
|
|
505
|
+
availableAmount: z.lazy(() => AvailableAmount$inboundSchema),
|
|
506
|
+
pendingAmount: z.lazy(() => PendingAmount$inboundSchema),
|
|
522
507
|
_links: z.lazy(() => EntityBalanceLinks$inboundSchema),
|
|
523
508
|
}).transform((v) => {
|
|
524
509
|
return remap$(v, {
|
|
@@ -535,14 +520,11 @@ export type EntityBalance$Outbound = {
|
|
|
535
520
|
description: string;
|
|
536
521
|
status: string;
|
|
537
522
|
transferFrequency?: string | undefined;
|
|
538
|
-
transferThreshold?:
|
|
523
|
+
transferThreshold?: TransferThreshold$Outbound | undefined;
|
|
539
524
|
transferReference?: string | null | undefined;
|
|
540
|
-
transferDestination?:
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
| undefined;
|
|
544
|
-
availableAmount: EntityBalanceAvailableAmount$Outbound;
|
|
545
|
-
pendingAmount: EntityBalancePendingAmount$Outbound;
|
|
525
|
+
transferDestination?: TransferDestination$Outbound | null | undefined;
|
|
526
|
+
availableAmount: AvailableAmount$Outbound;
|
|
527
|
+
pendingAmount: PendingAmount$Outbound;
|
|
546
528
|
_links: EntityBalanceLinks$Outbound;
|
|
547
529
|
};
|
|
548
530
|
|
|
@@ -556,18 +538,17 @@ export const EntityBalance$outboundSchema: z.ZodType<
|
|
|
556
538
|
id: z.string(),
|
|
557
539
|
mode: Mode$outboundSchema,
|
|
558
540
|
createdAt: z.string(),
|
|
559
|
-
currency:
|
|
541
|
+
currency: Currency$outboundSchema,
|
|
560
542
|
description: z.string(),
|
|
561
543
|
status: EntityBalanceStatus$outboundSchema,
|
|
562
|
-
transferFrequency:
|
|
563
|
-
transferThreshold: z.lazy(() =>
|
|
564
|
-
.optional(),
|
|
544
|
+
transferFrequency: TransferFrequency$outboundSchema.optional(),
|
|
545
|
+
transferThreshold: z.lazy(() => TransferThreshold$outboundSchema).optional(),
|
|
565
546
|
transferReference: z.nullable(z.string()).optional(),
|
|
566
547
|
transferDestination: z.nullable(
|
|
567
|
-
z.lazy(() =>
|
|
548
|
+
z.lazy(() => TransferDestination$outboundSchema),
|
|
568
549
|
).optional(),
|
|
569
|
-
availableAmount: z.lazy(() =>
|
|
570
|
-
pendingAmount: z.lazy(() =>
|
|
550
|
+
availableAmount: z.lazy(() => AvailableAmount$outboundSchema),
|
|
551
|
+
pendingAmount: z.lazy(() => PendingAmount$outboundSchema),
|
|
571
552
|
links: z.lazy(() => EntityBalanceLinks$outboundSchema),
|
|
572
553
|
}).transform((v) => {
|
|
573
554
|
return remap$(v, {
|
|
@@ -52,7 +52,7 @@ export type EntityChargebackSettlementAmount = {
|
|
|
52
52
|
/**
|
|
53
53
|
* Reason for the chargeback as given by the bank. Only available for chargebacks of SEPA Direct Debit payments.
|
|
54
54
|
*/
|
|
55
|
-
export type
|
|
55
|
+
export type Reason = {
|
|
56
56
|
/**
|
|
57
57
|
* Technical code provided by the bank.
|
|
58
58
|
*/
|
|
@@ -117,7 +117,7 @@ export type EntityChargeback = {
|
|
|
117
117
|
/**
|
|
118
118
|
* Reason for the chargeback as given by the bank. Only available for chargebacks of SEPA Direct Debit payments.
|
|
119
119
|
*/
|
|
120
|
-
reason?:
|
|
120
|
+
reason?: Reason | null | undefined;
|
|
121
121
|
/**
|
|
122
122
|
* The unique identifier of the payment this chargeback was created for. For example: `tr_5B8cwPMGnU6qLbRvo7qEZo`.
|
|
123
123
|
*
|
|
@@ -194,44 +194,37 @@ export function entityChargebackSettlementAmountFromJSON(
|
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
/** @internal */
|
|
197
|
-
export const
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
code: z.string(),
|
|
203
|
-
description: z.string(),
|
|
204
|
-
});
|
|
197
|
+
export const Reason$inboundSchema: z.ZodType<Reason, z.ZodTypeDef, unknown> = z
|
|
198
|
+
.object({
|
|
199
|
+
code: z.string(),
|
|
200
|
+
description: z.string(),
|
|
201
|
+
});
|
|
205
202
|
/** @internal */
|
|
206
|
-
export type
|
|
203
|
+
export type Reason$Outbound = {
|
|
207
204
|
code: string;
|
|
208
205
|
description: string;
|
|
209
206
|
};
|
|
210
207
|
|
|
211
208
|
/** @internal */
|
|
212
|
-
export const
|
|
213
|
-
|
|
209
|
+
export const Reason$outboundSchema: z.ZodType<
|
|
210
|
+
Reason$Outbound,
|
|
214
211
|
z.ZodTypeDef,
|
|
215
|
-
|
|
212
|
+
Reason
|
|
216
213
|
> = z.object({
|
|
217
214
|
code: z.string(),
|
|
218
215
|
description: z.string(),
|
|
219
216
|
});
|
|
220
217
|
|
|
221
|
-
export function
|
|
222
|
-
|
|
223
|
-
): string {
|
|
224
|
-
return JSON.stringify(
|
|
225
|
-
EntityChargebackReason$outboundSchema.parse(entityChargebackReason),
|
|
226
|
-
);
|
|
218
|
+
export function reasonToJSON(reason: Reason): string {
|
|
219
|
+
return JSON.stringify(Reason$outboundSchema.parse(reason));
|
|
227
220
|
}
|
|
228
|
-
export function
|
|
221
|
+
export function reasonFromJSON(
|
|
229
222
|
jsonString: string,
|
|
230
|
-
): SafeParseResult<
|
|
223
|
+
): SafeParseResult<Reason, SDKValidationError> {
|
|
231
224
|
return safeParse(
|
|
232
225
|
jsonString,
|
|
233
|
-
(x) =>
|
|
234
|
-
`Failed to parse '
|
|
226
|
+
(x) => Reason$inboundSchema.parse(JSON.parse(x)),
|
|
227
|
+
`Failed to parse 'Reason' from JSON`,
|
|
235
228
|
);
|
|
236
229
|
}
|
|
237
230
|
|
|
@@ -295,8 +288,7 @@ export const EntityChargeback$inboundSchema: z.ZodType<
|
|
|
295
288
|
settlementAmount: z.nullable(
|
|
296
289
|
z.lazy(() => EntityChargebackSettlementAmount$inboundSchema),
|
|
297
290
|
).optional(),
|
|
298
|
-
reason: z.nullable(z.lazy(() =>
|
|
299
|
-
.optional(),
|
|
291
|
+
reason: z.nullable(z.lazy(() => Reason$inboundSchema)).optional(),
|
|
300
292
|
paymentId: z.string(),
|
|
301
293
|
settlementId: z.nullable(z.string()).optional(),
|
|
302
294
|
createdAt: z.string(),
|
|
@@ -316,7 +308,7 @@ export type EntityChargeback$Outbound = {
|
|
|
316
308
|
| EntityChargebackSettlementAmount$Outbound
|
|
317
309
|
| null
|
|
318
310
|
| undefined;
|
|
319
|
-
reason?:
|
|
311
|
+
reason?: Reason$Outbound | null | undefined;
|
|
320
312
|
paymentId: string;
|
|
321
313
|
settlementId?: string | null | undefined;
|
|
322
314
|
createdAt: string;
|
|
@@ -336,8 +328,7 @@ export const EntityChargeback$outboundSchema: z.ZodType<
|
|
|
336
328
|
settlementAmount: z.nullable(
|
|
337
329
|
z.lazy(() => EntityChargebackSettlementAmount$outboundSchema),
|
|
338
330
|
).optional(),
|
|
339
|
-
reason: z.nullable(z.lazy(() =>
|
|
340
|
-
.optional(),
|
|
331
|
+
reason: z.nullable(z.lazy(() => Reason$outboundSchema)).optional(),
|
|
341
332
|
paymentId: z.string(),
|
|
342
333
|
settlementId: z.nullable(z.string()).optional(),
|
|
343
334
|
createdAt: z.string(),
|