Class CartSetLineItemInventoryModeActionImpl
java.lang.Object
com.commercetools.api.models.cart.CartSetLineItemInventoryModeActionImpl
- All Implemented Interfaces:
CartSetLineItemInventoryModeAction
,CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class CartSetLineItemInventoryModeActionImpl
extends Object
implements CartSetLineItemInventoryModeAction, io.vrap.rmf.base.client.ModelBase
CartSetLineItemInventoryModeAction
-
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.cart.CartSetLineItemInventoryModeAction
SET_LINE_ITEM_INVENTORY_MODE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Inventory 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.int
hashCode()
void
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.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.cart.CartSetLineItemInventoryModeAction
withCartSetLineItemInventoryModeAction
Methods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
withCartUpdateAction
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
CartSetLineItemInventoryModeActionImpl
public CartSetLineItemInventoryModeActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceCartUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CartUpdateAction>
- Returns:
- action
-
getLineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
getLineItemId
in interfaceCartSetLineItemInventoryModeAction
- Returns:
- lineItemId
-
getLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
getLineItemKey
in interfaceCartSetLineItemInventoryModeAction
- Returns:
- lineItemKey
-
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.- Specified by:
getInventoryMode
in interfaceCartSetLineItemInventoryModeAction
- Returns:
- inventoryMode
-
setLineItemId
Description copied from interface:CartSetLineItemInventoryModeAction
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemId
in interfaceCartSetLineItemInventoryModeAction
- Parameters:
lineItemId
- value to be set
-
setLineItemKey
Description copied from interface:CartSetLineItemInventoryModeAction
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemKey
in interfaceCartSetLineItemInventoryModeAction
- Parameters:
lineItemKey
- value to be set
-
setInventoryMode
Description copied from interface:CartSetLineItemInventoryModeAction
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.- Specified by:
setInventoryMode
in interfaceCartSetLineItemInventoryModeAction
- Parameters:
inventoryMode
- value to be set
-
equals
-
hashCode
public int hashCode()
-