Class InventoryEntryRemoveQuantityActionImpl
java.lang.Object
com.commercetools.api.models.inventory.InventoryEntryRemoveQuantityActionImpl
- All Implemented Interfaces:
InventoryEntryRemoveQuantityAction
,InventoryEntryUpdateAction
,ResourceUpdateAction<InventoryEntryUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class InventoryEntryRemoveQuantityActionImpl
extends Object
implements InventoryEntryRemoveQuantityAction, io.vrap.rmf.base.client.ModelBase
Updates availableQuantity
based on the new quantityOnStock
and amount of active reservations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.inventory.InventoryEntryRemoveQuantityAction
REMOVE_QUANTITY
-
Constructor Summary
-
Method Summary
Methods inherited from interface com.commercetools.api.models.inventory.InventoryEntryRemoveQuantityAction
withInventoryEntryRemoveQuantityAction
Methods inherited from interface com.commercetools.api.models.inventory.InventoryEntryUpdateAction
withInventoryEntryUpdateAction
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
InventoryEntryRemoveQuantityActionImpl
public InventoryEntryRemoveQuantityActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceInventoryEntryUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<InventoryEntryUpdateAction>
- Returns:
- action
-
getQuantity
Value to remove from
quantityOnStock
.- Specified by:
getQuantity
in interfaceInventoryEntryRemoveQuantityAction
- Returns:
- quantity
-
setQuantity
Description copied from interface:InventoryEntryRemoveQuantityAction
Value to remove from
quantityOnStock
.- Specified by:
setQuantity
in interfaceInventoryEntryRemoveQuantityAction
- Parameters:
quantity
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-