public interface CalculationCodeCombineCmd extends CalculationCmd
Given a calculation usage and a list of items, this command will determine the
calculation codes that are attached to the items.
It will return a list of groups (see Group
), each containing the following:
For sales/shipping tax only, the caller has to specify the tax categories that should be active during execution. Normally that would be all sales/shipping tax categories defined in the current store.
For more information, refer to the default implementation of this command,
CalculationCodeCombineCmdImpl
.
This is also the base interface that commands registered as calculation methods of type "CalculationCodeCombine" must extend. These commands include:
This command is registered as the following bootstrap calculation methods:
Calculation Method ID | Calculation Usage ID | Name |
---|---|---|
-21 | -2 | CalculationCodeCombine (shipping) |
-5001 | -5 | CalculationCodeCombine (coupon) |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
static java.lang.String |
defaultCommandClassName
The default implementation of this command.
|
static java.lang.String |
NAME
The name of this command.
|
Modifier and Type | Method and Description |
---|---|
Group[] |
getGroups()
Returns the groups.
|
void |
setItems(Item[] aItems)
Sets the items.
|
void |
setTaxCategoryIds(java.lang.Integer[] anTaxCategoryIds)
Sets the tax categories that should be active during execution.
|
getCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageId
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
static final java.lang.String COPYRIGHT
static final java.lang.String NAME
static final java.lang.String defaultCommandClassName
Group[] getGroups()
void setItems(Item[] aItems)
aItems
- the items.void setTaxCategoryIds(java.lang.Integer[] anTaxCategoryIds)
anTaxCategoryIds
- the tax category IDs.