|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.checkout.merchantcalculation.MerchantCodeResult
public abstract class MerchantCodeResult
This class encapsulates the <merchant-code-results> tag used as part of the Merchant Calculation API.
Constructor Summary | |
---|---|
MerchantCodeResult()
|
Method Summary | |
---|---|
float |
getCalculatedAmount()
Retrieves the value of the <calculated-amount> tag. |
java.lang.String |
getCode()
Retrieves the value of the <code> tag. |
java.lang.String |
getCurrency()
Retrieves the value of the currency attribute of the <calculated-amount> tag. |
java.lang.String |
getMessage()
Retrieves the value of the <message> tag. |
java.lang.String |
getType()
Retrieves the type of the result. |
boolean |
isValid()
Retrieves the value of the <valid> tag. |
void |
setCalculatedAmount(float calculatedAmount)
Sets the value of the <calculated-amount> tag. |
void |
setCode(java.lang.String code)
Sets the value of the <code> tag. |
void |
setCurrency(java.lang.String currency)
Sets the value of the currency attribute of the <calculated-amount> tag. |
void |
setMessage(java.lang.String message)
Sets the value of the <message> tag. |
void |
setType(java.lang.String type)
Sets the type of the result. |
void |
setValid(boolean valid)
Sets the value of the <valid> tag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MerchantCodeResult()
Method Detail |
---|
public float getCalculatedAmount()
public void setCalculatedAmount(float calculatedAmount)
calculatedAmount
- The value of the discount.public java.lang.String getCode()
public void setCode(java.lang.String code)
code
- The code.public java.lang.String getCurrency()
public void setCurrency(java.lang.String currency)
currency
- The currency code.public java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- The message to be shown to the user.public java.lang.String getType()
public void setType(java.lang.String type)
type
- public boolean isValid()
public void setValid(boolean valid)
valid
- The valid flag.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |