public interface CalculationCodeApplyCmd extends CalculationCmd
Sets a calculation code, a list of items and a corresponding list of values. Commands that extend this interface will apply each value to its corresponding item.
For sales/shipping tax only, the caller can specify a list of values for each sales/shipping tax category defined in the current store.
This is the base interface that commands registered as calculation methods of type "CalculationCodeApply" must extend. These commands include:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
static java.lang.String |
NAME
The name of this interface.
|
Modifier and Type | Method and Description |
---|---|
void |
setCode(CalculationCodeAccessBean aabCode)
Sets the calculation code.
|
void |
setItems(Item[] aItems)
Sets the items.
|
void |
setValues(java.math.BigDecimal[] adValues)
Sets the values to apply.
|
void |
setValues(java.lang.Integer anTaxCategoryId,
java.math.BigDecimal[] adValues)
Sets values to apply for a tax category.
|
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
void setCode(CalculationCodeAccessBean aabCode)
aabCode
- the calculation code.void setItems(Item[] aItems)
aItems
- the items.void setValues(java.math.BigDecimal[] adValues)
adValues
- the values.void setValues(java.lang.Integer anTaxCategoryId, java.math.BigDecimal[] adValues)
anTaxCategoryId
- the tax category ID.adValues
- the values.