diff options
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 7 |
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 |