Interface QuoteState
- All Superinterfaces:
JsonEnum
- All Known Implementing Classes:
QuoteState.QuoteStateEnum
Predefined states tracking the status of the Quote.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
possible values of QuoteState -
Field Summary
Modifier and TypeFieldDescriptionstatic final QuoteState
A state indicating that the Buyer has accepted the Quote.static final QuoteState
A state indicating that the Buyer has declined the Quote.static final QuoteState
A state indicating that the Buyer has declined and requested to renegotiate the Quote.static final QuoteState
A state indicating that the Seller submitted the Quote to the Buyer, but the Buyer has not replied yet.static final QuoteState
A state indicating that the Seller has created a new Quote after a renegotiation has been requested.static final QuoteState
A state indicating that the Seller has withdrawn the Quote before the Buyer has accepted it. -
Method Summary
Modifier and TypeMethodDescriptionstatic QuoteState
factory method for a enum value of QuoteState if no enum has been found an anonymous instance will be createdstatic Optional<QuoteState>
findEnumViaJsonName
(String jsonName) method to find enum using the JSON valuethe JSON valuename()
the enum valuetoString()
convert value to stringstatic QuoteState[]
values()
possible enum values
-
Field Details
-
PENDING
A state indicating that the Seller submitted the Quote to the Buyer, but the Buyer has not replied yet.
This is the default state.
-
DECLINED
A state indicating that the Buyer has declined the Quote.
-
DECLINED_FOR_RENEGOTIATION
A state indicating that the Buyer has declined and requested to renegotiate the Quote.
-
RENEGOTIATION_ADDRESSED
A state indicating that the Seller has created a new Quote after a renegotiation has been requested.
-
ACCEPTED
A state indicating that the Buyer has accepted the Quote.
-
WITHDRAWN
A state indicating that the Seller has withdrawn the Quote before the Buyer has accepted it.
-
-
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 QuoteState 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
-