Package net.libyaguide.gpay.sdk.model
Enum Class OperationType
- All Implemented Interfaces:
Serializable,Comparable<OperationType>,java.lang.constant.Constable
Enum representing the types of operations in the GPay system.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBank deposit operation.Bank withdrawal operation.Direct transfer operation.Local transfer operation.Payment request operation.Transaction fee operation. -
Method Summary
Modifier and TypeMethodDescriptionstatic OperationTypefromValue(int value) Returns the OperationType for the given value.intgetValue()Gets the integer value of the operation type.static OperationTypeReturns the enum constant of this class with the specified name.static OperationType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DIRECT_TRANSFER
Direct transfer operation. -
PAYMENT_REQUEST
Payment request operation. -
BANK_DEPOSIT
Bank deposit operation. -
BANK_WITHDRAW
Bank withdrawal operation. -
TRANSACTION_FEE
Transaction fee operation. -
LOCAL_TRANSFER
Local transfer operation.
-
-
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
-
getValue
public int getValue()Gets the integer value of the operation type.- Returns:
- the integer value of the operation type.
-
fromValue
Returns the OperationType for the given value.- Parameters:
value- the integer value of the operation type.- Returns:
- the corresponding OperationType.
- Throws:
IllegalArgumentException- if the value does not match any OperationType.
-