com.google.checkout.notification
Class OrderStateChangeNotification

java.lang.Object
  extended by com.google.checkout.notification.CheckoutNotification
      extended by com.google.checkout.notification.OrderStateChangeNotification
All Implemented Interfaces:
java.io.Serializable

public class OrderStateChangeNotification
extends CheckoutNotification

This class encapsulates the <order-state-change-notification> notification.

Author:
simonjsmith
See Also:
Serialized Form

Constructor Summary
OrderStateChangeNotification(org.w3c.dom.Document document)
          A constructor which takes in an xml document representation of the request.
OrderStateChangeNotification(java.io.InputStream inputStream)
          A constructor which takes the request as an InputStream.
OrderStateChangeNotification(java.lang.String requestString)
          A constructor which takes the request as a String.
 
Method Summary
 FinancialOrderState getNewFinancialOrderState()
          Retrieves the value of the <new-financial-order-state> element.
 FulfillmentOrderState getNewFulfillmentOrderState()
          Retrieves the value of the <new-fulfillment-order-state> element.
 FinancialOrderState getPreviousFinancialOrderState()
          Retrieves the value of the <previous-financial-order-state> element.
 FulfillmentOrderState getPreviousFulfillmentOrderState()
          Retrieves the value of the <previous-fulfillment-order-state> element.
 java.lang.String getReason()
          Retrieves the value of the <reason> element if it exists; otherwise null.
 
Methods inherited from class com.google.checkout.notification.CheckoutNotification
getDocument, getGoogleOrderNo, getGoogleOrderNumber, getRoot, getRootNodeName, getSerialNumber, getTimestamp, getType, getXml, getXmlPretty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderStateChangeNotification

public OrderStateChangeNotification(java.lang.String requestString)
                             throws CheckoutException
A constructor which takes the request as a String.

Parameters:
requestString -
Throws:
CheckoutException - if there was an error prcessing the request string

OrderStateChangeNotification

public OrderStateChangeNotification(java.io.InputStream inputStream)
                             throws CheckoutException
A constructor which takes the request as an InputStream.

Parameters:
inputStream -
Throws:
CheckoutException - if there was an error prcessing the request from the InputStream

OrderStateChangeNotification

public OrderStateChangeNotification(org.w3c.dom.Document document)
A constructor which takes in an xml document representation of the request.

Parameters:
document -
Method Detail

getNewFulfillmentOrderState

public FulfillmentOrderState getNewFulfillmentOrderState()
Retrieves the value of the <new-fulfillment-order-state> element.

Returns:
The new fulfillment order state or null if no state could be found.
See Also:
FulfillmentOrderState

getNewFinancialOrderState

public FinancialOrderState getNewFinancialOrderState()
Retrieves the value of the <new-financial-order-state> element.

Returns:
The new financial order state or null if no state could be found.
See Also:
FinancialOrderState

getPreviousFulfillmentOrderState

public FulfillmentOrderState getPreviousFulfillmentOrderState()
Retrieves the value of the <previous-fulfillment-order-state> element.

Returns:
The previous fulfillment order state or null if no state could be found.
See Also:
FulfillmentOrderState

getPreviousFinancialOrderState

public FinancialOrderState getPreviousFinancialOrderState()
Retrieves the value of the <previous-financial-order-state> element.

Returns:
The previous financial order state or null if no state could be found.
See Also:
FinancialOrderState

getReason

public java.lang.String getReason()
Retrieves the value of the <reason> element if it exists; otherwise null.

Returns:
The reason for the change in the order's state