Class CartRemoveCustomLineItemActionImpl
java.lang.Object
com.commercetools.api.models.cart.CartRemoveCustomLineItemActionImpl
- All Implemented Interfaces:
CartRemoveCustomLineItemAction
,CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class CartRemoveCustomLineItemActionImpl
extends Object
implements CartRemoveCustomLineItemAction, io.vrap.rmf.base.client.ModelBase
This update action does not support specifying quantities, unlike the Remove LineItem update action.
If shippingDetails
must be partially removed, use the Change CustomLineItem Quantity update action.
-
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.CartRemoveCustomLineItemAction
REMOVE_CUSTOM_LINE_ITEM
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
id
of the CustomLineItem to update.key
of the CustomLineItem to update.int
hashCode()
void
setCustomLineItemId
(String customLineItemId) id
of the CustomLineItem to update.void
setCustomLineItemKey
(String customLineItemKey) key
of the CustomLineItem to update.toString()
Methods inherited from interface com.commercetools.api.models.cart.CartRemoveCustomLineItemAction
withCartRemoveCustomLineItemAction
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
-
CartRemoveCustomLineItemActionImpl
public CartRemoveCustomLineItemActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceCartUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CartUpdateAction>
- Returns:
- action
-
getCustomLineItemId
id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Specified by:
getCustomLineItemId
in interfaceCartRemoveCustomLineItemAction
- Returns:
- customLineItemId
-
getCustomLineItemKey
key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Specified by:
getCustomLineItemKey
in interfaceCartRemoveCustomLineItemAction
- Returns:
- customLineItemKey
-
setCustomLineItemId
Description copied from interface:CartRemoveCustomLineItemAction
id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Specified by:
setCustomLineItemId
in interfaceCartRemoveCustomLineItemAction
- Parameters:
customLineItemId
- value to be set
-
setCustomLineItemKey
Description copied from interface:CartRemoveCustomLineItemAction
key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Specified by:
setCustomLineItemKey
in interfaceCartRemoveCustomLineItemAction
- Parameters:
customLineItemKey
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-