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