Interface OrderReturnShipmentStateChangedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
,OrderMessagePayload
Generated after a successful Set ReturnShipmentState update action on Orders and Order Edits.
Example to create an instance using the builder pattern
OrderReturnShipmentStateChangedMessagePayload orderReturnShipmentStateChangedMessagePayload = OrderReturnShipmentStateChangedMessagePayload.builder()
.returnItemId("{returnItemId}")
.returnShipmentState(ReturnShipmentState.ADVISED)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderReturnShipmentStateChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderReturnShipmentStateChangedMessagePayloadcreate builder for OrderReturnShipmentStateChangedMessagePayload instancefactory method to create a deep copy of OrderReturnShipmentStateChangedMessagePayload@NotNull String
Unique identifier of the ReturnItem.@NotNull ReturnShipmentState
State of the ReturnItem after the Set Return Shipment State update action.of()
factory methodfactory method to create a shallow copy OrderReturnShipmentStateChangedMessagePayloadvoid
setReturnItemId
(String returnItemId) Unique identifier of the ReturnItem.void
setReturnShipmentState
(ReturnShipmentState returnShipmentState) State of the ReturnItem after the Set Return Shipment State update action.static com.fasterxml.jackson.core.type.TypeReference<OrderReturnShipmentStateChangedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withOrderReturnShipmentStateChangedMessagePayload
(Function<OrderReturnShipmentStateChangedMessagePayload, 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_RETURN_SHIPMENT_STATE_CHANGED
discriminator value for OrderReturnShipmentStateChangedMessagePayload- See Also:
-
-
Method Details
-
getReturnItemId
Unique identifier of the ReturnItem.
- Returns:
- returnItemId
-
getReturnShipmentState
State of the ReturnItem after the Set Return Shipment State update action.
- Returns:
- returnShipmentState
-
setReturnItemId
Unique identifier of the ReturnItem.
- Parameters:
returnItemId
- value to be set
-
setReturnShipmentState
State of the ReturnItem after the Set Return Shipment State update action.
- Parameters:
returnShipmentState
- value to be set
-
of
factory method- Returns:
- instance of OrderReturnShipmentStateChangedMessagePayload
-
of
static OrderReturnShipmentStateChangedMessagePayload of(OrderReturnShipmentStateChangedMessagePayload template) factory method to create a shallow copy OrderReturnShipmentStateChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderReturnShipmentStateChangedMessagePayload deepCopy(@Nullable OrderReturnShipmentStateChangedMessagePayload template) factory method to create a deep copy of OrderReturnShipmentStateChangedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderReturnShipmentStateChangedMessagePayload- Returns:
- builder
-
builder
static OrderReturnShipmentStateChangedMessagePayloadBuilder builder(OrderReturnShipmentStateChangedMessagePayload template) create builder for OrderReturnShipmentStateChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderReturnShipmentStateChangedMessagePayload
default <T> T withOrderReturnShipmentStateChangedMessagePayload(Function<OrderReturnShipmentStateChangedMessagePayload, 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<OrderReturnShipmentStateChangedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-