Package de.hybris.platform.b2b.services
Interface B2BCurrencyConversionService
- All Known Implementing Classes:
DefaultB2BCurrencyConversionService
public interface B2BCurrencyConversionService
A service around
CurrencyModel- Spring Bean ID:
- b2bCurrencyConversionService
-
Method Summary
Modifier and TypeMethodDescriptionconvertAmount(Double amount, CurrencyModel sourceCurrency, CurrencyModel targetCurrency) Used to convert amount from one currency to anotherformatCurrencyAmount(Locale locale, CurrencyModel currency, double amount) Formats the currency amount for the correct locale
-
Method Details
-
convertAmount
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
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
-