Package sk.iway.iwcm.common
Class BasketTools
java.lang.Object
sk.iway.iwcm.common.BasketTools
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic BigDecimalconvertCurrency(BigDecimal amount, String fromCurrency, String toCurrency) Convert amount from one currency to another using defined constants kurs_FROM_TO, e.g.static BigDecimalconvertToBasketDisplayCurrency(BigDecimal amount, javax.servlet.http.HttpServletRequest request) static StringgetCountryName(String countryCode, Prop prop) static String[]static List<LabelValue>static Stringstatic booleanisCurrencySupported(String currency)
-
Field Details
-
COUNTRY_KEY_PREFIX
- See Also:
-
BASKET_PRODUCT_CURRENCY
- See Also:
-
SUPPORTED_CURRENCIES
- See Also:
-
-
Method Details
-
getSystemCurrency
-
convertToBasketDisplayCurrency
public static BigDecimal convertToBasketDisplayCurrency(BigDecimal amount, javax.servlet.http.HttpServletRequest request) -
convertCurrency
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
-
getSupportedCurrencies
-
getSupportedCurrenciesOptions
-
isCurrencySupported
-