Enum StateReason
- java.lang.Object
-
- java.lang.Enum<StateReason>
-
- com.thalesgroup.gemalto.d1.card.cardservice.StateReason
-
- All Implemented Interfaces:
Serializable,Comparable<StateReason>
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 Summary
Enum Constants Enum Constant Description CARD_BROKENCard is damaged.CARD_FOUNDCard is found.CARD_LOSTCard is lost.CARD_NOT_RECEIVEDCard is not received.CARD_STOLENCard is stolen.CLOSED_ACCOUNTAccount is closed.CLOSED_CARDCard is closed.CVV2_LOCKEDCVV is locked.EXPIRY_DATE_LOCKEDExpiry date is locked.FRAUDCard has a fraudulent operation.ISSUER_DECISIONIssuer decision.NONENo reason provided.PIN_LOCKEDPIN is locked.USER_DECISIONUser decision.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StateReasonfromString(String val)Converts from String to StateReason.static StateReason[]getReplaceReasons()Helper method to list the state reasons allowed forCardService.replaceCard()StringtoString()Returns the value as String.static StateReasonvalueOf(String name)Returns the enum constant of this type with the specified name.static StateReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static StateReason[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StateReason c : StateReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StateReason valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- 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:
toStringin classEnum<StateReason>
-
getReplaceReasons
public static StateReason[] getReplaceReasons()
Helper method to list the state reasons allowed forCardService.replaceCard()- Returns:
- list of state reasons to replace a card issued by D1
CARD_BROKEN,CARD_STOLEN,CARD_LOST,CARD_NOT_RECEIVED,FRAUD
-
-