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
-
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 LineItem to update.key
of the LineItem to update.Amount to subtract from the LineItem'squantity
.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 LineItem to update.void
setLineItemKey
(String lineItemKey) key
of the LineItem to update.void
setQuantity
(Long quantity) Amount to subtract from the LineItem'squantity
.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 LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
getLineItemId
in interfaceCartRemoveLineItemAction
- Returns:
- lineItemId
-
getLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
getLineItemKey
in interfaceCartRemoveLineItemAction
- Returns:
- lineItemKey
-
getQuantity
Amount to subtract from the LineItem's
quantity
. If absent, the LineItem 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 LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemId
in interfaceCartRemoveLineItemAction
- Parameters:
lineItemId
- value to be set
-
setLineItemKey
Description copied from interface:CartRemoveLineItemAction
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemKey
in interfaceCartRemoveLineItemAction
- Parameters:
lineItemKey
- value to be set
-
setQuantity
Description copied from interface:CartRemoveLineItemAction
Amount to subtract from the LineItem's
quantity
. If absent, the LineItem 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
public int hashCode()
-