java.lang.Object
java.lang.Enum<Usage>
oracle.communication.brm.charging.messages.usage.Usage
All Implemented Interfaces:
Serializable, Comparable<Usage>, Constable, Operation

public enum Usage extends Enum<Usage> implements 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.
  • Enum Constant Details

    • INITIATE

      public static final Usage INITIATE
      operation type indicating an initial request
    • UPDATE

      public static final Usage UPDATE
      operation type indicating an update request
    • TERMINATE

      public static final Usage TERMINATE
      operation type indicating a terminate request
    • CANCEL

      public static final Usage CANCEL
      operation type to cancel a request
    • DEBIT_UNIT

      public static final Usage DEBIT_UNIT
      debit operation based on supplied units
    • DEBIT_AMOUNT

      public static final Usage DEBIT_AMOUNT
      a debit operation based on supplied amount
    • REFUND_UNIT

      public static final Usage REFUND_UNIT
      a refund operation on supplied units
    • REFUND_AMOUNT

      public static final Usage REFUND_AMOUNT
      a refund operation on supplied amount
    • PRICE_ENQUIRY

      public static final Usage PRICE_ENQUIRY
      a price enquiry operation
    • START_ACCOUNTING

      public static final Usage START_ACCOUNTING
      a start accounting operation
    • UPDATE_ACCOUNTING

      public static final Usage UPDATE_ACCOUNTING
      an update accounting operation
    • EVENT

      public static final Usage EVENT
      a single event operation
    • TERMINATE_AMOUNT

      public static final Usage TERMINATE_AMOUNT
      a terminate operation based on supplied amount
  • Method Details

    • values

      public static Usage[] 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 Usage 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
    • getType

      public String getType()
      Get the operation type as string
      Specified by:
      getType in interface Operation
      Returns:
      the operation type