com.ibm.commerce.order.calculation

Interface CalculationCodeQualifyCmd

  • 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:
    CalculationCodeQualifyCmdImpl


    public interface CalculationCodeQualifyCmd
    extends CalculationCmd

    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 IDCalculation Usage IDName
-2-1CalculationCodeQualify (discount)
-22-2CalculationCodeQualify (shipping)
-42-3CalculationCodeQualify (sales tax)
-62-4CalculationCodeQualify (shipping tax)
-5002-5CalculationCodeQualify (coupon)

    • Field Detail

      • COPYRIGHT

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

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

      • getQualifiedItems

        Item[] getQualifiedItems()
        Returns the qualified items.
        Returns:
        the qualified items.
      • setCode

        void setCode(CalculationCodeAccessBean aabCode)
        Sets the calculation code.
        Parameters:
        aabCode - the calculation code.
      • setItems

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