Package com.six.timapi.constants
Enum NgvMode
- java.lang.Object
-
- java.lang.Enum<NgvMode>
-
- com.six.timapi.constants.NgvMode
-
- All Implemented Interfaces:
Serializable
,Comparable<NgvMode>
public enum NgvMode extends Enum<NgvMode>
Defines if NGV usage is mandatory or optional if card supports it.
This field can be set in a purchase transaction request to define the NGV behaviour for the current transaction.
Example: NGV purchase transaction with one day clearing delay:
The following values are valid:
Specification: austrianUseCases.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLOWED_WITH_FALLBACK
NGV shall be performed if card supports it, fallback to standard purchase allowed.MANDATORY
NGV is mandatory, no fallback to standard purchase allowed.NOT_ALLOWED
NGV not allowed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NgvMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static NgvMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MANDATORY
public static final NgvMode MANDATORY
NGV is mandatory, no fallback to standard purchase allowed.
Specification: austrianUseCases.
-
ALLOWED_WITH_FALLBACK
public static final NgvMode ALLOWED_WITH_FALLBACK
NGV shall be performed if card supports it, fallback to standard purchase allowed. (Default)
Specification: austrianUseCases.
-
NOT_ALLOWED
public static final NgvMode NOT_ALLOWED
NGV not allowed.
Specification: austrianUseCases.
-
-
Method Detail
-
values
public static NgvMode[] 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 (NgvMode c : NgvMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NgvMode 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
-
-