Interface InventoryEntryAddQuantityAction
- All Superinterfaces:
InventoryEntryUpdateAction
,ResourceUpdateAction<InventoryEntryUpdateAction>
Updates availableQuantity
based on the new quantityOnStock
and amount of active reservations.
Example to create an instance using the builder pattern
InventoryEntryAddQuantityAction inventoryEntryAddQuantityAction = InventoryEntryAddQuantityAction.builder()
.quantity(0.3)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for InventoryEntryAddQuantityAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for InventoryEntryAddQuantityActionbuilder
(InventoryEntryAddQuantityAction template) create builder for InventoryEntryAddQuantityAction instancedeepCopy
(InventoryEntryAddQuantityAction template) factory method to create a deep copy of InventoryEntryAddQuantityAction@NotNull Long
Value to add toquantityOnStock
.of()
factory methodof
(InventoryEntryAddQuantityAction template) factory method to create a shallow copy InventoryEntryAddQuantityActionvoid
setQuantity
(Long quantity) Value to add toquantityOnStock
.static com.fasterxml.jackson.core.type.TypeReference<InventoryEntryAddQuantityAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.inventory.InventoryEntryUpdateAction
getAction, withInventoryEntryUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
ADD_QUANTITY
discriminator value for InventoryEntryAddQuantityAction- See Also:
-
-
Method Details
-
getQuantity
Value to add to
quantityOnStock
.- Returns:
- quantity
-
setQuantity
Value to add to
quantityOnStock
.- Parameters:
quantity
- value to be set
-
of
factory method- Returns:
- instance of InventoryEntryAddQuantityAction
-
of
factory method to create a shallow copy InventoryEntryAddQuantityAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static InventoryEntryAddQuantityAction deepCopy(@Nullable InventoryEntryAddQuantityAction template) factory method to create a deep copy of InventoryEntryAddQuantityAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InventoryEntryAddQuantityAction- Returns:
- builder
-
builder
create builder for InventoryEntryAddQuantityAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withInventoryEntryAddQuantityAction
default <T> T withInventoryEntryAddQuantityAction(Function<InventoryEntryAddQuantityAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<InventoryEntryAddQuantityAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-