public enum Usage extends java.lang.Enum<Usage> implements Operation
Enum Constant and Description |
---|
CANCEL
operation type to cancel a request
|
DEBIT_AMOUNT
a debit operation based on supplied amount
|
DEBIT_UNIT
debit operation based on supplied units
|
EVENT
a single event operation
|
INITIATE
operation type indicating an initial request
|
PRICE_ENQUIRY
a price enquiry operation
|
REFUND_AMOUNT
a refund operation on supplied amount
|
REFUND_UNIT
a refund operation on supplied units
|
START_ACCOUNTING
a start accounting operation
|
TERMINATE
operation type indicating a terminate request
|
TERMINATE_AMOUNT
a terminate operation based on supplied amount
|
UPDATE
operation type indicating an update request
|
UPDATE_ACCOUNTING
an update accounting operation
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getType()
Get the operation type as string
|
static Usage |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Usage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Usage INITIATE
public static final Usage UPDATE
public static final Usage TERMINATE
public static final Usage CANCEL
public static final Usage DEBIT_UNIT
public static final Usage DEBIT_AMOUNT
public static final Usage REFUND_UNIT
public static final Usage REFUND_AMOUNT
public static final Usage PRICE_ENQUIRY
public static final Usage START_ACCOUNTING
public static final Usage UPDATE_ACCOUNTING
public static final Usage EVENT
public static final Usage TERMINATE_AMOUNT
public static Usage[] values()
for (Usage c : Usage.values()) System.out.println(c);
public static Usage valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null