Package com.adyen.model.nexo
Enum LoyaltyUnitType
- java.lang.Object
-
- java.lang.Enum<LoyaltyUnitType>
-
- com.adyen.model.nexo.LoyaltyUnitType
-
- All Implemented Interfaces:
Serializable,Comparable<LoyaltyUnitType>
public enum LoyaltyUnitType extends Enum<LoyaltyUnitType>
Java class for LoyaltyUnitType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="LoyaltyUnitType"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="Point"/> <enumeration value="Monetary"/> </restriction> </simpleType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LoyaltyUnitTypefromValue(String v)From value loyalty unit type.Stringvalue()Value string.static LoyaltyUnitTypevalueOf(String name)Returns the enum constant of this type with the specified name.static LoyaltyUnitType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
POINT
public static final LoyaltyUnitType POINT
The amount is expressed in point.
-
MONETARY
public static final LoyaltyUnitType MONETARY
The amount is expressed in a monetary value in a currency.
-
-
Method Detail
-
values
public static LoyaltyUnitType[] 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 (LoyaltyUnitType c : LoyaltyUnitType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LoyaltyUnitType 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 LoyaltyUnitType fromValue(String v)
From value loyalty unit type.- Parameters:
v- the v- Returns:
- the loyalty unit type
-
-