|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.checkout.merchantcalculation.MerchantCalculationResults
public class MerchantCalculationResults
This class encapsulates the <merchant-calculation-callback> message which is part of the Merchant Calculation API.
Constructor Summary | |
---|---|
MerchantCalculationResults()
|
Method Summary | |
---|---|
void |
addResult(java.lang.String shippingName,
java.lang.String addressId,
boolean shippable,
double totalTaxAmount,
double shippingRate,
java.lang.String currency,
java.util.Collection merchantCodeResults)
Add a result. |
void |
addResult(java.lang.String shippingName,
java.lang.String addressId,
boolean shippable,
double shippingRate,
java.lang.String currency,
java.util.Collection merchantCodeResults)
Add a result without including a total-tax amount. |
protected org.w3c.dom.Document |
getDocument()
Returns the document representing the CheckoutShoppingCartRequest |
java.lang.String |
getXml()
Return the XML String. |
java.lang.String |
getXmlPretty()
Return the nicely formatted XML String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MerchantCalculationResults()
Method Detail |
---|
public void addResult(java.lang.String shippingName, java.lang.String addressId, boolean shippable, double totalTaxAmount, double shippingRate, java.lang.String currency, java.util.Collection merchantCodeResults)
shippingName
- The shipping name.addressId
- The address id.shippable
- The shippable flag.totalTaxAmount
- The total tax amount.shippingRate
- The shipping rate.currency
- The currency code.merchantCodeResults
- A collection of MerchantCodeResult objects.MerchantCodeResult
public void addResult(java.lang.String shippingName, java.lang.String addressId, boolean shippable, double shippingRate, java.lang.String currency, java.util.Collection merchantCodeResults)
shippingName
- The shipping name.addressId
- The address id.shippable
- The shippable flag.shippingRate
- The shipping rate.currency
- The currency code.merchantCodeResults
- A collection of MerchantCodeResult objects.MerchantCodeResult
protected org.w3c.dom.Document getDocument()
public java.lang.String getXml()
public java.lang.String getXmlPretty()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |