com.ibm.commerce.order.calculation
Interface CalculationRuleCalculateCmd
- All Superinterfaces:
- BusinessPolicyCommand, CalculationCmd, ECCommand, TaskCommand
- All Known Implementing Classes:
- CalculationRuleCalculateCmdImpl
- public interface CalculationRuleCalculateCmd
- extends CalculationCmd
This command is called by CalculationRuleCombine
to calculate the result of a particular calculation
rule.
Given a CalculationRule, and one or more OrderItems
in a
particular Order, this method returns a MonetaryAmount result for each
OrderItem. The currency of the MonetaryAmount result is the currency of the
Order (the "Order currency").
- See Also:
CalculationRuleCombineCmd
,
Item
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
defaultCommandClassName
public static final java.lang.String defaultCommandClassName
NAME
public static final java.lang.String NAME
getValues
public java.math.BigDecimal[] getValues()
- Returns the result.
setItems
public void setItems(Item[] aItems)
- Sets the items.
setRule
public void setRule(CalculationRuleAccessBean aabRule)
- Sets the calculation rule.