Oracle Application Server Wireless Java API Reference
B14043-01


oracle.wireless.billing
Interface BillingDriver


public interface BillingDriver

The Billing Driver which interfaces with the external billing system The driver is component specific. This driver is created using the default constructor followed by the call to the init method


Method Summary
 BillingResult cancelService(ServiceDetailRecord sdr)
          Notify the external billing system of cancellation for this service usage
 void destroy()
          Does the cleanup of the driver when called.
 void init(java.util.Properties initProperties)
          Will be called by the billing driver handler once for each billing driver to do the driver initilization proceses like connection info.
 BillingResult postService(ServiceDetailRecord sdr)
          the operation to interact with the external billing system
 BillingResult preService(ServiceDetailRecord sdr)
          authorize this service usage with the external billing system

 

Method Detail

cancelService

public BillingResult cancelService(ServiceDetailRecord sdr)
                            throws BillingException
Notify the external billing system of cancellation for this service usage
Parameters:
sdr - The service detail record
Returns:
Cancel Service BillingResult The result of this cancel service billing operation.
Throws:
BillingException - Exception generated in case of error

destroy

public void destroy()
             throws BillingException
Does the cleanup of the driver when called.
Throws:
BillingException - thrown when cleanup failed

init

public void init(java.util.Properties initProperties)
          throws BillingException
Will be called by the billing driver handler once for each billing driver to do the driver initilization proceses like connection info.
Parameters:
initProperties - initialization properties
Throws:
BillingException - thrown if initialization failed

postService

public BillingResult postService(ServiceDetailRecord sdr)
                          throws BillingException
the operation to interact with the external billing system
Parameters:
sdr - The service detail record
Returns:
Post Service BillingResult The result of this billing.
Throws:
BillingException - Exception generated in case of error

preService

public BillingResult preService(ServiceDetailRecord sdr)
                         throws BillingException
authorize this service usage with the external billing system
Parameters:
sdr - The service detail record
Returns:
Pre Service BillingResult The result of this pre service billing operation. The id generated will be used as reference if for future billing events occurring as part of this transaction. The billing reference id needs to be unique for each transaction.
Throws:
BillingException - Exception generated in case of error

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.