public class ARBAPI
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private BasicXmlDocument |
currentRequest |
private BasicXmlDocument |
currentResponse |
protected static org.apache.commons.logging.Log |
log
the log
|
private java.lang.String |
merchantName |
private java.util.ArrayList<ARBMessage> |
messages |
private java.lang.String |
resultCode |
private java.lang.String |
resultStatus |
private java.lang.String |
resultSubscriptionId |
private java.lang.String |
transactionKey |
Constructor and Description |
---|
ARBAPI(java.lang.String in_merchant_name,
java.lang.String in_transaction_key) |
Modifier and Type | Method and Description |
---|---|
private void |
addAuthenticationToRequest(BasicXmlDocument document) |
private void |
addBillingInfoToSubscription(BasicXmlDocument document,
ARBSubscription subscription,
org.w3c.dom.Element subscr_el) |
private void |
addOrderToSubscription(BasicXmlDocument document,
ARBSubscription subscription,
org.w3c.dom.Element subscr_el) |
private void |
addPaymentScheduleToSubscription(BasicXmlDocument document,
ARBSubscription subscription,
org.w3c.dom.Element subscr_el) |
private void |
addPaymentToSubscription(BasicXmlDocument document,
ARBSubscription subscription,
org.w3c.dom.Element subscr_el) |
private void |
addSubscriptionIdToRequest(BasicXmlDocument document,
ARBSubscription subscription) |
private void |
addSubscriptionToRequest(BasicXmlDocument document,
ARBSubscription subscription) |
java.lang.String |
cancelSubscriptionRequest(ARBSubscription subscription) |
void |
clearRequest() |
java.lang.String |
createSubscriptionRequest(ARBSubscription subscription) |
BasicXmlDocument |
getCurrentRequest() |
BasicXmlDocument |
getCurrentResponse() |
private java.lang.String |
getElementText(org.w3c.dom.Element parent_el,
java.lang.String element_name) |
java.util.ArrayList<ARBMessage> |
getMessages() |
java.lang.String |
getResultCode() |
java.lang.String |
getResultStatus() |
java.lang.String |
getResultSubscriptionId() |
java.lang.String |
getSubscriptionStatusRequest(ARBSubscription subscription) |
private void |
importResponseMessages() |
BasicXmlDocument |
parseResponse(java.lang.String in_response) |
java.lang.String |
updateSubscriptionRequest(ARBSubscription subscription) |
protected static org.apache.commons.logging.Log log
private BasicXmlDocument currentRequest
private BasicXmlDocument currentResponse
private java.lang.String merchantName
private java.lang.String transactionKey
private java.util.ArrayList<ARBMessage> messages
private java.lang.String resultCode
private java.lang.String resultSubscriptionId
private java.lang.String resultStatus
public ARBAPI(java.lang.String in_merchant_name, java.lang.String in_transaction_key)
in_merchant_name
- the in_merchant_namein_transaction_key
- the in_transaction_keyprivate void addSubscriptionIdToRequest(BasicXmlDocument document, ARBSubscription subscription)
document
- the documentsubscription
- the subscriptionprivate void addSubscriptionToRequest(BasicXmlDocument document, ARBSubscription subscription)
document
- the documentsubscription
- the subscriptionprivate void addBillingInfoToSubscription(BasicXmlDocument document, ARBSubscription subscription, org.w3c.dom.Element subscr_el)
document
- the documentsubscription
- the subscriptionsubscr_el
- the subscr_elprivate void addOrderToSubscription(BasicXmlDocument document, ARBSubscription subscription, org.w3c.dom.Element subscr_el)
document
- the documentsubscription
- the subscriptionsubscr_el
- the subscr_elprivate void addPaymentToSubscription(BasicXmlDocument document, ARBSubscription subscription, org.w3c.dom.Element subscr_el)
document
- the documentsubscription
- the subscriptionsubscr_el
- the subscr_elprivate void addPaymentScheduleToSubscription(BasicXmlDocument document, ARBSubscription subscription, org.w3c.dom.Element subscr_el)
document
- the documentsubscription
- the subscriptionsubscr_el
- the subscr_elprivate void addAuthenticationToRequest(BasicXmlDocument document)
document
- the documentpublic java.lang.String createSubscriptionRequest(ARBSubscription subscription) throws java.lang.Exception
subscription
- the subscriptionjava.lang.Exception
- an unexpected Exception exceptionpublic java.lang.String updateSubscriptionRequest(ARBSubscription subscription) throws java.lang.Exception
subscription
- the subscriptionjava.lang.Exception
- an unexpected Exception exceptionpublic java.lang.String cancelSubscriptionRequest(ARBSubscription subscription) throws java.lang.Exception
subscription
- the subscriptionjava.lang.Exception
- an unexpected Exception exceptionpublic java.lang.String getSubscriptionStatusRequest(ARBSubscription subscription) throws java.lang.Exception
subscription
- the subscriptionjava.lang.Exception
- an unexpected Exception exceptionpublic void clearRequest()
public BasicXmlDocument parseResponse(java.lang.String in_response) throws java.lang.Exception
in_response
- the in_responsejava.lang.Exception
- an unexpected Exception exceptionprivate java.lang.String getElementText(org.w3c.dom.Element parent_el, java.lang.String element_name)
parent_el
- the parent_elelement_name
- the element_nameprivate void importResponseMessages()
public java.util.ArrayList<ARBMessage> getMessages()
public java.lang.String getResultStatus()
public BasicXmlDocument getCurrentRequest()
public BasicXmlDocument getCurrentResponse()
public java.lang.String getResultCode()
public java.lang.String getResultSubscriptionId()
Copyright © 2011 DS Data Systems UK Ltd.