Enum Class OrderStatus

java.lang.Object
java.lang.Enum<OrderStatus>
com.persequor.saga.modules.id.model.OrderStatus
All Implemented Interfaces:
Serializable, Comparable<OrderStatus>, Constable

public enum OrderStatus extends Enum<OrderStatus>
  • Enum Constant Details

    • CREATED

      public static final OrderStatus CREATED
    • FAILED

      public static final OrderStatus FAILED
    • PENDING

      public static final OrderStatus PENDING
    • REQUEST_PENDING

      public static final OrderStatus REQUEST_PENDING
    • DECLINED

      public static final OrderStatus DECLINED
    • ACTIVE

      public static final OrderStatus ACTIVE
    • FINISHED

      public static final OrderStatus FINISHED
    • RETRY_ATTEMPT_EXCEEDED

      public static final OrderStatus RETRY_ATTEMPT_EXCEEDED
    • PRUNED

      public static final OrderStatus PRUNED
  • Method Details

    • values

      public static OrderStatus[] 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 OrderStatus 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
    • isOrderCompleted

      public boolean isOrderCompleted()
      Returns:
      a boolean value of the expression: Has the ID order reached an end state? That is, true if the order status has been completed with a final outcome
    • isRetrievableFromIssuer

      public boolean isRetrievableFromIssuer()
      Returns:
      a boolean value of the expression: Is the ID order ready to be retrieved from the issuer? That is, true if the ID order has been accepted by the issuer and can now be retrieved
    • isDownloadAvailable

      public boolean isDownloadAvailable()
      Returns:
      a boolean value of the expression: Is the ID order available to be downloaded via the frontend? That is, true if the ID order has been retrieved from the issuer and is stored in the database
    • allowsChangingParameters

      public boolean allowsChangingParameters()
    • isSubmittedToIssuer

      public boolean isSubmittedToIssuer()
    • haveIdsBeenFetched

      public boolean haveIdsBeenFetched()
      Returns:
      a boolean value signalling if it is okay (from a status flow perspective) to close the order remotely.
    • getDetailedDescription

      public String getDetailedDescription()