Interface OrderChangeShipmentStateAction
- All Superinterfaces:
OrderUpdateAction,ResourceUpdateAction<OrderUpdateAction>
Produces the Order Shipment State Changed Message.
Example to create an instance using the builder pattern
OrderChangeShipmentStateAction orderChangeShipmentStateAction = OrderChangeShipmentStateAction.builder()
.shipmentState(ShipmentState.SHIPPED)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for OrderChangeShipmentStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for OrderChangeShipmentStateActionbuilder(OrderChangeShipmentStateAction template) create builder for OrderChangeShipmentStateAction instancecopyDeep()deepCopy(OrderChangeShipmentStateAction template) factory method to create a deep copy of OrderChangeShipmentStateAction@NotNull ShipmentStateNew shipment status of the Order.of()factory methodof(OrderChangeShipmentStateAction template) factory method to create a shallow copy OrderChangeShipmentStateActionvoidsetShipmentState(ShipmentState shipmentState) New shipment status of the Order.static com.fasterxml.jackson.core.type.TypeReference<OrderChangeShipmentStateAction>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
-
CHANGE_SHIPMENT_STATE
discriminator value for OrderChangeShipmentStateAction- 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 OrderChangeShipmentStateAction
-
of
factory method to create a shallow copy OrderChangeShipmentStateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
OrderChangeShipmentStateAction copyDeep()- Specified by:
copyDeepin interfaceOrderUpdateAction
-
deepCopy
@Nullable static OrderChangeShipmentStateAction deepCopy(@Nullable OrderChangeShipmentStateAction template) factory method to create a deep copy of OrderChangeShipmentStateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderChangeShipmentStateAction- Returns:
- builder
-
builder
create builder for OrderChangeShipmentStateAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withOrderChangeShipmentStateAction
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<OrderChangeShipmentStateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-