public class Result<T> extends Result<T>
| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR |
protected ArrayList<Message> |
messages |
static String |
OK |
protected String |
resultCode |
MessageDigestAlgorithm, target, transaction| Modifier | Constructor and Description |
|---|---|
protected |
Result() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Result<T> |
createResult(T object,
BasicXmlDocument response) |
protected static String |
getElementText(Element parent_el,
String element_name)
Local wrapper for getting element text from a parent.
|
ArrayList<Message> |
getMessages() |
String |
getResultCode()
Returns the result code.
|
protected void |
importResponseMessages(Transaction txn)
Import the response messages into the result.
|
boolean |
isError()
Returns true if the response is Error.
|
boolean |
isOk()
Returns true if the response is Ok.
|
void |
printMessages() |
getTarget, getTransaction, isAuthorizeNetResponsepublic static final String OK
public static final String ERROR
protected String resultCode
public static <T> Result<T> createResult(T object, BasicXmlDocument response)
public String getResultCode()
protected static String getElementText(Element parent_el, String element_name)
parent_el - element_name - protected void importResponseMessages(Transaction txn)
txn - transaction containing the response messages.public void printMessages()
public boolean isOk()
public boolean isError()
Copyright © 2016. All Rights Reserved.