Class InventoryQuantityValueImpl
java.lang.Object
com.commercetools.history.models.change_value.InventoryQuantityValueImpl
- All Implemented Interfaces:
InventoryQuantityValue,io.vrap.rmf.base.client.ModelBase
public class InventoryQuantityValueImpl
extends Object
implements InventoryQuantityValue, io.vrap.rmf.base.client.ModelBase
InventoryQuantityValue
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAvailable amount of stock (quantityOnStock- reserved).Overall amount of stock (availableQuantity+ reserved).inthashCode()voidsetAvailableQuantity(Integer availableQuantity) Available amount of stock (quantityOnStock- reserved).voidsetQuantityOnStock(Integer quantityOnStock) Overall amount of stock (availableQuantity+ reserved).Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.commercetools.history.models.change_value.InventoryQuantityValue
withInventoryQuantityValueMethods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
InventoryQuantityValueImpl
public InventoryQuantityValueImpl()create empty instance
-
-
Method Details
-
getQuantityOnStock
Overall amount of stock (
availableQuantity+ reserved).- Specified by:
getQuantityOnStockin interfaceInventoryQuantityValue- Returns:
- quantityOnStock
-
getAvailableQuantity
Available amount of stock (
quantityOnStock- reserved).- Specified by:
getAvailableQuantityin interfaceInventoryQuantityValue- Returns:
- availableQuantity
-
setQuantityOnStock
Description copied from interface:InventoryQuantityValueOverall amount of stock (
availableQuantity+ reserved).- Specified by:
setQuantityOnStockin interfaceInventoryQuantityValue- Parameters:
quantityOnStock- value to be set
-
setAvailableQuantity
Description copied from interface:InventoryQuantityValueAvailable amount of stock (
quantityOnStock- reserved).- Specified by:
setAvailableQuantityin interfaceInventoryQuantityValue- Parameters:
availableQuantity- value to be set
-
equals
-
hashCode
-