Class BasketTools

java.lang.Object
sk.iway.iwcm.common.BasketTools

public class BasketTools extends Object
  • Field Details

  • Method Details

    • getSystemCurrency

      public static String getSystemCurrency()
    • convertToBasketDisplayCurrency

      public static BigDecimal convertToBasketDisplayCurrency(BigDecimal amount, javax.servlet.http.HttpServletRequest request)
    • convertCurrency

      public static BigDecimal convertCurrency(BigDecimal amount, String fromCurrency, String toCurrency)
      Convert amount from one currency to another using defined constants kurs_FROM_TO, e.g. kurz_eur_usd=1.123
      Parameters:
      amount -
      fromCurrency -
      toCurrency -
      Returns:
    • getCountryName

      public static String getCountryName(String countryCode, Prop prop)
    • getSupportedCurrencies

      public static String[] getSupportedCurrencies()
    • getSupportedCurrenciesOptions

      public static List<LabelValue> getSupportedCurrenciesOptions()
    • isCurrencySupported

      public static boolean isCurrencySupported(String currency)