Interface StateTypeEnum
- All Superinterfaces:
JsonEnum
- All Known Implementing Classes:
StateTypeEnum.StateTypeEnumEnum
Resource or object type the State can be assigned to.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
possible values of StateTypeEnum -
Field Summary
Modifier and TypeFieldDescriptionstatic final StateTypeEnum
Used by LineItems and CustomLineItems in Carts and Orders.static final StateTypeEnum
Used by Orders.static final StateTypeEnum
Used by PaymentStatus in Payments.static final StateTypeEnum
Used by Products.static final StateTypeEnum
Used by QuoteRequest.static final StateTypeEnum
Used by Quote.static final StateTypeEnum
Used by Reviews.static final StateTypeEnum
Used by StagedQuote. -
Method Summary
Modifier and TypeMethodDescriptionstatic StateTypeEnum
factory method for a enum value of StateTypeEnum if no enum has been found an anonymous instance will be createdstatic Optional<StateTypeEnum>
findEnumViaJsonName
(String jsonName) method to find enum using the JSON valuethe JSON valuename()
the enum valuetoString()
convert value to stringstatic StateTypeEnum[]
values()
possible enum values
-
Field Details
-
ORDER_STATE
Used by Orders.
-
LINE_ITEM_STATE
Used by LineItems and CustomLineItems in Carts and Orders.
-
PRODUCT_STATE
Used by Products.
-
REVIEW_STATE
Used by Reviews.
-
PAYMENT_STATE
Used by PaymentStatus in Payments.
-
QUOTE_REQUEST_STATE
Used by QuoteRequest.
-
STAGED_QUOTE_STATE
Used by StagedQuote.
-
QUOTE_STATE
Used by Quote.
-
-
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 StateTypeEnum 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
-