Enum Class StateReason

java.lang.Object
java.lang.Enum<StateReason>
com.thalesgroup.gemalto.d1.card.cardservice.StateReason
All Implemented Interfaces:
Serializable, Comparable<StateReason>, java.lang.constant.Constable

public enum StateReason extends Enum<StateReason>
The reason that is associated to the state for the cards issued by D1.
Since:
4.0.0
  • Enum Constant Details

    • NONE

      public static final StateReason NONE
      No reason provided.
    • CLOSED_ACCOUNT

      public static final StateReason CLOSED_ACCOUNT
      Account is closed.
    • CLOSED_CARD

      public static final StateReason CLOSED_CARD
      Card is closed.
    • CARD_LOST

      public static final StateReason CARD_LOST
      Card is lost.
    • CARD_FOUND

      public static final StateReason CARD_FOUND
      Card is found.
    • CARD_STOLEN

      public static final StateReason CARD_STOLEN
      Card is stolen.
    • CARD_BROKEN

      public static final StateReason CARD_BROKEN
      Card is damaged.
    • CARD_NOT_RECEIVED

      public static final StateReason CARD_NOT_RECEIVED
      Card is not received.
    • FRAUD

      public static final StateReason FRAUD
      Card has a fraudulent operation.
    • USER_DECISION

      public static final StateReason USER_DECISION
      User decision.
    • ISSUER_DECISION

      public static final StateReason ISSUER_DECISION
      Issuer decision.
    • PIN_LOCKED

      public static final StateReason PIN_LOCKED
      PIN is locked.
    • CVV2_LOCKED

      public static final StateReason CVV2_LOCKED
      CVV is locked.
    • EXPIRY_DATE_LOCKED

      public static final StateReason EXPIRY_DATE_LOCKED
      Expiry date is locked.
  • Method Details

    • values

      public static StateReason[] 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 StateReason 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
    • fromString

      @Nullable public static StateReason fromString(String val)
      Converts from String to StateReason.
    • toString

      @NonNull public String toString()
      Returns the value as String.
      Overrides:
      toString in class Enum<StateReason>
    • getReplaceReasons

      public static StateReason[] getReplaceReasons()
      Helper method to list the state reasons allowed for CardService.replaceCard()
      Returns:
      list of state reasons to replace a card issued by D1 CARD_BROKEN,CARD_STOLEN,CARD_LOST, CARD_NOT_RECEIVED,FRAUD