@gradientedge/commercetools-utils
    Preparing search index...

    Interface CartSetLineItemInventoryModeAction

    Sets the inventory mode for a specific Line Item in the Cart. When changing a Line Item's inventory mode to ReserveOnCart, a reservation is automatically created if sufficient stock is available. When changing from ReserveOnCart to another mode, the reservation is released.

    interface CartSetLineItemInventoryModeAction {
        action: "setLineItemInventoryMode";
        inventoryMode?: InventoryMode;
        lineItemId?: string;
        lineItemKey?: string;
    }

    Hierarchy (View Summary)

    Index
    action: "setLineItemInventoryMode"
    inventoryMode?: InventoryMode

    Inventory mode specific to the Line Item only, and valid for the entire quantity of the Line Item. Set only if the inventory mode should be different from the inventoryMode specified on the Cart.

    lineItemId?: string

    id of the LineItem to update. Either lineItemId or lineItemKey is required.

    lineItemKey?: string

    key of the LineItem to update. Either lineItemId or lineItemKey is required.