From f693e25793f9e8f75b80b11b066ed209e8aa4c1c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 20 Apr 2016 01:50:26 +0200 Subject: introduce refund fee --- src/include/taler_exchange_service.h | 7 ++++++- src/include/taler_signatures.h | 13 +++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index e52e94d9a..ffd420586 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -122,9 +122,14 @@ struct TALER_EXCHANGE_DenomPublicKey struct TALER_Amount fee_deposit; /** - *The applicable fee to melt/refresh a coin of this denomination + * The applicable fee to melt/refresh a coin of this denomination */ struct TALER_Amount fee_refresh; + + /** + * The applicable fee to refund a coin of this denomination + */ + struct TALER_Amount fee_refund; }; diff --git a/src/include/taler_signatures.h b/src/include/taler_signatures.h index bd892e793..154e11610 100644 --- a/src/include/taler_signatures.h +++ b/src/include/taler_signatures.h @@ -639,6 +639,13 @@ struct TALER_DenominationKeyValidityPS */ struct TALER_AmountNBO fee_refresh; + /** + * The fee the exchange charges when a coin of this type is refunded. + * (can be zero). Note that refund fees are charged to the customer; + * if a refund is given, the deposit fee is also refunded. + */ + struct TALER_AmountNBO fee_refund; + /** * Hash code of the denomination public key. (Used to avoid having * the variable-size RSA key in this struct.) @@ -735,6 +742,12 @@ struct TALER_ExchangeKeyValidityPS */ struct TALER_AmountNBO fee_refresh; + /** + * The fee the exchange charges when a coin of this type is refreshed. + * (can be zero). + */ + struct TALER_AmountNBO fee_refund; + /** * Hash code of the denomination public key. (Used to avoid having * the variable-size RSA key in this struct.) -- cgit v1.2.3