Interface StagedOrderChangeOrderStateAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
Produces the Order State Changed Message.
Example to create an instance using the builder pattern
StagedOrderChangeOrderStateAction stagedOrderChangeOrderStateAction = StagedOrderChangeOrderStateAction.builder()
.orderState(OrderState.OPEN)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderChangeOrderStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderChangeOrderStateActionbuilder
(StagedOrderChangeOrderStateAction template) create builder for StagedOrderChangeOrderStateAction instancedeepCopy
(StagedOrderChangeOrderStateAction template) factory method to create a deep copy of StagedOrderChangeOrderStateAction@NotNull OrderState
New status of the Order.of()
factory methodof
(StagedOrderChangeOrderStateAction template) factory method to create a shallow copy StagedOrderChangeOrderStateActionvoid
setOrderState
(OrderState orderState) New status of the Order.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderChangeOrderStateAction>
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
-
CHANGE_ORDER_STATE
discriminator value for StagedOrderChangeOrderStateAction- See Also:
-
-
Method Details
-
getOrderState
New status of the Order.
- Returns:
- orderState
-
setOrderState
New status of the Order.
- Parameters:
orderState
- value to be set
-
of
factory method- Returns:
- instance of StagedOrderChangeOrderStateAction
-
of
factory method to create a shallow copy StagedOrderChangeOrderStateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderChangeOrderStateAction deepCopy(@Nullable StagedOrderChangeOrderStateAction template) factory method to create a deep copy of StagedOrderChangeOrderStateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderChangeOrderStateAction- Returns:
- builder
-
builder
create builder for StagedOrderChangeOrderStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderChangeOrderStateAction
default <T> T withStagedOrderChangeOrderStateAction(Function<StagedOrderChangeOrderStateAction, 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<StagedOrderChangeOrderStateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-