Class CartRemoveLineItemActionImpl
- All Implemented Interfaces:
CartRemoveLineItemAction
,CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
The LineItem price is updated as described in LineItem Price selection.
-
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.CartRemoveLineItemAction
REMOVE_LINE_ITEM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Sets the LineItemprice
to the given value when decreasing the quantity of a Line Item with theExternalPrice
LineItemPriceMode.Sets the LineItemprice
andtotalPrice
to the given value when decreasing the quantity of a Line Item with theExternalTotal
LineItemPriceMode.id
of the Line Item to remove.New value to set.Container for Line Item-specific addresses to remove.int
hashCode()
void
setExternalPrice
(Money externalPrice) Sets the LineItemprice
to the given value when decreasing the quantity of a Line Item with theExternalPrice
LineItemPriceMode.void
setExternalTotalPrice
(ExternalLineItemTotalPrice externalTotalPrice) Sets the LineItemprice
andtotalPrice
to the given value when decreasing the quantity of a Line Item with theExternalTotal
LineItemPriceMode.void
setLineItemId
(String lineItemId) id
of the Line Item to remove.void
setQuantity
(Long quantity) New value to set.void
setShippingDetailsToRemove
(ItemShippingDetailsDraft shippingDetailsToRemove) Container for Line Item-specific addresses to remove.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.cart.CartRemoveLineItemAction
withCartRemoveLineItemAction
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
-
CartRemoveLineItemActionImpl
public CartRemoveLineItemActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceCartUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CartUpdateAction>
- Returns:
- action
-
getLineItemId
id
of the Line Item to remove.- Specified by:
getLineItemId
in interfaceCartRemoveLineItemAction
- Returns:
- lineItemId
-
getQuantity
New value to set. If absent or
0
, the Line Item is removed from the Cart.- Specified by:
getQuantity
in interfaceCartRemoveLineItemAction
- Returns:
- quantity
-
getExternalPrice
Sets the LineItem
price
to the given value when decreasing the quantity of a Line Item with theExternalPrice
LineItemPriceMode.- Specified by:
getExternalPrice
in interfaceCartRemoveLineItemAction
- Returns:
- externalPrice
-
getExternalTotalPrice
Sets the LineItem
price
andtotalPrice
to the given value when decreasing the quantity of a Line Item with theExternalTotal
LineItemPriceMode.- Specified by:
getExternalTotalPrice
in interfaceCartRemoveLineItemAction
- Returns:
- externalTotalPrice
-
getShippingDetailsToRemove
Container for Line Item-specific addresses to remove.
- Specified by:
getShippingDetailsToRemove
in interfaceCartRemoveLineItemAction
- Returns:
- shippingDetailsToRemove
-
setLineItemId
Description copied from interface:CartRemoveLineItemAction
id
of the Line Item to remove.- Specified by:
setLineItemId
in interfaceCartRemoveLineItemAction
- Parameters:
lineItemId
- value to be set
-
setQuantity
Description copied from interface:CartRemoveLineItemAction
New value to set. If absent or
0
, the Line Item is removed from the Cart.- Specified by:
setQuantity
in interfaceCartRemoveLineItemAction
- Parameters:
quantity
- value to be set
-
setExternalPrice
Description copied from interface:CartRemoveLineItemAction
Sets the LineItem
price
to the given value when decreasing the quantity of a Line Item with theExternalPrice
LineItemPriceMode.- Specified by:
setExternalPrice
in interfaceCartRemoveLineItemAction
- Parameters:
externalPrice
- value to be set
-
setExternalTotalPrice
Description copied from interface:CartRemoveLineItemAction
Sets the LineItem
price
andtotalPrice
to the given value when decreasing the quantity of a Line Item with theExternalTotal
LineItemPriceMode.- Specified by:
setExternalTotalPrice
in interfaceCartRemoveLineItemAction
- Parameters:
externalTotalPrice
- value to be set
-
setShippingDetailsToRemove
Description copied from interface:CartRemoveLineItemAction
Container for Line Item-specific addresses to remove.
- Specified by:
setShippingDetailsToRemove
in interfaceCartRemoveLineItemAction
- Parameters:
shippingDetailsToRemove
- value to be set
-
equals
-
hashCode
-