net.authorize
Class Transaction
java.lang.Object
net.authorize.Transaction
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- Transaction, Transaction, Transaction, Transaction
public abstract class Transaction
- extends Object
- implements Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_AUTH_CODE_LENGTH
public static final int MAX_AUTH_CODE_LENGTH
- See Also:
- Constant Field Values
VERSION
public static final String VERSION
- See Also:
- Constant Field Values
TRANSACTION_FIELD_DELIMITER
public static String TRANSACTION_FIELD_DELIMITER
ENCAP_CHAR_DELIMITER
public static String ENCAP_CHAR_DELIMITER
BRACKET_PIPE_DELIMITER
public static final String BRACKET_PIPE_DELIMITER
- See Also:
- Constant Field Values
TRUE
public static final String TRUE
- See Also:
- Constant Field Values
FALSE
public static final String FALSE
- See Also:
- Constant Field Values
ZERO_STRING
public static final String ZERO_STRING
- See Also:
- Constant Field Values
ZERO_AMOUNT
public static final BigDecimal ZERO_AMOUNT
EMPTY_STRING
public static final String EMPTY_STRING
- See Also:
- Constant Field Values
CURRENCY_DECIMAL_PLACES
public static final int CURRENCY_DECIMAL_PLACES
- See Also:
- Constant Field Values
QUANTITY_DECIMAL_PLACES
public static final int QUANTITY_DECIMAL_PLACES
- See Also:
- Constant Field Values
Transaction
public Transaction()
setTransactionFieldDelimiter
public static void setTransactionFieldDelimiter(String transactionFieldDelimiter)
- Convenience method for overriding the transaction field delimited.
Character that will be used to separate fields in the transaction response.
The system will use the character passed in this field or the value stored
in the Merchant Interface if no value is passed.
- Parameters:
transactionFieldDelimiter
-
toNVPString
public String toNVPString()
toXMLString
public String toXMLString()
setEncapCharDelimiter
public static void setEncapCharDelimiter(String encapCharDelimiter)
- Convenience method for overriding the encap char delimiter.
Character that will be used to encapsulate the fields in the transaction response.
The system will use the character passed in this field or the value stored in
the Merchant Interface if no value is passed.
getEncodedString
public static Node getEncodedString(BasicXmlDocument document,
String value)
- Try to encode string value as per proper xml requirements
Will default to original value (without encoding) if there are any exceptions
- Parameters:
document
- the document to create text node tovalue
- string value to encode
- Returns:
- Node with encoded text value appropriate for XML
getDecodedString
public static String getDecodedString(Node node)
- Try to decode string value from xml node as per proper xml requirements
- Parameters:
node
- which is a text element
- Returns:
- decoded String value
Copyright © 2014. All Rights Reserved.