|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.checkout.AbstractCheckoutRequest
com.google.checkout.orderprocessing.AbstractOrderProcessingRequest
com.google.checkout.orderprocessing.SendBuyerMessageRequest
public class SendBuyerMessageRequest
This class contains methods that construct <send-buyer-message> API requests.
Field Summary | |
---|---|
static java.lang.String |
MESSAGE_ERROR_STRING
|
static int |
MESSAGE_STRING_LIMIT
|
Fields inherited from class com.google.checkout.AbstractCheckoutRequest |
---|
merchantInfo |
Constructor Summary | |
---|---|
SendBuyerMessageRequest(MerchantInfo merchantInfo)
Constructor which takes an instance of MerchantInfo. |
|
SendBuyerMessageRequest(MerchantInfo merchantInfo,
java.lang.String googleOrderNumber,
java.lang.String message)
Constructor which takes an instance of MerchantInfo, Google order number and message. |
|
SendBuyerMessageRequest(MerchantInfo merchantInfo,
java.lang.String googleOrderNumber,
java.lang.String message,
boolean sendEmail)
Constructor which takes an instance of MerchantInfo, Google order number, message and SendEmail flag. |
Method Summary | |
---|---|
java.lang.String |
getMessage()
Return the message which is to be sent to the buyer. |
boolean |
isSendEmail()
True if an email is to be sent to the buyer. |
boolean |
isWithinMessageStringLimits(java.lang.String message)
Determine whether the message is within the string length limits. |
void |
setMessage(java.lang.String message)
Set the message which is to be sent to the customer. |
void |
setSendEmail(boolean sendEmail)
Sets the flag which will determine whether an email is 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 |
Field Detail |
---|
public static final int MESSAGE_STRING_LIMIT
public static final java.lang.String MESSAGE_ERROR_STRING
Constructor Detail |
---|
public SendBuyerMessageRequest(MerchantInfo merchantInfo)
merchantInfo
- The merchant's informationpublic SendBuyerMessageRequest(MerchantInfo merchantInfo, java.lang.String googleOrderNumber, java.lang.String message)
merchantInfo
- The merchant's information.googleOrderNumber
- The Google order numbermessage
- The message to send to the buyer.public SendBuyerMessageRequest(MerchantInfo merchantInfo, java.lang.String googleOrderNumber, java.lang.String message, boolean sendEmail)
merchantInfo
- The merchant's information.googleOrderNumber
- The Google order number.message
- The message to send the buyer.sendEmail
- Whether to send an email to buyer.Method Detail |
---|
public boolean isWithinMessageStringLimits(java.lang.String message)
public java.lang.String getMessage()
public boolean isSendEmail()
public void setMessage(java.lang.String message)
message
- The message to send to the buyer.
CheckoutException
- if message is null.public void setSendEmail(boolean sendEmail)
sendEmail
- True if an email is to be sent to the buyer; otherwise
false.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |