Class: CurrencyContext
Constructors
Constructor
new CurrencyContext(
rateFrom,rateTo,partnerCurrency,presentmentCurrency?):CurrencyContext
Parameters
rateFrom
number
rateTo
number
partnerCurrency
Currency
presentmentCurrency?
Currency
Returns
CurrencyContext
Methods
code()
code():
Currency
Returns
Currency
The currency code for the currency being used for monetary display.
conversionRequired()
conversionRequired():
boolean
Returns
boolean
true if the conversion is required, false otherwise.
getConvertedSubunits()
getConvertedSubunits(
amount):number
Converts a monetary value from a workflow in a partner specified currency to the units of the currency being used for display.
Parameters
amount
number
The amount in minor units to convert.
Returns
number