Given a calculation code and a list of items, this command will determine the items that are qualified for the calculation code.
For more information, refer to the default implementation of this command,
CalculationCodeQualifyCmdImpl
.
This is also the base interface that commands registered as calculation methods of type "CalculationCodeQualify" must extend.
This command is registered as the following bootstrap calculation methods:
Calculation Method ID | Calculation Usage ID | Name |
---|---|---|
-2 | -1 | CalculationCodeQualify (discount) |
-22 | -2 | CalculationCodeQualify (shipping) |
-42 | -3 | CalculationCodeQualify (sales tax) |
-62 | -4 | CalculationCodeQualify (shipping tax) |
-5002 | -5 | CalculationCodeQualify (coupon) |
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
Item[] |
getQualifiedItems() Returns the qualified items. |
void |
setCode(CalculationCodeAccessBean aabCode) Sets the calculation code. |
void |
setItems(
Item[] aItems) Sets the items. |
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 |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String NAME
public static final java.lang.String defaultCommandClassName
Method Detail |
---|
public Item[] getQualifiedItems()
public void setCode(CalculationCodeAccessBean aabCode)
aabCode
- the calculation code.public void setItems(Item[] aItems)
aItems
- the items.