From 2a92ca8732195a3a317a0edc155efc0b72351272 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 30 May 2023 15:58:28 +0200 Subject: wallet-core: report possible actions in transactions list --- packages/taler-util/src/transactions-types.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'packages/taler-util/src') diff --git a/packages/taler-util/src/transactions-types.ts b/packages/taler-util/src/transactions-types.ts index c06bc7369..5f5b9d112 100644 --- a/packages/taler-util/src/transactions-types.ts +++ b/packages/taler-util/src/transactions-types.ts @@ -125,6 +125,15 @@ export enum TransactionMinorState { AcceptRefund = "accept-refund", } +export enum TransactionAction { + Delete = "delete", + Suspend = "suspend", + Resume = "resume", + Abort = "abort", + Fail = "fail", + Retry = "retry", +} + export interface TransactionsResponse { // a list of past and pending transactions sorted by pending, timestamp and transactionId. // In case two events are both pending and have the same timestamp, @@ -149,6 +158,11 @@ export interface TransactionCommon { */ txState: TransactionState; + /** + * Possible transitions based on the current state. + */ + txActions: string[]; + /** * Raw amount of the transaction (exclusive of fees or other extra costs). */ -- cgit v1.2.3