com.google.checkout.notification
Class CheckoutNotification

java.lang.Object
  extended by com.google.checkout.notification.CheckoutNotification
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AuthorizationAmountNotification, ChargeAmountNotification, ChargebackAmountNotification, NewOrderNotification, OrderStateChangeNotification, RefundAmountNotification, RiskInformationNotification

public abstract class CheckoutNotification
extends java.lang.Object
implements java.io.Serializable

This class is the parent for all the notification classes.

Author:
simonjsmith
See Also:
Serialized Form

Constructor Summary
CheckoutNotification(org.w3c.dom.Document document)
          Takes a document that contains info on the notification
 
Method Summary
 org.w3c.dom.Document getDocument()
           
 java.lang.String getGoogleOrderNo()
          Deprecated. User getGoogleOrderNumber()
 java.lang.String getGoogleOrderNumber()
          Return the Google Order number for this notification.
 org.w3c.dom.Element getRoot()
           
 java.lang.String getRootNodeName()
          Return the name of the root node of the notification.
 java.lang.String getSerialNumber()
          Retrieves the value of the serial-number attribute.
 java.util.Date getTimestamp()
          Retrieves the value of the <timestamp> tag.
 java.lang.String getType()
          Returns the type of the notification
 java.lang.String getXml()
          Return the XML request String.
 java.lang.String getXmlPretty()
          Return the nicely formatted XML request String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckoutNotification

public CheckoutNotification(org.w3c.dom.Document document)
Takes a document that contains info on the notification

Parameters:
document - The notification document
Method Detail

getDocument

public org.w3c.dom.Document getDocument()
Returns:
The document for this CheckoutNotification

getRoot

public org.w3c.dom.Element getRoot()
Returns:
The root of the document for this CheckoutNotification

getGoogleOrderNo

public java.lang.String getGoogleOrderNo()
Deprecated. User getGoogleOrderNumber()

Return the Google Order Number for this notification.

Returns:
The Google Order Number.

getGoogleOrderNumber

public java.lang.String getGoogleOrderNumber()
Return the Google Order number for this notification.

Returns:
The Google Order number

getTimestamp

public java.util.Date getTimestamp()
                            throws CheckoutException
Retrieves the value of the <timestamp> tag.

Returns:
The timestamp.
Throws:
CheckoutException

getType

public java.lang.String getType()
Returns the type of the notification

Returns:
Notification type

getSerialNumber

public java.lang.String getSerialNumber()
Retrieves the value of the serial-number attribute.

Returns:
The serial number.

getXml

public java.lang.String getXml()
Return the XML request String.

Returns:
The XML request String.

getXmlPretty

public java.lang.String getXmlPretty()
Return the nicely formatted XML request String.

Returns:
The nicely formatted XML request String.

getRootNodeName

public java.lang.String getRootNodeName()
Return the name of the root node of the notification.

Returns:
The root node name.