|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.checkout.merchantcalculation.CheckoutCallback
com.google.checkout.merchantcalculation.MerchantCalculationCallback
public class MerchantCalculationCallback
This class encapsulates the <merchant-calculation-callback> callback.
Field Summary |
---|
Fields inherited from class com.google.checkout.merchantcalculation.CheckoutCallback |
---|
document, root |
Constructor Summary | |
---|---|
MerchantCalculationCallback(org.w3c.dom.Document document)
|
|
MerchantCalculationCallback(java.io.InputStream inputStream)
A constructor which takes the request as an InputStream. |
|
MerchantCalculationCallback(java.lang.String requestString)
A constructor which takes the request as a String. |
Method Summary | |
---|---|
java.util.Collection |
getAnonymousAddresses()
Returns a Collection of AnonymousAddress objects representing the <anonymous-address> tags in the request. |
long |
getBuyerId()
Retrieves the value of the <buyer-id> element. |
java.lang.String |
getBuyerLanguage()
Retrieves the value of the <buyer-language> element. |
java.util.Date |
getCartExpiration()
Deprecated. Use getShoppingCart().getCartExpiration() |
java.util.Collection |
getItems()
Deprecated. Use getShoppingCart().getItems() |
java.util.Collection |
getMerchantCodes()
Returns a Collection of Strings representing the <merchant-code-strings>. |
org.w3c.dom.Element[] |
getMerchantPrivateDataNodes()
Deprecated. Use getShoppingCart().getMerchantPrivateDataNodes() |
java.util.Collection |
getShippingMethods()
Returns a Collection of Strings representing the <method> tags. |
ShoppingCart |
getShoppingCart()
Retrieves the shopping cart |
boolean |
isCalculateTax()
Indicates whether tax should be calculated or not. |
Methods inherited from class com.google.checkout.merchantcalculation.CheckoutCallback |
---|
getSerialNumber, getType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MerchantCalculationCallback(java.lang.String requestString) throws CheckoutException
requestString
- The xml string containing the callback data
com.google.checkout.exceptions.CheckoutException
CheckoutException
public MerchantCalculationCallback(java.io.InputStream inputStream) throws CheckoutException
inputStream
-
com.google.checkout.exceptions.CheckoutException
CheckoutException
public MerchantCalculationCallback(org.w3c.dom.Document document)
document
- An document containing callback informationMethod Detail |
---|
public java.util.Collection getItems()
Item
public ShoppingCart getShoppingCart()
public org.w3c.dom.Element[] getMerchantPrivateDataNodes()
Element
public java.util.Date getCartExpiration() throws CheckoutException
com.google.checkout.exceptions.CheckoutException
- if there was an
error reading the cart expiration date
CheckoutException
Date
public long getBuyerId()
public java.lang.String getBuyerLanguage()
public boolean isCalculateTax()
public java.util.Collection getShippingMethods()
public java.util.Collection getMerchantCodes()
public java.util.Collection getAnonymousAddresses()
AnonymousAddress
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |