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,373 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 207970bdbb7e
|
|
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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import * as models from "../index.js";
|
|
12
|
+
|
|
13
|
+
export type ListBusinessAccountTransactionsGlobals = {
|
|
14
|
+
/**
|
|
15
|
+
* Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* parameter must not be sent. For organization-level credentials such as OAuth access tokens, you can enable test mode by
|
|
19
|
+
* setting the `testmode` query parameter to `true`.
|
|
20
|
+
*
|
|
21
|
+
* Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
|
|
22
|
+
*/
|
|
23
|
+
testmode?: boolean | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type ListBusinessAccountTransactionsRequest = {
|
|
27
|
+
/**
|
|
28
|
+
* Provide the ID of the related business account.
|
|
29
|
+
*/
|
|
30
|
+
businessAccountId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* the result set.
|
|
36
|
+
*/
|
|
37
|
+
from?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* The maximum number of items to return. Defaults to 50 items.
|
|
40
|
+
*/
|
|
41
|
+
limit?: number | null | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Used for setting the direction of the result set. Defaults to descending order, meaning the results are ordered from
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
* newest to oldest.
|
|
47
|
+
*/
|
|
48
|
+
sort?: models.Sorting | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* parameter must not be sent. For organization-level credentials such as OAuth access tokens, you can enable test mode by
|
|
54
|
+
* setting the `testmode` query parameter to `true`.
|
|
55
|
+
*
|
|
56
|
+
* Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
|
|
57
|
+
*/
|
|
58
|
+
testmode?: boolean | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* A unique key to ensure idempotent requests. This key should be a UUID v4 string.
|
|
61
|
+
*/
|
|
62
|
+
idempotencyKey?: string | undefined;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export type ListBusinessAccountTransactionsEmbedded = {
|
|
66
|
+
/**
|
|
67
|
+
* An array of transaction objects.
|
|
68
|
+
*/
|
|
69
|
+
transactions?: Array<models.TransactionResponse> | undefined;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* A list of transaction objects.
|
|
74
|
+
*/
|
|
75
|
+
export type ListBusinessAccountTransactionsResponseBody = {
|
|
76
|
+
/**
|
|
77
|
+
* The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
|
|
78
|
+
*
|
|
79
|
+
* @remarks
|
|
80
|
+
* as well.
|
|
81
|
+
*
|
|
82
|
+
* The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
|
|
83
|
+
* limit is 50 items.
|
|
84
|
+
*/
|
|
85
|
+
count: number;
|
|
86
|
+
embedded: ListBusinessAccountTransactionsEmbedded;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export type ListBusinessAccountTransactionsResponse = {
|
|
90
|
+
result: ListBusinessAccountTransactionsResponseBody;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
/** @internal */
|
|
94
|
+
export const ListBusinessAccountTransactionsGlobals$inboundSchema: z.ZodType<
|
|
95
|
+
ListBusinessAccountTransactionsGlobals,
|
|
96
|
+
z.ZodTypeDef,
|
|
97
|
+
unknown
|
|
98
|
+
> = z.object({
|
|
99
|
+
testmode: z.boolean().optional(),
|
|
100
|
+
});
|
|
101
|
+
/** @internal */
|
|
102
|
+
export type ListBusinessAccountTransactionsGlobals$Outbound = {
|
|
103
|
+
testmode?: boolean | undefined;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const ListBusinessAccountTransactionsGlobals$outboundSchema: z.ZodType<
|
|
108
|
+
ListBusinessAccountTransactionsGlobals$Outbound,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
ListBusinessAccountTransactionsGlobals
|
|
111
|
+
> = z.object({
|
|
112
|
+
testmode: z.boolean().optional(),
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
export function listBusinessAccountTransactionsGlobalsToJSON(
|
|
116
|
+
listBusinessAccountTransactionsGlobals:
|
|
117
|
+
ListBusinessAccountTransactionsGlobals,
|
|
118
|
+
): string {
|
|
119
|
+
return JSON.stringify(
|
|
120
|
+
ListBusinessAccountTransactionsGlobals$outboundSchema.parse(
|
|
121
|
+
listBusinessAccountTransactionsGlobals,
|
|
122
|
+
),
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
export function listBusinessAccountTransactionsGlobalsFromJSON(
|
|
126
|
+
jsonString: string,
|
|
127
|
+
): SafeParseResult<ListBusinessAccountTransactionsGlobals, SDKValidationError> {
|
|
128
|
+
return safeParse(
|
|
129
|
+
jsonString,
|
|
130
|
+
(x) =>
|
|
131
|
+
ListBusinessAccountTransactionsGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
132
|
+
`Failed to parse 'ListBusinessAccountTransactionsGlobals' from JSON`,
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/** @internal */
|
|
137
|
+
export const ListBusinessAccountTransactionsRequest$inboundSchema: z.ZodType<
|
|
138
|
+
ListBusinessAccountTransactionsRequest,
|
|
139
|
+
z.ZodTypeDef,
|
|
140
|
+
unknown
|
|
141
|
+
> = z.object({
|
|
142
|
+
businessAccountId: z.string(),
|
|
143
|
+
from: z.string().optional(),
|
|
144
|
+
limit: z.nullable(z.number().int()).optional(),
|
|
145
|
+
sort: models.Sorting$inboundSchema.optional(),
|
|
146
|
+
testmode: z.boolean().optional(),
|
|
147
|
+
"idempotency-key": z.string().optional(),
|
|
148
|
+
}).transform((v) => {
|
|
149
|
+
return remap$(v, {
|
|
150
|
+
"idempotency-key": "idempotencyKey",
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
/** @internal */
|
|
154
|
+
export type ListBusinessAccountTransactionsRequest$Outbound = {
|
|
155
|
+
businessAccountId: string;
|
|
156
|
+
from?: string | undefined;
|
|
157
|
+
limit?: number | null | undefined;
|
|
158
|
+
sort?: string | undefined;
|
|
159
|
+
testmode?: boolean | undefined;
|
|
160
|
+
"idempotency-key"?: string | undefined;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
/** @internal */
|
|
164
|
+
export const ListBusinessAccountTransactionsRequest$outboundSchema: z.ZodType<
|
|
165
|
+
ListBusinessAccountTransactionsRequest$Outbound,
|
|
166
|
+
z.ZodTypeDef,
|
|
167
|
+
ListBusinessAccountTransactionsRequest
|
|
168
|
+
> = z.object({
|
|
169
|
+
businessAccountId: z.string(),
|
|
170
|
+
from: z.string().optional(),
|
|
171
|
+
limit: z.nullable(z.number().int()).optional(),
|
|
172
|
+
sort: models.Sorting$outboundSchema.optional(),
|
|
173
|
+
testmode: z.boolean().optional(),
|
|
174
|
+
idempotencyKey: z.string().optional(),
|
|
175
|
+
}).transform((v) => {
|
|
176
|
+
return remap$(v, {
|
|
177
|
+
idempotencyKey: "idempotency-key",
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
export function listBusinessAccountTransactionsRequestToJSON(
|
|
182
|
+
listBusinessAccountTransactionsRequest:
|
|
183
|
+
ListBusinessAccountTransactionsRequest,
|
|
184
|
+
): string {
|
|
185
|
+
return JSON.stringify(
|
|
186
|
+
ListBusinessAccountTransactionsRequest$outboundSchema.parse(
|
|
187
|
+
listBusinessAccountTransactionsRequest,
|
|
188
|
+
),
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
export function listBusinessAccountTransactionsRequestFromJSON(
|
|
192
|
+
jsonString: string,
|
|
193
|
+
): SafeParseResult<ListBusinessAccountTransactionsRequest, SDKValidationError> {
|
|
194
|
+
return safeParse(
|
|
195
|
+
jsonString,
|
|
196
|
+
(x) =>
|
|
197
|
+
ListBusinessAccountTransactionsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
198
|
+
`Failed to parse 'ListBusinessAccountTransactionsRequest' from JSON`,
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/** @internal */
|
|
203
|
+
export const ListBusinessAccountTransactionsEmbedded$inboundSchema: z.ZodType<
|
|
204
|
+
ListBusinessAccountTransactionsEmbedded,
|
|
205
|
+
z.ZodTypeDef,
|
|
206
|
+
unknown
|
|
207
|
+
> = z.object({
|
|
208
|
+
transactions: z.array(models.TransactionResponse$inboundSchema).optional(),
|
|
209
|
+
});
|
|
210
|
+
/** @internal */
|
|
211
|
+
export type ListBusinessAccountTransactionsEmbedded$Outbound = {
|
|
212
|
+
transactions?: Array<models.TransactionResponse$Outbound> | undefined;
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
/** @internal */
|
|
216
|
+
export const ListBusinessAccountTransactionsEmbedded$outboundSchema: z.ZodType<
|
|
217
|
+
ListBusinessAccountTransactionsEmbedded$Outbound,
|
|
218
|
+
z.ZodTypeDef,
|
|
219
|
+
ListBusinessAccountTransactionsEmbedded
|
|
220
|
+
> = z.object({
|
|
221
|
+
transactions: z.array(models.TransactionResponse$outboundSchema).optional(),
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
export function listBusinessAccountTransactionsEmbeddedToJSON(
|
|
225
|
+
listBusinessAccountTransactionsEmbedded:
|
|
226
|
+
ListBusinessAccountTransactionsEmbedded,
|
|
227
|
+
): string {
|
|
228
|
+
return JSON.stringify(
|
|
229
|
+
ListBusinessAccountTransactionsEmbedded$outboundSchema.parse(
|
|
230
|
+
listBusinessAccountTransactionsEmbedded,
|
|
231
|
+
),
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
export function listBusinessAccountTransactionsEmbeddedFromJSON(
|
|
235
|
+
jsonString: string,
|
|
236
|
+
): SafeParseResult<
|
|
237
|
+
ListBusinessAccountTransactionsEmbedded,
|
|
238
|
+
SDKValidationError
|
|
239
|
+
> {
|
|
240
|
+
return safeParse(
|
|
241
|
+
jsonString,
|
|
242
|
+
(x) =>
|
|
243
|
+
ListBusinessAccountTransactionsEmbedded$inboundSchema.parse(
|
|
244
|
+
JSON.parse(x),
|
|
245
|
+
),
|
|
246
|
+
`Failed to parse 'ListBusinessAccountTransactionsEmbedded' from JSON`,
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/** @internal */
|
|
251
|
+
export const ListBusinessAccountTransactionsResponseBody$inboundSchema:
|
|
252
|
+
z.ZodType<
|
|
253
|
+
ListBusinessAccountTransactionsResponseBody,
|
|
254
|
+
z.ZodTypeDef,
|
|
255
|
+
unknown
|
|
256
|
+
> = z.object({
|
|
257
|
+
count: z.number().int(),
|
|
258
|
+
_embedded: z.lazy(() =>
|
|
259
|
+
ListBusinessAccountTransactionsEmbedded$inboundSchema
|
|
260
|
+
),
|
|
261
|
+
}).transform((v) => {
|
|
262
|
+
return remap$(v, {
|
|
263
|
+
"_embedded": "embedded",
|
|
264
|
+
});
|
|
265
|
+
});
|
|
266
|
+
/** @internal */
|
|
267
|
+
export type ListBusinessAccountTransactionsResponseBody$Outbound = {
|
|
268
|
+
count: number;
|
|
269
|
+
_embedded: ListBusinessAccountTransactionsEmbedded$Outbound;
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
/** @internal */
|
|
273
|
+
export const ListBusinessAccountTransactionsResponseBody$outboundSchema:
|
|
274
|
+
z.ZodType<
|
|
275
|
+
ListBusinessAccountTransactionsResponseBody$Outbound,
|
|
276
|
+
z.ZodTypeDef,
|
|
277
|
+
ListBusinessAccountTransactionsResponseBody
|
|
278
|
+
> = z.object({
|
|
279
|
+
count: z.number().int(),
|
|
280
|
+
embedded: z.lazy(() =>
|
|
281
|
+
ListBusinessAccountTransactionsEmbedded$outboundSchema
|
|
282
|
+
),
|
|
283
|
+
}).transform((v) => {
|
|
284
|
+
return remap$(v, {
|
|
285
|
+
embedded: "_embedded",
|
|
286
|
+
});
|
|
287
|
+
});
|
|
288
|
+
|
|
289
|
+
export function listBusinessAccountTransactionsResponseBodyToJSON(
|
|
290
|
+
listBusinessAccountTransactionsResponseBody:
|
|
291
|
+
ListBusinessAccountTransactionsResponseBody,
|
|
292
|
+
): string {
|
|
293
|
+
return JSON.stringify(
|
|
294
|
+
ListBusinessAccountTransactionsResponseBody$outboundSchema.parse(
|
|
295
|
+
listBusinessAccountTransactionsResponseBody,
|
|
296
|
+
),
|
|
297
|
+
);
|
|
298
|
+
}
|
|
299
|
+
export function listBusinessAccountTransactionsResponseBodyFromJSON(
|
|
300
|
+
jsonString: string,
|
|
301
|
+
): SafeParseResult<
|
|
302
|
+
ListBusinessAccountTransactionsResponseBody,
|
|
303
|
+
SDKValidationError
|
|
304
|
+
> {
|
|
305
|
+
return safeParse(
|
|
306
|
+
jsonString,
|
|
307
|
+
(x) =>
|
|
308
|
+
ListBusinessAccountTransactionsResponseBody$inboundSchema.parse(
|
|
309
|
+
JSON.parse(x),
|
|
310
|
+
),
|
|
311
|
+
`Failed to parse 'ListBusinessAccountTransactionsResponseBody' from JSON`,
|
|
312
|
+
);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/** @internal */
|
|
316
|
+
export const ListBusinessAccountTransactionsResponse$inboundSchema: z.ZodType<
|
|
317
|
+
ListBusinessAccountTransactionsResponse,
|
|
318
|
+
z.ZodTypeDef,
|
|
319
|
+
unknown
|
|
320
|
+
> = z.object({
|
|
321
|
+
Result: z.lazy(() =>
|
|
322
|
+
ListBusinessAccountTransactionsResponseBody$inboundSchema
|
|
323
|
+
),
|
|
324
|
+
}).transform((v) => {
|
|
325
|
+
return remap$(v, {
|
|
326
|
+
"Result": "result",
|
|
327
|
+
});
|
|
328
|
+
});
|
|
329
|
+
/** @internal */
|
|
330
|
+
export type ListBusinessAccountTransactionsResponse$Outbound = {
|
|
331
|
+
Result: ListBusinessAccountTransactionsResponseBody$Outbound;
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
/** @internal */
|
|
335
|
+
export const ListBusinessAccountTransactionsResponse$outboundSchema: z.ZodType<
|
|
336
|
+
ListBusinessAccountTransactionsResponse$Outbound,
|
|
337
|
+
z.ZodTypeDef,
|
|
338
|
+
ListBusinessAccountTransactionsResponse
|
|
339
|
+
> = z.object({
|
|
340
|
+
result: z.lazy(() =>
|
|
341
|
+
ListBusinessAccountTransactionsResponseBody$outboundSchema
|
|
342
|
+
),
|
|
343
|
+
}).transform((v) => {
|
|
344
|
+
return remap$(v, {
|
|
345
|
+
result: "Result",
|
|
346
|
+
});
|
|
347
|
+
});
|
|
348
|
+
|
|
349
|
+
export function listBusinessAccountTransactionsResponseToJSON(
|
|
350
|
+
listBusinessAccountTransactionsResponse:
|
|
351
|
+
ListBusinessAccountTransactionsResponse,
|
|
352
|
+
): string {
|
|
353
|
+
return JSON.stringify(
|
|
354
|
+
ListBusinessAccountTransactionsResponse$outboundSchema.parse(
|
|
355
|
+
listBusinessAccountTransactionsResponse,
|
|
356
|
+
),
|
|
357
|
+
);
|
|
358
|
+
}
|
|
359
|
+
export function listBusinessAccountTransactionsResponseFromJSON(
|
|
360
|
+
jsonString: string,
|
|
361
|
+
): SafeParseResult<
|
|
362
|
+
ListBusinessAccountTransactionsResponse,
|
|
363
|
+
SDKValidationError
|
|
364
|
+
> {
|
|
365
|
+
return safeParse(
|
|
366
|
+
jsonString,
|
|
367
|
+
(x) =>
|
|
368
|
+
ListBusinessAccountTransactionsResponse$inboundSchema.parse(
|
|
369
|
+
JSON.parse(x),
|
|
370
|
+
),
|
|
371
|
+
`Failed to parse 'ListBusinessAccountTransactionsResponse' from JSON`,
|
|
372
|
+
);
|
|
373
|
+
}
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: ad6b09deb9ec
|
|
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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import * as models from "../index.js";
|
|
12
|
+
|
|
13
|
+
export type ListUnmatchedCreditTransfersRequest = {
|
|
14
|
+
/**
|
|
15
|
+
* Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* result set.
|
|
19
|
+
*/
|
|
20
|
+
from?: string | null | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* The maximum number of items to return. Defaults to 50 items.
|
|
23
|
+
*/
|
|
24
|
+
limit?: number | null | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* A unique key to ensure idempotent requests. This key should be a UUID v4 string.
|
|
27
|
+
*/
|
|
28
|
+
idempotencyKey?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export type ListUnmatchedCreditTransfersEmbedded = {
|
|
32
|
+
/**
|
|
33
|
+
* An array of unmatched credit transfer objects.
|
|
34
|
+
*/
|
|
35
|
+
unmatchedCreditTransfers: Array<models.ListEntityUnmatchedCreditTransfer>;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* A list of unmatched credit transfer objects.
|
|
40
|
+
*/
|
|
41
|
+
export type ListUnmatchedCreditTransfersResponseBody = {
|
|
42
|
+
/**
|
|
43
|
+
* The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
* as well.
|
|
47
|
+
*
|
|
48
|
+
* The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
|
|
49
|
+
* limit is 50 items.
|
|
50
|
+
*/
|
|
51
|
+
count: number;
|
|
52
|
+
embedded: ListUnmatchedCreditTransfersEmbedded;
|
|
53
|
+
/**
|
|
54
|
+
* Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
|
|
55
|
+
*/
|
|
56
|
+
links: models.ListLinks;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export type ListUnmatchedCreditTransfersResponse = {
|
|
60
|
+
result: ListUnmatchedCreditTransfersResponseBody;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const ListUnmatchedCreditTransfersRequest$inboundSchema: z.ZodType<
|
|
65
|
+
ListUnmatchedCreditTransfersRequest,
|
|
66
|
+
z.ZodTypeDef,
|
|
67
|
+
unknown
|
|
68
|
+
> = z.object({
|
|
69
|
+
from: z.nullable(z.string()).optional(),
|
|
70
|
+
limit: z.nullable(z.number().int()).optional(),
|
|
71
|
+
"idempotency-key": z.string().optional(),
|
|
72
|
+
}).transform((v) => {
|
|
73
|
+
return remap$(v, {
|
|
74
|
+
"idempotency-key": "idempotencyKey",
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
/** @internal */
|
|
78
|
+
export type ListUnmatchedCreditTransfersRequest$Outbound = {
|
|
79
|
+
from?: string | null | undefined;
|
|
80
|
+
limit?: number | null | undefined;
|
|
81
|
+
"idempotency-key"?: string | undefined;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const ListUnmatchedCreditTransfersRequest$outboundSchema: z.ZodType<
|
|
86
|
+
ListUnmatchedCreditTransfersRequest$Outbound,
|
|
87
|
+
z.ZodTypeDef,
|
|
88
|
+
ListUnmatchedCreditTransfersRequest
|
|
89
|
+
> = z.object({
|
|
90
|
+
from: z.nullable(z.string()).optional(),
|
|
91
|
+
limit: z.nullable(z.number().int()).optional(),
|
|
92
|
+
idempotencyKey: z.string().optional(),
|
|
93
|
+
}).transform((v) => {
|
|
94
|
+
return remap$(v, {
|
|
95
|
+
idempotencyKey: "idempotency-key",
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
export function listUnmatchedCreditTransfersRequestToJSON(
|
|
100
|
+
listUnmatchedCreditTransfersRequest: ListUnmatchedCreditTransfersRequest,
|
|
101
|
+
): string {
|
|
102
|
+
return JSON.stringify(
|
|
103
|
+
ListUnmatchedCreditTransfersRequest$outboundSchema.parse(
|
|
104
|
+
listUnmatchedCreditTransfersRequest,
|
|
105
|
+
),
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
export function listUnmatchedCreditTransfersRequestFromJSON(
|
|
109
|
+
jsonString: string,
|
|
110
|
+
): SafeParseResult<ListUnmatchedCreditTransfersRequest, SDKValidationError> {
|
|
111
|
+
return safeParse(
|
|
112
|
+
jsonString,
|
|
113
|
+
(x) =>
|
|
114
|
+
ListUnmatchedCreditTransfersRequest$inboundSchema.parse(JSON.parse(x)),
|
|
115
|
+
`Failed to parse 'ListUnmatchedCreditTransfersRequest' from JSON`,
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/** @internal */
|
|
120
|
+
export const ListUnmatchedCreditTransfersEmbedded$inboundSchema: z.ZodType<
|
|
121
|
+
ListUnmatchedCreditTransfersEmbedded,
|
|
122
|
+
z.ZodTypeDef,
|
|
123
|
+
unknown
|
|
124
|
+
> = z.object({
|
|
125
|
+
"unmatched-credit-transfers": z.array(
|
|
126
|
+
models.ListEntityUnmatchedCreditTransfer$inboundSchema,
|
|
127
|
+
),
|
|
128
|
+
}).transform((v) => {
|
|
129
|
+
return remap$(v, {
|
|
130
|
+
"unmatched-credit-transfers": "unmatchedCreditTransfers",
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
/** @internal */
|
|
134
|
+
export type ListUnmatchedCreditTransfersEmbedded$Outbound = {
|
|
135
|
+
"unmatched-credit-transfers": Array<
|
|
136
|
+
models.ListEntityUnmatchedCreditTransfer$Outbound
|
|
137
|
+
>;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
/** @internal */
|
|
141
|
+
export const ListUnmatchedCreditTransfersEmbedded$outboundSchema: z.ZodType<
|
|
142
|
+
ListUnmatchedCreditTransfersEmbedded$Outbound,
|
|
143
|
+
z.ZodTypeDef,
|
|
144
|
+
ListUnmatchedCreditTransfersEmbedded
|
|
145
|
+
> = z.object({
|
|
146
|
+
unmatchedCreditTransfers: z.array(
|
|
147
|
+
models.ListEntityUnmatchedCreditTransfer$outboundSchema,
|
|
148
|
+
),
|
|
149
|
+
}).transform((v) => {
|
|
150
|
+
return remap$(v, {
|
|
151
|
+
unmatchedCreditTransfers: "unmatched-credit-transfers",
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
export function listUnmatchedCreditTransfersEmbeddedToJSON(
|
|
156
|
+
listUnmatchedCreditTransfersEmbedded: ListUnmatchedCreditTransfersEmbedded,
|
|
157
|
+
): string {
|
|
158
|
+
return JSON.stringify(
|
|
159
|
+
ListUnmatchedCreditTransfersEmbedded$outboundSchema.parse(
|
|
160
|
+
listUnmatchedCreditTransfersEmbedded,
|
|
161
|
+
),
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
export function listUnmatchedCreditTransfersEmbeddedFromJSON(
|
|
165
|
+
jsonString: string,
|
|
166
|
+
): SafeParseResult<ListUnmatchedCreditTransfersEmbedded, SDKValidationError> {
|
|
167
|
+
return safeParse(
|
|
168
|
+
jsonString,
|
|
169
|
+
(x) =>
|
|
170
|
+
ListUnmatchedCreditTransfersEmbedded$inboundSchema.parse(JSON.parse(x)),
|
|
171
|
+
`Failed to parse 'ListUnmatchedCreditTransfersEmbedded' from JSON`,
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/** @internal */
|
|
176
|
+
export const ListUnmatchedCreditTransfersResponseBody$inboundSchema: z.ZodType<
|
|
177
|
+
ListUnmatchedCreditTransfersResponseBody,
|
|
178
|
+
z.ZodTypeDef,
|
|
179
|
+
unknown
|
|
180
|
+
> = z.object({
|
|
181
|
+
count: z.number().int(),
|
|
182
|
+
_embedded: z.lazy(() => ListUnmatchedCreditTransfersEmbedded$inboundSchema),
|
|
183
|
+
_links: models.ListLinks$inboundSchema,
|
|
184
|
+
}).transform((v) => {
|
|
185
|
+
return remap$(v, {
|
|
186
|
+
"_embedded": "embedded",
|
|
187
|
+
"_links": "links",
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
/** @internal */
|
|
191
|
+
export type ListUnmatchedCreditTransfersResponseBody$Outbound = {
|
|
192
|
+
count: number;
|
|
193
|
+
_embedded: ListUnmatchedCreditTransfersEmbedded$Outbound;
|
|
194
|
+
_links: models.ListLinks$Outbound;
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
/** @internal */
|
|
198
|
+
export const ListUnmatchedCreditTransfersResponseBody$outboundSchema: z.ZodType<
|
|
199
|
+
ListUnmatchedCreditTransfersResponseBody$Outbound,
|
|
200
|
+
z.ZodTypeDef,
|
|
201
|
+
ListUnmatchedCreditTransfersResponseBody
|
|
202
|
+
> = z.object({
|
|
203
|
+
count: z.number().int(),
|
|
204
|
+
embedded: z.lazy(() => ListUnmatchedCreditTransfersEmbedded$outboundSchema),
|
|
205
|
+
links: models.ListLinks$outboundSchema,
|
|
206
|
+
}).transform((v) => {
|
|
207
|
+
return remap$(v, {
|
|
208
|
+
embedded: "_embedded",
|
|
209
|
+
links: "_links",
|
|
210
|
+
});
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
export function listUnmatchedCreditTransfersResponseBodyToJSON(
|
|
214
|
+
listUnmatchedCreditTransfersResponseBody:
|
|
215
|
+
ListUnmatchedCreditTransfersResponseBody,
|
|
216
|
+
): string {
|
|
217
|
+
return JSON.stringify(
|
|
218
|
+
ListUnmatchedCreditTransfersResponseBody$outboundSchema.parse(
|
|
219
|
+
listUnmatchedCreditTransfersResponseBody,
|
|
220
|
+
),
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
export function listUnmatchedCreditTransfersResponseBodyFromJSON(
|
|
224
|
+
jsonString: string,
|
|
225
|
+
): SafeParseResult<
|
|
226
|
+
ListUnmatchedCreditTransfersResponseBody,
|
|
227
|
+
SDKValidationError
|
|
228
|
+
> {
|
|
229
|
+
return safeParse(
|
|
230
|
+
jsonString,
|
|
231
|
+
(x) =>
|
|
232
|
+
ListUnmatchedCreditTransfersResponseBody$inboundSchema.parse(
|
|
233
|
+
JSON.parse(x),
|
|
234
|
+
),
|
|
235
|
+
`Failed to parse 'ListUnmatchedCreditTransfersResponseBody' from JSON`,
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/** @internal */
|
|
240
|
+
export const ListUnmatchedCreditTransfersResponse$inboundSchema: z.ZodType<
|
|
241
|
+
ListUnmatchedCreditTransfersResponse,
|
|
242
|
+
z.ZodTypeDef,
|
|
243
|
+
unknown
|
|
244
|
+
> = z.object({
|
|
245
|
+
Result: z.lazy(() => ListUnmatchedCreditTransfersResponseBody$inboundSchema),
|
|
246
|
+
}).transform((v) => {
|
|
247
|
+
return remap$(v, {
|
|
248
|
+
"Result": "result",
|
|
249
|
+
});
|
|
250
|
+
});
|
|
251
|
+
/** @internal */
|
|
252
|
+
export type ListUnmatchedCreditTransfersResponse$Outbound = {
|
|
253
|
+
Result: ListUnmatchedCreditTransfersResponseBody$Outbound;
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
/** @internal */
|
|
257
|
+
export const ListUnmatchedCreditTransfersResponse$outboundSchema: z.ZodType<
|
|
258
|
+
ListUnmatchedCreditTransfersResponse$Outbound,
|
|
259
|
+
z.ZodTypeDef,
|
|
260
|
+
ListUnmatchedCreditTransfersResponse
|
|
261
|
+
> = z.object({
|
|
262
|
+
result: z.lazy(() => ListUnmatchedCreditTransfersResponseBody$outboundSchema),
|
|
263
|
+
}).transform((v) => {
|
|
264
|
+
return remap$(v, {
|
|
265
|
+
result: "Result",
|
|
266
|
+
});
|
|
267
|
+
});
|
|
268
|
+
|
|
269
|
+
export function listUnmatchedCreditTransfersResponseToJSON(
|
|
270
|
+
listUnmatchedCreditTransfersResponse: ListUnmatchedCreditTransfersResponse,
|
|
271
|
+
): string {
|
|
272
|
+
return JSON.stringify(
|
|
273
|
+
ListUnmatchedCreditTransfersResponse$outboundSchema.parse(
|
|
274
|
+
listUnmatchedCreditTransfersResponse,
|
|
275
|
+
),
|
|
276
|
+
);
|
|
277
|
+
}
|
|
278
|
+
export function listUnmatchedCreditTransfersResponseFromJSON(
|
|
279
|
+
jsonString: string,
|
|
280
|
+
): SafeParseResult<ListUnmatchedCreditTransfersResponse, SDKValidationError> {
|
|
281
|
+
return safeParse(
|
|
282
|
+
jsonString,
|
|
283
|
+
(x) =>
|
|
284
|
+
ListUnmatchedCreditTransfersResponse$inboundSchema.parse(JSON.parse(x)),
|
|
285
|
+
`Failed to parse 'ListUnmatchedCreditTransfersResponse' from JSON`,
|
|
286
|
+
);
|
|
287
|
+
}
|