Enum Class OperationType

java.lang.Object
java.lang.Enum<OperationType>
net.libyaguide.gpay.sdk.model.OperationType
All Implemented Interfaces:
Serializable, Comparable<OperationType>, java.lang.constant.Constable

public enum OperationType extends Enum<OperationType>
Enum representing the types of operations in the GPay system.
  • Enum Constant Details

    • DIRECT_TRANSFER

      public static final OperationType DIRECT_TRANSFER
      Direct transfer operation.
    • PAYMENT_REQUEST

      public static final OperationType PAYMENT_REQUEST
      Payment request operation.
    • BANK_DEPOSIT

      public static final OperationType BANK_DEPOSIT
      Bank deposit operation.
    • BANK_WITHDRAW

      public static final OperationType BANK_WITHDRAW
      Bank withdrawal operation.
    • TRANSACTION_FEE

      public static final OperationType TRANSACTION_FEE
      Transaction fee operation.
    • LOCAL_TRANSFER

      public static final OperationType LOCAL_TRANSFER
      Local transfer operation.
  • Method Details

    • values

      public static OperationType[] 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

      public static OperationType valueOf(String name)
      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 name
      NullPointerException - 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

      public static OperationType fromValue(int value)
      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.