diff options
author | Florian Dold <florian@dold.me> | 2023-01-05 18:45:49 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-01-05 18:45:54 +0100 |
commit | 92f1b5928c764b3af12a29b97bbc3e434a82b1b0 (patch) | |
tree | 040f88aa54aec8fedb99ba57ad18218715d19e25 /packages/taler-wallet-core/src/db.ts | |
parent | 44aaa7a636ba25b37c1c26a306e64e0db75a2747 (diff) | |
download | wallet-core-92f1b5928c764b3af12a29b97bbc3e434a82b1b0.tar.xz |
wallet-core: implement insufficient balance details
For now, only for merchant payments
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r-- | packages/taler-wallet-core/src/db.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index 2bf417cac..299c7a36c 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -835,6 +835,14 @@ export enum RefreshOperationStatus { FinishedWithError = 51 /* DORMANT_START + 1 */, } +/** + * Group of refresh operations. The refreshed coins do not + * have to belong to the same exchange, but must have the same + * currency. + * + * FIXME: Should include the currency as a top-level field, + * but we need to write a migration for that. + */ export interface RefreshGroupRecord { operationStatus: RefreshOperationStatus; @@ -848,6 +856,13 @@ export interface RefreshGroupRecord { refreshGroupId: string; /** + * Currency of this refresh group. + * + * FIXME: Write a migration to add this to earlier DB versions. + */ + currency: string; + + /** * Reason why this refresh group has been created. */ reason: RefreshReason; |