Interface QuoteState

All Superinterfaces:
io.vrap.rmf.base.client.JsonEnum
All Known Implementing Classes:
QuoteState.QuoteStateEnum

public interface QuoteState extends io.vrap.rmf.base.client.JsonEnum

Predefined states tracking the status of the Quote.

  • 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 io.vrap.rmf.base.client.JsonEnum
      Returns:
      json value
    • name

      String name()
      the enum value
      Specified by:
      name in interface io.vrap.rmf.base.client.JsonEnum
      Returns:
      name
    • toString

      String toString()
      convert value to string
      Specified by:
      toString in interface io.vrap.rmf.base.client.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