com.ibm.commerce.order.calculation
Interface CalculationCodeApplyCmd

All Superinterfaces:
BusinessPolicyCommand, CalculationCmd, ECCommand, TaskCommand
All Known Subinterfaces:
DiscountCalculationCodeApplyCmd, SalesTaxCalculationCodeApplyCmd, ShippingCalculationCodeApplyCmd, ShippingTaxCalculationCodeApplyCmd
All Known Implementing Classes:
TaxCalculationCodeApplyCmdImpl

public interface CalculationCodeApplyCmd
extends CalculationCmd

This command is called by ApplyCalculationUsage to apply the result of CalculationCodeCalculate to the items.
This method applies a list of MonetaryAmounts to a list of OrderItems, as specified by a CalculationCode.

See Also:
ApplyCalculationUsageCmd, CalculationCodeCalculateCmd, Item

Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String defaultCommandClassName
           
static java.lang.String NAME
           
 
Method Summary
 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 be applied to the items.
 void setValues(java.lang.Integer anTaxCategoryId, java.math.BigDecimal[] adValues)
          Sets the values to be applied to the items for a particular tax category.
 
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.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

defaultCommandClassName

public static final java.lang.String defaultCommandClassName

NAME

public static final java.lang.String NAME
Method Detail

setCode

public void setCode(CalculationCodeAccessBean aabCode)
Sets the calculation code.

setItems

public void setItems(Item[] aItems)
Sets the items.

setValues

public void setValues(java.math.BigDecimal[] adValues)
Sets the values to be applied to the items.

setValues

public void setValues(java.lang.Integer anTaxCategoryId,
                      java.math.BigDecimal[] adValues)
Sets the values to be applied to the items for a particular tax category.