Interface ISessionConfirmAndReserve
- All Known Subinterfaces:
ISessionUpdateChargingAsyncOperation,ISessionUpdateChargingOperation
- All Known Implementing Classes:
SessionChargingOperation
Java interface defines the prepareConfirmAndReserve(..) method
that is relevant for managing an update event of a session-based charging scenario.
Implementation in Your Client Application
Use prepareConfirmAndReserve(..) method to extend a reservation.
This method is available in the following container operations (session operations):
| Async. comm. | Sync. comm. |
|---|---|
createSessionUpdateAsyncOperation(..)
|
createSessionUpdateOperation(..)
|
-
Method Summary
Modifier and TypeMethodDescriptionvoidprepareConfirmAndReserve(String reservationId, ChargeableItem confirmationItem, ChargeableItem reservationItem) Thismethodallows you to confirm and extend a reservation during a session-based charging.voidprepareConfirmAndReserve(String reservationId, ChargeableItem confirmationItem, ChargeableItem reservationItem, long ttl) Thismethodallows you to confirm and extend a reservation during a session-based charging.
-
Method Details
-
prepareConfirmAndReserve
void prepareConfirmAndReserve(String reservationId, ChargeableItem confirmationItem, ChargeableItem reservationItem) Thismethodallows you to confirm and extend a reservation during a session-based charging.First, the SAP CC system retrieves the charging session and re-rate the reservation item to compute a first rating result used by your client application to cancel the previous balance reservation. The transactions from this rating result are provided to the TIF.
Second, the SAP CC system consolidates a chargeable item for confirmation using both the reservation one from the charging session and the confirmation one if present. This chargeable item is rated and previously reserved counters are updated into the back-end database. A second rating result is then available for your client application to confirm the balance reservation. The transactions from this rating result are also provided to the TIF.
Third, the SAP CC system consolidates a chargeable item for reservation using both the old reservation item (from the charging session) and the provided one (if not present, the old one is used instead). It rates this new reservation item taking the update date into account and does the related counter reservations. A third rating result is available for balance reservation.
Finally, it updates the charging session with the new reservation chargeable item.
- Parameters:
reservationId- The reservation identifier that must be unique within a sessionconfirmationItem- The confirmation item (optional,null, or partially defined items are accepted)reservationItem- The reservation item (optional,null, or partially defined items are accepted)
-
prepareConfirmAndReserve
void prepareConfirmAndReserve(String reservationId, ChargeableItem confirmationItem, ChargeableItem reservationItem, long ttl) Thismethodallows you to confirm and extend a reservation during a session-based charging.First, the SAP CC system retrieves the charging session and re-rate the reservation item to compute a first rating result used by your client application to cancel the previous balance reservation. The transactions from this rating result are provided to the TIF.
Second, the SAP CC system consolidates a chargeable item for confirmation using both the reservation one from the charging session and the confirmation one if present. This chargeable item is rated and previously reserved counters are updated into the back-end database. A second rating result is then available for your client application to confirm the balance reservation. The transactions from this rating result are also provided to the TIF.
Third, the SAP CC system consolidates a chargeable item for reservation using both the old reservation item (from the charging session) and the provided one (if not present, the old one is used instead). It rates this new reservation item taking the update date into account and does the related counter reservations. A third rating result is available for balance reservation.
Finally, it updates the charging session with the new reservation chargeable item.
- Parameters:
reservationId- The reservation identifier that must be unique within a sessionconfirmationItem- The confirmation item (optional,null, or partially defined items are accepted)reservationItem- The reservation item (optional,null, or partially defined items are accepted)ttl- The time to live (TTL) expressed in seconds (negative value means that TTL of the previous reservation is kept)
-