Interface QuoteState

All Superinterfaces:
JsonEnum
All Known Implementing Classes:
QuoteState.QuoteStateEnum

public interface QuoteState extends JsonEnum

Predefined states tracking the status of the Quote.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    possible values of QuoteState
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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 Type
    Method
    Description
    static QuoteState
    factory method for a enum value of QuoteState if no enum has been found an anonymous instance will be created
    method to find enum using the JSON value
    the JSON value
    the enum value
    convert value to string
    static QuoteState[]
    possible enum values
  • Field Details

    • PENDING

      static final QuoteState 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

      static final QuoteState DECLINED

      A state indicating that the Buyer has declined the Quote.

    • DECLINED_FOR_RENEGOTIATION

      static final QuoteState DECLINED_FOR_RENEGOTIATION

      A state indicating that the Buyer has declined and requested to renegotiate the Quote.

    • RENEGOTIATION_ADDRESSED

      static final QuoteState RENEGOTIATION_ADDRESSED

      A state indicating that the Seller has created a new Quote after a renegotiation has been requested.

    • ACCEPTED

      static final QuoteState ACCEPTED

      A state indicating that the Buyer has accepted the Quote.

    • WITHDRAWN

      static final QuoteState 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 interface JsonEnum
      Returns:
      json value
    • name

      String name()
      the enum value
      Specified by:
      name in interface JsonEnum
      Returns:
      name
    • toString

      String toString()
      convert value to string
      Specified by:
      toString in interface JsonEnum
      Overrides:
      toString in class Object
      Returns:
      string representation
    • findEnum

      static QuoteState findEnum(String value)
      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

      static Optional<QuoteState> findEnumViaJsonName(String jsonName)
      method to find enum using the JSON value
      Parameters:
      jsonName - the json value to be wrapped
      Returns:
      optional of enum instance
    • values

      static QuoteState[] values()
      possible enum values
      Returns:
      array of possible enum values