From b52b074a8dd119347307f1face35c1c60eb94c44 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 16 Oct 2022 22:18:24 +0200 Subject: wallet-core: show instructed amount as raw amount for withdrawal --- packages/taler-wallet-core/src/db.ts | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) (limited to 'packages/taler-wallet-core/src/db.ts') 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 @@ -1356,11 +1356,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. @@ -1374,12 +1369,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. */ -- cgit v1.2.3