|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.checkout.notification.CheckoutNotification
com.google.checkout.notification.NewOrderNotification
public class NewOrderNotification
This class encapsulates the <new-order-notification> notification.
Constructor Summary | |
---|---|
NewOrderNotification(org.w3c.dom.Document document)
A constructor which takes in an xml document representation of the request. |
|
NewOrderNotification(java.io.InputStream inputStream)
A constructor which takes the request as an InputStream. |
|
NewOrderNotification(java.lang.String requestString)
A constructor which takes the request as a String. |
Method Summary | |
---|---|
float |
getAdjustmentTotal()
Deprecated. Use getOrderAdjustment().getAdjustmentTotal(); |
Address |
getBuyerBillingAddress()
Retrieves the value of the <buyer-billing-address> element. |
long |
getBuyerId()
Retrieves the value of the <buyer-id> element. |
BuyerMarketingPreferences |
getBuyerMarketingPreferences()
|
Address |
getBuyerShippingAddress()
Retrieves the value of the <buyer-shipping-address> element. |
java.util.Date |
getCartExpiration()
Deprecated. Use getShoppingCart().getCartExpiration() |
FinancialOrderState |
getFinancialOrderState()
Retrieves the value of the <financial-order-state> element. |
FulfillmentOrderState |
getFulfillmentOrderState()
Retrieves the value of the <fulfillment-order-state> element. |
java.util.Collection |
getItems()
Deprecated. Use getShoppingCart().getItems() |
java.util.Collection |
getMerchantCodes()
Deprecated. Use getOrderAdjustment().getMerchantCodes() |
org.w3c.dom.Element[] |
getMerchantPrivateDataNodes()
Deprecated. Use getShoppingCart().getMerchantPrivateDataNodes() |
OrderAdjustment |
getOrderAdjustment()
|
java.lang.String |
getOrderCurrencyCode()
Retrieves the currency code. |
float |
getOrderTotal()
Retrieves the value of the <order-total> element. |
java.util.Collection |
getPromotions()
Retrieves the promotions or null if no promotions are found |
Shipping |
getShipping()
Deprecated. Use getOrderAdjustment().getShipping() |
ShoppingCart |
getShoppingCart()
Retrieves the shopping cart |
float |
getTotalTax()
Deprecated. Use getOrderAdjustment().getTotalTax(); |
boolean |
isMarketingEmailAllowed()
Deprecated. Use getBuyerMarketingPreferences().isMarketingEmailAllowed() |
boolean |
isMerchantCalculationSuccessful()
Deprecated. Use getOrderAdjustment().isMerchantCalculationSuccessful() |
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 |
---|
public NewOrderNotification(java.lang.String requestString) throws CheckoutException
requestString
-
CheckoutException
- if there was an
error prcessing the request stringpublic NewOrderNotification(java.io.InputStream inputStream) throws CheckoutException
inputStream
-
CheckoutException
- if there was an
error prcessing the request from the InputStreampublic NewOrderNotification(org.w3c.dom.Document document)
document
- Method Detail |
---|
public java.util.Collection getItems()
Item
public ShoppingCart getShoppingCart()
public org.w3c.dom.Element[] getMerchantPrivateDataNodes()
Element
public java.util.Date getCartExpiration() throws CheckoutException
CheckoutException
- if there was an
error retrieving the cart expiration dateDate
public Address getBuyerShippingAddress()
Address
public Address getBuyerBillingAddress()
Address
public BuyerMarketingPreferences getBuyerMarketingPreferences()
public OrderAdjustment getOrderAdjustment()
public boolean isMarketingEmailAllowed()
public boolean isMerchantCalculationSuccessful()
public java.util.Collection getMerchantCodes()
MerchantCodes
,
GiftCertificateAdjustment
,
CouponAdjustment
public float getTotalTax()
public float getAdjustmentTotal()
public Shipping getShipping()
Shipping
public float getOrderTotal()
public java.lang.String getOrderCurrencyCode()
public java.util.Collection getPromotions()
public FulfillmentOrderState getFulfillmentOrderState()
FulfillmentOrderState
public FinancialOrderState getFinancialOrderState()
FinancialOrderState
public long getBuyerId()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |