Class DefaultCurrencyAmountResolutionStrategy

java.lang.Object
de.hybris.platform.promotionengineservices.promotionengine.impl.DefaultCurrencyAmountResolutionStrategy
All Implemented Interfaces:
PromotionMessageParameterResolutionStrategy

public class DefaultCurrencyAmountResolutionStrategy extends Object implements PromotionMessageParameterResolutionStrategy
DefaultCurrencyAmountResolutionStrategy resolves the given RuleParameterData.getValue() attribute into a formatted currency amount, for example $200.00. The value attribute is cast into a Map<String,BigDecimal> and the given PromotionResultModel.getOrder()'s currency isocode is used as key to lookup the amount to be formatted.