public interface CurrencyExchangeRatesService
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
applyRate(BigDecimal amount,
ExchangeRateBO rate) |
BigDecimal |
applyRate(Currency from,
Currency to,
BigDecimal value)
From amount to debtor or from amount to creditor
|
List<ExchangeRateBO> |
getExchangeRates(Currency debtor,
Currency amount,
Currency creditor) |
void |
updateRates()
Updates Rates whenever is called out of scheduling
|
void updateRates()
throws IOException
IOExceptionList<ExchangeRateBO> getExchangeRates(Currency debtor, Currency amount, Currency creditor)
BigDecimal applyRate(BigDecimal amount, ExchangeRateBO rate)
amount - big decimal amountrate - rate to apply to amountBigDecimal applyRate(Currency from, Currency to, BigDecimal value)
from - amount currencyto - debtor/creditor currencyvalue - big decimal value to apply rate toCopyright © 2020. All rights reserved.