com.ibm.commerce.fulfillment.commands

Interface UpdateInventoryCmd

  • 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:
    CheckInventoryCmdImpl, InventoryBaseCmdImpl, ResolveFulfillmentCenterCmdImpl, ReverseUpdateInventoryCmdImpl, UpdateInventoryCmdImpl, UpdateInventoryForOrderItemsCmdImpl


    public interface UpdateInventoryCmd
    extends TaskCommand
    UpdateInventory let you update inventory for items. There are two ways to update inventory.
    • Set one or list of order items by calling setOrderItem method.
    • Set one catalog entry by calling setCatEntryId, setQuantity and setStoreId methods. Method setQuantityMeasure is optional.
    The fulfillmentCenterId is optional.

    Calling Command: OrderProcess

    Expected Behavior: Reduce the amount of inventory in stock for a product or item. /p>

    If the update inventory fails, it throws ECApplicationException with the message key _API_BAD_INV and the error view of UpdateInventoryErrorView.

    • Method Detail

      • setCatEntryId

        void setCatEntryId(java.lang.Long aCatEntryId)
        Set a Catalog Entry Id to update the inventory.
      • setFulfillmentCenterId

        void setFulfillmentCenterId(java.lang.Integer aFulfillmentCenterId)
        Set a fulfillment center Id to update the inventory.
      • setOrderItem

        void setOrderItem(OrderItemAccessBean[] anOrderItem)
        Set a list of OrderItems to update the inventory.
      • setOrderItem

        void setOrderItem(OrderItemAccessBean anOrderItem)
        Set an OrderItem to update the inventory.
      • setOrderItem

        void setOrderItem(java.util.Vector anOrderItemList)
        Set a list of OrderItems to update the inventory.
      • setQuantity

        void setQuantity(java.lang.Double aQuantity)
        Set a quantity to update the inventory.
      • setQuantityMeasure

        void setQuantityMeasure(java.lang.String quantityMeasure)
        Set a quantity measure to update the inventory (optional).
      • setStoreId

        void setStoreId(java.lang.Integer aStoreId)
        Set a store id to update the inventory.