From 164c125528e4af078815c0156df54fa0120eed8a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 17 Apr 2017 14:01:55 +0200 Subject: introducing closing fee --- src/include/taler_exchange_service.h | 8 +++++++- src/include/taler_exchangedb_lib.h | 7 ++++++- src/include/taler_signatures.h | 5 +++++ 3 files changed, 18 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index c097dff1a..9e8caab88 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -351,10 +351,16 @@ struct TALER_EXCHANGE_WireAggregateFees struct TALER_EXCHANGE_WireAggregateFees *next; /** - * Fee to be paid. + * Fee to be paid whenever the exchange wires funds to the merchant. */ struct TALER_Amount wire_fee; + /** + * Fee to be paid when the exchange closes a reserve and wires funds + * back to a customer. + */ + struct TALER_Amount closing_fee; + /** * Time when this fee goes into effect (inclusive) */ diff --git a/src/include/taler_exchangedb_lib.h b/src/include/taler_exchangedb_lib.h index 70ae3634a..561738c22 100644 --- a/src/include/taler_exchangedb_lib.h +++ b/src/include/taler_exchangedb_lib.h @@ -332,10 +332,15 @@ struct TALER_EXCHANGEDB_AggregateFees struct TALER_EXCHANGEDB_AggregateFees *next; /** - * Fee to be paid. + * Fee to be paid for wire transfers to a merchant. */ struct TALER_Amount wire_fee; + /** + * Fee to be paid when we close a reserve and send funds back. + */ + struct TALER_Amount closing_fee; + /** * Time when this fee goes into effect (inclusive) */ diff --git a/src/include/taler_signatures.h b/src/include/taler_signatures.h index d4c5d864d..70560b4b3 100644 --- a/src/include/taler_signatures.h +++ b/src/include/taler_signatures.h @@ -938,6 +938,11 @@ struct TALER_MasterWireFeePS */ struct TALER_AmountNBO wire_fee; + /** + * Closing fee charged when we wire back funds of a reserve. + */ + struct TALER_AmountNBO closing_fee; + }; -- cgit v1.2.3