aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-cli
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-05-02 10:59:50 +0200
committerFlorian Dold <florian@dold.me>2023-05-02 10:59:50 +0200
commit16d30adf0d57f6d954230c437e56e8a8700ef2ae (patch)
tree1f70267b3d4abd68df5be7da8ac769025a847e4e /packages/taler-wallet-cli
parentc4f5c83b8e8614ead5f48952ea8b60b5b3a3971c (diff)
downloadwallet-core-16d30adf0d57f6d954230c437e56e8a8700ef2ae.tar.xz
-withdrawal notifications
Diffstat (limited to 'packages/taler-wallet-cli')
-rw-r--r--packages/taler-wallet-cli/src/index.ts19
1 files changed, 15 insertions, 4 deletions
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts
index 7fd218941..e58ea4c8d 100644
--- a/packages/taler-wallet-cli/src/index.ts
+++ b/packages/taler-wallet-cli/src/index.ts
@@ -444,6 +444,21 @@ transactionsCli
});
transactionsCli
+ .subcommand("cancelAbortingTransaction", "suspend", {
+ help: "Cancel the attempt of properly aborting a transaction.",
+ })
+ .requiredArgument("transactionId", clk.STRING, {
+ help: "Identifier of the transaction to cancel aborting.",
+ })
+ .action(async (args) => {
+ await withWallet(args, async (wallet) => {
+ await wallet.client.call(WalletApiOperation.CancelAbortingTransaction, {
+ transactionId: args.cancelAbortingTransaction.transactionId,
+ });
+ });
+ });
+
+transactionsCli
.subcommand("resumeTransaction", "resume", {
help: "Resume a transaction.",
})
@@ -484,14 +499,10 @@ transactionsCli
.requiredArgument("transactionId", clk.STRING, {
help: "Identifier of the transaction to delete",
})
- .flag("force", ["--force"], {
- help: "Force aborting the transaction. Might lose money.",
- })
.action(async (args) => {
await withWallet(args, async (wallet) => {
await wallet.client.call(WalletApiOperation.AbortTransaction, {
transactionId: args.abortTransaction.transactionId,
- forceImmediateAbort: args.abortTransaction.force,
});
});
});