public class Order extends PayPalResource
| Constructor and Description |
|---|
Order()
Default Constructor
|
Order(Amount amount)
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()
Getter for fmfDetails
|
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
|
List<Links> |
getLinks()
Getter for links
|
String |
getParentPayment()
Getter for parentPayment
|
String |
getPaymentMode()
Getter for paymentMode
|
String |
getPendingReason()
Getter for pendingReason
|
String |
getProtectionEligibility()
Getter for protectionEligibility
|
String |
getProtectionEligibilityType()
Getter for protectionEligibilityType
|
String |
getPurchaseUnitReferenceId()
Getter for purchaseUnitReferenceId
|
String |
getReasonCode()
Getter for reasonCode
|
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)
Setter for fmfDetails
|
Order |
setId(String id)
Setter for id
|
Order |
setLinks(List<Links> links)
Setter for links
|
Order |
setParentPayment(String parentPayment)
Setter for parentPayment
|
Order |
setPaymentMode(String paymentMode)
Setter for paymentMode
|
Order |
setPendingReason(String pendingReason)
Setter for pendingReason
|
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)
Setter for reasonCode
|
Order |
setState(String state)
Setter for state
|
Order |
setUpdateTime(String updateTime)
Setter for updateTime
|
configureAndExecute, configureAndExecute, configureAndExecute, createAPICallPreHandler, getClientCredential, getClientID, getClientSecret, getConfigurations, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefaultequals, hashCode, toJSON, toStringpublic Order()
public Order(Amount amount)
public static String getLastRequest()
public static String getLastResponse()
public String getId()
public Order setPurchaseUnitReferenceId(String purchaseUnitReferenceId)
public String getPurchaseUnitReferenceId()
public Amount getAmount()
public String getPaymentMode()
public String getState()
public String getReasonCode()
public String getPendingReason()
public Order setProtectionEligibility(String protectionEligibility)
public String getProtectionEligibility()
public Order setProtectionEligibilityType(String protectionEligibilityType)
public String getProtectionEligibilityType()
public String getParentPayment()
public Order setFmfDetails(FmfDetails fmfDetails)
public FmfDetails getFmfDetails()
public String getCreateTime()
public String getUpdateTime()
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 © 2016. All Rights Reserved.