Class SimpleInventoryItemQuantityAdjustment
java.lang.Object
dev.getelements.elements.sdk.model.inventory.SimpleInventoryItemQuantityAdjustment
Represents a request to adjust an inventory item quantity for a given user by a delta amount.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns the delta to be applied to the inventory item quantity (positive or negative).Returns the ID of the user whose inventory to modify.inthashCode()voidsetQuantityDelta(int quantityDelta) Sets the delta to be applied to the inventory item quantity (positive or negative).voidSets the ID of the user whose inventory to modify.
-
Constructor Details
-
SimpleInventoryItemQuantityAdjustment
public SimpleInventoryItemQuantityAdjustment()Creates a new instance.
-
-
Method Details
-
getUserId
Returns the ID of the user whose inventory to modify.- Returns:
- the user ID
-
setUserId
Sets the ID of the user whose inventory to modify.- Parameters:
userId- the user ID
-
getQuantityDelta
public int getQuantityDelta()Returns the delta to be applied to the inventory item quantity (positive or negative).- Returns:
- the quantity delta
-
setQuantityDelta
public void setQuantityDelta(int quantityDelta) Sets the delta to be applied to the inventory item quantity (positive or negative).- Parameters:
quantityDelta- the quantity delta
-
equals
-
hashCode
public int hashCode()
-