net.java.slee.resource.diameter.cca.events.avp
Enum RequestedActionType

java.lang.Object
  extended by java.lang.Enum<RequestedActionType>
      extended by net.java.slee.resource.diameter.cca.events.avp.RequestedActionType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RequestedActionType>, net.java.slee.resource.diameter.base.events.avp.Enumerated

public enum RequestedActionType
extends java.lang.Enum<RequestedActionType>
implements net.java.slee.resource.diameter.base.events.avp.Enumerated

 8.41. Requested-Action AVP


   The Requested-Action AVP (AVP Code 436) is of type Enumerated and
   contains the requested action being sent by Credit-Control-Request
   command where the CC-Request-Type is set to EVENT_REQUEST.  The
   following values are defined for the Requested-Action AVP:

   DIRECT_DEBITING                 0
      This indicates a request to decrease the end user's account
      according to information specified in the Requested-Service-Unit
      AVP and/or Service-Identifier AVP (additional rating information
      may be included in service-specific AVPs or in the Service-
      Parameter-Info AVP).  The Granted-Service-Unit AVP in the Credit-
      Control-Answer command contains the debited units.

   REFUND_ACCOUNT                  1
      This indicates a request to increase the end user's account
      according to information specified in the Requested-Service-Unit
      AVP and/or Service-Identifier AVP (additional rating information
      may be included in service-specific AVPs or in the Service-
      Parameter-Info AVP).  The Granted-Service-Unit AVP in the Credit-
      Control-Answer command contains the refunded units.

   CHECK_BALANCE                   2
      This indicates a balance check request.  In this case, the
      checking of the account balance is done without any credit
      reservation from the account.  The Check-Balance-Result AVP in the
      Credit-Control-Answer command contains the result of the balance
      check.

   PRICE_ENQUIRY                   3
      This indicates a price enquiry request.  In this case, neither
      checking of the account balance nor reservation from the account
      will be done; only the price of the service will be returned in
      the Cost-Information AVP in the Credit-Control-Answer Command.
      

Author:
Bartosz Baranowski , Alexandre Mendonca

Enum Constant Summary
CHECK_BALANCE
           
DIRECT_DEBITING
           
PRICE_ENQUIRY
           
REFUND_ACCOUNT
           
 
Method Summary
static RequestedActionType fromInt(int type)
           
 int getValue()
           
static RequestedActionType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RequestedActionType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DIRECT_DEBITING

public static final RequestedActionType DIRECT_DEBITING

REFUND_ACCOUNT

public static final RequestedActionType REFUND_ACCOUNT

CHECK_BALANCE

public static final RequestedActionType CHECK_BALANCE

PRICE_ENQUIRY

public static final RequestedActionType PRICE_ENQUIRY
Method Detail

values

public static RequestedActionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RequestedActionType c : RequestedActionType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RequestedActionType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

fromInt

public static RequestedActionType fromInt(int type)
                                   throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

getValue

public int getValue()
Specified by:
getValue in interface net.java.slee.resource.diameter.base.events.avp.Enumerated


Copyright © 2012. All Rights Reserved.