aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/db.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-10-16 22:18:24 +0200
committerFlorian Dold <florian@dold.me>2022-10-16 22:18:24 +0200
commitb52b074a8dd119347307f1face35c1c60eb94c44 (patch)
treefb2f9597eaeb95f85c994949cfee0424307bb71e /packages/taler-wallet-core/src/db.ts
parent8d4a7d6103032a85c81240d9fb0de32dd44ec435 (diff)
downloadwallet-core-b52b074a8dd119347307f1face35c1c60eb94c44.tar.xz
wallet-core: show instructed amount as raw amount for withdrawal
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r--packages/taler-wallet-core/src/db.ts29
1 files changed, 24 insertions, 5 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts
index aa74e327f..258096433 100644
--- a/packages/taler-wallet-core/src/db.ts
+++ b/packages/taler-wallet-core/src/db.ts
@@ -1357,11 +1357,6 @@ export interface WithdrawalGroupRecord {
status: WithdrawalGroupStatus;
/**
- * Amount that was sent by the user to fund the reserve.
- */
- instructedAmount: AmountJson;
-
- /**
* Wire information (as payto URI) for the bank account that
* transferred funds for this reserve.
*
@@ -1375,12 +1370,36 @@ export interface WithdrawalGroupRecord {
restrictAge?: number;
/**
+ * Amount that was sent by the user to fund the reserve.
+ */
+ instructedAmount: AmountJson;
+
+ /**
+ * Amount that was observed when querying the reserve that
+ * we are withdrawing from.
+ *
+ * Useful for diagnostics.
+ */
+ reserveBalanceAmount?: AmountJson;
+
+ /**
* Amount including fees (i.e. the amount subtracted from the
* reserve to withdraw all coins in this withdrawal session).
+ *
+ * (Initial amount confirmed by the user, might differ with denomSel
+ * on reselection.)
*/
rawWithdrawalAmount: AmountJson;
/**
+ * Amount that will be added to the balance when the withdrawal succeeds.
+ *
+ * (Initial amount confirmed by the user, might differ with denomSel
+ * on reselection.)
+ */
+ effectiveWithdrawalAmount: AmountJson;
+
+ /**
* Denominations selected for withdrawal.
*/
denomsSel: DenomSelectionState;