Interface ShipmentState
- All Superinterfaces:
JsonEnum
- All Known Implementing Classes:
ShipmentState.ShipmentStateEnum
Indicates the shipment status of the Order.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
possible values of ShipmentState -
Field Summary
Modifier and TypeFieldDescriptionstatic final ShipmentState
Indicates that items in the Order are not in stock and will be delivered once the items are restocked.static final ShipmentState
Indicates that the shipment of the Order is delayed.static final ShipmentState
Indicates that the Order is delivered.static final ShipmentState
Indicates that items in the Order are shipped in more than one shipment.static final ShipmentState
Indicates that the shipment of the Order is pending.static final ShipmentState
Indicates that the Order is ready to be shipped.static final ShipmentState
Indicates that the Order is shipped. -
Method Summary
Modifier and TypeMethodDescriptionstatic ShipmentState
factory method for a enum value of ShipmentState if no enum has been found an anonymous instance will be createdstatic Optional<ShipmentState>
findEnumViaJsonName
(String jsonName) method to find enum using the JSON valuethe JSON valuename()
the enum valuetoString()
convert value to stringstatic ShipmentState[]
values()
possible enum values
-
Field Details
-
SHIPPED
Indicates that the Order is shipped.
-
DELIVERED
Indicates that the Order is delivered.
-
READY
Indicates that the Order is ready to be shipped.
-
PENDING
Indicates that the shipment of the Order is pending.
-
DELAYED
Indicates that the shipment of the Order is delayed.
-
PARTIAL
Indicates that items in the Order are shipped in more than one shipment.
-
BACKORDER
Indicates that items in the Order are not in stock and will be delivered once the items are restocked.
-
-
Method Details
-
getJsonName
String getJsonName()the JSON value- Specified by:
getJsonName
in interfaceJsonEnum
- Returns:
- json value
-
name
String name()the enum value -
toString
String toString()convert value to string -
findEnum
factory method for a enum value of ShipmentState if no enum has been found an anonymous instance will be created- Parameters:
value
- the enum value to be wrapped- Returns:
- enum instance
-
findEnumViaJsonName
method to find enum using the JSON value- Parameters:
jsonName
- the json value to be wrapped- Returns:
- optional of enum instance
-
values
possible enum values- Returns:
- array of possible enum values
-