net.authorize.aim.cardpresent
Class Result<T>

java.lang.Object
  extended by net.authorize.Result<T>
      extended by net.authorize.aim.cardpresent.Result<T>
All Implemented Interfaces:
Serializable

public class Result<T>
extends Result<T>

Templated wrapper container for passing back the result from the request gateway.

See Also:
Serialized Form

Field Summary
protected  ResponseCode responseCode
           
protected  ArrayList<ResponseReasonCode> responseReasonCodes
           
protected  BasicXmlDocument xmlResponseDocument
           
 
Fields inherited from class net.authorize.Result
MessageDigestAlgorithm, target, transaction
 
Constructor Summary
protected Result()
           
 
Method Summary
static
<T> Result<T>
createResult(T object, BasicXmlDocument response)
           
 String getAuthCode()
           
 AVSCode getAvsResultCode()
           
 CardCodeResponseType getCardCodeResponse()
           
 PrepaidCard getPrepaidCard()
           
 String getRefTransId()
           
 ResponseCode getResponseCode()
           
 ArrayList<ResponseReasonCode> getResponseReasonCodes()
           
 String getSplitTenderId()
           
 String getTransHash()
           
 String getTransId()
           
 String getUserRef()
           
 BasicXmlDocument getXmlResponseDocument()
          Return the response as a raw xml document.
 boolean isApproved()
           
 boolean isAuthorizeNet()
          Verify that the relay response post is actually coming from AuthorizeNet.
 boolean isDeclined()
           
 boolean isError()
           
 boolean isTestMode()
           
 void setPrepaidCard(PrepaidCard prepaidCard)
           
 void setSplitTenderId(String splitTenderId)
           
 
Methods inherited from class net.authorize.Result
getTarget, getTransaction, isAuthorizeNetResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

responseCode

protected ResponseCode responseCode

responseReasonCodes

protected ArrayList<ResponseReasonCode> responseReasonCodes

xmlResponseDocument

protected BasicXmlDocument xmlResponseDocument
Constructor Detail

Result

protected Result()
Method Detail

createResult

public static <T> Result<T> createResult(T object,
                                         BasicXmlDocument response)

getResponseCode

public ResponseCode getResponseCode()
Returns:
the responseCode

getResponseReasonCodes

public ArrayList<ResponseReasonCode> getResponseReasonCodes()
Returns:
the responseReasonCodes

getAuthCode

public String getAuthCode()
Returns:
the authCode

getAvsResultCode

public AVSCode getAvsResultCode()
Returns:
the avsResultCode

getCardCodeResponse

public CardCodeResponseType getCardCodeResponse()
Returns:
the cardCodeReponse

getTransId

public String getTransId()
Returns:
the transId

getRefTransId

public String getRefTransId()
Returns:
the refTransId

getTransHash

public String getTransHash()
Returns:
the transHash

isTestMode

public boolean isTestMode()
Returns:
the testMode

getUserRef

public String getUserRef()
Returns:
the userRef

isApproved

public boolean isApproved()

isDeclined

public boolean isDeclined()

isError

public boolean isError()

getXmlResponseDocument

public BasicXmlDocument getXmlResponseDocument()
Return the response as a raw xml document.

Returns:
the xmlResponseDocument

isAuthorizeNet

public boolean isAuthorizeNet()
Verify that the relay response post is actually coming from AuthorizeNet.

Returns:
boolean true if the txn came from Authorize.Net

getPrepaidCard

public PrepaidCard getPrepaidCard()

setPrepaidCard

public void setPrepaidCard(PrepaidCard prepaidCard)

getSplitTenderId

public String getSplitTenderId()

setSplitTenderId

public void setSplitTenderId(String splitTenderId)


Copyright © 2014. All Rights Reserved.