Class UpdateInventoryCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, CheckInventoryCmd, ReverseUpdateInventoryCmd, UpdateInventoryCmd,,,,,,

    public class UpdateInventoryCmdImpl
    extends InventoryBaseCmdImpl
    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.

    See Also:
    Serialized Form