com.google.checkout.notification
Class ChargebackAmountNotification

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

public class ChargebackAmountNotification
extends CheckoutNotification

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

Author:
simonjsmith
See Also:
Serialized Form

Constructor Summary
ChargebackAmountNotification(org.w3c.dom.Document document)
          A constructor which takes in an xml document representation of the request.
ChargebackAmountNotification(java.io.InputStream inputStream)
          A constructor which takes the request as an InputStream.
ChargebackAmountNotification(java.lang.String requestString)
          A constructor which takes the request as a String.
 
Method Summary
 java.lang.String getCurrencyCode()
          Retrieves the currency code.
 float getLatestChargebackAmount()
          Retrieves the value of the <latest-chargeback-amount> tag.
 float getLatestPromotionChargebackAmount()
          Retrieves the value of the <latest-chargeback-amount> tag.
 float getTotalChargebackAmount()
          Retrieves the value of the <total-charge-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

ChargebackAmountNotification

public ChargebackAmountNotification(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 processing the request string

ChargebackAmountNotification

public ChargebackAmountNotification(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

ChargebackAmountNotification

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

Parameters:
document -
Method Detail

getLatestChargebackAmount

public float getLatestChargebackAmount()
Retrieves the value of the <latest-chargeback-amount> tag.

Returns:
The latest chargeback amount.

getLatestPromotionChargebackAmount

public float getLatestPromotionChargebackAmount()
Retrieves the value of the <latest-chargeback-amount> tag.

Returns:
The latest promotion chargeback amount

getTotalChargebackAmount

public float getTotalChargebackAmount()
Retrieves the value of the <total-charge-amount> tag.

Returns:
The total chargeback amount.

getCurrencyCode

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

Returns:
The currency code.