public interface B2BCurrencyConversionService
CurrencyModel| Modifier and Type | Method and Description |
|---|---|
Double |
convertAmount(Double amount,
CurrencyModel sourceCurrency,
CurrencyModel targetCurrency)
Used to convert amount from one currency to another
|
String |
formatCurrencyAmount(Locale locale,
CurrencyModel currency,
double amount)
Formats the currency amount for the correct locale
|
Double convertAmount(Double amount, CurrencyModel sourceCurrency, CurrencyModel targetCurrency)
amount - the dollar amount to convertsourceCurrency - the current currency typetargetCurrency - the currency in which to convert toString formatCurrencyAmount(Locale locale, CurrencyModel currency, double amount)
locale - the local in which to format forcurrency - the currency typeamount - the dollar amountCopyright © 2017 SAP SE. All Rights Reserved.