|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.checkout.merchantcalculation.MerchantCodeResult
com.google.checkout.merchantcalculation.GiftCertificateResult
public class GiftCertificateResult
This class encapsulates the <gift-certificate-result> tag used as part of the Merchant Calculation API.
MerchantCodeResult
Constructor Summary | |
---|---|
GiftCertificateResult(boolean valid,
float calculatedAmount,
java.lang.String currency,
java.lang.String code,
java.lang.String message)
A constructor which takes all the relevant parameters. |
Method Summary |
---|
Methods inherited from class com.google.checkout.merchantcalculation.MerchantCodeResult |
---|
getCalculatedAmount, getCode, getCurrency, getMessage, getType, isValid, setCalculatedAmount, setCode, setCurrency, setMessage, setType, setValid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GiftCertificateResult(boolean valid, float calculatedAmount, java.lang.String currency, java.lang.String code, java.lang.String message)
valid
- Whether the code is valid.calculatedAmount
- The discount amount.currency
- The currency.code
- The gift certificate code.message
- The message to display to the user.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |