com.ibm.commerce.order.calculation

Interface CalculationRuleCalculateCmd

  • All Superinterfaces:
    BusinessPolicyCommand, com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, CalculationCmd, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, TaskCommand
    All Known Implementing Classes:
    CalculationRuleCalculateCmdImpl


    public interface CalculationRuleCalculateCmd
    extends CalculationCmd

    Given a calculation rule and a list of items, this command will calculate the value of the calculation rule for each item.

    For more information, refer to the default implementation of this command, CalculationRuleCalculateCmdImpl.

    This is also the base interface that commands registered as calculation methods of type "CalculationRuleCalculate" must extend.

    This command is registered as the following bootstrap calculation methods:

    Calculation Method IDCalculation Usage IDName
    -7-1CalculationRuleCalculate (discount)
    -27-2CalculationRuleCalculate (shipping)
    -47-3CalculationRuleCalculate (sales tax)
    -67-4CalculationRuleCalculate (shipping tax)
    -5007-5CalculationRuleCalculate (coupon)

    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        The IBM copyright field notice.
        See Also:
        Constant Field Values
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The default implementation of this command.
        See Also:
        Constant Field Values
      • FILTER_SCALES_BY_STORE

        static final java.lang.String FILTER_SCALES_BY_STORE
        The "filterScalesByStore" default property.
        See Also:
        Constant Field Values
    • Method Detail

      • getValues

        java.math.BigDecimal[] getValues()
        Returns the values corresponding to the items.
        Returns:
        the values.
      • setItems

        void setItems(Item[] aItems)
        Sets the items.
        Parameters:
        aItems - the items.
      • setRule

        void setRule(CalculationRuleAccessBean aabRule)
        Sets the calculation rule.
        Parameters:
        aabRule - the calculation rule.