Interface StagedOrderSetLineItemTotalPriceAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
- All Known Implementing Classes:
StagedOrderSetLineItemTotalPriceActionImpl
StagedOrderSetLineItemTotalPriceAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetLineItemTotalPriceAction stagedOrderSetLineItemTotalPriceAction = StagedOrderSetLineItemTotalPriceAction.builder()
.lineItemId("{lineItemId}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderSetLineItemTotalPriceAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderSetLineItemTotalPriceActioncreate builder for StagedOrderSetLineItemTotalPriceAction instancefactory method to create a deep copy of StagedOrderSetLineItemTotalPriceAction@Valid ExternalLineItemTotalPrice
@NotNull String
of()
factory methodof
(StagedOrderSetLineItemTotalPriceAction template) factory method to create a shallow copy StagedOrderSetLineItemTotalPriceActionvoid
setExternalTotalPrice
(ExternalLineItemTotalPrice externalTotalPrice) set externalTotalPricevoid
setLineItemId
(String lineItemId) set lineItemIdstatic com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetLineItemTotalPriceAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStagedOrderSetLineItemTotalPriceAction
(Function<StagedOrderSetLineItemTotalPriceAction, T> helper) 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_TOTAL_PRICE
discriminator value for StagedOrderSetLineItemTotalPriceAction- See Also:
-
-
Method Details
-
getLineItemId
- Returns:
- lineItemId
-
getExternalTotalPrice
- Returns:
- externalTotalPrice
-
setLineItemId
set lineItemId- Parameters:
lineItemId
- value to be set
-
setExternalTotalPrice
set externalTotalPrice- Parameters:
externalTotalPrice
- value to be set
-
of
factory method- Returns:
- instance of StagedOrderSetLineItemTotalPriceAction
-
of
factory method to create a shallow copy StagedOrderSetLineItemTotalPriceAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderSetLineItemTotalPriceAction deepCopy(@Nullable StagedOrderSetLineItemTotalPriceAction template) factory method to create a deep copy of StagedOrderSetLineItemTotalPriceAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetLineItemTotalPriceAction- Returns:
- builder
-
builder
static StagedOrderSetLineItemTotalPriceActionBuilder builder(StagedOrderSetLineItemTotalPriceAction template) create builder for StagedOrderSetLineItemTotalPriceAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetLineItemTotalPriceAction
default <T> T withStagedOrderSetLineItemTotalPriceAction(Function<StagedOrderSetLineItemTotalPriceAction, 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<StagedOrderSetLineItemTotalPriceAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-