|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.pay.xml.XMLPassivePayment
public class XMLPassivePayment
This class is used by JAP to send information necessary to process a
passive payment to the payment instance.
Field Summary | |
---|---|
private static java.lang.String |
AMOUNT
|
private static java.lang.String |
CHARGED
|
private static java.lang.String |
CURRENCY
|
private static java.lang.String |
ERRORCODE
|
private static java.lang.String |
ERRORMSG
|
private static java.lang.String |
IP
|
static java.lang.String |
KEY_ACCOUNTNUMBER
|
static java.lang.String |
KEY_COUPONCODE
|
static java.lang.String |
KEY_ERRORCODE
|
static java.lang.String |
KEY_ERRORMESSAGE
|
static java.lang.String |
KEY_IPADRESS
|
static java.lang.String |
KEY_MERCHANT_ID
|
static java.lang.String |
KEY_TRANSACTION_ID
|
static java.lang.String |
KEY_TRANSFERNUMBER
|
static java.lang.String |
KEY_VOLUMEPLAN
|
private long |
m_centAmount
|
private boolean |
m_charged
|
private java.lang.String |
m_currency
|
private java.util.Hashtable |
m_paymentData
|
private java.lang.String |
m_paymentName
|
private java.lang.String |
m_sErrorCode
|
private java.lang.String |
m_sErrorMessage
|
private java.lang.String |
m_sIP
|
private long |
m_transferNumber
|
private static java.lang.String |
PAYMENT_DATA
|
private static java.lang.String |
PAYMENT_NAME
|
private static java.lang.String |
REF
|
private static java.lang.String |
TRANSFER_NUM
|
private static java.lang.String |
VERSION
|
private static java.lang.String |
XML_DOCUMENT_VERSION
|
static java.lang.String |
XML_ELEMENT_NAME
|
Fields inherited from interface anon.util.IXMLEncodable |
---|
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION |
Constructor Summary | |
---|---|
XMLPassivePayment()
Constructor |
|
XMLPassivePayment(byte[] xml)
Constructor. |
|
XMLPassivePayment(char[] xml)
|
|
XMLPassivePayment(org.w3c.dom.Document doc)
Constructor. |
|
XMLPassivePayment(org.w3c.dom.Element element)
Constructor. |
|
XMLPassivePayment(java.lang.String xml)
Constructor. |
Method Summary | |
---|---|
void |
addData(java.lang.String a_reference,
java.lang.String a_data)
Adds a |
java.lang.String |
getAllPaymentData()
Returns a string with all payment data fields. |
long |
getAmount()
Gets the payment amount |
java.lang.String |
getCurrency()
Gets the currency the user wants to pay in |
java.lang.String |
getErrorCode()
Gets the payment method error code |
java.lang.String |
getErrorMessage()
Gets the payment method error message |
java.lang.String |
getIP()
Gets the payment method IP Adress |
java.lang.String |
getPaymentData(java.lang.String a_key)
Gets the value of a |
java.util.Enumeration |
getPaymentDataKeys()
|
java.lang.String |
getPaymentName()
Gets the payment method name |
java.util.Enumeration |
getReferences()
Gets all references that belong to this message |
long |
getTransferNumber()
Gets the transfer number that belongs to this message |
boolean |
isCharged()
|
void |
setAmount(long a_amount)
Sets the payment amount |
void |
setCharged(boolean charged)
|
void |
setCurrency(java.lang.String a_currency)
Sets the currency the user wants to pay in |
void |
setErrorCode(java.lang.String a_sErrorCode)
Sets the payment method error code |
void |
setErrorMessage(java.lang.String a_sErrorMessage)
Sets the payment method error message |
void |
setIP(java.lang.String a_sIP)
Sets the payment method IP Adress |
void |
setPaymentName(java.lang.String a_paymentName)
Sets the payment method name |
void |
setTransferNumber(long a_transferNumber)
Sets the transfer number that belongs to this message |
private void |
setValues(org.w3c.dom.Element elemRoot)
Sets the member values from an XML element. |
org.w3c.dom.Element |
toXmlElement(org.w3c.dom.Document a_doc)
Produces an XML element from the member values |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String XML_ELEMENT_NAME
private static final java.lang.String XML_DOCUMENT_VERSION
private static final java.lang.String VERSION
private static final java.lang.String TRANSFER_NUM
private static final java.lang.String AMOUNT
private static final java.lang.String CURRENCY
private static final java.lang.String CHARGED
private static final java.lang.String PAYMENT_DATA
private static final java.lang.String REF
private static final java.lang.String PAYMENT_NAME
private static final java.lang.String ERRORCODE
private static final java.lang.String ERRORMSG
private static final java.lang.String IP
private java.util.Hashtable m_paymentData
private long m_transferNumber
private java.lang.String m_currency
private long m_centAmount
private java.lang.String m_paymentName
private boolean m_charged
private java.lang.String m_sErrorCode
private java.lang.String m_sErrorMessage
private java.lang.String m_sIP
public static final java.lang.String KEY_COUPONCODE
public static final java.lang.String KEY_ACCOUNTNUMBER
public static final java.lang.String KEY_TRANSFERNUMBER
public static final java.lang.String KEY_VOLUMEPLAN
public static final java.lang.String KEY_MERCHANT_ID
public static final java.lang.String KEY_TRANSACTION_ID
public static final java.lang.String KEY_ERRORCODE
public static final java.lang.String KEY_ERRORMESSAGE
public static final java.lang.String KEY_IPADRESS
Constructor Detail |
---|
public XMLPassivePayment()
public XMLPassivePayment(java.lang.String xml) throws XMLParseException
xml
- String
java.lang.Exception
XMLParseException
public XMLPassivePayment(char[] xml) throws XMLParseException
XMLParseException
public XMLPassivePayment(byte[] xml) throws XMLParseException
xml
- byte[]
java.lang.Exception
XMLParseException
public XMLPassivePayment(org.w3c.dom.Document doc) throws XMLParseException
doc
- Document
java.lang.Exception
XMLParseException
public XMLPassivePayment(org.w3c.dom.Element element) throws XMLParseException
element
- Element
java.lang.Exception
XMLParseException
Method Detail |
---|
private void setValues(org.w3c.dom.Element elemRoot) throws XMLParseException
elemRoot
- Element
java.lang.Exception
XMLParseException
public void setIP(java.lang.String a_sIP)
a_sErrorCode
- Stringpublic java.lang.String getIP()
public void setErrorMessage(java.lang.String a_sErrorMessage)
a_sErrorCode
- Stringpublic java.lang.String getErrorMessage()
public void setErrorCode(java.lang.String a_sErrorCode)
a_sErrorCode
- Stringpublic java.lang.String getErrorCode()
public void setPaymentName(java.lang.String a_paymentName)
a_paymentName
- Stringpublic java.lang.String getPaymentName()
public void setAmount(long a_amount)
a_amount
- long: money amount in centspublic void setCurrency(java.lang.String a_currency)
a_currency
- Stringpublic void setCharged(boolean charged)
public void setTransferNumber(long a_transferNumber)
a_transferNumber
- longpublic void addData(java.lang.String a_reference, java.lang.String a_data)
a_reference
- String The reference, of the input fielda_data
- String The value teh user has entered in the input fieldpublic long getAmount()
public long getTransferNumber()
public java.lang.String getCurrency()
public boolean isCharged()
public java.util.Enumeration getReferences()
public java.lang.String getPaymentData(java.lang.String a_key)
a_key
- String The reference of the input field that should be retrieved
public java.lang.String getAllPaymentData()
public java.util.Enumeration getPaymentDataKeys()
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
toXmlElement
in interface IXMLEncodable
a_doc
- Document
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |