com.google.checkout.notification
Class OrderAdjustment

java.lang.Object
  extended by com.google.checkout.notification.OrderAdjustment

public class OrderAdjustment
extends java.lang.Object

Author:
Charles Dang (cdang@google.com)

Constructor Summary
OrderAdjustment(org.w3c.dom.Document document, org.w3c.dom.Element orderAdjustment)
           
 
Method Summary
 float getAdjustmentTotal()
          Retrieves the value of the <adjustment-total> element.
 java.util.Collection getMerchantCodes()
          Retrieves the contents of the <merchant-codes> element as a collection of MerchantCodes objects.
 Shipping getShipping()
          Retrieves the value of the <shipping> element as a Shipping object.
 float getTotalTax()
           
 boolean isMerchantCalculationSuccessful()
          Retrieves the value of the <merchant-calculation-successful> element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderAdjustment

public OrderAdjustment(org.w3c.dom.Document document,
                       org.w3c.dom.Element orderAdjustment)
Method Detail

isMerchantCalculationSuccessful

public boolean isMerchantCalculationSuccessful()
Retrieves the value of the <merchant-calculation-successful> element.

Returns:
The merchant calculation successful flag.

getAdjustmentTotal

public float getAdjustmentTotal()
Retrieves the value of the <adjustment-total> element.

Returns:
The adjustment total amount.

getMerchantCodes

public java.util.Collection getMerchantCodes()
Retrieves the contents of the <merchant-codes> element as a collection of MerchantCodes objects.

Returns:
The merchant codes.
See Also:
MerchantCodes, GiftCertificateAdjustment, CouponAdjustment

getShipping

public Shipping getShipping()
Retrieves the value of the <shipping> element as a Shipping object.

Returns:
The shipping amount
See Also:
Shipping

getTotalTax

public float getTotalTax()