Class RequestedAction
- java.lang.Object
-
- org.jainslee.resources.diameter.cca.types.RequestedAction
-
- All Implemented Interfaces:
Serializable
,Enumerated
public class RequestedAction extends Object implements Serializable, Enumerated
Java class to represent the RequestedAction enumerated type. Documentation from the relevant specification: 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.- Author:
- Open Cloud
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
_CHECK_BALANCE
static int
_DIRECT_DEBITING
static int
_PRICE_ENQUIRY
static int
_REFUND_ACCOUNT
static RequestedAction
CHECK_BALANCE
This indicates a balance check request.static RequestedAction
DIRECT_DEBITING
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).static RequestedAction
PRICE_ENQUIRY
This indicates a price enquiry request.static RequestedAction
REFUND_ACCOUNT
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).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RequestedAction
fromInt(int type)
int
getValue()
Return the value of this instance of this enumerated type.String
toString()
-
-
-
Field Detail
-
_DIRECT_DEBITING
public static final int _DIRECT_DEBITING
- See Also:
- Constant Field Values
-
_REFUND_ACCOUNT
public static final int _REFUND_ACCOUNT
- See Also:
- Constant Field Values
-
_CHECK_BALANCE
public static final int _CHECK_BALANCE
- See Also:
- Constant Field Values
-
_PRICE_ENQUIRY
public static final int _PRICE_ENQUIRY
- See Also:
- Constant Field Values
-
DIRECT_DEBITING
public static final RequestedAction DIRECT_DEBITING
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
public static final RequestedAction REFUND_ACCOUNT
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
public static final RequestedAction CHECK_BALANCE
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
public static final RequestedAction PRICE_ENQUIRY
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.
-
-
Method Detail
-
fromInt
public static RequestedAction fromInt(int type)
-
getValue
public int getValue()
Description copied from interface:Enumerated
Return the value of this instance of this enumerated type.- Specified by:
getValue
in interfaceEnumerated
- Returns:
- value
-
-