Class CartSetLineItemPriceActionImpl
java.lang.Object
com.commercetools.api.models.cart.CartSetLineItemPriceActionImpl
- All Implemented Interfaces:
CartSetLineItemPriceAction
,CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class CartSetLineItemPriceActionImpl
extends Object
implements CartSetLineItemPriceAction, io.vrap.rmf.base.client.ModelBase
Sets the LineItem price
and changes the priceMode
to ExternalPrice
LineItemPriceMode.
-
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.CartSetLineItemPriceAction
SET_LINE_ITEM_PRICE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Value to set.id
of the LineItem to update.key
of the LineItem to update.int
hashCode()
void
setExternalPrice
(Money externalPrice) Value to set.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.CartSetLineItemPriceAction
withCartSetLineItemPriceAction
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
-
CartSetLineItemPriceActionImpl
public CartSetLineItemPriceActionImpl()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 interfaceCartSetLineItemPriceAction
- Returns:
- lineItemId
-
getLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
getLineItemKey
in interfaceCartSetLineItemPriceAction
- Returns:
- lineItemKey
-
getExternalPrice
Value to set. If
externalPrice
is not given and thepriceMode
isExternalPrice
, the external price is unset and thepriceMode
is set toPlatform
.- Specified by:
getExternalPrice
in interfaceCartSetLineItemPriceAction
- Returns:
- externalPrice
-
setLineItemId
Description copied from interface:CartSetLineItemPriceAction
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemId
in interfaceCartSetLineItemPriceAction
- Parameters:
lineItemId
- value to be set
-
setLineItemKey
Description copied from interface:CartSetLineItemPriceAction
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemKey
in interfaceCartSetLineItemPriceAction
- Parameters:
lineItemKey
- value to be set
-
setExternalPrice
Description copied from interface:CartSetLineItemPriceAction
Value to set. If
externalPrice
is not given and thepriceMode
isExternalPrice
, the external price is unset and thepriceMode
is set toPlatform
.- Specified by:
setExternalPrice
in interfaceCartSetLineItemPriceAction
- Parameters:
externalPrice
- value to be set
-
equals
-
hashCode
-