Interface StagedOrderSetReturnShipmentStateAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
- All Known Implementing Classes:
StagedOrderSetReturnShipmentStateActionImpl
StagedOrderSetReturnShipmentStateAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetReturnShipmentStateAction stagedOrderSetReturnShipmentStateAction = StagedOrderSetReturnShipmentStateAction.builder()
.returnItemId("{returnItemId}")
.shipmentState(ReturnShipmentState.ADVISED)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderSetReturnShipmentStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderSetReturnShipmentStateActioncreate builder for StagedOrderSetReturnShipmentStateAction instancefactory method to create a deep copy of StagedOrderSetReturnShipmentStateAction@NotNull String
@NotNull ReturnShipmentState
of()
factory methodof
(StagedOrderSetReturnShipmentStateAction template) factory method to create a shallow copy StagedOrderSetReturnShipmentStateActionvoid
setReturnItemId
(String returnItemId) set returnItemIdvoid
setShipmentState
(ReturnShipmentState shipmentState) set shipmentStatestatic com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetReturnShipmentStateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStagedOrderSetReturnShipmentStateAction
(Function<StagedOrderSetReturnShipmentStateAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
SET_RETURN_SHIPMENT_STATE
discriminator value for StagedOrderSetReturnShipmentStateAction- 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 StagedOrderSetReturnShipmentStateAction
-
of
factory method to create a shallow copy StagedOrderSetReturnShipmentStateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderSetReturnShipmentStateAction deepCopy(@Nullable StagedOrderSetReturnShipmentStateAction template) factory method to create a deep copy of StagedOrderSetReturnShipmentStateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetReturnShipmentStateAction- Returns:
- builder
-
builder
static StagedOrderSetReturnShipmentStateActionBuilder builder(StagedOrderSetReturnShipmentStateAction template) create builder for StagedOrderSetReturnShipmentStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetReturnShipmentStateAction
default <T> T withStagedOrderSetReturnShipmentStateAction(Function<StagedOrderSetReturnShipmentStateAction, 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<StagedOrderSetReturnShipmentStateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-