net.authorize.cim
Class Result<T>

java.lang.Object
  extended by net.authorize.Result<T>
      extended by net.authorize.xml.Result<T>
          extended by net.authorize.cim.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  ArrayList<String> customerPaymentProfileIdList
           
protected  CustomerProfile customerProfile
           
protected  ArrayList<String> customerProfileIdList
           
protected  ArrayList<String> customerShippingAddressIdList
           
protected  ArrayList<DirectResponse> directResponseList
           
protected  ArrayList<PaymentProfile> paymentProfileList
           
protected  String refId
           
 
Fields inherited from class net.authorize.xml.Result
ERROR, messages, OK, resultCode
 
Fields inherited from class net.authorize.Result
MessageDigestAlgorithm, target, transaction
 
Constructor Summary
Result()
           
 
Method Summary
static
<T> Result<T>
createResult(T object, BasicXmlDocument response)
           
 PaymentProfile getCustomerPaymentProfile()
          Get the first/only payment profile from a possible list of many
 ArrayList<String> getCustomerPaymentProfileIdList()
           
 ArrayList<PaymentProfile> getCustomerPaymentProfileList()
           
 CustomerProfile getCustomerProfile()
           
 String getCustomerProfileId()
          Get the first/only customer profile id from a possible list of many
 ArrayList<String> getCustomerProfileIdList()
           
 ArrayList<String> getCustomerShippingAddressIdList()
           
 ArrayList<DirectResponse> getDirectResponseList()
          Get the directResponse list
 String getRefId()
           
 void printMessages()
          Print out messages for debugging.
 
Methods inherited from class net.authorize.xml.Result
getElementText, getMessages, getResultCode, importResponseMessages, isError, isOk
 
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

refId

protected String refId

customerProfileIdList

protected ArrayList<String> customerProfileIdList

customerProfile

protected CustomerProfile customerProfile

customerPaymentProfileIdList

protected ArrayList<String> customerPaymentProfileIdList

paymentProfileList

protected ArrayList<PaymentProfile> paymentProfileList

customerShippingAddressIdList

protected ArrayList<String> customerShippingAddressIdList

directResponseList

protected ArrayList<DirectResponse> directResponseList
Constructor Detail

Result

public Result()
Method Detail

createResult

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

getCustomerProfileId

public String getCustomerProfileId()
Get the first/only customer profile id from a possible list of many

Returns:
the customerProfileId

getDirectResponseList

public ArrayList<DirectResponse> getDirectResponseList()
Get the directResponse list

Returns:
the directResponseList

getRefId

public String getRefId()
Returns:
the refId

getCustomerPaymentProfileIdList

public ArrayList<String> getCustomerPaymentProfileIdList()
Returns:
the customerPaymentProfileIdList

getCustomerShippingAddressIdList

public ArrayList<String> getCustomerShippingAddressIdList()
Returns:
the customerShippingAddressIdList

getCustomerProfileIdList

public ArrayList<String> getCustomerProfileIdList()
Returns:
the customerProfileIdList

getCustomerPaymentProfileList

public ArrayList<PaymentProfile> getCustomerPaymentProfileList()
Returns:
the paymentProfile

getCustomerPaymentProfile

public PaymentProfile getCustomerPaymentProfile()
Get the first/only payment profile from a possible list of many

Returns:
the customerProfileId

getCustomerProfile

public CustomerProfile getCustomerProfile()
Returns:
the customerProfile

printMessages

public void printMessages()
Print out messages for debugging.

Overrides:
printMessages in class Result<T>


Copyright © 2014. All Rights Reserved.