Package de.hybris.platform.b2b.services
Interface B2BCurrencyConversionService
-
- All Known Implementing Classes:
DefaultB2BCurrencyConversionService
public interface B2BCurrencyConversionService
A service aroundCurrencyModel
- Spring Bean ID:
- b2bCurrencyConversionService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Double
convertAmount(java.lang.Double amount, CurrencyModel sourceCurrency, CurrencyModel targetCurrency)
Used to convert amount from one currency to anotherjava.lang.String
formatCurrencyAmount(java.util.Locale locale, CurrencyModel currency, double amount)
Formats the currency amount for the correct locale
-
-
-
Method Detail
-
convertAmount
java.lang.Double convertAmount(java.lang.Double amount, CurrencyModel sourceCurrency, CurrencyModel targetCurrency)
Used to convert amount from one currency to another- Parameters:
amount
- the dollar amount to convertsourceCurrency
- the current currency typetargetCurrency
- the currency in which to convert to- Returns:
- converted amount
-
formatCurrencyAmount
java.lang.String formatCurrencyAmount(java.util.Locale locale, CurrencyModel currency, double amount)
Formats the currency amount for the correct locale- Parameters:
locale
- the local in which to format forcurrency
- the currency typeamount
- the dollar amount- Returns:
- the String representation of the currency correctly formatted
-
-