diff options
Diffstat (limited to 'packages/taler-util/src/transactions-types.ts')
-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; |