Oracle Application Server Wireless Java API Reference
B14043-01


oracle.wireless.billing
Class BillingResult

java.lang.Object
  extended byoracle.wireless.billing.BillingResult


public class BillingResult
extends java.lang.Object

Contains the response from the billing system to a billing authorization request


Field Summary
static long FAILED
The result code set to failed.
static long SUCCEEDED
The result code set to success
static long SUCCEEDED_WITH_WARNING
The result code set to success with warning.

Constructor Summary
BillingResult(java.lang.String referenceId, long resultCode, java.lang.String message, ServiceDetailRecord sdr)
Pre Service Billing Result is generated by the billing driver with the response from the external billing system.

Method Summary
java.lang.String getMessage()
returns the authorization result warning or error message
java.lang.String getReferenceId()
Returns the billing reference id generated by external billing system.
long getResultCode()
returns the authorization result code
ServiceDetailRecord getServiceDetailRecord()
returns the service detail record for this transaction

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

FAILED

public static long FAILED
The result code set to failed. The message should elaborate on the caused for the failure

SUCCEEDED

public static long SUCCEEDED
The result code set to success

SUCCEEDED_WITH_WARNING

public static long SUCCEEDED_WITH_WARNING
The result code set to success with warning. The message must elaborate on the warnings

Constructor Detail

BillingResult

public BillingResult(java.lang.String referenceId,
                     long resultCode,
                     java.lang.String message,
                     ServiceDetailRecord sdr)
              throws BillingException
Pre Service Billing Result is generated by the billing driver with the response from the external billing system.
Parameters:
referenceId - The billing authorization id
resultCode - The authorization result code
message - The result message
sdr - The service detail record

Method Detail

getMessage

public java.lang.String getMessage()
returns the authorization result warning or error message
Returns:
String contains the authorization result warning or error message

getReferenceId

public java.lang.String getReferenceId()
Returns the billing reference id generated by external billing system.
Returns:
String billing reference id generated by external billing system

getResultCode

public long getResultCode()
returns the authorization result code
Returns:
long the authorization result code

getServiceDetailRecord

public ServiceDetailRecord getServiceDetailRecord()
returns the service detail record for this transaction
Returns:
The service detail record

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.