Interface StagedOrderChangeShipmentStateAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>,StagedOrderUpdateAction
Produces the Order Shipment State Changed Message.
Example to create an instance using the builder pattern
StagedOrderChangeShipmentStateAction stagedOrderChangeShipmentStateAction = StagedOrderChangeShipmentStateAction.builder()
.shipmentState(ShipmentState.SHIPPED)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StagedOrderChangeShipmentStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StagedOrderChangeShipmentStateActionbuilder(StagedOrderChangeShipmentStateAction template) create builder for StagedOrderChangeShipmentStateAction instancecopyDeep()deepCopy(StagedOrderChangeShipmentStateAction template) factory method to create a deep copy of StagedOrderChangeShipmentStateAction@NotNull ShipmentStateNew shipment status of the Order.of()factory methodof(StagedOrderChangeShipmentStateAction template) factory method to create a shallow copy StagedOrderChangeShipmentStateActionvoidsetShipmentState(ShipmentState shipmentState) New shipment status of the Order.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderChangeShipmentStateAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
CHANGE_SHIPMENT_STATE
discriminator value for StagedOrderChangeShipmentStateAction- See Also:
-
-
Method Details
-
getShipmentState
New shipment status of the Order.
- Returns:
- shipmentState
-
setShipmentState
New shipment status of the Order.
- Parameters:
shipmentState- value to be set
-
of
factory method- Returns:
- instance of StagedOrderChangeShipmentStateAction
-
of
factory method to create a shallow copy StagedOrderChangeShipmentStateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StagedOrderChangeShipmentStateAction copyDeep()- Specified by:
copyDeepin interfaceStagedOrderUpdateAction
-
deepCopy
@Nullable static StagedOrderChangeShipmentStateAction deepCopy(@Nullable StagedOrderChangeShipmentStateAction template) factory method to create a deep copy of StagedOrderChangeShipmentStateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderChangeShipmentStateAction- Returns:
- builder
-
builder
static StagedOrderChangeShipmentStateActionBuilder builder(StagedOrderChangeShipmentStateAction template) create builder for StagedOrderChangeShipmentStateAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderChangeShipmentStateAction
default <T> T withStagedOrderChangeShipmentStateAction(Function<StagedOrderChangeShipmentStateAction, 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<StagedOrderChangeShipmentStateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-