diff options
author | Florian Dold <florian@dold.me> | 2023-01-11 17:12:08 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-01-11 17:14:49 +0100 |
commit | 143a4fe4ac5b8724cf6e13a704e88daa99dd4202 (patch) | |
tree | 07b2fe6d993ae46838bc4072db8eba609bbb1801 /packages/taler-util/src/transactions-types.ts | |
parent | 5fc0cb7927e7a81a80129f6165b2027e72b89d33 (diff) | |
download | wallet-core-143a4fe4ac5b8724cf6e13a704e88daa99dd4202.tar.xz |
wallet-core: refresh when aborting payments
Diffstat (limited to 'packages/taler-util/src/transactions-types.ts')
-rw-r--r-- | packages/taler-util/src/transactions-types.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/taler-util/src/transactions-types.ts b/packages/taler-util/src/transactions-types.ts index 62caaa055..59116a150 100644 --- a/packages/taler-util/src/transactions-types.ts +++ b/packages/taler-util/src/transactions-types.ts @@ -49,6 +49,15 @@ import { TransactionIdStr, } from "./wallet-types.js"; +export enum ExtendedStatus { + Pending = "pending", + Done = "done", + Aborting = "aborting", + Aborted = "aborted", + Failed = "failed", + KycRequired = "kyc-required", +} + export interface TransactionsRequest { /** * return only transactions in the given currency @@ -80,6 +89,8 @@ export interface TransactionCommon { // main timestamp of the transaction timestamp: TalerProtocolTimestamp; + extendedStatus: ExtendedStatus; + // true if the transaction is still pending, false otherwise // If a transaction is not longer pending, its timestamp will be updated, // but its transactionId will remain unchanged |