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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StagedOrderChangeOrderStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StagedOrderChangeOrderStateActionbuilder(StagedOrderChangeOrderStateAction template) create builder for StagedOrderChangeOrderStateAction instancecopyDeep()deepCopy(StagedOrderChangeOrderStateAction template) factory method to create a deep copy of StagedOrderChangeOrderStateAction@NotNull OrderStateNew status of the Order.of()factory methodof(StagedOrderChangeOrderStateAction template) factory method to create a shallow copy StagedOrderChangeOrderStateActionvoidsetOrderState(OrderState orderState) New status of the Order.static tools.jackson.core.type.TypeReference<StagedOrderChangeOrderStateAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods 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
-
copyDeep
StagedOrderChangeOrderStateAction copyDeep()- Specified by:
copyDeepin interfaceStagedOrderUpdateAction
-
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
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-