From ae9f751a7cddeeb27fda10921fa47c1fa0260bac Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 28 Mar 2020 20:46:57 +0100 Subject: do return fees in history --- src/include/taler_exchange_service.h | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'src/include') diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index 928a808a2..e935c9196 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -946,7 +946,7 @@ enum TALER_EXCHANGE_ReserveTransactionType /** * Deposit into the reserve. */ - TALER_EXCHANGE_RTT_DEPOSIT, + TALER_EXCHANGE_RTT_CREDIT, /** * Withdrawal from the reserve. @@ -990,7 +990,7 @@ struct TALER_EXCHANGE_ReserveHistory /** * Information about a deposit that filled this reserve. - * @e type is #TALER_EXCHANGE_RTT_DEPOSIT. + * @e type is #TALER_EXCHANGE_RTT_CREDIT. */ struct { @@ -1017,10 +1017,21 @@ struct TALER_EXCHANGE_ReserveHistory } in_details; /** - * Signature authorizing the withdrawal for outgoing transaction. + * Information about withdraw operation. * @e type is #TALER_EXCHANGE_RTT_WITHDRAWAL. */ - json_t *out_authorization_sig; + struct + { + /** + * Signature authorizing the withdrawal for outgoing transaction. + */ + json_t *out_authorization_sig; + + /** + * Fee that was charged for the withdrawal. + */ + struct TALER_Amount fee; + } withdraw; /** * Information provided if the reserve was filled via /recoup. @@ -1084,6 +1095,11 @@ struct TALER_EXCHANGE_ReserveHistory */ struct GNUNET_TIME_Absolute timestamp; + /** + * Fee that was charged for the closing. + */ + struct TALER_Amount fee; + } close_details; } details; -- cgit v1.2.3