Interface OrderSetReturnShipmentStateAction
- All Superinterfaces:
OrderUpdateAction
,ResourceUpdateAction<OrderUpdateAction>
- All Known Implementing Classes:
OrderSetReturnShipmentStateActionImpl
OrderSetReturnShipmentStateAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSetReturnShipmentStateAction orderSetReturnShipmentStateAction = OrderSetReturnShipmentStateAction.builder()
.returnItemId("{returnItemId}")
.shipmentState(ReturnShipmentState.ADVISED)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderSetReturnShipmentStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderSetReturnShipmentStateActionbuilder
(OrderSetReturnShipmentStateAction template) create builder for OrderSetReturnShipmentStateAction instancedeepCopy
(OrderSetReturnShipmentStateAction template) factory method to create a deep copy of OrderSetReturnShipmentStateAction@NotNull String
@NotNull ReturnShipmentState
of()
factory methodof
(OrderSetReturnShipmentStateAction template) factory method to create a shallow copy OrderSetReturnShipmentStateActionvoid
setReturnItemId
(String returnItemId) set returnItemIdvoid
setShipmentState
(ReturnShipmentState shipmentState) set shipmentStatestatic com.fasterxml.jackson.core.type.TypeReference<OrderSetReturnShipmentStateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.order.OrderUpdateAction
getAction, withOrderUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_RETURN_SHIPMENT_STATE
discriminator value for OrderSetReturnShipmentStateAction- See Also:
-
-
Method Details
-
getReturnItemId
- Returns:
- returnItemId
-
getShipmentState
- Returns:
- shipmentState
-
setReturnItemId
set returnItemId- Parameters:
returnItemId
- value to be set
-
setShipmentState
set shipmentState- 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
-
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
-