com.ibm.commerce.order.calculation
Interface CalculationRuleCombineCmd
- All Superinterfaces:
- BusinessPolicyCommand, CalculationCmd, ECCommand, TaskCommand
- All Known Implementing Classes:
- CalculationRuleCombineCmdImpl
- public interface CalculationRuleCombineCmd
- extends CalculationCmd
This command is called by ApplyCalculationUsage
to identify the calculation rules the items
are associated with.
Given a list of OrderItems, and a CalculationCode, this method determines
which CalculationRules should be applied to each of the OrderItems. The
caller can optionally specify a list of Taxcategories, in which case only
CalculationRules with those TaxCategories are used.
It returns a list of elements. Each element has a CalculationRule, a list of
OrderItems, and may also have a MonetaryAmount (in the Order currency) for
each OrderItem in the list. The MonetaryAmounts represent the result of
calling the CalculationRuleCalculateMethod
, and are returned to the caller so that the
caller does not have to call that method again.
- See Also:
ApplyCalculationUsageCmd
,
Item
,
CalculationRuleCalculateCmd
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
getRules
public CalculationRuleAccessBean[] getRules()
- Returns the calculation rules.
getValues
public java.math.BigDecimal[] getValues(java.lang.Integer anRuleId)
- Returns the result of a particular calculation rule.
setCode
public void setCode(CalculationCodeAccessBean aabCode)
- Sets the calculation code.
setItems
public void setItems(Item[] aItems)
- Sets the items.
setTaxCategoryIds
public void setTaxCategoryIds(java.lang.Integer[] anTaxCategoryIds)
- Sets the tax categories.