Class StagedOrderSetLineItemPriceActionImpl
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetLineItemPriceActionImpl
- All Implemented Interfaces:
StagedOrderSetLineItemPriceAction
,StagedOrderUpdateAction
,ResourceUpdateAction<StagedOrderUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class StagedOrderSetLineItemPriceActionImpl
extends Object
implements StagedOrderSetLineItemPriceAction, 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.order_edit.StagedOrderSetLineItemPriceAction
SET_LINE_ITEM_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
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 io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order_edit.StagedOrderSetLineItemPriceAction
withStagedOrderSetLineItemPriceAction
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
withStagedOrderUpdateAction
-
Constructor Details
-
StagedOrderSetLineItemPriceActionImpl
create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<StagedOrderUpdateAction>
- Specified by:
getAction
in interfaceStagedOrderUpdateAction
- Returns:
- action
-
getLineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
getLineItemId
in interfaceStagedOrderSetLineItemPriceAction
- Returns:
- lineItemId
-
getLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
getLineItemKey
in interfaceStagedOrderSetLineItemPriceAction
- 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 interfaceStagedOrderSetLineItemPriceAction
- Returns:
- externalPrice
-
setLineItemId
Description copied from interface:StagedOrderSetLineItemPriceAction
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemId
in interfaceStagedOrderSetLineItemPriceAction
- Parameters:
lineItemId
- value to be set
-
setLineItemKey
Description copied from interface:StagedOrderSetLineItemPriceAction
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemKey
in interfaceStagedOrderSetLineItemPriceAction
- Parameters:
lineItemKey
- value to be set
-
setExternalPrice
Description copied from interface:StagedOrderSetLineItemPriceAction
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 interfaceStagedOrderSetLineItemPriceAction
- Parameters:
externalPrice
- value to be set
-
equals
-
hashCode
-