summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-05-20 16:24:41 +0200
committerFlorian Dold <florian@dold.me>2021-05-20 16:24:41 +0200
commit6fc9a052b7f8e3ef0bd1b26279b11dc6bc12f5e4 (patch)
treedb7e785017f30ccff5371592695ae10d92612d16 /packages/taler-wallet-core/src/wallet.ts
parent1fb182700252675eb89bfef5c27637e8396f1258 (diff)
downloadwallet-core-6fc9a052b7f8e3ef0bd1b26279b11dc6bc12f5e4.tar.gz
wallet-core-6fc9a052b7f8e3ef0bd1b26279b11dc6bc12f5e4.tar.bz2
wallet-core-6fc9a052b7f8e3ef0bd1b26279b11dc6bc12f5e4.zip
implement deletion of withdrawal transactions
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r--packages/taler-wallet-core/src/wallet.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index 192b54926..c380786ab 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -25,6 +25,7 @@
import {
BackupRecovery,
codecForAny,
+ DeleteTransactionRequest,
TalerErrorCode,
WalletCurrencyInfo,
} from "@gnu-taler/taler-util";
@@ -92,7 +93,7 @@ import {
withdrawTestBalance,
} from "./operations/testing";
import { acceptTip, prepareTip, processTip } from "./operations/tip";
-import { getTransactions } from "./operations/transactions";
+import { deleteTransaction, getTransactions } from "./operations/transactions";
import {
getExchangeWithdrawalInfo,
getWithdrawalDetailsForUri,
@@ -578,6 +579,10 @@ export class Wallet {
return getWithdrawalDetailsForUri(this.ws, talerWithdrawUri);
}
+ async deleteTransaction(req: DeleteTransactionRequest): Promise<void> {
+ return deleteTransaction(this.ws, req.transactionId);
+ }
+
/**
* Update or add exchange DB entry by fetching the /keys and /wire information.
* Optionally link the reserve entry to the new or existing