Enum Class RewardIssuance.State

java.lang.Object
java.lang.Enum<RewardIssuance.State>
dev.getelements.elements.sdk.model.reward.RewardIssuance.State
All Implemented Interfaces:
Serializable, Comparable<RewardIssuance.State>, Constable
Enclosing class:
RewardIssuance

public static enum RewardIssuance.State extends Enum<RewardIssuance.State>
  • Enum Constant Details

    • ISSUED

      public static final RewardIssuance.State ISSUED
      Indicates that the RewardIssuance has been successfully issued but not yet redeemed by the client. This is the default value of an issuance when created.
    • REDEEMED

      public static final RewardIssuance.State REDEEMED
      Indicates that the RewardIssuance has been successfully redeemed. If the RewardIssuance has a NON_PERSISTENT Type, then, after a successful redemption, the MongoRewardIssuanceDao will immediately attempt to delete the RewardIssuance. TODO: since we cannot guarantee that we will both successfully redeem a NON_PERSISTENT RewardIssuance and TODO: successfully delete it since mongo does not support transactions, we may need some scheduled cleanup TODO: process to clear them out (setting a new expiration date will not work since that TODO: likewise cannot be done atomically).
  • Method Details

    • values

      public static RewardIssuance.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 RewardIssuance.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