Interface OrderChangeOrderStateAction
- All Superinterfaces:
OrderUpdateAction
,ResourceUpdateAction<OrderUpdateAction>
Produces the Order State Changed Message.
Example to create an instance using the builder pattern
OrderChangeOrderStateAction orderChangeOrderStateAction = OrderChangeOrderStateAction.builder()
.orderState(OrderState.OPEN)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderChangeOrderStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderChangeOrderStateActionbuilder
(OrderChangeOrderStateAction template) create builder for OrderChangeOrderStateAction instancestatic OrderChangeOrderStateAction
deepCopy
(OrderChangeOrderStateAction template) factory method to create a deep copy of OrderChangeOrderStateAction@NotNull OrderState
New status of the Order.static OrderChangeOrderStateAction
of()
factory methodstatic OrderChangeOrderStateAction
of
(OrderChangeOrderStateAction template) factory method to create a shallow copy OrderChangeOrderStateActionvoid
setOrderState
(OrderState orderState) New status of the Order.static com.fasterxml.jackson.core.type.TypeReference<OrderChangeOrderStateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.order.OrderUpdateAction
getAction, withOrderUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_ORDER_STATE
discriminator value for OrderChangeOrderStateAction- 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 OrderChangeOrderStateAction
-
of
factory method to create a shallow copy OrderChangeOrderStateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderChangeOrderStateAction deepCopy(@Nullable OrderChangeOrderStateAction template) factory method to create a deep copy of OrderChangeOrderStateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderChangeOrderStateAction- Returns:
- builder
-
builder
create builder for OrderChangeOrderStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderChangeOrderStateAction
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
-