Package model
Enum OperationKey
- java.lang.Object
-
- java.lang.Enum<OperationKey>
-
- model.OperationKey
-
- All Implemented Interfaces:
Serializable,Comparable<OperationKey>
public enum OperationKey extends Enum<OperationKey>
Details the operation that'll be performed in the transaction (Card present transactions only) .
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOperationKey.Adapter
-
Enum Constant Summary
Enum Constants Enum Constant Description CARD_PRESENT_AUTHORIZATIONCARD_PRESENT_DEBITCARD_PRESENT_UNREFERENCED_REFUNDMERCHANT_CREDIT_ADJUSTMENTMERCHANT_DEBIT_ADJUSTMENTPULL_FROM_CARDPUSH_TO_CARDSALEUNKNOWN_DEFAULTUNREFERENCED_REFUND
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OperationKeyfromValue(String value)StringgetRawValue()StringgetValue()voidsetRawValue(String s)StringtoString()static OperationKeyvalueOf(String name)Returns the enum constant of this type with the specified name.static OperationKey[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUSH_TO_CARD
public static final OperationKey PUSH_TO_CARD
-
PULL_FROM_CARD
public static final OperationKey PULL_FROM_CARD
-
CARD_PRESENT_DEBIT
public static final OperationKey CARD_PRESENT_DEBIT
-
CARD_PRESENT_UNREFERENCED_REFUND
public static final OperationKey CARD_PRESENT_UNREFERENCED_REFUND
-
SALE
public static final OperationKey SALE
-
UNREFERENCED_REFUND
public static final OperationKey UNREFERENCED_REFUND
-
MERCHANT_CREDIT_ADJUSTMENT
public static final OperationKey MERCHANT_CREDIT_ADJUSTMENT
-
MERCHANT_DEBIT_ADJUSTMENT
public static final OperationKey MERCHANT_DEBIT_ADJUSTMENT
-
CARD_PRESENT_AUTHORIZATION
public static final OperationKey CARD_PRESENT_AUTHORIZATION
-
UNKNOWN_DEFAULT
public static final OperationKey UNKNOWN_DEFAULT
-
-
Method Detail
-
values
public static OperationKey[] 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 (OperationKey c : OperationKey.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OperationKey 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
-
getValue
public String getValue()
-
toString
public String toString()
- Overrides:
toStringin classEnum<OperationKey>
-
setRawValue
public void setRawValue(String s)
-
getRawValue
public String getRawValue()
-
fromValue
public static OperationKey fromValue(String value)
-
-