Enum Class Estimate.State

Object
Enum<Estimate.State>
ch.aaap.harvestclient.domain.Estimate.State
All Implemented Interfaces:
Serializable, Comparable<Estimate.State>, Constable
Enclosing interface:
Estimate

public static enum Estimate.State extends Enum<Estimate.State>
Not documented online: got this from Harvest:

In the mean time you should be able to use the estimate's sent_at, accepted_at, and declined_at fields to determine the estimate's state.

  • If all three are empty, the estimate is a draft
  • If only sent_at is present, the estimate is open (or sent)
  • If accepted_at is present, the estimate is accepted
  • If declined_at is present, the estimate is declined (accepted_at and declined_at are mutually exclusive)
  • Enum Constant Details

  • Method Details

    • values

      public static Estimate.State[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Estimate.State valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null