Interface CurrencyExchangeRatesService


  • public interface CurrencyExchangeRatesService
    • Method Detail

      • updateRates

        void updateRates()
                  throws IOException
        Updates Rates whenever is called out of scheduling
        Throws:
        IOException
      • applyRate

        BigDecimal applyRate​(BigDecimal amount,
                             ExchangeRateBO rate)
        Parameters:
        amount - big decimal amount
        rate - rate to apply to amount
        Returns:
        big decimal representation of value with rate applied
      • applyRate

        BigDecimal applyRate​(Currency from,
                             Currency to,
                             BigDecimal value)
        From amount to debtor or from amount to creditor
        Parameters:
        from - amount currency
        to - debtor/creditor currency
        value - big decimal value to apply rate to
        Returns:
        big decimal representation of value with rate applied