Package com.adyen.model.nexo
Enum LoyaltyHandlingType
- java.lang.Object
-
- java.lang.Enum<LoyaltyHandlingType>
-
- com.adyen.model.nexo.LoyaltyHandlingType
-
- All Implemented Interfaces:
Serializable,Comparable<LoyaltyHandlingType>
public enum LoyaltyHandlingType extends Enum<LoyaltyHandlingType>
Java class for LoyaltyHandlingType.The following schema fragment specifies the expected content contained within this class.
<simpleType name="LoyaltyHandlingType"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="Forbidden"/> <enumeration value="Processed"/> <enumeration value="Allowed"/> <enumeration value="Proposed"/> <enumeration value="Required"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLOWEDThe loyalty is accepted, but the POI has not to require or ask a loyalty card.FORBIDDENNo loyalty card to read and loyalty transaction to process.PROCESSEDThe loyalty transaction is already processed, no loyalty card or loyalty transaction to process.PROPOSEDThe loyalty is accepted, and the POI has to ask a loyalty card.REQUIREDThe loyalty is required, and the POI refuses the processing of the messageType request if the cardholder does not entre a loyalty card
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LoyaltyHandlingTypefromValue(String v)Returns the enum constant matching the given string, ornullif no match is found.Stringvalue()Value string.static LoyaltyHandlingTypevalueOf(String name)Returns the enum constant of this type with the specified name.static LoyaltyHandlingType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FORBIDDEN
@SerializedName("Forbidden") public static final LoyaltyHandlingType FORBIDDENNo loyalty card to read and loyalty transaction to process. Any attempt to enter a pure loyalty card is rejected.
-
PROCESSED
@SerializedName("Processed") public static final LoyaltyHandlingType PROCESSEDThe loyalty transaction is already processed, no loyalty card or loyalty transaction to process.
-
ALLOWED
@SerializedName("Allowed") public static final LoyaltyHandlingType ALLOWEDThe loyalty is accepted, but the POI has not to require or ask a loyalty card. The loyalty is involved by the payment card (e.g. an hybrid or linked card).
-
PROPOSED
@SerializedName("Proposed") public static final LoyaltyHandlingType PROPOSEDThe loyalty is accepted, and the POI has to ask a loyalty card. If the Customer does not enter a loyalty card, no loyalty transaction is realised.
-
REQUIRED
@SerializedName("Required") public static final LoyaltyHandlingType REQUIREDThe loyalty is required, and the POI refuses the processing of the messageType request if the cardholder does not entre a loyalty card
-
-
Method Detail
-
values
public static LoyaltyHandlingType[] 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 (LoyaltyHandlingType c : LoyaltyHandlingType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LoyaltyHandlingType 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
-
value
public String value()
Value string.- Returns:
- the string
-
fromValue
public static LoyaltyHandlingType fromValue(String v)
Returns the enum constant matching the given string, ornullif no match is found.- Parameters:
v- string value- Returns:
- the LoyaltyHandlingType, or
nullif no match is found.
-
-