net.authorize.reporting
Class Transaction

java.lang.Object
  extended by net.authorize.Transaction
      extended by net.authorize.reporting.Transaction
All Implemented Interfaces:
Serializable

public class Transaction
extends Transaction

Transaction object for Reporting.

See Also:
Serialized Form

Field Summary
static String XML_NAMESPACE
           
 
Fields inherited from class net.authorize.Transaction
BRACKET_PIPE_DELIMITER, CURRENCY_DECIMAL_PLACES, EMPTY_STRING, ENCAP_CHAR_DELIMITER, FALSE, MAX_AUTH_CODE_LENGTH, QUANTITY_DECIMAL_PLACES, TRANSACTION_FIELD_DELIMITER, TRUE, VERSION, ZERO_AMOUNT, ZERO_STRING
 
Method Summary
static Transaction createTransaction(Merchant merchant, TransactionType transactionType)
          Creates a transaction.
static Transaction createTransaction(Transaction transaction, BasicXmlDocument response)
          Create a transaction from a response.
 BasicXmlDocument getCurrentRequest()
          Returns the current request.
 BasicXmlDocument getCurrentResponse()
          Returns the current response.
 ReportingDetails getReportingDetails()
           
 TransactionType getTransactionType()
           
 void setReportingDetails(ReportingDetails reportingDetails)
           
 String toXMLString()
          Convert request to XML.
 
Methods inherited from class net.authorize.Transaction
getDecodedString, getEncodedString, setEncapCharDelimiter, setTransactionFieldDelimiter, toNVPString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_NAMESPACE

public static String XML_NAMESPACE
Method Detail

createTransaction

public static Transaction createTransaction(Merchant merchant,
                                            TransactionType transactionType)
Creates a transaction.

Parameters:
merchant -
transactionType -
Returns:
Transaction

createTransaction

public static final Transaction createTransaction(Transaction transaction,
                                                  BasicXmlDocument response)
Create a transaction from a response.

Parameters:
transaction -
response -
Returns:
a Transaction

getTransactionType

public TransactionType getTransactionType()
Returns:
the transactionType

getCurrentRequest

public BasicXmlDocument getCurrentRequest()
Returns the current request.

Returns:
BasicXmlDocument containing the request

getCurrentResponse

public BasicXmlDocument getCurrentResponse()
Returns the current response.

Returns:
BasicXmlDocument containing the response

toXMLString

public String toXMLString()
Convert request to XML.

Overrides:
toXMLString in class Transaction

setReportingDetails

public void setReportingDetails(ReportingDetails reportingDetails)
Parameters:
reportingDetails - the reportingDetails to set

getReportingDetails

public ReportingDetails getReportingDetails()
Returns:
the reportingDetails


Copyright © 2014. All Rights Reserved.