com.google.checkout.notification
Class RiskInformationNotification

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

public class RiskInformationNotification
extends CheckoutNotification

This class encapsulates the <risk-information-notification> notification.

Author:
simonjsmith
See Also:
Serialized Form

Constructor Summary
RiskInformationNotification(org.w3c.dom.Document document)
          A constructor which takes in an xml document representation of the request.
RiskInformationNotification(java.io.InputStream inputStream)
          A constructor which takes the request as an InputStream.
RiskInformationNotification(java.lang.String requestString)
          A constructor which takes the request as a String.
 
Method Summary
 java.lang.String getAvsResponse()
          Deprecated. Use getRiskInfo().getAvsResponse()
 Address getBillingAddress()
          Deprecated. Use getRiskInfo().getBillingAddress()
 int getBuyerAccountAge()
          Deprecated. getRiskInfo().getBuyerAccountAge()
 java.lang.String getCvnResponse()
          Deprecated. Use getRiskInfo().getCvsResponse()
 java.lang.String getIpAddress()
          Deprecated. getRiskInfo().getIpAddress()
 java.lang.String getPartialCcNumber()
          Deprecated. Use getRiskInfo().getPartialCcNumber()
 RiskInformation getRiskInfo()
           
 boolean isEligibleForProtection()
          Deprecated. Use getRiskInfo().isEligibleForProtection()
 
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

RiskInformationNotification

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

Parameters:
requestString -
Throws:
CheckoutException

RiskInformationNotification

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

Parameters:
inputStream -
Throws:
CheckoutException

RiskInformationNotification

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

Parameters:
document -
Method Detail

getRiskInfo

public RiskInformation getRiskInfo()

isEligibleForProtection

public boolean isEligibleForProtection()
Deprecated. Use getRiskInfo().isEligibleForProtection()

Retrieves the value of the <eligible-for-protection> tag.

Returns:
The eligible for protection flag.

getBillingAddress

public Address getBillingAddress()
Deprecated. Use getRiskInfo().getBillingAddress()

Retrieves the contents of the <billing-address> tag as an Address object.

Returns:
The billing address.
See Also:
Address

getAvsResponse

public java.lang.String getAvsResponse()
Deprecated. Use getRiskInfo().getAvsResponse()

Retrieves the value of the <avs-response> tag.

Returns:
The AVS response.

getCvnResponse

public java.lang.String getCvnResponse()
Deprecated. Use getRiskInfo().getCvsResponse()

Retrieves the value of the <cvn-response> tag.

Returns:
The CVN response.

getPartialCcNumber

public java.lang.String getPartialCcNumber()
Deprecated. Use getRiskInfo().getPartialCcNumber()

Retrieves the value of the <partial-cc-number> tag.

Returns:
The partial credit card number.

getBuyerAccountAge

public int getBuyerAccountAge()
Deprecated. getRiskInfo().getBuyerAccountAge()

Retrieves the value of the <buyer-account-age> tag.

Returns:
The buyer account age.

getIpAddress

public java.lang.String getIpAddress()
Deprecated. getRiskInfo().getIpAddress()

Retrieves the value of the <ip-address> tag.

Returns:
The IP address.