Class CurrencyExchangeRatesServiceImpl
- java.lang.Object
-
- de.adorsys.ledgers.deposit.api.service.impl.CurrencyExchangeRatesServiceImpl
-
- All Implemented Interfaces:
CurrencyExchangeRatesService
@Service public class CurrencyExchangeRatesServiceImpl extends Object implements CurrencyExchangeRatesService
-
-
Constructor Summary
Constructors Constructor Description CurrencyExchangeRatesServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimalapplyRate(BigDecimal amount, ExchangeRateBO rate)BigDecimalapplyRate(Currency curFrom, Currency curTo, BigDecimal value)List<ExchangeRateBO>getExchangeRates(Currency debtor, Currency amount, Currency creditor)voidupdateRates()
-
-
-
Method Detail
-
updateRates
@Scheduled(cron="0 0 8 * * MON-FRI") public void updateRates() throws IOException- Specified by:
updateRatesin interfaceCurrencyExchangeRatesService- Throws:
IOException
-
getExchangeRates
public List<ExchangeRateBO> getExchangeRates(Currency debtor, Currency amount, Currency creditor)
- Specified by:
getExchangeRatesin interfaceCurrencyExchangeRatesService
-
applyRate
public BigDecimal applyRate(BigDecimal amount, ExchangeRateBO rate)
- Specified by:
applyRatein interfaceCurrencyExchangeRatesService
-
applyRate
public BigDecimal applyRate(Currency curFrom, Currency curTo, BigDecimal value)
- Specified by:
applyRatein interfaceCurrencyExchangeRatesService
-
-