|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IpChargingSessionConnection
The Charging Session interface provides operations to facilitate transactions between a merchant and a user. The application programmer can use this interface to debit or credit amounts and/or units towards a user, to create and extend the lifetime of a reservation and to get information about what is left of the reservation. This interface shall be implemented by a Charging SCF. As a minimum requirement, the release() method shall be implemented. If the reserveAmountReq() method is implemented, at least one of the debitAmountReq() or the creditAmountReq() methods shall also be implemented. If the reserveUnitReq() method is implemented, at least one of the debitUnitReq() or the creditUnitReq() methods shall also be implemented. If neither the reserveAmountReq() nor the reserveUnitReq() method is implemented, then at least one of the directDebitAmountReq() or the directDebitUnitReq(), or the directCreditAmountReq(), or the directCreditUnitReq() methods shall be implemented.
| Method Summary | |
|---|---|
void |
creditAmountReq(TpApplicationDescription applicationDescription,
TpChargingPrice amount,
boolean closeReservation,
int requestNumber)
This method credits an amount towards the reservation associated with the session. |
void |
creditUnitReq(TpApplicationDescription applicationDescription,
TpVolume[] volumes,
boolean closeReservation,
int requestNumber)
This method credits a volume of application usage towards the reservation. |
void |
debitAmountReq(TpApplicationDescription applicationDescription,
TpChargingPrice amount,
boolean closeReservation,
int requestNumber)
This method debits an amount from the reservation. |
void |
debitUnitReq(TpApplicationDescription applicationDescription,
TpVolume[] volumes,
boolean closeReservation,
int requestNumber)
This method debits a volume of application usage from the reservation. |
void |
directCreditAmountReq(TpApplicationDescription applicationDescription,
TpChargingParameter[] chargingParameters,
TpChargingPrice amount,
int requestNumber)
This method directly credits an amount towards the user. |
void |
directCreditUnitReq(TpApplicationDescription applicationDescription,
TpChargingParameter[] chargingParameters,
TpVolume[] volumes,
int requestNumber)
This method directly credits a volume of application usage towards the user. |
void |
directDebitAmountReq(TpApplicationDescription applicationDescription,
TpChargingParameter[] chargingParameters,
TpChargingPrice amount,
int requestNumber)
This method directly debits an amount towards the user. |
void |
directDebitUnitReq(TpApplicationDescription applicationDescription,
TpChargingParameter[] chargingParameters,
TpVolume[] volumes,
int requestNumber)
This method directly credits a volume of application usage towards the user. |
void |
extendLifeTimeReq()
With this method an application can request the lifetime of the reservation to be extended. |
TpChargingPrice |
getAmountLeft()
With this method an application can request the remaining amount of the reservation. |
int |
getLifeTimeLeft()
With this method an application can request the remaining lifetime of the reservation. |
TpVolume[] |
getUnitLeft()
With this method an application can request the remaining amount of the reservation. |
void |
rateReq(TpChargingParameter[] chargingParameters)
This method is used when the application wants to have an item rated by the charging service. |
void |
release(int requestNumber)
This method releases the session, no operations can be done towards this session anymore (not even retries). |
void |
reserveAmountReq(TpApplicationDescription applicationDescription,
TpChargingParameter[] chargingParameters,
TpChargingPrice preferredAmount,
TpChargingPrice minimumAmount,
int requestNumber)
This method is used when an application wants to reserve an amount of money for services to be delivered to a user. |
void |
reserveUnitReq(TpApplicationDescription applicationDescription,
TpChargingParameter[] chargingParameters,
TpVolume[] volumes,
int requestNumber)
This method is used when an application wants to reserve volumes of application usage to be delivered to a user in the session. |
| Methods inherited from interface org.mobicents.csapi.jr.slee.IpServiceConnection |
|---|
closeConnection |
| Method Detail |
|---|
void creditAmountReq(TpApplicationDescription applicationDescription,
TpChargingPrice amount,
boolean closeReservation,
int requestNumber)
throws TpCommonExceptions,
P_INVALID_AMOUNT,
P_INVALID_CURRENCY,
P_INVALID_REQUEST_NUMBER,
javax.slee.resource.ResourceException
amount - The amount of specified currency to be credited towards the user.closeReservation - If set to true, this parameter indicates that the remaining part of the reservation can be freed. This may also mean addition of currency to the subscriber's account if more credits than debits have been made. The session is not released, this has to be done explicitly by calling the release() method.requestNumber - Specifies the number given in the result of the previous operation on this session, or when creating the session. When no answer is received the same operation with the same parameters must be retried with the same requestNumber.
TpCommonExceptions
P_INVALID_AMOUNT
P_INVALID_CURRENCY
P_INVALID_REQUEST_NUMBER
javax.slee.resource.ResourceException
void creditUnitReq(TpApplicationDescription applicationDescription,
TpVolume[] volumes,
boolean closeReservation,
int requestNumber)
throws TpCommonExceptions,
P_INVALID_VOLUME,
P_INVALID_REQUEST_NUMBER,
javax.slee.resource.ResourceException
volumes - Specifies the credited volumes in different units, more specifically a sequence of data elements each containing the amount and applied unit.closeReservation - If set to true, this parameter indicates that the reservation can be freed. The session is not released, this has to be done explicitly by calling the release() method.requestNumber - Specifies the number given in the result of the previous operation on this session, or when creating the session. When no answer is received the same operation with the same parameters must be retried with the same requestNumber.
TpCommonExceptions
P_INVALID_VOLUME
P_INVALID_REQUEST_NUMBER
javax.slee.resource.ResourceException
void debitAmountReq(TpApplicationDescription applicationDescription,
TpChargingPrice amount,
boolean closeReservation,
int requestNumber)
throws TpCommonExceptions,
P_INVALID_AMOUNT,
P_INVALID_CURRENCY,
P_INVALID_REQUEST_NUMBER,
javax.slee.resource.ResourceException
amount - The amount of specified currency to be debited from the user.closeReservation - If set to true, this parameter indicates that the reservation can be freed. The session is not released, this has to be done explicitly by calling the release() method.requestNumber - Specifies the number given in the result of the previous operation on this session, or when creating the session. When no answer is received the same operation with the same parameters must be retried with the same requestNumber.
TpCommonExceptions
P_INVALID_AMOUNT
P_INVALID_CURRENCY
P_INVALID_REQUEST_NUMBER
javax.slee.resource.ResourceException
void debitUnitReq(TpApplicationDescription applicationDescription,
TpVolume[] volumes,
boolean closeReservation,
int requestNumber)
throws TpCommonExceptions,
P_INVALID_VOLUME,
P_INVALID_REQUEST_NUMBER,
javax.slee.resource.ResourceException
volumes - Specifies the charged volumes in different units, more specifically a sequence of data elements each containing the amount and applied unit.closeReservation - If set to true, this parameter indicates that the reservation can be freed. The session is not released, this has to be done explicitly by calling the release() method.requestNumber - Specifies the number given in the result of the previous operation on this session, or when creating the session. When no answer is received the same operation with the same parameters must be retried with the same requestNumber.
TpCommonExceptions
P_INVALID_VOLUME
P_INVALID_REQUEST_NUMBER
javax.slee.resource.ResourceException
void directCreditAmountReq(TpApplicationDescription applicationDescription,
TpChargingParameter[] chargingParameters,
TpChargingPrice amount,
int requestNumber)
throws TpCommonExceptions,
P_INVALID_AMOUNT,
P_INVALID_CURRENCY,
P_INVALID_REQUEST_NUMBER,
javax.slee.resource.ResourceException
chargingParameters - These parameters and their values specify to the charging service what was provided to the end user so that the charging service can determine the applicable tariff..amount - The amount of specified currency to be credited towards the user.requestNumber - Specifies the number given in the result of the previous operation on this session, or when creating the session. When no answer is received the same operation with the same parameters must be retried with the same requestNumber.
TpCommonExceptions
P_INVALID_AMOUNT
P_INVALID_CURRENCY
P_INVALID_REQUEST_NUMBER
javax.slee.resource.ResourceException
void directCreditUnitReq(TpApplicationDescription applicationDescription,
TpChargingParameter[] chargingParameters,
TpVolume[] volumes,
int requestNumber)
throws TpCommonExceptions,
P_INVALID_VOLUME,
P_INVALID_REQUEST_NUMBER,
javax.slee.resource.ResourceException
sessionID - The ID of the reservation.chargingParameters - These parameters and their values specify to the charging service what was provided to the end user so that the charging service can determine the applicable tariff..volumes - Specifies the credited volumes in different units, more specifically a sequence of data elements each containing the amount and applied unit.requestNumber - Specifies the number given in the result of the previous operation on this session, or when creating the session. When no answer is received the same operation with the same parameters must be retried with the same requestNumber.
TpCommonExceptions
P_INVALID_VOLUME
P_INVALID_REQUEST_NUMBER
javax.slee.resource.ResourceException
void directDebitAmountReq(TpApplicationDescription applicationDescription,
TpChargingParameter[] chargingParameters,
TpChargingPrice amount,
int requestNumber)
throws TpCommonExceptions,
P_INVALID_AMOUNT,
P_INVALID_CURRENCY,
P_INVALID_REQUEST_NUMBER,
javax.slee.resource.ResourceException
chargingParameters - These parameters and their values specify to the charging service what was provided to the end user so that the charging service can determine the applicable tariff..amount - The amount of specified currency to be debited from the user.requestNumber - Specifies the number given in the result of the previous operation on this session, or when creating the session. When no answer is received the same operation with the same parameters must be retried with the same requestNumber.
TpCommonExceptions
P_INVALID_AMOUNT
P_INVALID_CURRENCY
P_INVALID_REQUEST_NUMBER
javax.slee.resource.ResourceException
void directDebitUnitReq(TpApplicationDescription applicationDescription,
TpChargingParameter[] chargingParameters,
TpVolume[] volumes,
int requestNumber)
throws TpCommonExceptions,
P_INVALID_VOLUME,
P_INVALID_REQUEST_NUMBER,
javax.slee.resource.ResourceException
sessionID - The ID of the reservation.chargingParameters - These parameters and their values specify to the charging service what was provided to the end user so that the charging service can determine the applicable tariff..volumes - Specifies the charged volumes in different units, more specifically a sequence of data elements each containing the amount and applied unit.requestNumber - Specifies the number given in the result of the previous operation on this session, or when creating the session. When no answer is received the same operation with the same parameters must be retried with the same requestNumber.
TpCommonExceptions
P_INVALID_VOLUME
P_INVALID_REQUEST_NUMBER
javax.slee.resource.ResourceException
void extendLifeTimeReq()
throws TpCommonExceptions,
javax.slee.resource.ResourceException
TpCommonExceptions
javax.slee.resource.ResourceException
TpChargingPrice getAmountLeft()
throws TpCommonExceptions,
javax.slee.resource.ResourceException
TpCommonExceptions
javax.slee.resource.ResourceException
int getLifeTimeLeft()
throws TpCommonExceptions,
javax.slee.resource.ResourceException
TpCommonExceptions
javax.slee.resource.ResourceException
TpVolume[] getUnitLeft()
throws TpCommonExceptions,
javax.slee.resource.ResourceException
TpCommonExceptions
javax.slee.resource.ResourceException
void rateReq(TpChargingParameter[] chargingParameters)
throws TpCommonExceptions,
javax.slee.resource.ResourceException
chargingParameters - These parameters and their values specify to the charging service what was provided to the end user so that the charging service can determine the applicable tariff..
TpCommonExceptions
javax.slee.resource.ResourceException
void release(int requestNumber)
throws TpCommonExceptions,
P_INVALID_REQUEST_NUMBER,
javax.slee.resource.ResourceException
requestNumber - Specifies the number given in the result of the previous operation on this session, or when creating the session.
TpCommonExceptions
P_INVALID_REQUEST_NUMBER
javax.slee.resource.ResourceException
void reserveAmountReq(TpApplicationDescription applicationDescription,
TpChargingParameter[] chargingParameters,
TpChargingPrice preferredAmount,
TpChargingPrice minimumAmount,
int requestNumber)
throws TpCommonExceptions,
P_INVALID_AMOUNT,
P_INVALID_CURRENCY,
P_INVALID_REQUEST_NUMBER,
javax.slee.resource.ResourceException
chargingParameters - These parameters and their values specify to the charging service what was provided to the end user so that the charging service can determine the applicable tariff.preferredAmount - The amount of specified currency that the application wants to be reserved.minimumAmount - The minimum amount that can be used by the application if the preferred amount cannot be granted.requestNumber - Specifies the number given in the result of the previous operation on this session, or when creating the session. When no answer is received the same operation with the same parameters must be retried with the same requestNumber.
TpCommonExceptions
P_INVALID_AMOUNT
P_INVALID_CURRENCY
P_INVALID_REQUEST_NUMBER
javax.slee.resource.ResourceException
void reserveUnitReq(TpApplicationDescription applicationDescription,
TpChargingParameter[] chargingParameters,
TpVolume[] volumes,
int requestNumber)
throws TpCommonExceptions,
P_INVALID_VOLUME,
P_INVALID_REQUEST_NUMBER,
javax.slee.resource.ResourceException
chargingParameters - These parameters and their values specify to the charging service what was provided to the end user so that the charging service can determine the applicable tariff..volumes - Specifies the reserved volumes in different units, more specifically a sequence of data elements each containing the amount and applied unit. It is e.g. possible to make a reservation for 10 000 octets and 5 charging units.requestNumber - Specifies the number given in the result of the previous operation on this session, or when creating the session. When no answer is received the same operation with the same parameters must be retried with the same requestNumber.
TpCommonExceptions
P_INVALID_VOLUME
P_INVALID_REQUEST_NUMBER
javax.slee.resource.ResourceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||