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,149 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 9bf0aefb8fcc
|
|
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
|
+
|
|
12
|
+
export type GetBusinessAccountTransactionGlobals = {
|
|
13
|
+
/**
|
|
14
|
+
* Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* parameter must not be sent. For organization-level credentials such as OAuth access tokens, you can enable test mode by
|
|
18
|
+
* setting the `testmode` query parameter to `true`.
|
|
19
|
+
*
|
|
20
|
+
* Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
|
|
21
|
+
*/
|
|
22
|
+
testmode?: boolean | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export type GetBusinessAccountTransactionRequest = {
|
|
26
|
+
/**
|
|
27
|
+
* Provide the ID of the related business account.
|
|
28
|
+
*/
|
|
29
|
+
businessAccountId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Provide the ID of the related transaction.
|
|
32
|
+
*/
|
|
33
|
+
transactionId: string;
|
|
34
|
+
/**
|
|
35
|
+
* Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
* parameter must not be sent. For organization-level credentials such as OAuth access tokens, you can enable test mode by
|
|
39
|
+
* setting the `testmode` query parameter to `true`.
|
|
40
|
+
*
|
|
41
|
+
* Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
|
|
42
|
+
*/
|
|
43
|
+
testmode?: boolean | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* A unique key to ensure idempotent requests. This key should be a UUID v4 string.
|
|
46
|
+
*/
|
|
47
|
+
idempotencyKey?: string | undefined;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const GetBusinessAccountTransactionGlobals$inboundSchema: z.ZodType<
|
|
52
|
+
GetBusinessAccountTransactionGlobals,
|
|
53
|
+
z.ZodTypeDef,
|
|
54
|
+
unknown
|
|
55
|
+
> = z.object({
|
|
56
|
+
testmode: z.boolean().optional(),
|
|
57
|
+
});
|
|
58
|
+
/** @internal */
|
|
59
|
+
export type GetBusinessAccountTransactionGlobals$Outbound = {
|
|
60
|
+
testmode?: boolean | undefined;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const GetBusinessAccountTransactionGlobals$outboundSchema: z.ZodType<
|
|
65
|
+
GetBusinessAccountTransactionGlobals$Outbound,
|
|
66
|
+
z.ZodTypeDef,
|
|
67
|
+
GetBusinessAccountTransactionGlobals
|
|
68
|
+
> = z.object({
|
|
69
|
+
testmode: z.boolean().optional(),
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
export function getBusinessAccountTransactionGlobalsToJSON(
|
|
73
|
+
getBusinessAccountTransactionGlobals: GetBusinessAccountTransactionGlobals,
|
|
74
|
+
): string {
|
|
75
|
+
return JSON.stringify(
|
|
76
|
+
GetBusinessAccountTransactionGlobals$outboundSchema.parse(
|
|
77
|
+
getBusinessAccountTransactionGlobals,
|
|
78
|
+
),
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
export function getBusinessAccountTransactionGlobalsFromJSON(
|
|
82
|
+
jsonString: string,
|
|
83
|
+
): SafeParseResult<GetBusinessAccountTransactionGlobals, SDKValidationError> {
|
|
84
|
+
return safeParse(
|
|
85
|
+
jsonString,
|
|
86
|
+
(x) =>
|
|
87
|
+
GetBusinessAccountTransactionGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
88
|
+
`Failed to parse 'GetBusinessAccountTransactionGlobals' from JSON`,
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/** @internal */
|
|
93
|
+
export const GetBusinessAccountTransactionRequest$inboundSchema: z.ZodType<
|
|
94
|
+
GetBusinessAccountTransactionRequest,
|
|
95
|
+
z.ZodTypeDef,
|
|
96
|
+
unknown
|
|
97
|
+
> = z.object({
|
|
98
|
+
businessAccountId: z.string(),
|
|
99
|
+
transactionId: z.string(),
|
|
100
|
+
testmode: z.boolean().optional(),
|
|
101
|
+
"idempotency-key": z.string().optional(),
|
|
102
|
+
}).transform((v) => {
|
|
103
|
+
return remap$(v, {
|
|
104
|
+
"idempotency-key": "idempotencyKey",
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
/** @internal */
|
|
108
|
+
export type GetBusinessAccountTransactionRequest$Outbound = {
|
|
109
|
+
businessAccountId: string;
|
|
110
|
+
transactionId: string;
|
|
111
|
+
testmode?: boolean | undefined;
|
|
112
|
+
"idempotency-key"?: string | undefined;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
/** @internal */
|
|
116
|
+
export const GetBusinessAccountTransactionRequest$outboundSchema: z.ZodType<
|
|
117
|
+
GetBusinessAccountTransactionRequest$Outbound,
|
|
118
|
+
z.ZodTypeDef,
|
|
119
|
+
GetBusinessAccountTransactionRequest
|
|
120
|
+
> = z.object({
|
|
121
|
+
businessAccountId: z.string(),
|
|
122
|
+
transactionId: z.string(),
|
|
123
|
+
testmode: z.boolean().optional(),
|
|
124
|
+
idempotencyKey: z.string().optional(),
|
|
125
|
+
}).transform((v) => {
|
|
126
|
+
return remap$(v, {
|
|
127
|
+
idempotencyKey: "idempotency-key",
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
export function getBusinessAccountTransactionRequestToJSON(
|
|
132
|
+
getBusinessAccountTransactionRequest: GetBusinessAccountTransactionRequest,
|
|
133
|
+
): string {
|
|
134
|
+
return JSON.stringify(
|
|
135
|
+
GetBusinessAccountTransactionRequest$outboundSchema.parse(
|
|
136
|
+
getBusinessAccountTransactionRequest,
|
|
137
|
+
),
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
export function getBusinessAccountTransactionRequestFromJSON(
|
|
141
|
+
jsonString: string,
|
|
142
|
+
): SafeParseResult<GetBusinessAccountTransactionRequest, SDKValidationError> {
|
|
143
|
+
return safeParse(
|
|
144
|
+
jsonString,
|
|
145
|
+
(x) =>
|
|
146
|
+
GetBusinessAccountTransactionRequest$inboundSchema.parse(JSON.parse(x)),
|
|
147
|
+
`Failed to parse 'GetBusinessAccountTransactionRequest' from JSON`,
|
|
148
|
+
);
|
|
149
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 544c6d7e8058
|
|
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
|
+
|
|
12
|
+
export type GetUnmatchedCreditTransferRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* Provide the ID of the related unmatched credit transfer.
|
|
15
|
+
*/
|
|
16
|
+
unmatchedCreditTransferId: string;
|
|
17
|
+
/**
|
|
18
|
+
* A unique key to ensure idempotent requests. This key should be a UUID v4 string.
|
|
19
|
+
*/
|
|
20
|
+
idempotencyKey?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const GetUnmatchedCreditTransferRequest$inboundSchema: z.ZodType<
|
|
25
|
+
GetUnmatchedCreditTransferRequest,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
unmatchedCreditTransferId: z.string(),
|
|
30
|
+
"idempotency-key": z.string().optional(),
|
|
31
|
+
}).transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
"idempotency-key": "idempotencyKey",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type GetUnmatchedCreditTransferRequest$Outbound = {
|
|
38
|
+
unmatchedCreditTransferId: string;
|
|
39
|
+
"idempotency-key"?: string | undefined;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const GetUnmatchedCreditTransferRequest$outboundSchema: z.ZodType<
|
|
44
|
+
GetUnmatchedCreditTransferRequest$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
GetUnmatchedCreditTransferRequest
|
|
47
|
+
> = z.object({
|
|
48
|
+
unmatchedCreditTransferId: z.string(),
|
|
49
|
+
idempotencyKey: z.string().optional(),
|
|
50
|
+
}).transform((v) => {
|
|
51
|
+
return remap$(v, {
|
|
52
|
+
idempotencyKey: "idempotency-key",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function getUnmatchedCreditTransferRequestToJSON(
|
|
57
|
+
getUnmatchedCreditTransferRequest: GetUnmatchedCreditTransferRequest,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
GetUnmatchedCreditTransferRequest$outboundSchema.parse(
|
|
61
|
+
getUnmatchedCreditTransferRequest,
|
|
62
|
+
),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
export function getUnmatchedCreditTransferRequestFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<GetUnmatchedCreditTransferRequest, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) => GetUnmatchedCreditTransferRequest$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'GetUnmatchedCreditTransferRequest' from JSON`,
|
|
72
|
+
);
|
|
73
|
+
}
|
|
@@ -28,6 +28,8 @@ export * from "./deletesalesinvoice.js";
|
|
|
28
28
|
export * from "./deletewebhook.js";
|
|
29
29
|
export * from "./getbalance.js";
|
|
30
30
|
export * from "./getbalancereport.js";
|
|
31
|
+
export * from "./getbusinessaccount.js";
|
|
32
|
+
export * from "./getbusinessaccounttransaction.js";
|
|
31
33
|
export * from "./getcapture.js";
|
|
32
34
|
export * from "./getchargeback.js";
|
|
33
35
|
export * from "./getclient.js";
|
|
@@ -56,6 +58,7 @@ export * from "./getsettlement.js";
|
|
|
56
58
|
export * from "./getsubscription.js";
|
|
57
59
|
export * from "./getterminal.js";
|
|
58
60
|
export * from "./gettransfer.js";
|
|
61
|
+
export * from "./getunmatchedcredittransfer.js";
|
|
59
62
|
export * from "./getwebhook.js";
|
|
60
63
|
export * from "./getwebhookevent.js";
|
|
61
64
|
export * from "./listallchargebacks.js";
|
|
@@ -64,6 +67,8 @@ export * from "./listallrefunds.js";
|
|
|
64
67
|
export * from "./listallsubscriptions.js";
|
|
65
68
|
export * from "./listbalances.js";
|
|
66
69
|
export * from "./listbalancetransactions.js";
|
|
70
|
+
export * from "./listbusinessaccounts.js";
|
|
71
|
+
export * from "./listbusinessaccounttransactions.js";
|
|
67
72
|
export * from "./listcapabilities.js";
|
|
68
73
|
export * from "./listcaptures.js";
|
|
69
74
|
export * from "./listchargebacks.js";
|
|
@@ -88,12 +93,15 @@ export * from "./listsettlements.js";
|
|
|
88
93
|
export * from "./listsubscriptionpayments.js";
|
|
89
94
|
export * from "./listsubscriptions.js";
|
|
90
95
|
export * from "./listterminals.js";
|
|
96
|
+
export * from "./listunmatchedcredittransfers.js";
|
|
91
97
|
export * from "./listwebhooks.js";
|
|
98
|
+
export * from "./matchunmatchedcredittransfer.js";
|
|
92
99
|
export * from "./paymentcreateroute.js";
|
|
93
100
|
export * from "./paymentgetroute.js";
|
|
94
101
|
export * from "./paymentlistroutes.js";
|
|
95
102
|
export * from "./releaseauthorization.js";
|
|
96
103
|
export * from "./requestapplepaypaymentsession.js";
|
|
104
|
+
export * from "./returnunmatchedcredittransfer.js";
|
|
97
105
|
export * from "./revokemandate.js";
|
|
98
106
|
export * from "./submitonboardingdata.js";
|
|
99
107
|
export * from "./testwebhook.js";
|
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 5c6ec2f06f8c
|
|
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 ListBusinessAccountsGlobals = {
|
|
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 ListBusinessAccountsRequest = {
|
|
27
|
+
/**
|
|
28
|
+
* Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* the result set.
|
|
32
|
+
*/
|
|
33
|
+
from?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The maximum number of items to return. Defaults to 50 items.
|
|
36
|
+
*/
|
|
37
|
+
limit?: number | null | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Used for setting the direction of the result set. Defaults to descending order, meaning the results are ordered from
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* newest to oldest.
|
|
43
|
+
*/
|
|
44
|
+
sort?: models.Sorting | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
|
|
47
|
+
*
|
|
48
|
+
* @remarks
|
|
49
|
+
* parameter must not be sent. For organization-level credentials such as OAuth access tokens, you can enable test mode by
|
|
50
|
+
* setting the `testmode` query parameter to `true`.
|
|
51
|
+
*
|
|
52
|
+
* Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
|
|
53
|
+
*/
|
|
54
|
+
testmode?: boolean | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* A unique key to ensure idempotent requests. This key should be a UUID v4 string.
|
|
57
|
+
*/
|
|
58
|
+
idempotencyKey?: string | undefined;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export type ListBusinessAccountsEmbedded = {
|
|
62
|
+
/**
|
|
63
|
+
* An array of business account objects.
|
|
64
|
+
*/
|
|
65
|
+
businessAccounts?: Array<models.BusinessAccountResponse> | undefined;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* A list of business account objects.
|
|
70
|
+
*/
|
|
71
|
+
export type ListBusinessAccountsResponseBody = {
|
|
72
|
+
/**
|
|
73
|
+
* The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
|
|
74
|
+
*
|
|
75
|
+
* @remarks
|
|
76
|
+
* as well.
|
|
77
|
+
*
|
|
78
|
+
* The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
|
|
79
|
+
* limit is 50 items.
|
|
80
|
+
*/
|
|
81
|
+
count: number;
|
|
82
|
+
embedded: ListBusinessAccountsEmbedded;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export type ListBusinessAccountsResponse = {
|
|
86
|
+
result: ListBusinessAccountsResponseBody;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const ListBusinessAccountsGlobals$inboundSchema: z.ZodType<
|
|
91
|
+
ListBusinessAccountsGlobals,
|
|
92
|
+
z.ZodTypeDef,
|
|
93
|
+
unknown
|
|
94
|
+
> = z.object({
|
|
95
|
+
testmode: z.boolean().optional(),
|
|
96
|
+
});
|
|
97
|
+
/** @internal */
|
|
98
|
+
export type ListBusinessAccountsGlobals$Outbound = {
|
|
99
|
+
testmode?: boolean | undefined;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
/** @internal */
|
|
103
|
+
export const ListBusinessAccountsGlobals$outboundSchema: z.ZodType<
|
|
104
|
+
ListBusinessAccountsGlobals$Outbound,
|
|
105
|
+
z.ZodTypeDef,
|
|
106
|
+
ListBusinessAccountsGlobals
|
|
107
|
+
> = z.object({
|
|
108
|
+
testmode: z.boolean().optional(),
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
export function listBusinessAccountsGlobalsToJSON(
|
|
112
|
+
listBusinessAccountsGlobals: ListBusinessAccountsGlobals,
|
|
113
|
+
): string {
|
|
114
|
+
return JSON.stringify(
|
|
115
|
+
ListBusinessAccountsGlobals$outboundSchema.parse(
|
|
116
|
+
listBusinessAccountsGlobals,
|
|
117
|
+
),
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
export function listBusinessAccountsGlobalsFromJSON(
|
|
121
|
+
jsonString: string,
|
|
122
|
+
): SafeParseResult<ListBusinessAccountsGlobals, SDKValidationError> {
|
|
123
|
+
return safeParse(
|
|
124
|
+
jsonString,
|
|
125
|
+
(x) => ListBusinessAccountsGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
126
|
+
`Failed to parse 'ListBusinessAccountsGlobals' from JSON`,
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/** @internal */
|
|
131
|
+
export const ListBusinessAccountsRequest$inboundSchema: z.ZodType<
|
|
132
|
+
ListBusinessAccountsRequest,
|
|
133
|
+
z.ZodTypeDef,
|
|
134
|
+
unknown
|
|
135
|
+
> = z.object({
|
|
136
|
+
from: z.string().optional(),
|
|
137
|
+
limit: z.nullable(z.number().int()).optional(),
|
|
138
|
+
sort: models.Sorting$inboundSchema.optional(),
|
|
139
|
+
testmode: z.boolean().optional(),
|
|
140
|
+
"idempotency-key": z.string().optional(),
|
|
141
|
+
}).transform((v) => {
|
|
142
|
+
return remap$(v, {
|
|
143
|
+
"idempotency-key": "idempotencyKey",
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
/** @internal */
|
|
147
|
+
export type ListBusinessAccountsRequest$Outbound = {
|
|
148
|
+
from?: string | undefined;
|
|
149
|
+
limit?: number | null | undefined;
|
|
150
|
+
sort?: string | undefined;
|
|
151
|
+
testmode?: boolean | undefined;
|
|
152
|
+
"idempotency-key"?: string | undefined;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
/** @internal */
|
|
156
|
+
export const ListBusinessAccountsRequest$outboundSchema: z.ZodType<
|
|
157
|
+
ListBusinessAccountsRequest$Outbound,
|
|
158
|
+
z.ZodTypeDef,
|
|
159
|
+
ListBusinessAccountsRequest
|
|
160
|
+
> = z.object({
|
|
161
|
+
from: z.string().optional(),
|
|
162
|
+
limit: z.nullable(z.number().int()).optional(),
|
|
163
|
+
sort: models.Sorting$outboundSchema.optional(),
|
|
164
|
+
testmode: z.boolean().optional(),
|
|
165
|
+
idempotencyKey: z.string().optional(),
|
|
166
|
+
}).transform((v) => {
|
|
167
|
+
return remap$(v, {
|
|
168
|
+
idempotencyKey: "idempotency-key",
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
export function listBusinessAccountsRequestToJSON(
|
|
173
|
+
listBusinessAccountsRequest: ListBusinessAccountsRequest,
|
|
174
|
+
): string {
|
|
175
|
+
return JSON.stringify(
|
|
176
|
+
ListBusinessAccountsRequest$outboundSchema.parse(
|
|
177
|
+
listBusinessAccountsRequest,
|
|
178
|
+
),
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
export function listBusinessAccountsRequestFromJSON(
|
|
182
|
+
jsonString: string,
|
|
183
|
+
): SafeParseResult<ListBusinessAccountsRequest, SDKValidationError> {
|
|
184
|
+
return safeParse(
|
|
185
|
+
jsonString,
|
|
186
|
+
(x) => ListBusinessAccountsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
187
|
+
`Failed to parse 'ListBusinessAccountsRequest' from JSON`,
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/** @internal */
|
|
192
|
+
export const ListBusinessAccountsEmbedded$inboundSchema: z.ZodType<
|
|
193
|
+
ListBusinessAccountsEmbedded,
|
|
194
|
+
z.ZodTypeDef,
|
|
195
|
+
unknown
|
|
196
|
+
> = z.object({
|
|
197
|
+
businessAccounts: z.array(models.BusinessAccountResponse$inboundSchema)
|
|
198
|
+
.optional(),
|
|
199
|
+
});
|
|
200
|
+
/** @internal */
|
|
201
|
+
export type ListBusinessAccountsEmbedded$Outbound = {
|
|
202
|
+
businessAccounts?: Array<models.BusinessAccountResponse$Outbound> | undefined;
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
/** @internal */
|
|
206
|
+
export const ListBusinessAccountsEmbedded$outboundSchema: z.ZodType<
|
|
207
|
+
ListBusinessAccountsEmbedded$Outbound,
|
|
208
|
+
z.ZodTypeDef,
|
|
209
|
+
ListBusinessAccountsEmbedded
|
|
210
|
+
> = z.object({
|
|
211
|
+
businessAccounts: z.array(models.BusinessAccountResponse$outboundSchema)
|
|
212
|
+
.optional(),
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
export function listBusinessAccountsEmbeddedToJSON(
|
|
216
|
+
listBusinessAccountsEmbedded: ListBusinessAccountsEmbedded,
|
|
217
|
+
): string {
|
|
218
|
+
return JSON.stringify(
|
|
219
|
+
ListBusinessAccountsEmbedded$outboundSchema.parse(
|
|
220
|
+
listBusinessAccountsEmbedded,
|
|
221
|
+
),
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
export function listBusinessAccountsEmbeddedFromJSON(
|
|
225
|
+
jsonString: string,
|
|
226
|
+
): SafeParseResult<ListBusinessAccountsEmbedded, SDKValidationError> {
|
|
227
|
+
return safeParse(
|
|
228
|
+
jsonString,
|
|
229
|
+
(x) => ListBusinessAccountsEmbedded$inboundSchema.parse(JSON.parse(x)),
|
|
230
|
+
`Failed to parse 'ListBusinessAccountsEmbedded' from JSON`,
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/** @internal */
|
|
235
|
+
export const ListBusinessAccountsResponseBody$inboundSchema: z.ZodType<
|
|
236
|
+
ListBusinessAccountsResponseBody,
|
|
237
|
+
z.ZodTypeDef,
|
|
238
|
+
unknown
|
|
239
|
+
> = z.object({
|
|
240
|
+
count: z.number().int(),
|
|
241
|
+
_embedded: z.lazy(() => ListBusinessAccountsEmbedded$inboundSchema),
|
|
242
|
+
}).transform((v) => {
|
|
243
|
+
return remap$(v, {
|
|
244
|
+
"_embedded": "embedded",
|
|
245
|
+
});
|
|
246
|
+
});
|
|
247
|
+
/** @internal */
|
|
248
|
+
export type ListBusinessAccountsResponseBody$Outbound = {
|
|
249
|
+
count: number;
|
|
250
|
+
_embedded: ListBusinessAccountsEmbedded$Outbound;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
/** @internal */
|
|
254
|
+
export const ListBusinessAccountsResponseBody$outboundSchema: z.ZodType<
|
|
255
|
+
ListBusinessAccountsResponseBody$Outbound,
|
|
256
|
+
z.ZodTypeDef,
|
|
257
|
+
ListBusinessAccountsResponseBody
|
|
258
|
+
> = z.object({
|
|
259
|
+
count: z.number().int(),
|
|
260
|
+
embedded: z.lazy(() => ListBusinessAccountsEmbedded$outboundSchema),
|
|
261
|
+
}).transform((v) => {
|
|
262
|
+
return remap$(v, {
|
|
263
|
+
embedded: "_embedded",
|
|
264
|
+
});
|
|
265
|
+
});
|
|
266
|
+
|
|
267
|
+
export function listBusinessAccountsResponseBodyToJSON(
|
|
268
|
+
listBusinessAccountsResponseBody: ListBusinessAccountsResponseBody,
|
|
269
|
+
): string {
|
|
270
|
+
return JSON.stringify(
|
|
271
|
+
ListBusinessAccountsResponseBody$outboundSchema.parse(
|
|
272
|
+
listBusinessAccountsResponseBody,
|
|
273
|
+
),
|
|
274
|
+
);
|
|
275
|
+
}
|
|
276
|
+
export function listBusinessAccountsResponseBodyFromJSON(
|
|
277
|
+
jsonString: string,
|
|
278
|
+
): SafeParseResult<ListBusinessAccountsResponseBody, SDKValidationError> {
|
|
279
|
+
return safeParse(
|
|
280
|
+
jsonString,
|
|
281
|
+
(x) => ListBusinessAccountsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
282
|
+
`Failed to parse 'ListBusinessAccountsResponseBody' from JSON`,
|
|
283
|
+
);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/** @internal */
|
|
287
|
+
export const ListBusinessAccountsResponse$inboundSchema: z.ZodType<
|
|
288
|
+
ListBusinessAccountsResponse,
|
|
289
|
+
z.ZodTypeDef,
|
|
290
|
+
unknown
|
|
291
|
+
> = z.object({
|
|
292
|
+
Result: z.lazy(() => ListBusinessAccountsResponseBody$inboundSchema),
|
|
293
|
+
}).transform((v) => {
|
|
294
|
+
return remap$(v, {
|
|
295
|
+
"Result": "result",
|
|
296
|
+
});
|
|
297
|
+
});
|
|
298
|
+
/** @internal */
|
|
299
|
+
export type ListBusinessAccountsResponse$Outbound = {
|
|
300
|
+
Result: ListBusinessAccountsResponseBody$Outbound;
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
/** @internal */
|
|
304
|
+
export const ListBusinessAccountsResponse$outboundSchema: z.ZodType<
|
|
305
|
+
ListBusinessAccountsResponse$Outbound,
|
|
306
|
+
z.ZodTypeDef,
|
|
307
|
+
ListBusinessAccountsResponse
|
|
308
|
+
> = z.object({
|
|
309
|
+
result: z.lazy(() => ListBusinessAccountsResponseBody$outboundSchema),
|
|
310
|
+
}).transform((v) => {
|
|
311
|
+
return remap$(v, {
|
|
312
|
+
result: "Result",
|
|
313
|
+
});
|
|
314
|
+
});
|
|
315
|
+
|
|
316
|
+
export function listBusinessAccountsResponseToJSON(
|
|
317
|
+
listBusinessAccountsResponse: ListBusinessAccountsResponse,
|
|
318
|
+
): string {
|
|
319
|
+
return JSON.stringify(
|
|
320
|
+
ListBusinessAccountsResponse$outboundSchema.parse(
|
|
321
|
+
listBusinessAccountsResponse,
|
|
322
|
+
),
|
|
323
|
+
);
|
|
324
|
+
}
|
|
325
|
+
export function listBusinessAccountsResponseFromJSON(
|
|
326
|
+
jsonString: string,
|
|
327
|
+
): SafeParseResult<ListBusinessAccountsResponse, SDKValidationError> {
|
|
328
|
+
return safeParse(
|
|
329
|
+
jsonString,
|
|
330
|
+
(x) => ListBusinessAccountsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
331
|
+
`Failed to parse 'ListBusinessAccountsResponse' from JSON`,
|
|
332
|
+
);
|
|
333
|
+
}
|