Enum Class Usage
- All Implemented Interfaces:
Serializable
,Comparable<Usage>
,Constable
,Operation
Operation types supported by a usage request.
ECE is serializing OperationType name as a string. For rerating, we are persisting
this as an enum in BRM database to avoid upgrade impacts if enum names are changed in
future versions of ECE. Explicit values are set here to ensure future additions are made at
the end and the number assignments are unique.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionoperation type to cancel a requesta debit operation based on supplied amountdebit operation based on supplied unitsa single event operationoperation type indicating an initial requesta price enquiry operationa refund operation on supplied amounta refund operation on supplied unitsa start accounting operationoperation type indicating a terminate requesta terminate operation based on supplied amountoperation type indicating an update requestan update accounting operation -
Method Summary
-
Enum Constant Details
-
INITIATE
operation type indicating an initial request -
UPDATE
operation type indicating an update request -
TERMINATE
operation type indicating a terminate request -
CANCEL
operation type to cancel a request -
DEBIT_UNIT
debit operation based on supplied units -
DEBIT_AMOUNT
a debit operation based on supplied amount -
REFUND_UNIT
a refund operation on supplied units -
REFUND_AMOUNT
a refund operation on supplied amount -
PRICE_ENQUIRY
a price enquiry operation -
START_ACCOUNTING
a start accounting operation -
UPDATE_ACCOUNTING
an update accounting operation -
EVENT
a single event operation -
TERMINATE_AMOUNT
a terminate operation based on supplied amount
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getType
Get the operation type as string
-