diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-20 01:50:26 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-20 01:50:26 +0200 |
commit | f693e25793f9e8f75b80b11b066ed209e8aa4c1c (patch) | |
tree | 07bd275d003080389d67ed142b7673bab469c40f /src/include | |
parent | 1d8da4bf8442e4864e877a665c876d0cd5e03de8 (diff) |
introduce refund fee
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_exchange_service.h | 7 | ||||
-rw-r--r-- | src/include/taler_signatures.h | 13 |
2 files changed, 19 insertions, 1 deletions
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 @@ -640,6 +640,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.) */ @@ -736,6 +743,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.) */ |