diff options
author | Florian Dold <florian@dold.me> | 2023-04-04 15:25:29 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-04-04 15:26:14 +0200 |
commit | 07d8498abc6aa21ab7c8e7146a04b4b731504c3d (patch) | |
tree | 029fdde522f60569254a23a91a86e152f450c92a /packages/taler-wallet-core/src/wallet.ts | |
parent | cefec08ce7ef5d1fce0398d54b651c3a0762c788 (diff) | |
download | wallet-core-07d8498abc6aa21ab7c8e7146a04b4b731504c3d.tar.xz |
wallet-core: implement runIntegrationTestV2
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 363214e7b..348d2a834 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -112,6 +112,7 @@ import { validateIban, codecForValidateIbanRequest, ValidateIbanResponse, + codecForIntegrationTestV2Args, } from "@gnu-taler/taler-util"; import { TalerCryptoInterface } from "./crypto/cryptoImplementation.js"; import { @@ -200,8 +201,8 @@ import { processPurchase, } from "./operations/pay-merchant.js"; import { - acceptIncomingPeerPullPayment, - confirmPeerPushPayment, + confirmPeerPullDebit, + confirmPeerPushCredit, preparePeerPullDebit, preparePeerPushCredit, initiatePeerPullPayment, @@ -226,6 +227,7 @@ import { } from "./operations/refresh.js"; import { runIntegrationTest, + runIntegrationTest2, testPay, withdrawTestBalance, } from "./operations/testing.js"; @@ -1046,6 +1048,11 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>( await runIntegrationTest(ws, req); return {}; } + case WalletApiOperation.RunIntegrationTestV2: { + const req = codecForIntegrationTestV2Args().decode(payload); + await runIntegrationTest2(ws, req); + return {}; + } case WalletApiOperation.ValidateIban: { const req = codecForValidateIbanRequest().decode(payload); const valRes = validateIban(req.iban); @@ -1461,7 +1468,7 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>( } case WalletApiOperation.ConfirmPeerPushCredit: { const req = codecForConfirmPeerPushPaymentRequest().decode(payload); - return await confirmPeerPushPayment(ws, req); + return await confirmPeerPushCredit(ws, req); } case WalletApiOperation.CheckPeerPullCredit: { const req = codecForPreparePeerPullPaymentRequest().decode(payload); @@ -1477,7 +1484,7 @@ async function dispatchRequestInternal<Op extends WalletApiOperation>( } case WalletApiOperation.ConfirmPeerPullDebit: { const req = codecForAcceptPeerPullPaymentRequest().decode(payload); - return await acceptIncomingPeerPullPayment(ws, req); + return await confirmPeerPullDebit(ws, req); } case WalletApiOperation.ApplyDevExperiment: { const req = codecForApplyDevExperiment().decode(payload); |