* @param toEmail Boolean flag that indicates whether Google Checkout
* should email the customer when the command is processed.
*/
public Document trackOrder(String orderNumber, String trackNumber,
String courier, boolean toEmail) throws ProtocolException {
DeliverOrderRequest deliveryRequest
= createOrderDelivery(orderNumber, toEmail);
TrackingData trackData = _objectFact.createTrackingData();
trackData.setTrackingNumber(trackNumber);
trackData.setCarrier(courier);
deliveryRequest.setTrackingData(trackData);
JAXBElement<DeliverOrderRequest> deliverRequest
= _objectFact.createDeliverOrder(deliveryRequest);
return convertToDOM(deliverRequest);
}