com.google.checkout.orderprocessing
Class DeliverOrderRequest

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

public class DeliverOrderRequest
extends AbstractOrderProcessingRequest

This class contains methods that construct <deliver-order> API requests.

Author:
Charles Dang (cdang@google.com)

Field Summary
 
Fields inherited from class com.google.checkout.AbstractCheckoutRequest
merchantInfo
 
Constructor Summary
DeliverOrderRequest(MerchantInfo merchantInfo)
          Constructor which takes an instance of MerchantInfo.
DeliverOrderRequest(MerchantInfo merchantInfo, java.lang.String googleOrderNumber)
          Constructor which takes an instance of MerchantInfo and the Google order number.
DeliverOrderRequest(MerchantInfo merchantInfo, java.lang.String googleOrderNumber, java.lang.String carrier, java.lang.String trackingNumber, boolean sendEmail)
          Constructor which takes an instance of merchantInfo, the Google order number, the carrier, tracking number and the whether to send email.
 
Method Summary
 java.lang.String getCarrier()
          Return the carrier String, which is the value of the <carrier> tag.
 java.lang.String getTrackingNo()
          Deprecated. Use getTrackingNumber()
 java.lang.String getTrackingNumber()
          Return the tracking number, which is the value of the <tracking-number> tag.
 boolean isSendEmail()
          True if an email is to be sent to the buyer.
 void setCarrier(java.lang.String carrier)
          Set the carrier String, which is the value of the <carrier> tag.
 void setSendEmail(boolean sendEmail)
          True if an email is to be sent to the buyer.
 void setTrackingNo(java.lang.String trackingNo)
          Deprecated. Use setTrackingNumber()
 void setTrackingNumber(java.lang.String trackingNumber)
          Set the tracking number, which is the value of the <tracking-number> tag.
 
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

DeliverOrderRequest

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

Parameters:
merchantInfo - The merchant's information.

DeliverOrderRequest

public DeliverOrderRequest(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.

DeliverOrderRequest

public DeliverOrderRequest(MerchantInfo merchantInfo,
                           java.lang.String googleOrderNumber,
                           java.lang.String carrier,
                           java.lang.String trackingNumber,
                           boolean sendEmail)
Constructor which takes an instance of merchantInfo, the Google order number, the carrier, tracking number and the whether to send email.

Parameters:
merchantInfo - The merchant's information.
googleOrderNumber - The Google order number.
carrier - The carrier that will make the delivery.
trackingNumber - The tracking number of the delivery.
sendEmail - Whether to notify the buyer.
Method Detail

getCarrier

public java.lang.String getCarrier()
Return the carrier String, which is the value of the <carrier> tag.

Returns:
The carrier that will make the delivery.

getTrackingNo

public java.lang.String getTrackingNo()
Deprecated. Use getTrackingNumber()

Return the tracking number, which is the value of the <tracking-number> tag.

Returns:
The tracking number.

getTrackingNumber

public java.lang.String getTrackingNumber()
Return the tracking number, which is the value of the <tracking-number> tag.

Returns:
The tracking number.

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.

setCarrier

public void setCarrier(java.lang.String carrier)
Set the carrier String, which is the value of the <carrier> tag.

Parameters:
carrier - The carrier that will make the delivery.

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.

setTrackingNo

public void setTrackingNo(java.lang.String trackingNo)
Deprecated. Use setTrackingNumber()

Set the tracking number, which is the value of the <tracking-number> tag.

Parameters:
trackingNo - The tracking number.

setTrackingNumber

public void setTrackingNumber(java.lang.String trackingNumber)
Set the tracking number, which is the value of the <tracking-number> tag.

Parameters:
trackingNumber - The tracking number.