Enum Class RewardIssuance.Type

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

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

    • PERSISTENT

      public static final RewardIssuance.Type PERSISTENT
      Indicates that the RewardIssuance may only be issued once per user per context, even after the redemption step (i.e. there may only ever be at most one RewardIssuance that is either ISSUED or REDEEMED). If set, the system will ignore the expirationTimestamp and the record will remain persisted to prevent future issuances.
    • NON_PERSISTENT

      public static final RewardIssuance.Type NON_PERSISTENT
      Indicates that the RewardIssuance may be issued repeatedly to the same user with the same context. Note that only one RewardIssuance in the ISSUED state may exist at a time, i.e. any pre-existing RewardIssuance with a matching user and context must either first expire or be redeemed before a new RewardIssuance will be created.
  • Method Details

    • values

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