| 
© 2004 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.beasys.commerce.ebusiness.payment.TransactionResponse
A TransactionResponse is returned by the business methods of the CreditCardService.
 It provides convenient access to the date, identifier, and status of the payment as well as a handle
 to the persistent PaymentTransaction associated with the transaction identifier.  Additionally,
 it contains all service provider results in the form of a hash table of name value pairs.
PaymentTransaction, 
Serialized Form| Field Summary | |
 Handle | 
paymentTransactionHandle
Handle to the PaymentTransaction for which this response was generated. | 
 Price | 
transactionAmount
The amount of the transaction associated with this response.  | 
 Date | 
transactionDate
The date of the transaction associated with this response.  | 
 String | 
transactionId
The unique identifier for the transaction associated with this response.  | 
 int | 
transactionStatus
The state of the transaction associated with this response.  | 
| Fields inherited from interface com.beasys.commerce.ebusiness.payment.TransactionResponseConstants | 
ACTION, AUTHORIZATION_FAILED, AUTHORIZED, CAPTURE_ERROR, CONFIGURATION_ERROR, CREDITCARD_INVALID, EXCEPTION, FAILURE, GENERAL_SERVICE_ERROR, MARKEDFORSETTLE, NOSTATUS, OK, PENDINGSETTLE, REJECTED, RETRY, ROLLBACK, SERVICE_UNAVAILABLE_ERROR, SETTLE_ERROR, SETTLED, SETTLEFAILED, SYSTEM_ERROR | 
| Constructor Summary | |
TransactionResponse()
Default constructor.  | 
|
| Method Summary | |
 Hashtable | 
getAllResults()
Returns a hash table containing all service provider-specific results.  | 
 Handle | 
getPaymentTransactionHandle()
Get the value of paymentTransactionHandle  | 
 String | 
getStatusString(int i)
Converts a status code into a String representation.  | 
 Price | 
getTransactionAmount()
Get the value of transactionAmount  | 
 Date | 
getTransactionDate()
Get the value of transactionDate  | 
 String | 
getTransactionId()
Get the value of transactionId  | 
 String | 
getTransactionResult(String hashKey)
Get a value from results given the key  | 
 int | 
getTransactionStatus()
Get the value of transactionStatus  | 
 void | 
putTransactionResult(String hashKey,
                     String value)
Set a value on results  | 
 void | 
setAllResults(Hashtable newResults)
 | 
 void | 
setPaymentTransactionHandle(Handle paymentTransactionHandle)
Set the value of paymentTransactionHandle  | 
 void | 
setTransactionAmount(Price transactionAmount)
Set the value of transactionAmount  | 
 void | 
setTransactionDate(Date transactionDate)
Set the value of transactionDate  | 
 void | 
setTransactionId(String transactionId)
Set the value of transactionId  | 
 void | 
setTransactionStatus(int transactionStatus)
Set the value of transactionStatus  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public Handle paymentTransactionHandle
PaymentTransaction for which this response was generated.
public Price transactionAmount
public Date transactionDate
public String transactionId
public int transactionStatus
| Constructor Detail | 
public TransactionResponse()
| Method Detail | 
public Hashtable getAllResults()
public Handle getPaymentTransactionHandle()
public String getStatusString(int i)
i - The status code.
public Price getTransactionAmount()
public Date getTransactionDate()
public String getTransactionId()
public String getTransactionResult(String hashKey)
public int getTransactionStatus()
public void putTransactionResult(String hashKey,
                                 String value)
hashKey - hashKey to be added to resultsvalue - value to be added to resultspublic void setAllResults(Hashtable newResults)
public void setPaymentTransactionHandle(Handle paymentTransactionHandle)
paymentTransactionHandle - paymentTransactionHandle to be addedpublic void setTransactionAmount(Price transactionAmount)
transactionAmount - transactionAmount to be addedpublic void setTransactionDate(Date transactionDate)
transactionDate - transactionDate to be addedpublic void setTransactionId(String transactionId)
transactionId - transactionId to be addedpublic void setTransactionStatus(int transactionStatus)
transactionStatus - transactionStatus to be added
  | 
© 2004 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||