diff options
author | Sebastian <sebasjm@gmail.com> | 2023-05-24 10:18:48 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-05-24 10:21:07 -0300 |
commit | 4859883c9aa124541c5f5cbeaca4b836449d3893 (patch) | |
tree | 85c15f66c88c361eecd38e1866f3029df7dc91dc /packages/taler-wallet-cli | |
parent | 99e248d88697b44b12bd599d8a40983f8fd1539a (diff) |
fix cli tx id type
Diffstat (limited to 'packages/taler-wallet-cli')
-rw-r--r-- | packages/taler-wallet-cli/src/index.ts | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts index f713635a2..60db5abe8 100644 --- a/packages/taler-wallet-cli/src/index.ts +++ b/packages/taler-wallet-cli/src/index.ts @@ -39,6 +39,7 @@ import { setGlobalLogLevelFromString, summarizeTalerErrorDetail, TalerUriAction, + TransactionIdStr, WalletNotification, } from "@gnu-taler/taler-util"; import { clk } from "@gnu-taler/taler-util/clk"; @@ -423,7 +424,7 @@ transactionsCli .action(async (args) => { await withWallet(args, async (wallet) => { await wallet.client.call(WalletApiOperation.DeleteTransaction, { - transactionId: args.deleteTransaction.transactionId, + transactionId: args.deleteTransaction.transactionId as TransactionIdStr, }); }); }); @@ -438,7 +439,8 @@ transactionsCli .action(async (args) => { await withWallet(args, async (wallet) => { await wallet.client.call(WalletApiOperation.SuspendTransaction, { - transactionId: args.suspendTransaction.transactionId, + transactionId: args.suspendTransaction + .transactionId as TransactionIdStr, }); }); }); @@ -453,7 +455,8 @@ transactionsCli .action(async (args) => { await withWallet(args, async (wallet) => { await wallet.client.call(WalletApiOperation.CancelAbortingTransaction, { - transactionId: args.cancelAbortingTransaction.transactionId, + transactionId: args.cancelAbortingTransaction + .transactionId as TransactionIdStr, }); }); }); @@ -468,7 +471,7 @@ transactionsCli .action(async (args) => { await withWallet(args, async (wallet) => { await wallet.client.call(WalletApiOperation.ResumeTransaction, { - transactionId: args.resumeTransaction.transactionId, + transactionId: args.resumeTransaction.transactionId as TransactionIdStr, }); }); }); @@ -502,7 +505,7 @@ transactionsCli .action(async (args) => { await withWallet(args, async (wallet) => { await wallet.client.call(WalletApiOperation.AbortTransaction, { - transactionId: args.abortTransaction.transactionId, + transactionId: args.abortTransaction.transactionId as TransactionIdStr, }); }); }); @@ -529,7 +532,7 @@ transactionsCli .action(async (args) => { await withWallet(args, async (wallet) => { await wallet.client.call(WalletApiOperation.RetryTransaction, { - transactionId: args.retryTransaction.transactionId, + transactionId: args.retryTransaction.transactionId as TransactionIdStr, }); }); }); @@ -1413,7 +1416,7 @@ advancedCli .action(async (args) => { await withWallet(args, async (wallet) => { await wallet.client.call(WalletApiOperation.StartRefundQuery, { - transactionId: args.queryRefund.transactionId, + transactionId: args.queryRefund.transactionId as TransactionIdStr, }); }); }); |