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
|
Map<Currency,String> |
getAllRates() |
List<ExchangeRateBO> |
getExchangeRates(Currency debtor,
Currency amount,
Currency creditor) |
List<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.