Interface InventoryEntryRemoveQuantityAction

All Superinterfaces:
InventoryEntryUpdateAction, ResourceUpdateAction<InventoryEntryUpdateAction>

public interface InventoryEntryRemoveQuantityAction extends InventoryEntryUpdateAction

Removes a specific quantity from quantityOnStock. This changes the availableQuantity, based on the number of active reservations. You can update quantityOnStock to values below zero.

Carts with existing ReserveOnCart reservations will not be invalidated by this update action and can still be ordered.


Example to create an instance using the builder pattern

     InventoryEntryRemoveQuantityAction inventoryEntryRemoveQuantityAction = InventoryEntryRemoveQuantityAction.builder()
             .quantity(0.3)
             .build()