Class InventoryEntryAddQuantityActionImpl
java.lang.Object
com.commercetools.api.models.inventory.InventoryEntryAddQuantityActionImpl
- All Implemented Interfaces:
InventoryEntryAddQuantityAction
,InventoryEntryUpdateAction
,ResourceUpdateAction<InventoryEntryUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class InventoryEntryAddQuantityActionImpl
extends Object
implements InventoryEntryAddQuantityAction, 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.InventoryEntryAddQuantityAction
ADD_QUANTITY
-
Constructor Summary
-
Method Summary
Methods inherited from interface com.commercetools.api.models.inventory.InventoryEntryAddQuantityAction
withInventoryEntryAddQuantityAction
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
-
InventoryEntryAddQuantityActionImpl
public InventoryEntryAddQuantityActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceInventoryEntryUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<InventoryEntryUpdateAction>
- Returns:
- action
-
getQuantity
Value to add to
quantityOnStock
.- Specified by:
getQuantity
in interfaceInventoryEntryAddQuantityAction
- Returns:
- quantity
-
setQuantity
Description copied from interface:InventoryEntryAddQuantityAction
Value to add to
quantityOnStock
.- Specified by:
setQuantity
in interfaceInventoryEntryAddQuantityAction
- Parameters:
quantity
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-