diff options
author | Florian Dold <florian@dold.me> | 2021-06-14 19:37:35 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-06-14 19:37:35 +0200 |
commit | ef636c022bb6f8017ef237a5e6468f5c449665ad (patch) | |
tree | 7c7f0fa083a4c02f8d3fb0711b2bd7781cd80879 /packages/taler-wallet-core/src/wallet.ts | |
parent | b4f97f4592cbab6632aff4f1ea4bedccdbf00d3a (diff) | |
download | wallet-core-ef636c022bb6f8017ef237a5e6468f5c449665ad.tar.xz |
implement force-retrying transactions
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 900a2e779..33e431f37 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -26,6 +26,7 @@ import { BackupRecovery, codecForAny, codecForDeleteTransactionRequest, + codecForRetryTransactionRequest, DeleteTransactionRequest, durationFromSpec, durationMax, @@ -103,7 +104,7 @@ import { withdrawTestBalance, } from "./operations/testing"; import { acceptTip, prepareTip, processTip } from "./operations/tip"; -import { deleteTransaction, getTransactions } from "./operations/transactions"; +import { deleteTransaction, getTransactions, retryTransaction } from "./operations/transactions"; import { getExchangeWithdrawalInfo, getWithdrawalDetailsForUri, @@ -1194,6 +1195,11 @@ export class Wallet { await deleteTransaction(this.ws, req.transactionId); return {}; } + case "retryTransaction": { + const req = codecForRetryTransactionRequest().decode(payload); + await retryTransaction(this.ws, req.transactionId); + return {}; + } } throw OperationFailedError.fromCode( TalerErrorCode.WALLET_CORE_API_OPERATION_UNKNOWN, |