public class Order extends PayPalResource
| Constructor and Description |
|---|
Order()
Default Constructor
|
Order(String id,
Amount amount,
String state)
Parameterized Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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
|
FmfDetails |
getFmfDetails() |
String |
getId()
Getter for id
|
String |
getPaymentMode()
Getter for paymentMode
|
String |
getProtectionEligibility()
Getter for protectionEligibility
|
String |
getProtectionEligibilityType()
Getter for protectionEligibilityType
|
String |
getPurchaseUnitReferenceId()
Getter for purchaseUnitReferenceId
|
String |
getReasonCode() |
String |
getState()
Getter for state
|
String |
getUpdateTime()
Getter for updateTime
|
Order |
setAmount(Amount amount)
Setter for amount
|
Order |
setCreateTime(String createTime)
Setter for createTime
|
Order |
setFmfDetails(FmfDetails fmfDetails) |
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 |
setReasonCode(String reasonCode) |
Order |
setState(String state)
Setter for state
|
Order |
setUpdateTime(String updateTime)
Setter for updateTime
|
configureAndExecute, configureAndExecute, configureAndExecute, createAPICallPreHandler, getClientID, getClientSecret, getConfigurations, getLastRequest, getLastResponse, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefaultequals, hashCode, toJSON, toStringpublic String getId()
public Order setPurchaseUnitReferenceId(String purchaseUnitReferenceId)
public String getPurchaseUnitReferenceId()
public String getCreateTime()
public String getUpdateTime()
public Amount getAmount()
public String getPaymentMode()
public String getState()
public Order setProtectionEligibility(String protectionEligibility)
public String getProtectionEligibility()
public Order setProtectionEligibilityType(String protectionEligibilityType)
public String getProtectionEligibilityType()
public String getReasonCode()
public FmfDetails getFmfDetails()
public Order setFmfDetails(FmfDetails fmfDetails)
public static Order get(String accessToken, String orderId) throws PayPalRESTException
accessToken - Access Token used for the API call.orderId - StringPayPalRESTExceptionpublic static Order get(APIContext apiContext, String orderId) throws PayPalRESTException
apiContext - APIContext used for the API call.orderId - StringPayPalRESTExceptionpublic Capture capture(String accessToken, Capture capture) throws PayPalRESTException
accessToken - Access Token used for the API call.capture - CapturePayPalRESTExceptionpublic Capture capture(APIContext apiContext, Capture capture) throws PayPalRESTException
apiContext - APIContext used for the API call.capture - CapturePayPalRESTExceptionpublic Order doVoid(String accessToken) throws PayPalRESTException
accessToken - Access Token used for the API call.PayPalRESTExceptionpublic Order doVoid(APIContext apiContext) throws PayPalRESTException
apiContext - APIContext used for the API call.PayPalRESTExceptionpublic Authorization authorize(String accessToken) throws PayPalRESTException
accessToken - Access Token used for the API call.PayPalRESTExceptionpublic Authorization authorize(APIContext apiContext) throws PayPalRESTException
apiContext - APIContext used for the API call.PayPalRESTExceptionCopyright © 2015. All Rights Reserved.