com.ibm.commerce.order.calculation

Class CalculationCodeCalculateCmdImpl

    • Field Detail

      • COPYRIGHT

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

      • CalculationCodeCalculateCmdImpl

        public CalculationCodeCalculateCmdImpl()
        Constructor for CalculationCodeCalculateCmdImpl.
    • Method Detail

      • getValues

        public java.math.BigDecimal[] getValues()
        Returns the values corresponding to the items.
        Specified by:
        getValues in interface CalculationCodeCalculateCmd
        Returns:
        the values.
      • getValues

        public java.math.BigDecimal[] getValues(java.lang.Integer anTaxCategoryId)
        Returns the values for a tax category.
        Specified by:
        getValues in interface CalculationCodeCalculateCmd
        Parameters:
        anTaxCategoryId - the tax category ID.
        Returns:
        the values for the tax category.
      • reset

        public void reset()
        Description copied from class: AbstractECTargetableCommand
        This method is called after a command has been executed. It is used to reset its states variables. After the call to reset, the command should be able to be executed again.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class CalculationCmdImpl
        See Also:
        Command.reset()
      • setTaxCategoryIds

        public void setTaxCategoryIds(java.lang.Integer[] anTaxCategoryIds)
        Sets the tax categories that should be active during execution. Normally that would be all sales/shipping tax categories defined in the current store. For sales/shipping tax only.
        Specified by:
        setTaxCategoryIds in interface CalculationCodeCalculateCmd
        Parameters:
        anTaxCategoryIds - the tax category IDs.