diff options
Diffstat (limited to 'src/include/taler_signatures.h')
-rw-r--r-- | src/include/taler_signatures.h | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/src/include/taler_signatures.h b/src/include/taler_signatures.h index ef241c8b8..35967399d 100644 --- a/src/include/taler_signatures.h +++ b/src/include/taler_signatures.h @@ -1,6 +1,6 @@ /* This file is part of TALER - Copyright (C) 2014, 2015, 2016 GNUnet e.V. + Copyright (C) 2014-2017 GNUnet e.V. TALER is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -78,6 +78,11 @@ */ #define TALER_SIGNATURE_MASTER_TEST_DETAILS 1027 +/** + * Fees charged per (aggregate) wire transfer to the merchant. + */ +#define TALER_SIGNATURE_MASTER_WIRE_FEES 1028 + /*********************************************/ /* Exchange online signatures (with signing key) */ @@ -879,6 +884,37 @@ struct TALER_MasterWireDetailsPS }; + +/** + * @brief Information signed by the exchange's master + * key stating the wire fee to be paid per wire transfer. + */ +struct TALER_MasterWireFeePS +{ + + /** + * Purpose is #TALER_SIGNATURE_MASTER_WIRE_FEES. + */ + struct GNUNET_CRYPTO_EccSignaturePurpose purpose; + + /** + * Start date when the fee goes into effect. + */ + struct GNUNET_TIME_AbsoluteNBO start_date; + + /** + * End date when the fee stops being in effect (exclusive) + */ + struct GNUNET_TIME_AbsoluteNBO end_date; + + /** + * Fee charged to the merchant per wire transfer. + */ + struct TALER_AmountNBO wire_fee; + +}; + + /** * @brief Format used to generate the signature on a request to obtain * the wire transfer identifier associated with a deposit. |