Class CartSetLineItemCustomTypeActionImpl
java.lang.Object
com.commercetools.api.models.cart.CartSetLineItemCustomTypeActionImpl
- All Implemented Interfaces:
CartSetLineItemCustomTypeAction
,CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class CartSetLineItemCustomTypeActionImpl
extends Object
implements CartSetLineItemCustomTypeAction, io.vrap.rmf.base.client.ModelBase
CartSetLineItemCustomTypeAction
-
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.CartSetLineItemCustomTypeAction
SET_LINE_ITEM_CUSTOM_TYPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Sets the Custom Fields fields for the Line Item.id
of the LineItem to update.key
of the LineItem to update.getType()
Defines the Type that extends the Line Item with Custom Fields.int
hashCode()
void
setFields
(FieldContainer fields) Sets the Custom Fields fields for the Line Item.void
setLineItemId
(String lineItemId) id
of the LineItem to update.void
setLineItemKey
(String lineItemKey) key
of the LineItem to update.void
Defines the Type that extends the Line Item with Custom Fields.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.cart.CartSetLineItemCustomTypeAction
withCartSetLineItemCustomTypeAction
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
-
CartSetLineItemCustomTypeActionImpl
public CartSetLineItemCustomTypeActionImpl()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 interfaceCartSetLineItemCustomTypeAction
- Returns:
- lineItemId
-
getLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
getLineItemKey
in interfaceCartSetLineItemCustomTypeAction
- Returns:
- lineItemKey
-
getType
Defines the Type that extends the Line Item with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Line Item.
- Specified by:
getType
in interfaceCartSetLineItemCustomTypeAction
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the Line Item.
- Specified by:
getFields
in interfaceCartSetLineItemCustomTypeAction
- Returns:
- fields
-
setLineItemId
Description copied from interface:CartSetLineItemCustomTypeAction
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemId
in interfaceCartSetLineItemCustomTypeAction
- Parameters:
lineItemId
- value to be set
-
setLineItemKey
Description copied from interface:CartSetLineItemCustomTypeAction
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemKey
in interfaceCartSetLineItemCustomTypeAction
- Parameters:
lineItemKey
- value to be set
-
setType
Description copied from interface:CartSetLineItemCustomTypeAction
Defines the Type that extends the Line Item with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Line Item.
- Specified by:
setType
in interfaceCartSetLineItemCustomTypeAction
- Parameters:
type
- value to be set
-
setFields
Description copied from interface:CartSetLineItemCustomTypeAction
Sets the Custom Fields fields for the Line Item.
- Specified by:
setFields
in interfaceCartSetLineItemCustomTypeAction
- Parameters:
fields
- value to be set
-
equals
-
hashCode
public int hashCode()
-