com.google.checkout.orderprocessing.lineitem
Class BackorderItemsRequest

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

public class BackorderItemsRequest
extends AbstractOrderProcessingRequest

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

Author:
Charles Dang (cdang@google.com)

Field Summary
 
Fields inherited from class com.google.checkout.AbstractCheckoutRequest
merchantInfo
 
Constructor Summary
BackorderItemsRequest(MerchantInfo merchantInfo)
          Constructor which takes an instance of MerchantInfo.
BackorderItemsRequest(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 is on back order.
 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

BackorderItemsRequest

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

Parameters:
merchantInfo - The merchant's information.

BackorderItemsRequest

public BackorderItemsRequest(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 is on back order.

Parameters:
merchantItemId - The merchant's item id.