com.ibm.commerce.order.calculation
Interface DiscountCalculationCodeCombineCmd
-
- All Superinterfaces:
- BusinessPolicyCommand, com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, CalculationCmd, CalculationCodeCombineCmd, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, TaskCommand
- All Known Implementing Classes:
- DiscountCalculationCodeCombineCmdImpl, com.ibm.commerce.order.calculation.PromotionEngineDiscountCalculationCodeCombineCmdImpl, ShippingAdjustmentCalculationCodeCombineCmdImpl
public interface DiscountCalculationCodeCombineCmd extends CalculationCodeCombineCmd
Given a calculation usage and a list of items, this command will determine the discount calculation codes that are attached to the items. It will return a list of groups (see
Group
), each containing the following:- a discount calculation code.
- the list of items that the discount calculation code is attached to.
- if rule based discount is enabled, a corresponding list of discount values.
For more information, refer to the default implementation of this command,
DiscountCalculationCodeCombineCmdImpl
.This command is registered as the following bootstrap calculation methods:
Calculation Method ID Calculation Usage ID Name -1 -1 CalculationCodeCombine (discount)
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
The IBM copyright string.static java.lang.String
defaultCommandClassName
The default implementation of this command.static java.lang.String
NAME
The name of this command.
-
Method Summary
-
Methods inherited from interface com.ibm.commerce.order.calculation.CalculationCodeCombineCmd
getGroups, setItems, setTaxCategoryIds
-
Methods inherited from interface com.ibm.commerce.order.calculation.CalculationCmd
getCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageId
-
Methods inherited from interface com.ibm.commerce.command.BusinessPolicyCommand
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
-
-
-
Field Detail
-
COPYRIGHT
static final java.lang.String COPYRIGHT
The IBM copyright string.- See Also:
- Constant Field Values
-
NAME
static final java.lang.String NAME
The name of this command.- See Also:
- Constant Field Values
-
defaultCommandClassName
static final java.lang.String defaultCommandClassName
The default implementation of this command.- See Also:
- Constant Field Values
-
-