Interface CartSetLineItemInventoryModeAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
CartSetLineItemInventoryModeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartSetLineItemInventoryModeAction cartSetLineItemInventoryModeAction = CartSetLineItemInventoryModeAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartSetLineItemInventoryModeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartSetLineItemInventoryModeActionbuilder
(CartSetLineItemInventoryModeAction template) create builder for CartSetLineItemInventoryModeAction instancedeepCopy
(CartSetLineItemInventoryModeAction template) factory method to create a deep copy of CartSetLineItemInventoryModeActionInventory mode specific to the Line Item only, and valid for the entirequantity
of the Line Item.id
of the LineItem to update.key
of the LineItem to update.of()
factory methodof
(CartSetLineItemInventoryModeAction template) factory method to create a shallow copy CartSetLineItemInventoryModeActionvoid
setInventoryMode
(InventoryMode inventoryMode) Inventory mode specific to the Line Item only, and valid for the entirequantity
of the Line Item.void
setLineItemId
(String lineItemId) id
of the LineItem to update.void
setLineItemKey
(String lineItemKey) key
of the LineItem to update.static com.fasterxml.jackson.core.type.TypeReference<CartSetLineItemInventoryModeAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_LINE_ITEM_INVENTORY_MODE
discriminator value for CartSetLineItemInventoryModeAction- See Also:
-
-
Method Details
-
getLineItemId
String getLineItemId()id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemId
-
getLineItemKey
String getLineItemKey()key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemKey
-
getInventoryMode
InventoryMode getInventoryMode()Inventory mode specific to the Line Item only, and valid for the entire
quantity
of the Line Item. Set only if the inventory mode should be different from theinventoryMode
specified on the Cart.- Returns:
- inventoryMode
-
setLineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemId
- value to be set
-
setLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemKey
- value to be set
-
setInventoryMode
Inventory mode specific to the Line Item only, and valid for the entire
quantity
of the Line Item. Set only if the inventory mode should be different from theinventoryMode
specified on the Cart.- Parameters:
inventoryMode
- value to be set
-
of
factory method- Returns:
- instance of CartSetLineItemInventoryModeAction
-
of
factory method to create a shallow copy CartSetLineItemInventoryModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartSetLineItemInventoryModeAction deepCopy(@Nullable CartSetLineItemInventoryModeAction template) factory method to create a deep copy of CartSetLineItemInventoryModeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetLineItemInventoryModeAction- Returns:
- builder
-
builder
static CartSetLineItemInventoryModeActionBuilder builder(CartSetLineItemInventoryModeAction template) create builder for CartSetLineItemInventoryModeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetLineItemInventoryModeAction
default <T> T withCartSetLineItemInventoryModeAction(Function<CartSetLineItemInventoryModeAction, 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<CartSetLineItemInventoryModeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-