com.ibm.commerce.price.commands

Class ApplyOrderAdjustmentsCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, com.ibm.commerce.order.utils.ApplyCalculationUsagesCmd, ApplyOrderAdjustmentsCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable

    Deprecated. 

    public class ApplyOrderAdjustmentsCmdImpl
    extends com.ibm.commerce.order.utils.ApplyCalculationUsagesCmdImpl
    implements ApplyOrderAdjustmentsCmd
    Apply order adjustments against an order. First all existing order adjustments (with a calculation usage of Discount) are deleted. Then all calculation codes with a calculation usage of Discount are used to create new order adjustments. However, no orderItem adjustments for "priceOverride" orderItems are created.

    This command calls the following TaskCommands:

    This command uses the following AccessBeans:

    See Also:
    Serialized Form
    • Constructor Detail

      • ApplyOrderAdjustmentsCmdImpl

        public ApplyOrderAdjustmentsCmdImpl()
        Deprecated. 
        ApplyOrderAdjustmentsCmdImpl constructor.
    • Method Detail

      • setOrderItems

        public void setOrderItems(OrderItemAccessBean[] orderItems)
                           throws ECSystemException
        Deprecated. 
        Set the order items to process for discounts. Only order items that have not been overridden are processed for discounts. An order item with the priceOverride flag set is ignored. All order items also have their total adjustment field set to zero regardless of the state of the priceOverride flag.
        Specified by:
        setOrderItems in interface com.ibm.commerce.order.utils.ApplyCalculationUsagesCmd
        Specified by:
        setOrderItems in interface ApplyOrderAdjustmentsCmd
        Overrides:
        setOrderItems in class com.ibm.commerce.order.utils.ApplyCalculationUsagesCmdImpl
        Parameters:
        orderItems - an array of order item access beans.
        Throws:
        ECSystemException