com.ibm.commerce.order.calculation
Interface CalculationCodeCalculateCmd
- All Superinterfaces:
- BusinessPolicyCommand, CalculationCmd, ECCommand, TaskCommand
- All Known Implementing Classes:
- CalculationCodeCalculateCmdImpl
- public interface CalculationCodeCalculateCmd
- extends CalculationCmd
This command is called by ApplyCalculationUsage
to calculate the result of a particular calculation
code.
Given a CalculationCode and a list of OrderItems
, calculates one
or more MonetaryAmount results for each OrderItem. Each MonetaryAmount may be
associated with a TaxCategory. 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:
ApplyCalculationUsageCmd
,
Item
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
getValues
public java.math.BigDecimal[] getValues()
- Returns the result.
getValues
public java.math.BigDecimal[] getValues(java.lang.Integer anTaxCategoryId)
- Returns the result of a particular tax category.
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.