public interface ChargeEventListener extends ChargeExceptionListener, InvalidItemListener
Java interface defines the necessary methods that you design and develop to handle the
result (succes, failure) of a charging operation requested by the
charging client
in your client application.
You implement this Java interface in your Java classes that manage the charging operation request via the asynchronous communications
provided by the convergent charging services of SAP CC:
| Business Operation | Business Service |
|---|---|
charge(..)
specified in the
AsyncStatefulServiceClient class
|
Online charging services |
AsyncBatchServiceClient
| Offline charging services |
You design and develop the integration code of the onResult(..) and onException(..) methods.
You implement this Java interface in your custom Java classes that must handle
operation results and exceptions.
Depending on your requirements, design and develop the relevant functions:
onResult(..) method
Depending on your requirements, design and develop the relevant functions:
onException(..) methods
| Modifier and Type | Method and Description |
|---|---|
void |
onException(ForbiddenChargeException e)
Invoked when the rating is not allowed.
|
void |
onException(TransactionClearingException e)
Invoked if the Transaction Processor plugged on the PnR output, is not able
to clear at least one of the generated transactions.
|
void |
onResult(PurchaseOrder order)
Invoked when the charging operation is successful.
|
onException, onException, onExceptiononExceptionvoid onException(ForbiddenChargeException e)
e - The Forbidden Charge exception to be handledvoid onException(TransactionClearingException e)
e - The Transaction Clearing exception to be handledvoid onResult(PurchaseOrder order)
order - The {PurchaseOrder result} of the charging operation