|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.paypal.api.payments.Order
public class Order
| Constructor Summary | |
|---|---|
Order()
Default Constructor |
|
Order(String id,
Amount amount,
String state)
Parameterized Constructor |
|
| Method Summary | |
|---|---|
Authorization |
authorize(APIContext apiContext)
Creates an authorization on an order |
Authorization |
authorize(String accessToken)
Creates an authorization on an order |
Capture |
capture(APIContext apiContext,
Capture capture)
Creates (and processes) a new Capture Transaction added as a related resource. |
Capture |
capture(String accessToken,
Capture capture)
Creates (and processes) a new Capture Transaction added as a related resource. |
Order |
doVoid(APIContext apiContext)
Voids (cancels) an Order. |
Order |
doVoid(String accessToken)
Voids (cancels) an Order. |
static Order |
get(APIContext apiContext,
String orderId)
Obtain the Order resource for the given identifier. |
static Order |
get(String accessToken,
String orderId)
Obtain the Order resource for the given identifier. |
Amount |
getAmount()
Getter for amount |
String |
getCreateTime()
Getter for createTime |
String |
getId()
Getter for id |
static String |
getLastRequest()
Returns the last request sent to the Service |
static String |
getLastResponse()
Returns the last response returned by the Service |
String |
getPaymentMode()
Getter for paymentMode |
String |
getProtectionEligibility()
Getter for protectionEligibility |
String |
getProtectionEligibilityType()
Getter for protectionEligibilityType |
String |
getPurchaseUnitReferenceId()
Getter for purchaseUnitReferenceId |
String |
getState()
Getter for state |
String |
getUpdateTime()
Getter for updateTime |
static OAuthTokenCredential |
initConfig(File file)
Initialize using a File(Properties file) |
static OAuthTokenCredential |
initConfig(InputStream is)
Initialize using InputStream(of a Properties file) |
static OAuthTokenCredential |
initConfig(Properties properties)
Initialize using Properties |
Order |
setAmount(Amount amount)
Setter for amount |
Order |
setCreateTime(String createTime)
Setter for createTime |
Order |
setId(String id)
Setter for id |
Order |
setPaymentMode(String paymentMode)
Setter for paymentMode |
Order |
setProtectionEligibility(String protectionEligibility)
Setter for protectionEligibility |
Order |
setProtectionEligibilityType(String protectionEligibilityType)
Setter for protectionEligibilityType |
Order |
setPurchaseUnitReferenceId(String purchaseUnitReferenceId)
Setter for purchaseUnitReferenceId |
Order |
setState(String state)
Setter for state |
Order |
setUpdateTime(String updateTime)
Setter for updateTime |
String |
toJSON()
Returns a JSON string corresponding to object state |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Order()
public Order(String id,
Amount amount,
String state)
| Method Detail |
|---|
public static String getLastRequest()
public static String getLastResponse()
public static OAuthTokenCredential initConfig(InputStream is)
throws PayPalRESTException
is - InputStream
PayPalRESTException
public static OAuthTokenCredential initConfig(File file)
throws PayPalRESTException
file - File object of a properties entity
PayPalRESTExceptionpublic static OAuthTokenCredential initConfig(Properties properties)
properties - Properties object
public Order setId(String id)
public String getId()
public Order setPurchaseUnitReferenceId(String purchaseUnitReferenceId)
public String getPurchaseUnitReferenceId()
public Order setCreateTime(String createTime)
public String getCreateTime()
public Order setUpdateTime(String updateTime)
public String getUpdateTime()
public Order setAmount(Amount amount)
public Amount getAmount()
public Order setPaymentMode(String paymentMode)
public String getPaymentMode()
public Order setState(String state)
public String getState()
public Order setProtectionEligibility(String protectionEligibility)
public String getProtectionEligibility()
public Order setProtectionEligibilityType(String protectionEligibilityType)
public String getProtectionEligibilityType()
public static Order get(String accessToken,
String orderId)
throws PayPalRESTException
accessToken - Access Token used for the API call.orderId - String
PayPalRESTException
public static Order get(APIContext apiContext,
String orderId)
throws PayPalRESTException
apiContext - APIContext used for the API call.orderId - String
PayPalRESTException
public Capture capture(String accessToken,
Capture capture)
throws PayPalRESTException
accessToken - Access Token used for the API call.capture - Capture
PayPalRESTException
public Capture capture(APIContext apiContext,
Capture capture)
throws PayPalRESTException
apiContext - APIContext used for the API call.capture - Capture
PayPalRESTException
public Order doVoid(String accessToken)
throws PayPalRESTException
accessToken - Access Token used for the API call.
PayPalRESTException
public Order doVoid(APIContext apiContext)
throws PayPalRESTException
apiContext - APIContext used for the API call.
PayPalRESTException
public Authorization authorize(String accessToken)
throws PayPalRESTException
accessToken - Access Token used for the API call.
PayPalRESTException
public Authorization authorize(APIContext apiContext)
throws PayPalRESTException
apiContext - APIContext used for the API call.
PayPalRESTExceptionpublic String toJSON()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||