com.google.checkout.notification
Class AuthorizationAmountNotification

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

public class AuthorizationAmountNotification
extends CheckoutNotification

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

Author:
simonjsmith
See Also:
Serialized Form

Constructor Summary
AuthorizationAmountNotification(org.w3c.dom.Document document)
          A constructor which takes in an xml document representation of the request.
AuthorizationAmountNotification(java.io.InputStream inputStream)
          A constructor which takes the request as an InputStream.
AuthorizationAmountNotification(java.lang.String requestString)
          A constructor which takes the request as a String.
 
Method Summary
 float getAuthorizationAmount()
          Retrieves the value of the <authorization-amount> tag.
 java.util.Date getAuthorizationExpirationDate()
          Retrieves the value of the <authorization-expiration-date> tag.
 java.lang.String getAvsResponse()
          Retrieves the value of the <avs-response> tag.
 java.lang.String getCurrencyCode()
          Retrieves the currency code.
 java.lang.String getCvnResponse()
          Retrieves the value of the <cvn-response> 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

AuthorizationAmountNotification

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

AuthorizationAmountNotification

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

AuthorizationAmountNotification

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

Parameters:
document -
Method Detail

getAvsResponse

public java.lang.String getAvsResponse()
Retrieves the value of the <avs-response> tag.

Returns:
The AVS response code.

getCvnResponse

public java.lang.String getCvnResponse()
Retrieves the value of the <cvn-response> tag.

Returns:
The CVN response code.

getAuthorizationAmount

public float getAuthorizationAmount()
Retrieves the value of the <authorization-amount> tag.

Returns:
The authorization amount.

getCurrencyCode

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

Returns:
The currency code.

getAuthorizationExpirationDate

public java.util.Date getAuthorizationExpirationDate()
                                              throws CheckoutException
Retrieves the value of the <authorization-expiration-date> tag.

Returns:
The authorization expiration date.
Throws:
CheckoutException