mollie-api-typescript 1.3.6 → 1.3.8
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/README.md +22 -0
- package/bin/mcp-server.js +5624 -3703
- package/bin/mcp-server.js.map +50 -13
- package/dist/commonjs/funcs/accountsGet.d.ts +22 -0
- package/dist/commonjs/funcs/accountsGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/accountsGet.js +147 -0
- package/dist/commonjs/funcs/accountsGet.js.map +1 -0
- package/dist/commonjs/funcs/accountsGetAccount.d.ts +22 -0
- package/dist/commonjs/funcs/accountsGetAccount.d.ts.map +1 -0
- package/dist/commonjs/funcs/accountsGetAccount.js +143 -0
- package/dist/commonjs/funcs/accountsGetAccount.js.map +1 -0
- package/dist/commonjs/funcs/accountsList.d.ts +27 -0
- package/dist/commonjs/funcs/accountsList.d.ts.map +1 -0
- package/dist/commonjs/funcs/accountsList.js +178 -0
- package/dist/commonjs/funcs/accountsList.js.map +1 -0
- package/dist/commonjs/funcs/accountsListAccounts.d.ts +27 -0
- package/dist/commonjs/funcs/accountsListAccounts.d.ts.map +1 -0
- package/dist/commonjs/funcs/accountsListAccounts.js +178 -0
- package/dist/commonjs/funcs/accountsListAccounts.js.map +1 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersGet.d.ts +23 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersGet.js +140 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersGet.js.map +1 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersList.d.ts +29 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersList.d.ts.map +1 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersList.js +179 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersList.js.map +1 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.d.ts +23 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.d.ts.map +1 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.js +141 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.js.map +1 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.d.ts +23 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.d.ts.map +1 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.js +140 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.js.map +1 -0
- 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/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +17 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/accountsGet.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/accountsGet.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/accountsGet.js +66 -0
- package/dist/commonjs/mcp-server/tools/accountsGet.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/accountsGetAccount.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/accountsGetAccount.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/accountsGetAccount.js +66 -0
- package/dist/commonjs/mcp-server/tools/accountsGetAccount.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/accountsList.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/accountsList.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/accountsList.js +67 -0
- package/dist/commonjs/mcp-server/tools/accountsList.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/accountsListAccounts.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/accountsListAccounts.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/accountsListAccounts.js +67 -0
- package/dist/commonjs/mcp-server/tools/accountsListAccounts.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersGet.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersGet.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersGet.js +69 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersGet.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersList.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersList.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersList.js +72 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersList.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersMatch.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersMatch.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersMatch.js +69 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersMatch.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersReturn.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersReturn.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersReturn.js +69 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersReturn.js.map +1 -0
- package/dist/commonjs/models/accountdetails.d.ts +43 -0
- package/dist/commonjs/models/accountdetails.d.ts.map +1 -0
- package/dist/commonjs/models/accountdetails.js +67 -0
- package/dist/commonjs/models/accountdetails.js.map +1 -0
- package/dist/commonjs/models/accountstatus.d.ts +19 -0
- package/dist/commonjs/models/accountstatus.d.ts.map +1 -0
- package/dist/commonjs/models/accountstatus.js +54 -0
- package/dist/commonjs/models/accountstatus.js.map +1 -0
- package/dist/commonjs/models/afterbalance.d.ts +24 -0
- package/dist/commonjs/models/afterbalance.d.ts.map +1 -0
- package/dist/commonjs/models/afterbalance.js +60 -0
- package/dist/commonjs/models/afterbalance.js.map +1 -0
- package/dist/commonjs/models/balance.d.ts +24 -0
- package/dist/commonjs/models/balance.d.ts.map +1 -0
- package/dist/commonjs/models/balance.js +60 -0
- package/dist/commonjs/models/balance.js.map +1 -0
- package/dist/commonjs/models/businessaccountresponse.d.ts +60 -0
- package/dist/commonjs/models/businessaccountresponse.d.ts.map +1 -0
- package/dist/commonjs/models/businessaccountresponse.js +75 -0
- package/dist/commonjs/models/businessaccountresponse.js.map +1 -0
- package/dist/commonjs/models/counterparty.d.ts +28 -0
- package/dist/commonjs/models/counterparty.d.ts.map +1 -0
- package/dist/commonjs/models/counterparty.js +61 -0
- package/dist/commonjs/models/counterparty.js.map +1 -0
- package/dist/commonjs/models/creditdebitindicator.d.ts +2 -2
- package/dist/commonjs/models/creditdebitindicator.js +1 -1
- package/dist/commonjs/models/entityunmatchedcredittransfer.d.ts +214 -0
- package/dist/commonjs/models/entityunmatchedcredittransfer.d.ts.map +1 -0
- package/dist/commonjs/models/entityunmatchedcredittransfer.js +204 -0
- package/dist/commonjs/models/entityunmatchedcredittransfer.js.map +1 -0
- package/dist/commonjs/models/errorresponse.d.ts +8 -8
- package/dist/commonjs/models/errorresponse.d.ts.map +1 -1
- package/dist/commonjs/models/errorresponse.js +11 -11
- package/dist/commonjs/models/errorresponse.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +13 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +13 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/listentityunmatchedcredittransfer.d.ts +191 -0
- package/dist/commonjs/models/listentityunmatchedcredittransfer.d.ts.map +1 -0
- package/dist/commonjs/models/listentityunmatchedcredittransfer.js +185 -0
- package/dist/commonjs/models/listentityunmatchedcredittransfer.js.map +1 -0
- package/dist/commonjs/models/operations/getbusinessaccount.d.ts +58 -0
- package/dist/commonjs/models/operations/getbusinessaccount.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getbusinessaccount.js +88 -0
- package/dist/commonjs/models/operations/getbusinessaccount.js.map +1 -0
- package/dist/commonjs/models/operations/getbusinessaccounttransaction.d.ts +63 -0
- package/dist/commonjs/models/operations/getbusinessaccounttransaction.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getbusinessaccounttransaction.js +90 -0
- package/dist/commonjs/models/operations/getbusinessaccounttransaction.js.map +1 -0
- package/dist/commonjs/models/operations/getunmatchedcredittransfer.d.ts +25 -0
- package/dist/commonjs/models/operations/getunmatchedcredittransfer.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getunmatchedcredittransfer.js +70 -0
- package/dist/commonjs/models/operations/getunmatchedcredittransfer.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +8 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +8 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listbusinessaccounts.d.ts +131 -0
- package/dist/commonjs/models/operations/listbusinessaccounts.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listbusinessaccounts.js +161 -0
- package/dist/commonjs/models/operations/listbusinessaccounts.js.map +1 -0
- package/dist/commonjs/models/operations/listbusinessaccounttransactions.d.ts +136 -0
- package/dist/commonjs/models/operations/listbusinessaccounttransactions.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listbusinessaccounttransactions.js +161 -0
- package/dist/commonjs/models/operations/listbusinessaccounttransactions.js.map +1 -0
- package/dist/commonjs/models/operations/listunmatchedcredittransfers.d.ts +95 -0
- package/dist/commonjs/models/operations/listunmatchedcredittransfers.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listunmatchedcredittransfers.js +151 -0
- package/dist/commonjs/models/operations/listunmatchedcredittransfers.js.map +1 -0
- package/dist/commonjs/models/operations/matchunmatchedcredittransfer.d.ts +28 -0
- package/dist/commonjs/models/operations/matchunmatchedcredittransfer.d.ts.map +1 -0
- package/dist/commonjs/models/operations/matchunmatchedcredittransfer.js +77 -0
- package/dist/commonjs/models/operations/matchunmatchedcredittransfer.js.map +1 -0
- package/dist/commonjs/models/operations/returnunmatchedcredittransfer.d.ts +25 -0
- package/dist/commonjs/models/operations/returnunmatchedcredittransfer.d.ts.map +1 -0
- package/dist/commonjs/models/operations/returnunmatchedcredittransfer.js +70 -0
- package/dist/commonjs/models/operations/returnunmatchedcredittransfer.js.map +1 -0
- package/dist/commonjs/models/transactionresponse.d.ts +92 -0
- package/dist/commonjs/models/transactionresponse.d.ts.map +1 -0
- package/dist/commonjs/models/transactionresponse.js +87 -0
- package/dist/commonjs/models/transactionresponse.js.map +1 -0
- package/dist/commonjs/models/transactiontype.d.ts +35 -0
- package/dist/commonjs/models/transactiontype.d.ts.map +1 -0
- package/dist/commonjs/models/transactiontype.js +65 -0
- package/dist/commonjs/models/transactiontype.js.map +1 -0
- package/dist/commonjs/models/transferresponse.d.ts +1 -1
- package/dist/commonjs/models/unmatchedcredittransferactionresponse.d.ts +164 -0
- package/dist/commonjs/models/unmatchedcredittransferactionresponse.d.ts.map +1 -0
- package/dist/commonjs/models/unmatchedcredittransferactionresponse.js +175 -0
- package/dist/commonjs/models/unmatchedcredittransferactionresponse.js.map +1 -0
- package/dist/commonjs/models/unmatchedcredittransfermatchrequest.d.ts +20 -0
- package/dist/commonjs/models/unmatchedcredittransfermatchrequest.d.ts.map +1 -0
- package/dist/commonjs/models/unmatchedcredittransfermatchrequest.js +59 -0
- package/dist/commonjs/models/unmatchedcredittransfermatchrequest.js.map +1 -0
- package/dist/commonjs/models/unmatchedcredittransferstatus.d.ts +14 -0
- package/dist/commonjs/models/unmatchedcredittransferstatus.d.ts.map +1 -0
- package/dist/commonjs/models/unmatchedcredittransferstatus.js +52 -0
- package/dist/commonjs/models/unmatchedcredittransferstatus.js.map +1 -0
- package/dist/commonjs/sdk/accounts.d.ts +45 -0
- package/dist/commonjs/sdk/accounts.d.ts.map +1 -0
- package/dist/commonjs/sdk/accounts.js +60 -0
- package/dist/commonjs/sdk/accounts.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +6 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +8 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/unmatchedcredittransfers.d.ts +55 -0
- package/dist/commonjs/sdk/unmatchedcredittransfers.d.ts.map +1 -0
- package/dist/commonjs/sdk/unmatchedcredittransfers.js +72 -0
- package/dist/commonjs/sdk/unmatchedcredittransfers.js.map +1 -0
- package/dist/esm/funcs/accountsGet.d.ts +22 -0
- package/dist/esm/funcs/accountsGet.d.ts.map +1 -0
- package/dist/esm/funcs/accountsGet.js +111 -0
- package/dist/esm/funcs/accountsGet.js.map +1 -0
- package/dist/esm/funcs/accountsGetAccount.d.ts +22 -0
- package/dist/esm/funcs/accountsGetAccount.d.ts.map +1 -0
- package/dist/esm/funcs/accountsGetAccount.js +107 -0
- package/dist/esm/funcs/accountsGetAccount.js.map +1 -0
- package/dist/esm/funcs/accountsList.d.ts +27 -0
- package/dist/esm/funcs/accountsList.d.ts.map +1 -0
- package/dist/esm/funcs/accountsList.js +142 -0
- package/dist/esm/funcs/accountsList.js.map +1 -0
- package/dist/esm/funcs/accountsListAccounts.d.ts +27 -0
- package/dist/esm/funcs/accountsListAccounts.d.ts.map +1 -0
- package/dist/esm/funcs/accountsListAccounts.js +142 -0
- package/dist/esm/funcs/accountsListAccounts.js.map +1 -0
- package/dist/esm/funcs/unmatchedCreditTransfersGet.d.ts +23 -0
- package/dist/esm/funcs/unmatchedCreditTransfersGet.d.ts.map +1 -0
- package/dist/esm/funcs/unmatchedCreditTransfersGet.js +104 -0
- package/dist/esm/funcs/unmatchedCreditTransfersGet.js.map +1 -0
- package/dist/esm/funcs/unmatchedCreditTransfersList.d.ts +29 -0
- package/dist/esm/funcs/unmatchedCreditTransfersList.d.ts.map +1 -0
- package/dist/esm/funcs/unmatchedCreditTransfersList.js +143 -0
- package/dist/esm/funcs/unmatchedCreditTransfersList.js.map +1 -0
- package/dist/esm/funcs/unmatchedCreditTransfersMatch.d.ts +23 -0
- package/dist/esm/funcs/unmatchedCreditTransfersMatch.d.ts.map +1 -0
- package/dist/esm/funcs/unmatchedCreditTransfersMatch.js +105 -0
- package/dist/esm/funcs/unmatchedCreditTransfersMatch.js.map +1 -0
- package/dist/esm/funcs/unmatchedCreditTransfersReturn.d.ts +23 -0
- package/dist/esm/funcs/unmatchedCreditTransfersReturn.d.ts.map +1 -0
- package/dist/esm/funcs/unmatchedCreditTransfersReturn.js +104 -0
- package/dist/esm/funcs/unmatchedCreditTransfersReturn.js.map +1 -0
- 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/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +17 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/accountsGet.d.ts +8 -0
- package/dist/esm/mcp-server/tools/accountsGet.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/accountsGet.js +30 -0
- package/dist/esm/mcp-server/tools/accountsGet.js.map +1 -0
- package/dist/esm/mcp-server/tools/accountsGetAccount.d.ts +8 -0
- package/dist/esm/mcp-server/tools/accountsGetAccount.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/accountsGetAccount.js +30 -0
- package/dist/esm/mcp-server/tools/accountsGetAccount.js.map +1 -0
- package/dist/esm/mcp-server/tools/accountsList.d.ts +8 -0
- package/dist/esm/mcp-server/tools/accountsList.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/accountsList.js +31 -0
- package/dist/esm/mcp-server/tools/accountsList.js.map +1 -0
- package/dist/esm/mcp-server/tools/accountsListAccounts.d.ts +8 -0
- package/dist/esm/mcp-server/tools/accountsListAccounts.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/accountsListAccounts.js +31 -0
- package/dist/esm/mcp-server/tools/accountsListAccounts.js.map +1 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersGet.d.ts +8 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersGet.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersGet.js +33 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersGet.js.map +1 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersList.d.ts +8 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersList.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersList.js +36 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersList.js.map +1 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersMatch.d.ts +8 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersMatch.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersMatch.js +33 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersMatch.js.map +1 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersReturn.d.ts +8 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersReturn.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersReturn.js +33 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersReturn.js.map +1 -0
- package/dist/esm/models/accountdetails.d.ts +43 -0
- package/dist/esm/models/accountdetails.d.ts.map +1 -0
- package/dist/esm/models/accountdetails.js +29 -0
- package/dist/esm/models/accountdetails.js.map +1 -0
- package/dist/esm/models/accountstatus.d.ts +19 -0
- package/dist/esm/models/accountstatus.d.ts.map +1 -0
- package/dist/esm/models/accountstatus.js +18 -0
- package/dist/esm/models/accountstatus.js.map +1 -0
- package/dist/esm/models/afterbalance.d.ts +24 -0
- package/dist/esm/models/afterbalance.d.ts.map +1 -0
- package/dist/esm/models/afterbalance.js +22 -0
- package/dist/esm/models/afterbalance.js.map +1 -0
- package/dist/esm/models/balance.d.ts +24 -0
- package/dist/esm/models/balance.d.ts.map +1 -0
- package/dist/esm/models/balance.js +22 -0
- package/dist/esm/models/balance.js.map +1 -0
- package/dist/esm/models/businessaccountresponse.d.ts +60 -0
- package/dist/esm/models/businessaccountresponse.d.ts.map +1 -0
- package/dist/esm/models/businessaccountresponse.js +37 -0
- package/dist/esm/models/businessaccountresponse.js.map +1 -0
- package/dist/esm/models/counterparty.d.ts +28 -0
- package/dist/esm/models/counterparty.d.ts.map +1 -0
- package/dist/esm/models/counterparty.js +23 -0
- package/dist/esm/models/counterparty.js.map +1 -0
- package/dist/esm/models/creditdebitindicator.d.ts +2 -2
- package/dist/esm/models/creditdebitindicator.js +1 -1
- package/dist/esm/models/entityunmatchedcredittransfer.d.ts +214 -0
- package/dist/esm/models/entityunmatchedcredittransfer.d.ts.map +1 -0
- package/dist/esm/models/entityunmatchedcredittransfer.js +154 -0
- package/dist/esm/models/entityunmatchedcredittransfer.js.map +1 -0
- package/dist/esm/models/errorresponse.d.ts +8 -8
- package/dist/esm/models/errorresponse.d.ts.map +1 -1
- package/dist/esm/models/errorresponse.js +8 -8
- package/dist/esm/models/errorresponse.js.map +1 -1
- package/dist/esm/models/index.d.ts +13 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +13 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/listentityunmatchedcredittransfer.d.ts +191 -0
- package/dist/esm/models/listentityunmatchedcredittransfer.d.ts.map +1 -0
- package/dist/esm/models/listentityunmatchedcredittransfer.js +137 -0
- package/dist/esm/models/listentityunmatchedcredittransfer.js.map +1 -0
- package/dist/esm/models/operations/getbusinessaccount.d.ts +58 -0
- package/dist/esm/models/operations/getbusinessaccount.d.ts.map +1 -0
- package/dist/esm/models/operations/getbusinessaccount.js +48 -0
- package/dist/esm/models/operations/getbusinessaccount.js.map +1 -0
- package/dist/esm/models/operations/getbusinessaccounttransaction.d.ts +63 -0
- package/dist/esm/models/operations/getbusinessaccounttransaction.d.ts.map +1 -0
- package/dist/esm/models/operations/getbusinessaccounttransaction.js +50 -0
- package/dist/esm/models/operations/getbusinessaccounttransaction.js.map +1 -0
- package/dist/esm/models/operations/getunmatchedcredittransfer.d.ts +25 -0
- package/dist/esm/models/operations/getunmatchedcredittransfer.d.ts.map +1 -0
- package/dist/esm/models/operations/getunmatchedcredittransfer.js +32 -0
- package/dist/esm/models/operations/getunmatchedcredittransfer.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +8 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +8 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listbusinessaccounts.d.ts +131 -0
- package/dist/esm/models/operations/listbusinessaccounts.d.ts.map +1 -0
- package/dist/esm/models/operations/listbusinessaccounts.js +115 -0
- package/dist/esm/models/operations/listbusinessaccounts.js.map +1 -0
- package/dist/esm/models/operations/listbusinessaccounttransactions.d.ts +136 -0
- package/dist/esm/models/operations/listbusinessaccounttransactions.d.ts.map +1 -0
- package/dist/esm/models/operations/listbusinessaccounttransactions.js +115 -0
- package/dist/esm/models/operations/listbusinessaccounttransactions.js.map +1 -0
- package/dist/esm/models/operations/listunmatchedcredittransfers.d.ts +95 -0
- package/dist/esm/models/operations/listunmatchedcredittransfers.d.ts.map +1 -0
- package/dist/esm/models/operations/listunmatchedcredittransfers.js +107 -0
- package/dist/esm/models/operations/listunmatchedcredittransfers.js.map +1 -0
- package/dist/esm/models/operations/matchunmatchedcredittransfer.d.ts +28 -0
- package/dist/esm/models/operations/matchunmatchedcredittransfer.d.ts.map +1 -0
- package/dist/esm/models/operations/matchunmatchedcredittransfer.js +39 -0
- package/dist/esm/models/operations/matchunmatchedcredittransfer.js.map +1 -0
- package/dist/esm/models/operations/returnunmatchedcredittransfer.d.ts +25 -0
- package/dist/esm/models/operations/returnunmatchedcredittransfer.d.ts.map +1 -0
- package/dist/esm/models/operations/returnunmatchedcredittransfer.js +32 -0
- package/dist/esm/models/operations/returnunmatchedcredittransfer.js.map +1 -0
- package/dist/esm/models/transactionresponse.d.ts +92 -0
- package/dist/esm/models/transactionresponse.d.ts.map +1 -0
- package/dist/esm/models/transactionresponse.js +49 -0
- package/dist/esm/models/transactionresponse.js.map +1 -0
- package/dist/esm/models/transactiontype.d.ts +35 -0
- package/dist/esm/models/transactiontype.d.ts.map +1 -0
- package/dist/esm/models/transactiontype.js +29 -0
- package/dist/esm/models/transactiontype.js.map +1 -0
- package/dist/esm/models/transferresponse.d.ts +1 -1
- package/dist/esm/models/unmatchedcredittransferactionresponse.d.ts +164 -0
- package/dist/esm/models/unmatchedcredittransferactionresponse.d.ts.map +1 -0
- package/dist/esm/models/unmatchedcredittransferactionresponse.js +129 -0
- package/dist/esm/models/unmatchedcredittransferactionresponse.js.map +1 -0
- package/dist/esm/models/unmatchedcredittransfermatchrequest.d.ts +20 -0
- package/dist/esm/models/unmatchedcredittransfermatchrequest.d.ts.map +1 -0
- package/dist/esm/models/unmatchedcredittransfermatchrequest.js +21 -0
- package/dist/esm/models/unmatchedcredittransfermatchrequest.js.map +1 -0
- package/dist/esm/models/unmatchedcredittransferstatus.d.ts +14 -0
- package/dist/esm/models/unmatchedcredittransferstatus.d.ts.map +1 -0
- package/dist/esm/models/unmatchedcredittransferstatus.js +16 -0
- package/dist/esm/models/unmatchedcredittransferstatus.js.map +1 -0
- package/dist/esm/sdk/accounts.d.ts +45 -0
- package/dist/esm/sdk/accounts.d.ts.map +1 -0
- package/dist/esm/sdk/accounts.js +56 -0
- package/dist/esm/sdk/accounts.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +6 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +8 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/unmatchedcredittransfers.d.ts +55 -0
- package/dist/esm/sdk/unmatchedcredittransfers.d.ts.map +1 -0
- package/dist/esm/sdk/unmatchedcredittransfers.js +68 -0
- package/dist/esm/sdk/unmatchedcredittransfers.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/accountsGet.ts +212 -0
- package/src/funcs/accountsGetAccount.ts +205 -0
- package/src/funcs/accountsList.ts +285 -0
- package/src/funcs/accountsListAccounts.ts +275 -0
- package/src/funcs/unmatchedCreditTransfersGet.ts +202 -0
- package/src/funcs/unmatchedCreditTransfersList.ts +274 -0
- package/src/funcs/unmatchedCreditTransfersMatch.ts +209 -0
- package/src/funcs/unmatchedCreditTransfersReturn.ts +204 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +17 -1
- package/src/mcp-server/tools/accountsGet.ts +39 -0
- package/src/mcp-server/tools/accountsGetAccount.ts +39 -0
- package/src/mcp-server/tools/accountsList.ts +40 -0
- package/src/mcp-server/tools/accountsListAccounts.ts +40 -0
- package/src/mcp-server/tools/unmatchedCreditTransfersGet.ts +42 -0
- package/src/mcp-server/tools/unmatchedCreditTransfersList.ts +45 -0
- package/src/mcp-server/tools/unmatchedCreditTransfersMatch.ts +42 -0
- package/src/mcp-server/tools/unmatchedCreditTransfersReturn.ts +43 -0
- package/src/models/accountdetails.ts +82 -0
- package/src/models/accountstatus.ts +34 -0
- package/src/models/afterbalance.ts +60 -0
- package/src/models/balance.ts +57 -0
- package/src/models/businessaccountresponse.ts +121 -0
- package/src/models/counterparty.ts +61 -0
- package/src/models/creditdebitindicator.ts +2 -2
- package/src/models/entityunmatchedcredittransfer.ts +538 -0
- package/src/models/errorresponse.ts +21 -17
- package/src/models/index.ts +13 -0
- package/src/models/listentityunmatchedcredittransfer.ts +476 -0
- package/src/models/operations/getbusinessaccount.ts +136 -0
- package/src/models/operations/getbusinessaccounttransaction.ts +149 -0
- package/src/models/operations/getunmatchedcredittransfer.ts +73 -0
- package/src/models/operations/index.ts +8 -0
- package/src/models/operations/listbusinessaccounts.ts +333 -0
- package/src/models/operations/listbusinessaccounttransactions.ts +373 -0
- package/src/models/operations/listunmatchedcredittransfers.ts +287 -0
- package/src/models/operations/matchunmatchedcredittransfer.ts +89 -0
- package/src/models/operations/returnunmatchedcredittransfer.ts +74 -0
- package/src/models/transactionresponse.ts +172 -0
- package/src/models/transactiontype.ts +50 -0
- package/src/models/transferresponse.ts +1 -1
- package/src/models/unmatchedcredittransferactionresponse.ts +426 -0
- package/src/models/unmatchedcredittransfermatchrequest.ts +58 -0
- package/src/models/unmatchedcredittransferstatus.ts +31 -0
- package/src/sdk/accounts.ts +97 -0
- package/src/sdk/sdk.ts +14 -0
- package/src/sdk/unmatchedcredittransfers.ts +107 -0
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 70f9c8054155
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import * as openEnums from "../types/enums.js";
|
|
10
|
+
import { OpenEnum } from "../types/enums.js";
|
|
11
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
12
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The action performed on the unmatched credit transfer.
|
|
16
|
+
*/
|
|
17
|
+
export const Action = {
|
|
18
|
+
Match: "match",
|
|
19
|
+
Return: "return",
|
|
20
|
+
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* The action performed on the unmatched credit transfer.
|
|
23
|
+
*/
|
|
24
|
+
export type Action = OpenEnum<typeof Action>;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The current status of the action.
|
|
28
|
+
*/
|
|
29
|
+
export const UnmatchedCreditTransferActionResponseStatus = {
|
|
30
|
+
Pending: "pending",
|
|
31
|
+
} as const;
|
|
32
|
+
/**
|
|
33
|
+
* The current status of the action.
|
|
34
|
+
*/
|
|
35
|
+
export type UnmatchedCreditTransferActionResponseStatus = OpenEnum<
|
|
36
|
+
typeof UnmatchedCreditTransferActionResponseStatus
|
|
37
|
+
>;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Additional details about the action.
|
|
41
|
+
*/
|
|
42
|
+
export type UnmatchedCreditTransferActionResponseDetails = {
|
|
43
|
+
/**
|
|
44
|
+
* The IDs of the payments matched to the unmatched credit transfer.
|
|
45
|
+
*/
|
|
46
|
+
paymentIds?: Array<string> | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The URL to this action.
|
|
51
|
+
*/
|
|
52
|
+
export type UnmatchedCreditTransferActionResponseSelf = {
|
|
53
|
+
href?: string | undefined;
|
|
54
|
+
type?: string | undefined;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The URL to the documentation of this endpoint.
|
|
59
|
+
*/
|
|
60
|
+
export type UnmatchedCreditTransferActionResponseDocumentation = {
|
|
61
|
+
href?: string | undefined;
|
|
62
|
+
type?: string | undefined;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Links to related resources.
|
|
67
|
+
*/
|
|
68
|
+
export type UnmatchedCreditTransferActionResponseLinks = {
|
|
69
|
+
/**
|
|
70
|
+
* The URL to this action.
|
|
71
|
+
*/
|
|
72
|
+
self?: UnmatchedCreditTransferActionResponseSelf | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* The URL to the documentation of this endpoint.
|
|
75
|
+
*/
|
|
76
|
+
documentation?:
|
|
77
|
+
| UnmatchedCreditTransferActionResponseDocumentation
|
|
78
|
+
| undefined;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export type UnmatchedCreditTransferActionResponse = {
|
|
82
|
+
/**
|
|
83
|
+
* The resource type of the object.
|
|
84
|
+
*/
|
|
85
|
+
resource: string;
|
|
86
|
+
/**
|
|
87
|
+
* The identifier uniquely referring to this unmatched credit transfer action.
|
|
88
|
+
*/
|
|
89
|
+
id: string;
|
|
90
|
+
/**
|
|
91
|
+
* The identifier of the unmatched credit transfer this action belongs to.
|
|
92
|
+
*/
|
|
93
|
+
unmatchedCreditTransferId: string;
|
|
94
|
+
/**
|
|
95
|
+
* The action performed on the unmatched credit transfer.
|
|
96
|
+
*/
|
|
97
|
+
action: Action;
|
|
98
|
+
/**
|
|
99
|
+
* The current status of the action.
|
|
100
|
+
*/
|
|
101
|
+
status: UnmatchedCreditTransferActionResponseStatus;
|
|
102
|
+
/**
|
|
103
|
+
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
104
|
+
*/
|
|
105
|
+
createdAt: string;
|
|
106
|
+
/**
|
|
107
|
+
* Additional details about the action.
|
|
108
|
+
*/
|
|
109
|
+
details?: UnmatchedCreditTransferActionResponseDetails | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Links to related resources.
|
|
112
|
+
*/
|
|
113
|
+
links: UnmatchedCreditTransferActionResponseLinks;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
/** @internal */
|
|
117
|
+
export const Action$inboundSchema: z.ZodType<Action, z.ZodTypeDef, unknown> =
|
|
118
|
+
openEnums.inboundSchema(Action);
|
|
119
|
+
/** @internal */
|
|
120
|
+
export const Action$outboundSchema: z.ZodType<string, z.ZodTypeDef, Action> =
|
|
121
|
+
openEnums.outboundSchema(Action);
|
|
122
|
+
|
|
123
|
+
/** @internal */
|
|
124
|
+
export const UnmatchedCreditTransferActionResponseStatus$inboundSchema:
|
|
125
|
+
z.ZodType<
|
|
126
|
+
UnmatchedCreditTransferActionResponseStatus,
|
|
127
|
+
z.ZodTypeDef,
|
|
128
|
+
unknown
|
|
129
|
+
> = openEnums.inboundSchema(UnmatchedCreditTransferActionResponseStatus);
|
|
130
|
+
/** @internal */
|
|
131
|
+
export const UnmatchedCreditTransferActionResponseStatus$outboundSchema:
|
|
132
|
+
z.ZodType<string, z.ZodTypeDef, UnmatchedCreditTransferActionResponseStatus> =
|
|
133
|
+
openEnums.outboundSchema(UnmatchedCreditTransferActionResponseStatus);
|
|
134
|
+
|
|
135
|
+
/** @internal */
|
|
136
|
+
export const UnmatchedCreditTransferActionResponseDetails$inboundSchema:
|
|
137
|
+
z.ZodType<
|
|
138
|
+
UnmatchedCreditTransferActionResponseDetails,
|
|
139
|
+
z.ZodTypeDef,
|
|
140
|
+
unknown
|
|
141
|
+
> = z.object({
|
|
142
|
+
paymentIds: z.array(z.string()).optional(),
|
|
143
|
+
});
|
|
144
|
+
/** @internal */
|
|
145
|
+
export type UnmatchedCreditTransferActionResponseDetails$Outbound = {
|
|
146
|
+
paymentIds?: Array<string> | undefined;
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
/** @internal */
|
|
150
|
+
export const UnmatchedCreditTransferActionResponseDetails$outboundSchema:
|
|
151
|
+
z.ZodType<
|
|
152
|
+
UnmatchedCreditTransferActionResponseDetails$Outbound,
|
|
153
|
+
z.ZodTypeDef,
|
|
154
|
+
UnmatchedCreditTransferActionResponseDetails
|
|
155
|
+
> = z.object({
|
|
156
|
+
paymentIds: z.array(z.string()).optional(),
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
export function unmatchedCreditTransferActionResponseDetailsToJSON(
|
|
160
|
+
unmatchedCreditTransferActionResponseDetails:
|
|
161
|
+
UnmatchedCreditTransferActionResponseDetails,
|
|
162
|
+
): string {
|
|
163
|
+
return JSON.stringify(
|
|
164
|
+
UnmatchedCreditTransferActionResponseDetails$outboundSchema.parse(
|
|
165
|
+
unmatchedCreditTransferActionResponseDetails,
|
|
166
|
+
),
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
export function unmatchedCreditTransferActionResponseDetailsFromJSON(
|
|
170
|
+
jsonString: string,
|
|
171
|
+
): SafeParseResult<
|
|
172
|
+
UnmatchedCreditTransferActionResponseDetails,
|
|
173
|
+
SDKValidationError
|
|
174
|
+
> {
|
|
175
|
+
return safeParse(
|
|
176
|
+
jsonString,
|
|
177
|
+
(x) =>
|
|
178
|
+
UnmatchedCreditTransferActionResponseDetails$inboundSchema.parse(
|
|
179
|
+
JSON.parse(x),
|
|
180
|
+
),
|
|
181
|
+
`Failed to parse 'UnmatchedCreditTransferActionResponseDetails' from JSON`,
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/** @internal */
|
|
186
|
+
export const UnmatchedCreditTransferActionResponseSelf$inboundSchema: z.ZodType<
|
|
187
|
+
UnmatchedCreditTransferActionResponseSelf,
|
|
188
|
+
z.ZodTypeDef,
|
|
189
|
+
unknown
|
|
190
|
+
> = z.object({
|
|
191
|
+
href: z.string().optional(),
|
|
192
|
+
type: z.string().optional(),
|
|
193
|
+
});
|
|
194
|
+
/** @internal */
|
|
195
|
+
export type UnmatchedCreditTransferActionResponseSelf$Outbound = {
|
|
196
|
+
href?: string | undefined;
|
|
197
|
+
type?: string | undefined;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
/** @internal */
|
|
201
|
+
export const UnmatchedCreditTransferActionResponseSelf$outboundSchema:
|
|
202
|
+
z.ZodType<
|
|
203
|
+
UnmatchedCreditTransferActionResponseSelf$Outbound,
|
|
204
|
+
z.ZodTypeDef,
|
|
205
|
+
UnmatchedCreditTransferActionResponseSelf
|
|
206
|
+
> = z.object({
|
|
207
|
+
href: z.string().optional(),
|
|
208
|
+
type: z.string().optional(),
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
export function unmatchedCreditTransferActionResponseSelfToJSON(
|
|
212
|
+
unmatchedCreditTransferActionResponseSelf:
|
|
213
|
+
UnmatchedCreditTransferActionResponseSelf,
|
|
214
|
+
): string {
|
|
215
|
+
return JSON.stringify(
|
|
216
|
+
UnmatchedCreditTransferActionResponseSelf$outboundSchema.parse(
|
|
217
|
+
unmatchedCreditTransferActionResponseSelf,
|
|
218
|
+
),
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
export function unmatchedCreditTransferActionResponseSelfFromJSON(
|
|
222
|
+
jsonString: string,
|
|
223
|
+
): SafeParseResult<
|
|
224
|
+
UnmatchedCreditTransferActionResponseSelf,
|
|
225
|
+
SDKValidationError
|
|
226
|
+
> {
|
|
227
|
+
return safeParse(
|
|
228
|
+
jsonString,
|
|
229
|
+
(x) =>
|
|
230
|
+
UnmatchedCreditTransferActionResponseSelf$inboundSchema.parse(
|
|
231
|
+
JSON.parse(x),
|
|
232
|
+
),
|
|
233
|
+
`Failed to parse 'UnmatchedCreditTransferActionResponseSelf' from JSON`,
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/** @internal */
|
|
238
|
+
export const UnmatchedCreditTransferActionResponseDocumentation$inboundSchema:
|
|
239
|
+
z.ZodType<
|
|
240
|
+
UnmatchedCreditTransferActionResponseDocumentation,
|
|
241
|
+
z.ZodTypeDef,
|
|
242
|
+
unknown
|
|
243
|
+
> = z.object({
|
|
244
|
+
href: z.string().optional(),
|
|
245
|
+
type: z.string().optional(),
|
|
246
|
+
});
|
|
247
|
+
/** @internal */
|
|
248
|
+
export type UnmatchedCreditTransferActionResponseDocumentation$Outbound = {
|
|
249
|
+
href?: string | undefined;
|
|
250
|
+
type?: string | undefined;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
/** @internal */
|
|
254
|
+
export const UnmatchedCreditTransferActionResponseDocumentation$outboundSchema:
|
|
255
|
+
z.ZodType<
|
|
256
|
+
UnmatchedCreditTransferActionResponseDocumentation$Outbound,
|
|
257
|
+
z.ZodTypeDef,
|
|
258
|
+
UnmatchedCreditTransferActionResponseDocumentation
|
|
259
|
+
> = z.object({
|
|
260
|
+
href: z.string().optional(),
|
|
261
|
+
type: z.string().optional(),
|
|
262
|
+
});
|
|
263
|
+
|
|
264
|
+
export function unmatchedCreditTransferActionResponseDocumentationToJSON(
|
|
265
|
+
unmatchedCreditTransferActionResponseDocumentation:
|
|
266
|
+
UnmatchedCreditTransferActionResponseDocumentation,
|
|
267
|
+
): string {
|
|
268
|
+
return JSON.stringify(
|
|
269
|
+
UnmatchedCreditTransferActionResponseDocumentation$outboundSchema.parse(
|
|
270
|
+
unmatchedCreditTransferActionResponseDocumentation,
|
|
271
|
+
),
|
|
272
|
+
);
|
|
273
|
+
}
|
|
274
|
+
export function unmatchedCreditTransferActionResponseDocumentationFromJSON(
|
|
275
|
+
jsonString: string,
|
|
276
|
+
): SafeParseResult<
|
|
277
|
+
UnmatchedCreditTransferActionResponseDocumentation,
|
|
278
|
+
SDKValidationError
|
|
279
|
+
> {
|
|
280
|
+
return safeParse(
|
|
281
|
+
jsonString,
|
|
282
|
+
(x) =>
|
|
283
|
+
UnmatchedCreditTransferActionResponseDocumentation$inboundSchema.parse(
|
|
284
|
+
JSON.parse(x),
|
|
285
|
+
),
|
|
286
|
+
`Failed to parse 'UnmatchedCreditTransferActionResponseDocumentation' from JSON`,
|
|
287
|
+
);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/** @internal */
|
|
291
|
+
export const UnmatchedCreditTransferActionResponseLinks$inboundSchema:
|
|
292
|
+
z.ZodType<UnmatchedCreditTransferActionResponseLinks, z.ZodTypeDef, unknown> =
|
|
293
|
+
z.object({
|
|
294
|
+
self: z.lazy(() =>
|
|
295
|
+
UnmatchedCreditTransferActionResponseSelf$inboundSchema
|
|
296
|
+
).optional(),
|
|
297
|
+
documentation: z.lazy(() =>
|
|
298
|
+
UnmatchedCreditTransferActionResponseDocumentation$inboundSchema
|
|
299
|
+
).optional(),
|
|
300
|
+
});
|
|
301
|
+
/** @internal */
|
|
302
|
+
export type UnmatchedCreditTransferActionResponseLinks$Outbound = {
|
|
303
|
+
self?: UnmatchedCreditTransferActionResponseSelf$Outbound | undefined;
|
|
304
|
+
documentation?:
|
|
305
|
+
| UnmatchedCreditTransferActionResponseDocumentation$Outbound
|
|
306
|
+
| undefined;
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
/** @internal */
|
|
310
|
+
export const UnmatchedCreditTransferActionResponseLinks$outboundSchema:
|
|
311
|
+
z.ZodType<
|
|
312
|
+
UnmatchedCreditTransferActionResponseLinks$Outbound,
|
|
313
|
+
z.ZodTypeDef,
|
|
314
|
+
UnmatchedCreditTransferActionResponseLinks
|
|
315
|
+
> = z.object({
|
|
316
|
+
self: z.lazy(() => UnmatchedCreditTransferActionResponseSelf$outboundSchema)
|
|
317
|
+
.optional(),
|
|
318
|
+
documentation: z.lazy(() =>
|
|
319
|
+
UnmatchedCreditTransferActionResponseDocumentation$outboundSchema
|
|
320
|
+
).optional(),
|
|
321
|
+
});
|
|
322
|
+
|
|
323
|
+
export function unmatchedCreditTransferActionResponseLinksToJSON(
|
|
324
|
+
unmatchedCreditTransferActionResponseLinks:
|
|
325
|
+
UnmatchedCreditTransferActionResponseLinks,
|
|
326
|
+
): string {
|
|
327
|
+
return JSON.stringify(
|
|
328
|
+
UnmatchedCreditTransferActionResponseLinks$outboundSchema.parse(
|
|
329
|
+
unmatchedCreditTransferActionResponseLinks,
|
|
330
|
+
),
|
|
331
|
+
);
|
|
332
|
+
}
|
|
333
|
+
export function unmatchedCreditTransferActionResponseLinksFromJSON(
|
|
334
|
+
jsonString: string,
|
|
335
|
+
): SafeParseResult<
|
|
336
|
+
UnmatchedCreditTransferActionResponseLinks,
|
|
337
|
+
SDKValidationError
|
|
338
|
+
> {
|
|
339
|
+
return safeParse(
|
|
340
|
+
jsonString,
|
|
341
|
+
(x) =>
|
|
342
|
+
UnmatchedCreditTransferActionResponseLinks$inboundSchema.parse(
|
|
343
|
+
JSON.parse(x),
|
|
344
|
+
),
|
|
345
|
+
`Failed to parse 'UnmatchedCreditTransferActionResponseLinks' from JSON`,
|
|
346
|
+
);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/** @internal */
|
|
350
|
+
export const UnmatchedCreditTransferActionResponse$inboundSchema: z.ZodType<
|
|
351
|
+
UnmatchedCreditTransferActionResponse,
|
|
352
|
+
z.ZodTypeDef,
|
|
353
|
+
unknown
|
|
354
|
+
> = z.object({
|
|
355
|
+
resource: z.string(),
|
|
356
|
+
id: z.string(),
|
|
357
|
+
unmatchedCreditTransferId: z.string(),
|
|
358
|
+
action: Action$inboundSchema,
|
|
359
|
+
status: UnmatchedCreditTransferActionResponseStatus$inboundSchema,
|
|
360
|
+
createdAt: z.string(),
|
|
361
|
+
details: z.lazy(() =>
|
|
362
|
+
UnmatchedCreditTransferActionResponseDetails$inboundSchema
|
|
363
|
+
).optional(),
|
|
364
|
+
_links: z.lazy(() =>
|
|
365
|
+
UnmatchedCreditTransferActionResponseLinks$inboundSchema
|
|
366
|
+
),
|
|
367
|
+
}).transform((v) => {
|
|
368
|
+
return remap$(v, {
|
|
369
|
+
"_links": "links",
|
|
370
|
+
});
|
|
371
|
+
});
|
|
372
|
+
/** @internal */
|
|
373
|
+
export type UnmatchedCreditTransferActionResponse$Outbound = {
|
|
374
|
+
resource: string;
|
|
375
|
+
id: string;
|
|
376
|
+
unmatchedCreditTransferId: string;
|
|
377
|
+
action: string;
|
|
378
|
+
status: string;
|
|
379
|
+
createdAt: string;
|
|
380
|
+
details?: UnmatchedCreditTransferActionResponseDetails$Outbound | undefined;
|
|
381
|
+
_links: UnmatchedCreditTransferActionResponseLinks$Outbound;
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
/** @internal */
|
|
385
|
+
export const UnmatchedCreditTransferActionResponse$outboundSchema: z.ZodType<
|
|
386
|
+
UnmatchedCreditTransferActionResponse$Outbound,
|
|
387
|
+
z.ZodTypeDef,
|
|
388
|
+
UnmatchedCreditTransferActionResponse
|
|
389
|
+
> = z.object({
|
|
390
|
+
resource: z.string(),
|
|
391
|
+
id: z.string(),
|
|
392
|
+
unmatchedCreditTransferId: z.string(),
|
|
393
|
+
action: Action$outboundSchema,
|
|
394
|
+
status: UnmatchedCreditTransferActionResponseStatus$outboundSchema,
|
|
395
|
+
createdAt: z.string(),
|
|
396
|
+
details: z.lazy(() =>
|
|
397
|
+
UnmatchedCreditTransferActionResponseDetails$outboundSchema
|
|
398
|
+
).optional(),
|
|
399
|
+
links: z.lazy(() =>
|
|
400
|
+
UnmatchedCreditTransferActionResponseLinks$outboundSchema
|
|
401
|
+
),
|
|
402
|
+
}).transform((v) => {
|
|
403
|
+
return remap$(v, {
|
|
404
|
+
links: "_links",
|
|
405
|
+
});
|
|
406
|
+
});
|
|
407
|
+
|
|
408
|
+
export function unmatchedCreditTransferActionResponseToJSON(
|
|
409
|
+
unmatchedCreditTransferActionResponse: UnmatchedCreditTransferActionResponse,
|
|
410
|
+
): string {
|
|
411
|
+
return JSON.stringify(
|
|
412
|
+
UnmatchedCreditTransferActionResponse$outboundSchema.parse(
|
|
413
|
+
unmatchedCreditTransferActionResponse,
|
|
414
|
+
),
|
|
415
|
+
);
|
|
416
|
+
}
|
|
417
|
+
export function unmatchedCreditTransferActionResponseFromJSON(
|
|
418
|
+
jsonString: string,
|
|
419
|
+
): SafeParseResult<UnmatchedCreditTransferActionResponse, SDKValidationError> {
|
|
420
|
+
return safeParse(
|
|
421
|
+
jsonString,
|
|
422
|
+
(x) =>
|
|
423
|
+
UnmatchedCreditTransferActionResponse$inboundSchema.parse(JSON.parse(x)),
|
|
424
|
+
`Failed to parse 'UnmatchedCreditTransferActionResponse' from JSON`,
|
|
425
|
+
);
|
|
426
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 62d67e484ffd
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type UnmatchedCreditTransferMatchRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* The IDs of the payments to match against the unmatched credit transfer.
|
|
14
|
+
*/
|
|
15
|
+
paymentIds: Array<string>;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const UnmatchedCreditTransferMatchRequest$inboundSchema: z.ZodType<
|
|
20
|
+
UnmatchedCreditTransferMatchRequest,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
paymentIds: z.array(z.string()),
|
|
25
|
+
});
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type UnmatchedCreditTransferMatchRequest$Outbound = {
|
|
28
|
+
paymentIds: Array<string>;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const UnmatchedCreditTransferMatchRequest$outboundSchema: z.ZodType<
|
|
33
|
+
UnmatchedCreditTransferMatchRequest$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
UnmatchedCreditTransferMatchRequest
|
|
36
|
+
> = z.object({
|
|
37
|
+
paymentIds: z.array(z.string()),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export function unmatchedCreditTransferMatchRequestToJSON(
|
|
41
|
+
unmatchedCreditTransferMatchRequest: UnmatchedCreditTransferMatchRequest,
|
|
42
|
+
): string {
|
|
43
|
+
return JSON.stringify(
|
|
44
|
+
UnmatchedCreditTransferMatchRequest$outboundSchema.parse(
|
|
45
|
+
unmatchedCreditTransferMatchRequest,
|
|
46
|
+
),
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
export function unmatchedCreditTransferMatchRequestFromJSON(
|
|
50
|
+
jsonString: string,
|
|
51
|
+
): SafeParseResult<UnmatchedCreditTransferMatchRequest, SDKValidationError> {
|
|
52
|
+
return safeParse(
|
|
53
|
+
jsonString,
|
|
54
|
+
(x) =>
|
|
55
|
+
UnmatchedCreditTransferMatchRequest$inboundSchema.parse(JSON.parse(x)),
|
|
56
|
+
`Failed to parse 'UnmatchedCreditTransferMatchRequest' from JSON`,
|
|
57
|
+
);
|
|
58
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e2b8ffb2feac
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
import * as openEnums from "../types/enums.js";
|
|
8
|
+
import { OpenEnum } from "../types/enums.js";
|
|
9
|
+
|
|
10
|
+
export const UnmatchedCreditTransferStatus = {
|
|
11
|
+
Received: "received",
|
|
12
|
+
Matched: "matched",
|
|
13
|
+
Returned: "returned",
|
|
14
|
+
Expired: "expired",
|
|
15
|
+
} as const;
|
|
16
|
+
export type UnmatchedCreditTransferStatus = OpenEnum<
|
|
17
|
+
typeof UnmatchedCreditTransferStatus
|
|
18
|
+
>;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const UnmatchedCreditTransferStatus$inboundSchema: z.ZodType<
|
|
22
|
+
UnmatchedCreditTransferStatus,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = openEnums.inboundSchema(UnmatchedCreditTransferStatus);
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const UnmatchedCreditTransferStatus$outboundSchema: z.ZodType<
|
|
28
|
+
string,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
UnmatchedCreditTransferStatus
|
|
31
|
+
> = openEnums.outboundSchema(UnmatchedCreditTransferStatus);
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: a4031260e046
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { accountsGet } from "../funcs/accountsGet.js";
|
|
7
|
+
import { accountsGetAccount } from "../funcs/accountsGetAccount.js";
|
|
8
|
+
import { accountsList } from "../funcs/accountsList.js";
|
|
9
|
+
import { accountsListAccounts } from "../funcs/accountsListAccounts.js";
|
|
10
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import * as models from "../models/index.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
13
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
14
|
+
import { PageIterator, unwrapResultIterator } from "../types/operations.js";
|
|
15
|
+
|
|
16
|
+
export class Accounts extends ClientSDK {
|
|
17
|
+
/**
|
|
18
|
+
* List business accounts
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* Retrieve all business accounts for the authenticated organization.
|
|
22
|
+
*
|
|
23
|
+
* The results are paginated.
|
|
24
|
+
*/
|
|
25
|
+
async listAccounts(
|
|
26
|
+
request?: operations.ListBusinessAccountsRequest | undefined,
|
|
27
|
+
options?: RequestOptions,
|
|
28
|
+
): Promise<
|
|
29
|
+
PageIterator<operations.ListBusinessAccountsResponse, { url: string }>
|
|
30
|
+
> {
|
|
31
|
+
return unwrapResultIterator(accountsListAccounts(
|
|
32
|
+
this,
|
|
33
|
+
request,
|
|
34
|
+
options,
|
|
35
|
+
));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Get business account
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* Retrieve a single business account object by its account ID. This allows you to check the current status,
|
|
43
|
+
* balance, and account details.
|
|
44
|
+
*/
|
|
45
|
+
async getAccount(
|
|
46
|
+
request: operations.GetBusinessAccountRequest,
|
|
47
|
+
options?: RequestOptions,
|
|
48
|
+
): Promise<models.BusinessAccountResponse> {
|
|
49
|
+
return unwrapAsync(accountsGetAccount(
|
|
50
|
+
this,
|
|
51
|
+
request,
|
|
52
|
+
options,
|
|
53
|
+
));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* List transactions
|
|
58
|
+
*
|
|
59
|
+
* @remarks
|
|
60
|
+
* Retrieve all transactions for a specific business account.
|
|
61
|
+
*
|
|
62
|
+
* The results are paginated.
|
|
63
|
+
*/
|
|
64
|
+
async list(
|
|
65
|
+
request: operations.ListBusinessAccountTransactionsRequest,
|
|
66
|
+
options?: RequestOptions,
|
|
67
|
+
): Promise<
|
|
68
|
+
PageIterator<
|
|
69
|
+
operations.ListBusinessAccountTransactionsResponse,
|
|
70
|
+
{ url: string }
|
|
71
|
+
>
|
|
72
|
+
> {
|
|
73
|
+
return unwrapResultIterator(accountsList(
|
|
74
|
+
this,
|
|
75
|
+
request,
|
|
76
|
+
options,
|
|
77
|
+
));
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Get transaction
|
|
82
|
+
*
|
|
83
|
+
* @remarks
|
|
84
|
+
* Retrieve a single transaction object by its transaction ID. This allows you to check the details,
|
|
85
|
+
* amount, counterparty, and balance impact of a specific transaction.
|
|
86
|
+
*/
|
|
87
|
+
async get(
|
|
88
|
+
request: operations.GetBusinessAccountTransactionRequest,
|
|
89
|
+
options?: RequestOptions,
|
|
90
|
+
): Promise<models.TransactionResponse> {
|
|
91
|
+
return unwrapAsync(accountsGet(
|
|
92
|
+
this,
|
|
93
|
+
request,
|
|
94
|
+
options,
|
|
95
|
+
));
|
|
96
|
+
}
|
|
97
|
+
}
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { ClientSDK } from "../lib/sdks.js";
|
|
7
|
+
import { Accounts } from "./accounts.js";
|
|
7
8
|
import { Balances } from "./balances.js";
|
|
8
9
|
import { BalanceTransfers } from "./balancetransfers.js";
|
|
9
10
|
import { Capabilities } from "./capabilities.js";
|
|
@@ -29,6 +30,7 @@ import { Settlements } from "./settlements.js";
|
|
|
29
30
|
import { Subscriptions } from "./subscriptions.js";
|
|
30
31
|
import { Terminals } from "./terminals.js";
|
|
31
32
|
import { Transfers } from "./transfers.js";
|
|
33
|
+
import { UnmatchedCreditTransfers } from "./unmatchedcredittransfers.js";
|
|
32
34
|
import { VerifyPayees } from "./verifypayees.js";
|
|
33
35
|
import { Wallets } from "./wallets.js";
|
|
34
36
|
import { WebhookEvents } from "./webhookevents.js";
|
|
@@ -105,6 +107,13 @@ export class Client extends ClientSDK {
|
|
|
105
107
|
return (this._payments ??= new Payments(this._options));
|
|
106
108
|
}
|
|
107
109
|
|
|
110
|
+
private _unmatchedCreditTransfers?: UnmatchedCreditTransfers;
|
|
111
|
+
get unmatchedCreditTransfers(): UnmatchedCreditTransfers {
|
|
112
|
+
return (this._unmatchedCreditTransfers ??= new UnmatchedCreditTransfers(
|
|
113
|
+
this._options,
|
|
114
|
+
));
|
|
115
|
+
}
|
|
116
|
+
|
|
108
117
|
private _sessions?: Sessions;
|
|
109
118
|
get sessions(): Sessions {
|
|
110
119
|
return (this._sessions ??= new Sessions(this._options));
|
|
@@ -170,6 +179,11 @@ export class Client extends ClientSDK {
|
|
|
170
179
|
return (this._salesInvoices ??= new SalesInvoices(this._options));
|
|
171
180
|
}
|
|
172
181
|
|
|
182
|
+
private _accounts?: Accounts;
|
|
183
|
+
get accounts(): Accounts {
|
|
184
|
+
return (this._accounts ??= new Accounts(this._options));
|
|
185
|
+
}
|
|
186
|
+
|
|
173
187
|
private _transfers?: Transfers;
|
|
174
188
|
get transfers(): Transfers {
|
|
175
189
|
return (this._transfers ??= new Transfers(this._options));
|