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)
Authorizes an order, by ID.
|
Authorization |
authorize(java.lang.String accessToken)
Deprecated.
Please use
authorize(APIContext) instead. |
protected boolean |
canEqual(java.lang.Object other) |
Capture |
capture(APIContext apiContext,
Capture capture)
Captures a payment for an order, by ID.
|
Capture |
capture(java.lang.String accessToken,
Capture capture)
Deprecated.
Please use
capture(APIContext, Capture) instead. |
Order |
doVoid(APIContext apiContext)
Voids, or cancels, an order, by ID.
|
Order |
doVoid(java.lang.String accessToken)
Deprecated.
Please use
doVoid(APIContext) instead. |
boolean |
equals(java.lang.Object o) |
static Order |
get(APIContext apiContext,
java.lang.String orderId)
Shows details for an order, by ID.
|
static Order |
get(java.lang.String accessToken,
java.lang.String orderId)
Deprecated.
Please use
get(APIContext, String) instead. |
Amount |
getAmount()
Amount being collected.
|
java.lang.String |
getCreateTime()
Time the resource was created in UTC ISO8601 format.
|
FmfDetails |
getFmfDetails()
Fraud Management Filter (FMF) details applied for the payment that could result in accept/deny/pending action.
|
java.lang.String |
getId()
Identifier of the order transaction.
|
java.util.List<Links> |
getLinks() |
java.lang.String |
getParentPayment()
ID of the Payment resource that this transaction is based on.
|
java.lang.String |
getPaymentMode()
specifies payment mode of the transaction
|
java.lang.String |
getPendingReason()
Deprecated.
Reason code for the transaction state being Pending. Obsolete. Retained for backward compatability. Use reason_code field above instead.
|
java.lang.String |
getProtectionEligibility()
The level of seller protection in force for the transaction.
|
java.lang.String |
getProtectionEligibilityType()
The kind of seller protection in force for the transaction.
|
java.lang.String |
getPurchaseUnitReferenceId()
Identifier to the purchase unit associated with this object.
|
java.lang.String |
getReasonCode()
Reason code for the transaction state being Pending or Reversed.
|
java.lang.String |
getReferenceId()
Deprecated.
Use
purchaseUnitReferenceId instead
Identifier to the purchase unit associated with this object. Obsolete. Use one in cart_base. |
java.lang.String |
getState()
State of the order transaction.
|
java.lang.String |
getUpdateTime()
Time the resource was last updated in UTC ISO8601 format.
|
int |
hashCode() |
Order |
setAmount(Amount amount)
Amount being collected.
|
Order |
setCreateTime(java.lang.String createTime)
Time the resource was created in UTC ISO8601 format.
|
Order |
setFmfDetails(FmfDetails fmfDetails)
Fraud Management Filter (FMF) details applied for the payment that could result in accept/deny/pending action.
|
Order |
setId(java.lang.String id)
Identifier of the order transaction.
|
Order |
setLinks(java.util.List<Links> links) |
Order |
setParentPayment(java.lang.String parentPayment)
ID of the Payment resource that this transaction is based on.
|
Order |
setPaymentMode(java.lang.String paymentMode)
specifies payment mode of the transaction
|
Order |
setPendingReason(java.lang.String pendingReason)
Deprecated.
Reason code for the transaction state being Pending. Obsolete. Retained for backward compatability. Use reason_code field above instead.
|
Order |
setProtectionEligibility(java.lang.String protectionEligibility)
The level of seller protection in force for the transaction.
|
Order |
setProtectionEligibilityType(java.lang.String protectionEligibilityType)
The kind of seller protection in force for the transaction.
|
Order |
setPurchaseUnitReferenceId(java.lang.String purchaseUnitReferenceId)
Identifier to the purchase unit associated with this object.
|
Order |
setReasonCode(java.lang.String reasonCode)
Reason code for the transaction state being Pending or Reversed.
|
Order |
setReferenceId(java.lang.String referenceId)
Deprecated.
Use
purchaseUnitReferenceId instead
Identifier to the purchase unit associated with this object. Obsolete. Use one in cart_base. |
Order |
setState(java.lang.String state)
State of the order transaction.
|
Order |
setUpdateTime(java.lang.String updateTime)
Time the resource was last updated in UTC ISO8601 format.
|
configureAndExecute, configureAndExecute, configureAndExecute, configureAndExecute, createAPICallPreHandler, getClientCredential, getClientID, getClientSecret, getConfigurations, getCredential, getLastRequest, getLastResponse, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefaulttoJSON, toStringpublic Order()
public Order(Amount amount)
public static Order get(java.lang.String accessToken, java.lang.String orderId) throws PayPalRESTException
get(APIContext, String) instead.accessToken - Access Token used for the API call.orderId - StringPayPalRESTExceptionpublic static Order get(APIContext apiContext, java.lang.String orderId) throws PayPalRESTException
apiContext - APIContext used for the API call.orderId - StringPayPalRESTExceptionpublic Capture capture(java.lang.String accessToken, Capture capture) throws PayPalRESTException
capture(APIContext, Capture) instead.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(java.lang.String accessToken) throws PayPalRESTException
doVoid(APIContext) instead.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(java.lang.String accessToken) throws PayPalRESTException
authorize(APIContext) instead.accessToken - Access Token used for the API call.PayPalRESTExceptionpublic Authorization authorize(APIContext apiContext) throws PayPalRESTException
apiContext - APIContext used for the API call.PayPalRESTExceptionpublic java.lang.String getId()
public java.lang.String getPurchaseUnitReferenceId()
@Deprecated public java.lang.String getReferenceId()
purchaseUnitReferenceId instead
Identifier to the purchase unit associated with this object. Obsolete. Use one in cart_base.public Amount getAmount()
public java.lang.String getPaymentMode()
public java.lang.String getState()
public java.lang.String getReasonCode()
@Deprecated public java.lang.String getPendingReason()
public java.lang.String getProtectionEligibility()
public java.lang.String getProtectionEligibilityType()
public java.lang.String getParentPayment()
public FmfDetails getFmfDetails()
public java.lang.String getCreateTime()
public java.lang.String getUpdateTime()
public java.util.List<Links> getLinks()
public Order setId(java.lang.String id)
public Order setPurchaseUnitReferenceId(java.lang.String purchaseUnitReferenceId)
@Deprecated public Order setReferenceId(java.lang.String referenceId)
purchaseUnitReferenceId instead
Identifier to the purchase unit associated with this object. Obsolete. Use one in cart_base.public Order setPaymentMode(java.lang.String paymentMode)
public Order setState(java.lang.String state)
public Order setReasonCode(java.lang.String reasonCode)
@Deprecated public Order setPendingReason(java.lang.String pendingReason)
public Order setProtectionEligibility(java.lang.String protectionEligibility)
public Order setProtectionEligibilityType(java.lang.String protectionEligibilityType)
public Order setParentPayment(java.lang.String parentPayment)
public Order setFmfDetails(FmfDetails fmfDetails)
public Order setCreateTime(java.lang.String createTime)
public Order setUpdateTime(java.lang.String updateTime)
public boolean equals(java.lang.Object o)
equals in class PayPalModelprotected boolean canEqual(java.lang.Object other)
canEqual in class PayPalModelpublic int hashCode()
hashCode in class PayPalModel