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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for OrderReturnShipmentStateChangedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for OrderReturnShipmentStateChangedMessagePayloadcreate builder for OrderReturnShipmentStateChangedMessagePayload instancecopyDeep()factory method to create a deep copy of OrderReturnShipmentStateChangedMessagePayload@NotNull StringUnique identifier of the ReturnItem.@NotNull ReturnShipmentStateState of the ReturnItem after the Set Return Shipment State update action.of()factory methodfactory method to create a shallow copy OrderReturnShipmentStateChangedMessagePayloadvoidsetReturnItemId(String returnItemId) Unique identifier of the ReturnItem.voidsetReturnShipmentState(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> TwithOrderReturnShipmentStateChangedMessagePayload(Function<OrderReturnShipmentStateChangedMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
asMethods 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
-
copyDeep
- Specified by:
copyDeepin interfaceMessagePayload- Specified by:
copyDeepin interfaceOrderMessagePayload
-
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
-