com.google.checkout.notification
Class MerchantCodes

java.lang.Object
  extended by com.google.checkout.notification.MerchantCodes
Direct Known Subclasses:
CouponAdjustment, GiftCertificateAdjustment

public abstract class MerchantCodes
extends java.lang.Object

This class is the parent class of the merchant code classes.

Author:
simonjsmith

Field Summary
protected  org.w3c.dom.Document document
           
protected  org.w3c.dom.Element element
           
 
Constructor Summary
MerchantCodes()
           
 
Method Summary
 float getAppliedAmount()
          Retrieves the value of the <applied-amount> element.
 float getCalculatedAmount()
          Retrieves the value of the <calculated-amount> element.
 java.lang.String getCode()
          Retrieves the value of the <code> element.
 java.lang.String getMessage()
          Retrieves the value of the <message> element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

document

protected org.w3c.dom.Document document

element

protected org.w3c.dom.Element element
Constructor Detail

MerchantCodes

public MerchantCodes()
Method Detail

getAppliedAmount

public float getAppliedAmount()
Retrieves the value of the <applied-amount> element.

Returns:
The applied amount.

getCalculatedAmount

public float getCalculatedAmount()
Retrieves the value of the <calculated-amount> element.

Returns:
The calculated amount.

getCode

public java.lang.String getCode()
Retrieves the value of the <code> element.

Returns:
The code.

getMessage

public java.lang.String getMessage()
Retrieves the value of the <message> element.

Returns:
The message.