diff options
author | Florian Dold <florian@dold.me> | 2023-05-30 15:58:28 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-05-30 15:58:28 +0200 |
commit | 2a92ca8732195a3a317a0edc155efc0b72351272 (patch) | |
tree | 0a9acdb7014b3a4018f904ad307b32f7eb40f848 /packages/taler-util/src | |
parent | 000359a5e746d9b704b05f2f3eb8442e10a31f75 (diff) | |
download | wallet-core-2a92ca8732195a3a317a0edc155efc0b72351272.tar.xz |
wallet-core: report possible actions in transactions list
Diffstat (limited to 'packages/taler-util/src')
-rw-r--r-- | packages/taler-util/src/transactions-types.ts | 14 |
1 files changed, 14 insertions, 0 deletions
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, @@ -150,6 +159,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). */ amountRaw: AmountString; |