com.ibm.commerce.order.commands

Interface CalculateOrderCmd

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


    public interface CalculateOrderCmd
    extends TaskCommand
    This task command is used to handle free gifts and implement the core logic of calculation. The default implementation of this command is CalculateOrderCmdImpl.
    See Also:
    CalculateOrderCmdImpl
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
      • NAME

        static final java.lang.String NAME
        The name of this command interface.
        See Also:
        Constant Field Values
      • defaultCommandClassName

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

      • setOrders

        void setOrders(OrderAccessBean[] aabOrders)
        This method sets the orders to be calculated.
        Parameters:
        aabOrders - the array of OrderAccessBeans to be calculated.
      • getOrders

        OrderAccessBean[] getOrders()
        This method returns the array of OrderAccessBean
        Returns:
        the array of OrderAccessBean
      • setUsageIds

        void setUsageIds(java.lang.Integer[] anUsageIds)
        This method sets the calculation usages.
        Parameters:
        anUsageIds - the array of calculation usage identifiers.
      • setDoFreeGift

        void setDoFreeGift(boolean doFreegift)
        This method sets the flag whether free gift handling logic will be called.
        Parameters:
        doFreegift -
      • getOutOfInventoryCatalogEntryIds

        java.lang.Long[] getOutOfInventoryCatalogEntryIds()
        This method returns the identifiers of CatalogEntries that do not have sufficient inventory, when ATP inventory is not enabled.
        Returns:
        the array of CatalogEntry identifiers.
      • getNonBuyableCatentryIds

        java.util.Vector getNonBuyableCatentryIds()
        This method returns the identifiers of CatalogEntries that are not buyable.
        Returns:
        vector of CatalogEntry identifiers
      • setCustomProperties

        void setCustomProperties(java.util.HashMap newhshCustomProperties)
        This method sets the customer properties.
        Parameters:
        newhshCustomProperties - the customer properties
      • getCustomProperties

        java.util.HashMap getCustomProperties()
        This method returns the customer properties.
        Returns:
        customer properties