com.google.checkout.notification
Class RefundAmountNotification

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

public class RefundAmountNotification
extends CheckoutNotification

This class encapsulates the <refund-amount-notification> notification.

Author:
simonjsmith
See Also:
Serialized Form

Constructor Summary
RefundAmountNotification(org.w3c.dom.Document document)
          A constructor which takes in an xml document representation of the request.
RefundAmountNotification(java.io.InputStream inputStream)
          A constructor which takes the request as an InputStream.
RefundAmountNotification(java.lang.String requestString)
          A constructor which takes the request as a String.
 
Method Summary
 java.lang.String getCurrencyCode()
          Retrieves the currency code.
 float getLatestPromotionRefundAmount()
          Retrieves the value of the <latest-promotion-chargeback-amount> tag if it exists; otherwise null.
 float getLatestRefundAmount()
          Retrieves the value of the <latest-refund-amount> tag.
 float getTotalRefundAmount()
          Retrieves the value of the <total-refund-amount> tag.
 
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

RefundAmountNotification

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

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

RefundAmountNotification

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

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

RefundAmountNotification

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

Parameters:
document -
Method Detail

getLatestPromotionRefundAmount

public float getLatestPromotionRefundAmount()
Retrieves the value of the <latest-promotion-chargeback-amount> tag if it exists; otherwise null.

Returns:
The latest promotion refund amount

getLatestRefundAmount

public float getLatestRefundAmount()
Retrieves the value of the <latest-refund-amount> tag.

Returns:
The latest refund amount.

getTotalRefundAmount

public float getTotalRefundAmount()
Retrieves the value of the <total-refund-amount> tag.

Returns:
The total refund amount.

getCurrencyCode

public java.lang.String getCurrencyCode()
Retrieves the currency code.

Returns:
The currency code.