taler-android

Android apps for GNU Taler (wallet, PoS, cashier)
Log | Files | Refs | README | LICENSE

ExchangeFees.kt (1313B)


      1 /*
      2  * This file is part of GNU Taler
      3  * (C) 2020 Taler Systems S.A.
      4  *
      5  * GNU Taler is free software; you can redistribute it and/or modify it under the
      6  * terms of the GNU General Public License as published by the Free Software
      7  * Foundation; either version 3, or (at your option) any later version.
      8  *
      9  * GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
     10  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
     11  * A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
     12  *
     13  * You should have received a copy of the GNU General Public License along with
     14  * GNU Taler; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>
     15  */
     16 
     17 package net.taler.wallet.exchanges
     18 
     19 import net.taler.common.Amount
     20 import net.taler.common.Timestamp
     21 
     22 
     23 data class CoinFee(
     24     val coin: Amount,
     25     val quantity: Int,
     26     val feeDeposit: Amount,
     27     val feeRefresh: Amount,
     28     val feeRefund: Amount,
     29     val feeWithdraw: Amount
     30 )
     31 
     32 data class WireFee(
     33     val start: Timestamp,
     34     val end: Timestamp,
     35     val wireFee: Amount,
     36     val closingFee: Amount
     37 )
     38 
     39 data class ExchangeFees(
     40     val withdrawFee: Amount,
     41     val overhead: Amount,
     42     val earliestDepositExpiration: Timestamp,
     43     val coinFees: List<CoinFee>,
     44     val wireFees: List<WireFee>
     45 )