Interface OrderStateChangedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
,OrderMessagePayload
Generated after a successful Change OrderState update action.
Example to create an instance using the builder pattern
OrderStateChangedMessagePayload orderStateChangedMessagePayload = OrderStateChangedMessagePayload.builder()
.orderState(OrderState.OPEN)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderStateChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderStateChangedMessagePayloadbuilder
(OrderStateChangedMessagePayload template) create builder for OrderStateChangedMessagePayload instancedeepCopy
(OrderStateChangedMessagePayload template) factory method to create a deep copy of OrderStateChangedMessagePayloadOrderState before the Change Order State update action.@NotNull OrderState
OrderState after the Change Order State update action.of()
factory methodof
(OrderStateChangedMessagePayload template) factory method to create a shallow copy OrderStateChangedMessagePayloadvoid
setOldOrderState
(OrderState oldOrderState) OrderState before the Change Order State update action.void
setOrderState
(OrderState orderState) OrderState after the Change Order State update action.static com.fasterxml.jackson.core.type.TypeReference<OrderStateChangedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
Methods inherited from interface com.commercetools.api.models.message.OrderMessagePayload
withOrderMessagePayload
-
Field Details
-
ORDER_STATE_CHANGED
discriminator value for OrderStateChangedMessagePayload- See Also:
-
-
Method Details
-
getOrderState
OrderState after the Change Order State update action.
- Returns:
- orderState
-
getOldOrderState
OrderState getOldOrderState()OrderState before the Change Order State update action.
- Returns:
- oldOrderState
-
setOrderState
OrderState after the Change Order State update action.
- Parameters:
orderState
- value to be set
-
setOldOrderState
OrderState before the Change Order State update action.
- Parameters:
oldOrderState
- value to be set
-
of
factory method- Returns:
- instance of OrderStateChangedMessagePayload
-
of
factory method to create a shallow copy OrderStateChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderStateChangedMessagePayload deepCopy(@Nullable OrderStateChangedMessagePayload template) factory method to create a deep copy of OrderStateChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderStateChangedMessagePayload- Returns:
- builder
-
builder
create builder for OrderStateChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderStateChangedMessagePayload
default <T> T withOrderStateChangedMessagePayload(Function<OrderStateChangedMessagePayload, 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<OrderStateChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-