com.ibm.commerce.order.calculation
Interface CalculationCodeCombineCmd
- All Superinterfaces:
- BusinessPolicyCommand, CalculationCmd, ECCommand, TaskCommand
- All Known Subinterfaces:
- TaxCalculationCodeCombineCmd
- All Known Implementing Classes:
- CalculationCodeCombineCmdImpl
- public interface CalculationCodeCombineCmd
- extends CalculationCmd
Given a set of OrderItems
in a particular Order this method
determines which CalculationCodes should be applied to which OrderItems, and
the sequence in which they should be applied.
It returns a list of elements
where each element is a
CalculationCode and a list of OrderItems to which the CalculationCode is
applicable. Each element may optionally include MonetaryAmounts (one for each
OrderItem and possibly TaxCategory in the list) in the Order currency. The
MonetaryAmounts are the result of calling the appropriate CalculationCodeCalculateMethod
for those
OrderItems, and are returned to the caller so that the caller does not have
to make that call again. The caller may optionally specify a list of
TaxCategories, in which case the MonetaryAmount results are calculated only
for CalculationRules of those TaxCategories.
- See Also:
Item
,
Group
,
CalculationCodeCalculateCmd
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
getGroups
public Group[] getGroups()
- Returns the groups.
setItems
public void setItems(Item[] aItems)
- Sets the items.
setTaxCategoryIds
public void setTaxCategoryIds(java.lang.Integer[] anTaxCategoryIds)
- Sets the tax categories.