@Service public class CurrencyExchangeRatesServiceImpl extends Object implements CurrencyExchangeRatesService
| Modifier and Type | Field and Description |
|---|---|
static String |
RATE_CONTRACT |
| Constructor and Description |
|---|
CurrencyExchangeRatesServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
applyRate(BigDecimal amount,
ExchangeRateBO rate) |
BigDecimal |
applyRate(Currency curFrom,
Currency curTo,
BigDecimal value) |
Map<Currency,String> |
getAllRates() |
List<ExchangeRateBO> |
getExchangeRates(Currency debtor,
Currency amount,
Currency creditor) |
public static final String RATE_CONTRACT
public Map<Currency,String> getAllRates()
getAllRates in interface CurrencyExchangeRatesServicepublic List<ExchangeRateBO> getExchangeRates(Currency debtor, Currency amount, Currency creditor)
getExchangeRates in interface CurrencyExchangeRatesServicepublic BigDecimal applyRate(BigDecimal amount, ExchangeRateBO rate)
applyRate in interface CurrencyExchangeRatesServicepublic BigDecimal applyRate(Currency curFrom, Currency curTo, BigDecimal value)
applyRate in interface CurrencyExchangeRatesServiceCopyright © 2020. All rights reserved.