com.google.checkout.orderprocessing.lineitem
Class ReturnItemsRequest

java.lang.Object
  extended by com.google.checkout.AbstractCheckoutRequest
      extended by com.google.checkout.orderprocessing.AbstractOrderProcessingRequest
          extended by com.google.checkout.orderprocessing.lineitem.ReturnItemsRequest

public class ReturnItemsRequest
extends AbstractOrderProcessingRequest

This class contains methods that construct <return-items> API requests.

Author:
Charles Dang (cdang@google.com)

Field Summary
 
Fields inherited from class com.google.checkout.AbstractCheckoutRequest
merchantInfo
 
Constructor Summary
ReturnItemsRequest(MerchantInfo merchantInfo)
          Constructor which takes an instance of MerchantInfo.
ReturnItemsRequest(MerchantInfo merchantInfo, java.lang.String googleOrderNumber)
          Constructor which takes an instance of MerchantInfo and the Google order number.
 
Method Summary
 void addItem(java.lang.String merchantItemId)
          Add the merchantItemId which has been returned.
 boolean isSendEmail()
          True if an email is to be sent to the buyer.
 void setSendEmail(boolean sendEmail)
          True if an email is to be sent to the buyer.
 
Methods inherited from class com.google.checkout.orderprocessing.AbstractOrderProcessingRequest
getGoogleOrderNo, getGoogleOrderNumber, setGoogleOrderNo, setGoogleOrderNumber
 
Methods inherited from class com.google.checkout.AbstractCheckoutRequest
getDocument, getPostUrl, getRoot, getXml, getXmlPretty, send
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReturnItemsRequest

public ReturnItemsRequest(MerchantInfo merchantInfo)
Constructor which takes an instance of MerchantInfo.

Parameters:
merchantInfo - The merchant's information.

ReturnItemsRequest

public ReturnItemsRequest(MerchantInfo merchantInfo,
                          java.lang.String googleOrderNumber)
Constructor which takes an instance of MerchantInfo and the Google order number.

Parameters:
merchantInfo - The merchant's information.
googleOrderNumber - The Google order number
Method Detail

isSendEmail

public boolean isSendEmail()
True if an email is to be sent to the buyer. This is the value of the <send-email> tag.

Returns:
The boolean value.

setSendEmail

public void setSendEmail(boolean sendEmail)
True if an email is to be sent to the buyer. This is the value of the <send-email> tag.

Parameters:
sendEmail - The boolean value.

addItem

public void addItem(java.lang.String merchantItemId)
Add the merchantItemId which has been returned.

Parameters:
merchantItemId -