Class CartSetLineItemTotalPriceActionImpl
java.lang.Object
com.commercetools.api.models.cart.CartSetLineItemTotalPriceActionImpl
- All Implemented Interfaces:
CartSetLineItemTotalPriceAction
,CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class CartSetLineItemTotalPriceActionImpl
extends Object
implements CartSetLineItemTotalPriceAction, io.vrap.rmf.base.client.ModelBase
Sets the LineItem totalPrice
and price
, and changes the priceMode
to ExternalTotal
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.CartSetLineItemTotalPriceAction
SET_LINE_ITEM_TOTAL_PRICE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Value to set.id
of the LineItem to update.key
of the LineItem to update.int
hashCode()
void
setExternalTotalPrice
(ExternalLineItemTotalPrice externalTotalPrice) 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.CartSetLineItemTotalPriceAction
withCartSetLineItemTotalPriceAction
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
-
CartSetLineItemTotalPriceActionImpl
public CartSetLineItemTotalPriceActionImpl()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 interfaceCartSetLineItemTotalPriceAction
- Returns:
- lineItemId
-
getLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
getLineItemKey
in interfaceCartSetLineItemTotalPriceAction
- Returns:
- lineItemKey
-
getExternalTotalPrice
Value to set. If
externalTotalPrice
is not given and thepriceMode
isExternalTotal
, the external price is unset and thepriceMode
is set toPlatform
.- Specified by:
getExternalTotalPrice
in interfaceCartSetLineItemTotalPriceAction
- Returns:
- externalTotalPrice
-
setLineItemId
Description copied from interface:CartSetLineItemTotalPriceAction
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemId
in interfaceCartSetLineItemTotalPriceAction
- Parameters:
lineItemId
- value to be set
-
setLineItemKey
Description copied from interface:CartSetLineItemTotalPriceAction
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemKey
in interfaceCartSetLineItemTotalPriceAction
- Parameters:
lineItemKey
- value to be set
-
setExternalTotalPrice
Description copied from interface:CartSetLineItemTotalPriceAction
Value to set. If
externalTotalPrice
is not given and thepriceMode
isExternalTotal
, the external price is unset and thepriceMode
is set toPlatform
.- Specified by:
setExternalTotalPrice
in interfaceCartSetLineItemTotalPriceAction
- Parameters:
externalTotalPrice
- value to be set
-
equals
-
hashCode
-