net.authorize.arb
Class ARBAPI

java.lang.Object
  extended by net.authorize.arb.ARBAPI

public class ARBAPI
extends Object

WRITEME


Field Summary
private  BasicXmlDocument current_request
          WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) current_request (ARBAPI)
private  BasicXmlDocument current_response
          WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) current_response (ARBAPI)
private  HttpUtil http_util
          WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) http_util (ARBAPI)
private  String merchant_name
          WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) merchant_name (ARBAPI)
private  ArrayList<Message> messages
          WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) messages (ARBAPI)
private  String result_code
          WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) result_code (ARBAPI)
private  String result_subscription_id
          WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) result_subscription_id (ARBAPI)
private  String transaction_key
          WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) transaction_key (ARBAPI)
 
Constructor Summary
ARBAPI(URL in_api_url, String in_merchant_name, String in_transaction_key)
           
 
Method Summary
private  void addAuthenticationToRequest(BasicXmlDocument document)
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
private  void addBillingInfoToSubscription(BasicXmlDocument document, ARBSubscription subscription, Element subscr_el)
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
private  void addCustomerInfoToSubscription(BasicXmlDocument document, ARBSubscription subscription, Element subscr_el)
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
private  void addOrderInfoToSubscription(BasicXmlDocument document, ARBSubscription subscription, Element subscr_el)
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
private  void addPaymentScheduleToSubscription(BasicXmlDocument document, ARBSubscription subscription, Element subscr_el)
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
private  void addPaymentToSubscription(BasicXmlDocument document, ARBSubscription subscription, Element subscr_el)
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
private  void addShippingInfoToSubscription(BasicXmlDocument document, ARBSubscription subscription, Element subscr_el)
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
private  void addSubscriptionIdToRequest(BasicXmlDocument document, ARBSubscription subscription)
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
private  void addSubscriptionToRequest(BasicXmlDocument document, ARBSubscription subscription)
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
 String cancelSubscriptionRequest(ARBSubscription subscription)
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
 void clearRequest()
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
 String createSubscriptionRequest(ARBSubscription subscription)
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
 void destroy()
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
 BasicXmlDocument getCurrentRequest()
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
 BasicXmlDocument getCurrentResponse()
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
private  String getElementText(Element parent_el, String element_name)
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
 String getMessages()
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
 String getResultCode()
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
 String getResultSubscriptionId()
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
private  void importResponseMessages()
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
 void printMessages()
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
 BasicXmlDocument sendRequest()
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
 BasicXmlDocument sendRequest(BasicXmlDocument request_document)
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
 String updateSubscriptionRequest(ARBSubscription subscription)
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

current_request

private BasicXmlDocument current_request
WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) current_request (ARBAPI)


current_response

private BasicXmlDocument current_response
WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) current_response (ARBAPI)


http_util

private HttpUtil http_util
WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) http_util (ARBAPI)


merchant_name

private String merchant_name
WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) merchant_name (ARBAPI)


messages

private ArrayList<Message> messages
WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) messages (ARBAPI)


result_code

private String result_code
WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) result_code (ARBAPI)


result_subscription_id

private String result_subscription_id
WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) result_subscription_id (ARBAPI)


transaction_key

private String transaction_key
WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) transaction_key (ARBAPI)

Constructor Detail

ARBAPI

public ARBAPI(URL in_api_url,
              String in_merchant_name,
              String in_transaction_key)
Parameters:
in_api_url - WRITEME
in_merchant_name - WRITEME
in_transaction_key - WRITEME
Method Detail

addAuthenticationToRequest

private void addAuthenticationToRequest(BasicXmlDocument document)
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)

Parameters:
document - WRITEME

addBillingInfoToSubscription

private void addBillingInfoToSubscription(BasicXmlDocument document,
                                          ARBSubscription subscription,
                                          Element subscr_el)
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)

Parameters:
document - WRITEME
subscription - WRITEME
subscr_el - WRITEME

addCustomerInfoToSubscription

private void addCustomerInfoToSubscription(BasicXmlDocument document,
                                           ARBSubscription subscription,
                                           Element subscr_el)
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)

Parameters:
document - WRITEME
subscription - WRITEME
subscr_el - WRITEME

addOrderInfoToSubscription

private void addOrderInfoToSubscription(BasicXmlDocument document,
                                        ARBSubscription subscription,
                                        Element subscr_el)
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)

Parameters:
document - WRITEME
subscription - WRITEME
subscr_el - WRITEME

addPaymentScheduleToSubscription

private void addPaymentScheduleToSubscription(BasicXmlDocument document,
                                              ARBSubscription subscription,
                                              Element subscr_el)
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)

Parameters:
document - WRITEME
subscription - WRITEME
subscr_el - WRITEME

addPaymentToSubscription

private void addPaymentToSubscription(BasicXmlDocument document,
                                      ARBSubscription subscription,
                                      Element subscr_el)
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)

Parameters:
document - WRITEME
subscription - WRITEME
subscr_el - WRITEME

addShippingInfoToSubscription

private void addShippingInfoToSubscription(BasicXmlDocument document,
                                           ARBSubscription subscription,
                                           Element subscr_el)
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)

Parameters:
document - WRITEME
subscription - WRITEME
subscr_el - WRITEME

addSubscriptionIdToRequest

private void addSubscriptionIdToRequest(BasicXmlDocument document,
                                        ARBSubscription subscription)
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)

Parameters:
document - WRITEME
subscription - WRITEME

addSubscriptionToRequest

private void addSubscriptionToRequest(BasicXmlDocument document,
                                      ARBSubscription subscription)
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)

Parameters:
document - WRITEME
subscription - WRITEME

cancelSubscriptionRequest

public String cancelSubscriptionRequest(ARBSubscription subscription)
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)

Parameters:
subscription - WRITEME
Returns:
WRITEME

clearRequest

public void clearRequest()
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)


createSubscriptionRequest

public String createSubscriptionRequest(ARBSubscription subscription)
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)

Parameters:
subscription - WRITEME
Returns:
WRITEME

destroy

public void destroy()
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)


getCurrentRequest

public BasicXmlDocument getCurrentRequest()
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)

Returns:
WRITEME

getCurrentResponse

public BasicXmlDocument getCurrentResponse()
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)

Returns:
WRITEME

getElementText

private String getElementText(Element parent_el,
                              String element_name)
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)

Parameters:
parent_el - WRITEME
element_name - WRITEME
Returns:
WRITEME

getMessages

public String getMessages()
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)

Returns:
WRITEME

getResultCode

public String getResultCode()
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)

Returns:
WRITEME

getResultSubscriptionId

public String getResultSubscriptionId()
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)

Returns:
WRITEME

importResponseMessages

private void importResponseMessages()
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)


printMessages

public void printMessages()
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)


sendRequest

public BasicXmlDocument sendRequest()
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)

Returns:
WRITEME

sendRequest

public BasicXmlDocument sendRequest(BasicXmlDocument request_document)
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)

Parameters:
request_document - WRITEME
Returns:
WRITEME

updateSubscriptionRequest

public String updateSubscriptionRequest(ARBSubscription subscription)
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)

Parameters:
subscription - WRITEME
Returns:
WRITEME