diff options
author | Florian Dold <florian@dold.me> | 2023-04-24 20:24:23 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-04-24 20:30:01 +0200 |
commit | e4407f825960554659af276d88eb54cc4e5fde9f (patch) | |
tree | 9ce7e6841254debd508e5489908ccac7518449f4 /packages/taler-wallet-core/src/db.ts | |
parent | 974cd02066edc1a5b8279931d6b019f667051409 (diff) |
-refunds for deposit aborts
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r-- | packages/taler-wallet-core/src/db.ts | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index a8c103265..9b250cede 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -856,6 +856,7 @@ export enum RefreshOperationStatus { Pending = 10 /* ACTIVE_START */, Finished = 50 /* DORMANT_START */, FinishedWithError = 51 /* DORMANT_START + 1 */, + Suspended = 52 /* DORMANT_START + 2 */, } export enum DepositGroupOperationStatus { @@ -1649,6 +1650,19 @@ export enum DepositOperationStatus { Aborting = 11 /* OperationStatusRange.ACTIVE_START + 1 */, } +export interface DepositTrackingInfo { + // Raw wire transfer identifier of the deposit. + wireTransferId: string; + // When was the wire transfer given to the bank. + timestampExecuted: TalerProtocolTimestamp; + // Total amount transfer for this wtid (including fees) + amountRaw: AmountString; + // Wire fee amount for this exchange + wireFee: AmountString; + + exchangePub: string; +} + /** * Group of deposits made by the wallet. */ @@ -1711,17 +1725,7 @@ export interface DepositGroupRecord { // FIXME: Do we need this and should it be in this object store? trackingState?: { - [signature: string]: { - // Raw wire transfer identifier of the deposit. - wireTransferId: string; - // When was the wire transfer given to the bank. - timestampExecuted: TalerProtocolTimestamp; - // Total amount transfer for this wtid (including fees) - amountRaw: AmountString; - // Wire fee amount for this exchange - wireFee: AmountString; - exchangePub: string; - }; + [signature: string]: DepositTrackingInfo; }; } |