Class CurrencyConfiguration

Object
ch.aaap.harvestclient.core.CurrencyConfiguration

public class CurrencyConfiguration extends Object
  • Constructor Details

    • CurrencyConfiguration

      public CurrencyConfiguration(InputStream in)
  • Method Details

    • isValidCode

      public boolean isValidCode(String code)
      Parameters:
      code - a three letter currency code (e.g. CHF)
      Returns:
      true if this currency code will be recognized by Harvest
    • getCurrencyName

      public Optional<String> getCurrencyName(String code)
      Parameters:
      code - a three letter currency code
      Returns:
      the full name of the currency, or Optional.empty() if the code is not valid
      See Also: