From 6fc9a052b7f8e3ef0bd1b26279b11dc6bc12f5e4 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 May 2021 16:24:41 +0200 Subject: implement deletion of withdrawal transactions --- packages/taler-wallet-core/src/wallet.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (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 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 { + 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 -- cgit v1.2.3