Interface OrderShipmentStateChangedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
,OrderMessagePayload
Generated after a successful Change ShipmentState update action.
Example to create an instance using the builder pattern
OrderShipmentStateChangedMessagePayload orderShipmentStateChangedMessagePayload = OrderShipmentStateChangedMessagePayload.builder()
.shipmentState(ShipmentState.SHIPPED)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderShipmentStateChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderShipmentStateChangedMessagePayloadcreate builder for OrderShipmentStateChangedMessagePayload instancefactory method to create a deep copy of OrderShipmentStateChangedMessagePayloadShipmentState before the Change Shipment State update action.@NotNull ShipmentState
ShipmentState after the Change Shipment State update action.of()
factory methodof
(OrderShipmentStateChangedMessagePayload template) factory method to create a shallow copy OrderShipmentStateChangedMessagePayloadvoid
setOldShipmentState
(ShipmentState oldShipmentState) ShipmentState before the Change Shipment State update action.void
setShipmentState
(ShipmentState shipmentState) ShipmentState after the Change Shipment State update action.static com.fasterxml.jackson.core.type.TypeReference<OrderShipmentStateChangedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withOrderShipmentStateChangedMessagePayload
(Function<OrderShipmentStateChangedMessagePayload, T> helper) 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_SHIPMENT_STATE_CHANGED
discriminator value for OrderShipmentStateChangedMessagePayload- See Also:
-
-
Method Details
-
getShipmentState
ShipmentState after the Change Shipment State update action.
- Returns:
- shipmentState
-
getOldShipmentState
ShipmentState getOldShipmentState()ShipmentState before the Change Shipment State update action.
- Returns:
- oldShipmentState
-
setShipmentState
ShipmentState after the Change Shipment State update action.
- Parameters:
shipmentState
- value to be set
-
setOldShipmentState
ShipmentState before the Change Shipment State update action.
- Parameters:
oldShipmentState
- value to be set
-
of
factory method- Returns:
- instance of OrderShipmentStateChangedMessagePayload
-
of
factory method to create a shallow copy OrderShipmentStateChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderShipmentStateChangedMessagePayload deepCopy(@Nullable OrderShipmentStateChangedMessagePayload template) factory method to create a deep copy of OrderShipmentStateChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderShipmentStateChangedMessagePayload- Returns:
- builder
-
builder
static OrderShipmentStateChangedMessagePayloadBuilder builder(OrderShipmentStateChangedMessagePayload template) create builder for OrderShipmentStateChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderShipmentStateChangedMessagePayload
default <T> T withOrderShipmentStateChangedMessagePayload(Function<OrderShipmentStateChangedMessagePayload, 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<OrderShipmentStateChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-