Interface OrderSetReturnShipmentStateAction
- All Superinterfaces:
OrderUpdateAction,ResourceUpdateAction<OrderUpdateAction>
To set a ReturnShipmentState, the Order returnInfo must have at least one ReturnItem.
Produces the Order Return Shipment State Changed Message.
Example to create an instance using the builder pattern
OrderSetReturnShipmentStateAction orderSetReturnShipmentStateAction = OrderSetReturnShipmentStateAction.builder()
.shipmentState(ReturnShipmentState.ADVISED)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for OrderSetReturnShipmentStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for OrderSetReturnShipmentStateActionbuilder(OrderSetReturnShipmentStateAction template) create builder for OrderSetReturnShipmentStateAction instancecopyDeep()deepCopy(OrderSetReturnShipmentStateAction template) factory method to create a deep copy of OrderSetReturnShipmentStateActionidof the ReturnItem to update.keyof the ReturnItem to update.@NotNull ReturnShipmentStateNew shipment state of the ReturnItem.of()factory methodof(OrderSetReturnShipmentStateAction template) factory method to create a shallow copy OrderSetReturnShipmentStateActionvoidsetReturnItemId(String returnItemId) idof the ReturnItem to update.voidsetReturnItemKey(String returnItemKey) keyof the ReturnItem to update.voidsetShipmentState(ReturnShipmentState shipmentState) New shipment state of the ReturnItem.static com.fasterxml.jackson.core.type.TypeReference<OrderSetReturnShipmentStateAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.order.OrderUpdateAction
getAction, withOrderUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_RETURN_SHIPMENT_STATE
discriminator value for OrderSetReturnShipmentStateAction- See Also:
-
-
Method Details
-
getReturnItemId
String getReturnItemId()idof the ReturnItem to update. EitherreturnItemIdorreturnItemKeyis required.- Returns:
- returnItemId
-
getReturnItemKey
String getReturnItemKey()keyof the ReturnItem to update. EitherreturnItemIdorreturnItemKeyis required.- Returns:
- returnItemKey
-
getShipmentState
New shipment state of the ReturnItem.
- Returns:
- shipmentState
-
setReturnItemId
idof the ReturnItem to update. EitherreturnItemIdorreturnItemKeyis required.- Parameters:
returnItemId- value to be set
-
setReturnItemKey
keyof the ReturnItem to update. EitherreturnItemIdorreturnItemKeyis required.- Parameters:
returnItemKey- value to be set
-
setShipmentState
New shipment state of the ReturnItem.
- Parameters:
shipmentState- value to be set
-
of
factory method- Returns:
- instance of OrderSetReturnShipmentStateAction
-
of
factory method to create a shallow copy OrderSetReturnShipmentStateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
OrderSetReturnShipmentStateAction copyDeep()- Specified by:
copyDeepin interfaceOrderUpdateAction
-
deepCopy
@Nullable static OrderSetReturnShipmentStateAction deepCopy(@Nullable OrderSetReturnShipmentStateAction template) factory method to create a deep copy of OrderSetReturnShipmentStateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderSetReturnShipmentStateAction- Returns:
- builder
-
builder
create builder for OrderSetReturnShipmentStateAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withOrderSetReturnShipmentStateAction
default <T> T withOrderSetReturnShipmentStateAction(Function<OrderSetReturnShipmentStateAction, 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<OrderSetReturnShipmentStateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-