diff options
author | Florian Dold <florian@dold.me> | 2023-05-25 19:26:40 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-05-25 19:26:40 +0200 |
commit | fe8749c3f81547d080ea23d580497750d52fed91 (patch) | |
tree | 2c0e8960fa33fc318b460538fd09fe33e5896500 /packages/taler-util | |
parent | 8624d798b799d78a4b6393493a0750027094904d (diff) | |
download | wallet-core-fe8749c3f81547d080ea23d580497750d52fed91.tar.xz |
wallet-core: implement cancelAbortingTransaction for deposit groups
Diffstat (limited to 'packages/taler-util')
-rw-r--r-- | packages/taler-util/src/wallet-types.ts | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index 1ede15919..38358e734 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -396,7 +396,7 @@ export interface PrepareTipResult { /** * Unique ID for the tip assigned by the wallet. * Typically different from the merchant-generated tip ID. - * + * * @deprecated use transactionId instead */ walletTipId: string; @@ -1144,7 +1144,7 @@ export interface ManualWithdrawalDetails { /** * Number of coins that would be used for withdrawal. - * + * * The UIs should warn if this number is too high (rougly at >100). */ numCoins: number; @@ -1713,6 +1713,16 @@ export const codecForAcceptTipRequest = (): Codec<AcceptTipRequest> => .property("walletTipId", codecForString()) .build("AcceptTipRequest"); +export interface CancelAbortingTransactionRequest { + transactionId: TransactionIdStr; +} + +export const codecForCancelAbortingTransactionRequest = + (): Codec<CancelAbortingTransactionRequest> => + buildCodecForObject<CancelAbortingTransactionRequest>() + .property("transactionId", codecForTransactionIdStr()) + .build("CancelAbortingTransactionRequest"); + export interface SuspendTransactionRequest { transactionId: TransactionIdStr; } |