|
|||||||||
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.ChargeOrderRequest
public class ChargeOrderRequest
This class contains methods that construct <charge-order> API requests.
Field Summary |
---|
Fields inherited from class com.google.checkout.AbstractCheckoutRequest |
---|
merchantInfo |
Constructor Summary | |
---|---|
ChargeOrderRequest(MerchantInfo merchantInfo)
Constructor which takes an instance of MechantInfo and the Google order |
|
ChargeOrderRequest(MerchantInfo merchantInfo,
java.lang.String googleOrderNumber)
Constructor which takes an instance of merchantInfo and the Google order number. |
|
ChargeOrderRequest(MerchantInfo merchantInfo,
java.lang.String googleOrderNumber,
float amount)
Constructor which takes an instance of MerchantInfo, the Google order number and the amount to be charged. |
Method Summary | |
---|---|
float |
getAmount()
Return the charge amount, which is the value of the <amount> tag. |
void |
setAmount(float amount)
Set the charge amount, which is the value of the <amount> tag. |
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 |
Constructor Detail |
---|
public ChargeOrderRequest(MerchantInfo merchantInfo)
merchantInfo
- The merchant's information.public ChargeOrderRequest(MerchantInfo merchantInfo, java.lang.String googleOrderNumber)
merchantInfo
- The merchant's information.googleOrderNumber
- The Google order number.public ChargeOrderRequest(MerchantInfo merchantInfo, java.lang.String googleOrderNumber, float amount)
merchantInfo
- The merchant's information.googleOrderNumber
- The Google order number.amount
- The amount to charge.Method Detail |
---|
public float getAmount()
public void setAmount(float amount)
amount
- The charge amount.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |