Interface StagedOrderSetLineItemPriceAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
- All Known Implementing Classes:
StagedOrderSetLineItemPriceActionImpl
StagedOrderSetLineItemPriceAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetLineItemPriceAction stagedOrderSetLineItemPriceAction = StagedOrderSetLineItemPriceAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderSetLineItemPriceAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderSetLineItemPriceActionbuilder
(StagedOrderSetLineItemPriceAction template) create builder for StagedOrderSetLineItemPriceAction instancedeepCopy
(StagedOrderSetLineItemPriceAction template) factory method to create a deep copy of StagedOrderSetLineItemPriceAction@Valid Money
Draft type that stores amounts only in cent precision for the specified currency.id
of the LineItem to update.key
of the LineItem to update.of()
factory methodof
(StagedOrderSetLineItemPriceAction template) factory method to create a shallow copy StagedOrderSetLineItemPriceActionvoid
setExternalPrice
(Money externalPrice) Draft type that stores amounts only in cent precision for the specified currency.void
setLineItemId
(String lineItemId) id
of the LineItem to update.void
setLineItemKey
(String lineItemKey) key
of the LineItem to update.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetLineItemPriceAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
SET_LINE_ITEM_PRICE
discriminator value for StagedOrderSetLineItemPriceAction- See Also:
-
-
Method Details
-
getLineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemId
-
getLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemKey
-
getExternalPrice
Draft type that stores amounts only in cent precision for the specified currency.
- Returns:
- externalPrice
-
setLineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemId
- value to be set
-
setLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemKey
- value to be set
-
setExternalPrice
Draft type that stores amounts only in cent precision for the specified currency.
- Parameters:
externalPrice
- value to be set
-
of
factory method- Returns:
- instance of StagedOrderSetLineItemPriceAction
-
of
factory method to create a shallow copy StagedOrderSetLineItemPriceAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderSetLineItemPriceAction deepCopy(@Nullable StagedOrderSetLineItemPriceAction template) factory method to create a deep copy of StagedOrderSetLineItemPriceAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetLineItemPriceAction- Returns:
- builder
-
builder
create builder for StagedOrderSetLineItemPriceAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetLineItemPriceAction
default <T> T withStagedOrderSetLineItemPriceAction(Function<StagedOrderSetLineItemPriceAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetLineItemPriceAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-