boolean toEmail) throws ProtocolException {
if (StringUtil.isEmpty(googleOrderNumber)) {
throw new ProtocolException("google order number must not be empty");
}
SendBuyerMessageRequest buyerMsg = _objectFact.createSendBuyerMessageRequest();
buyerMsg.setGoogleOrderNumber(googleOrderNumber);
buyerMsg.setMessage(message);
buyerMsg.setSendEmail(toEmail);
JAXBElement<SendBuyerMessageRequest> elem
= _objectFact.createSendBuyerMessage(buyerMsg);
return convertToDOM(elem);
}