From 217f34397f95fc988280eee9c376efe0781c69ea Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 8 Sep 2021 15:30:32 -0300 Subject: first approach to new design for withdraw --- packages/taler-wallet-core/src/wallet.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages/taler-wallet-core/src/wallet.ts') diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index fec7e6155..cbaf03c3b 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -28,6 +28,7 @@ import { codecForDeleteTransactionRequest, codecForRetryTransactionRequest, codecForSetWalletDeviceIdRequest, + codecForGetExchangeWithdrawalInfo, durationFromSpec, durationMin, getDurationRemaining, @@ -693,6 +694,10 @@ async function dispatchRequestInternal( const req = codecForGetWithdrawalDetailsForUri().decode(payload); return await getWithdrawalDetailsForUri(ws, req.talerWithdrawUri); } + case "getExchangeWithdrawalInfo": { + const req = codecForGetExchangeWithdrawalInfo().decode(payload); + return await getExchangeWithdrawalInfo(ws, req.exchangeBaseUrl, req.amount); + } case "acceptManualWithdrawal": { const req = codecForAcceptManualWithdrawalRequet().decode(payload); const res = await acceptManualWithdrawal( -- cgit v1.2.3