public class Authorization extends PayPalResource
| Constructor and Description |
|---|
Authorization()
Default Constructor
|
Authorization(Amount amount)
Parameterized Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
Capture |
capture(APIContext apiContext,
Capture capture)
Captures and processes an authorization, by ID.
|
Capture |
capture(java.lang.String accessToken,
Capture capture)
Deprecated.
Please use
capture(APIContext, Capture) instead. |
Authorization |
doVoid(APIContext apiContext)
Voids, or cancels, an authorization, by ID.
|
Authorization |
doVoid(java.lang.String accessToken)
Deprecated.
Please use
doVoid(APIContext) instead. |
boolean |
equals(java.lang.Object o) |
static Authorization |
get(APIContext apiContext,
java.lang.String authorizationId)
Shows details for an authorization, by ID.
|
static Authorization |
get(java.lang.String accessToken,
java.lang.String authorizationId)
Deprecated.
Please use
get(APIContext, String) instead. |
Amount |
getAmount()
Amount being authorized.
|
java.lang.String |
getCreateTime()
Time of authorization as defined in [RFC 3339 Section 5.6](http://tools.ietf.org/html/rfc3339#section-5.6).
|
FmfDetails |
getFmfDetails()
Fraud Management Filter (FMF) details applied for the payment that could result in accept, deny, or pending action.
|
java.lang.String |
getId()
ID of the authorization 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 the payment mode of the transaction.
|
java.lang.String |
getPendingReason()
[DEPRECATED] Reason code for the transaction state being Pending.Obsolete.
|
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 |
getReasonCode()
Reason code, `AUTHORIZATION`, for a transaction state of `pending`.
|
java.lang.String |
getReceiptId()
Receipt id is 16 digit number payment identification number returned for guest users to identify the payment.
|
java.lang.String |
getReferenceId()
Identifier to the purchase or transaction unit corresponding to this authorization transaction.
|
java.lang.String |
getState()
State of the authorization.
|
java.lang.String |
getUpdateTime()
Time that the resource was last updated.
|
java.lang.String |
getValidUntil()
Authorization expiration time and date as defined in [RFC 3339 Section 5.6](http://tools.ietf.org/html/rfc3339#section-5.6).
|
int |
hashCode() |
Authorization |
reauthorize(APIContext apiContext)
Reauthorizes a PayPal account payment, by authorization ID.
|
Authorization |
reauthorize(java.lang.String accessToken)
Deprecated.
Please use
reauthorize(APIContext) instead. |
Authorization |
setAmount(Amount amount)
Amount being authorized.
|
Authorization |
setCreateTime(java.lang.String createTime)
Time of authorization as defined in [RFC 3339 Section 5.6](http://tools.ietf.org/html/rfc3339#section-5.6).
|
Authorization |
setFmfDetails(FmfDetails fmfDetails)
Fraud Management Filter (FMF) details applied for the payment that could result in accept, deny, or pending action.
|
Authorization |
setId(java.lang.String id)
ID of the authorization transaction.
|
Authorization |
setLinks(java.util.List<Links> links) |
Authorization |
setParentPayment(java.lang.String parentPayment)
ID of the Payment resource that this transaction is based on.
|
Authorization |
setPaymentMode(java.lang.String paymentMode)
Specifies the payment mode of the transaction.
|
Authorization |
setPendingReason(java.lang.String pendingReason)
[DEPRECATED] Reason code for the transaction state being Pending.Obsolete.
|
Authorization |
setProtectionEligibility(java.lang.String protectionEligibility)
The level of seller protection in force for the transaction.
|
Authorization |
setProtectionEligibilityType(java.lang.String protectionEligibilityType)
The kind of seller protection in force for the transaction.
|
Authorization |
setReasonCode(java.lang.String reasonCode)
Reason code, `AUTHORIZATION`, for a transaction state of `pending`.
|
Authorization |
setReceiptId(java.lang.String receiptId)
Receipt id is 16 digit number payment identification number returned for guest users to identify the payment.
|
Authorization |
setReferenceId(java.lang.String referenceId)
Identifier to the purchase or transaction unit corresponding to this authorization transaction.
|
Authorization |
setState(java.lang.String state)
State of the authorization.
|
Authorization |
setUpdateTime(java.lang.String updateTime)
Time that the resource was last updated.
|
Authorization |
setValidUntil(java.lang.String validUntil)
Authorization expiration time and date as defined in [RFC 3339 Section 5.6](http://tools.ietf.org/html/rfc3339#section-5.6).
|
configureAndExecute, configureAndExecute, configureAndExecute, configureAndExecute, createAPICallPreHandler, getClientCredential, getClientID, getClientSecret, getConfigurations, getCredential, getLastRequest, getLastResponse, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefaulttoJSON, toStringpublic Authorization()
public Authorization(Amount amount)
public static Authorization get(java.lang.String accessToken, java.lang.String authorizationId) throws PayPalRESTException
get(APIContext, String) instead.accessToken - Access Token used for the API call.authorizationId - StringPayPalRESTExceptionpublic static Authorization get(APIContext apiContext, java.lang.String authorizationId) throws PayPalRESTException
apiContext - APIContext used for the API call.authorizationId - 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 Authorization doVoid(java.lang.String accessToken) throws PayPalRESTException
doVoid(APIContext) instead.accessToken - Access Token used for the API call.PayPalRESTExceptionpublic Authorization doVoid(APIContext apiContext) throws PayPalRESTException
apiContext - APIContext used for the API call.PayPalRESTExceptionpublic Authorization reauthorize(java.lang.String accessToken) throws PayPalRESTException
reauthorize(APIContext) instead.accessToken - Access Token used for the API call.PayPalRESTExceptionpublic Authorization reauthorize(APIContext apiContext) throws PayPalRESTException
apiContext - APIContext used for the API call.PayPalRESTExceptionpublic java.lang.String getId()
public Amount getAmount()
public java.lang.String getPaymentMode()
public java.lang.String getState()
public java.lang.String getReasonCode()
public java.lang.String getPendingReason()
public java.lang.String getProtectionEligibility()
public java.lang.String getProtectionEligibilityType()
public FmfDetails getFmfDetails()
public java.lang.String getParentPayment()
public java.lang.String getValidUntil()
public java.lang.String getCreateTime()
public java.lang.String getUpdateTime()
public java.lang.String getReferenceId()
public java.lang.String getReceiptId()
public java.util.List<Links> getLinks()
public Authorization setId(java.lang.String id)
public Authorization setAmount(Amount amount)
public Authorization setPaymentMode(java.lang.String paymentMode)
public Authorization setState(java.lang.String state)
public Authorization setReasonCode(java.lang.String reasonCode)
public Authorization setPendingReason(java.lang.String pendingReason)
public Authorization setProtectionEligibility(java.lang.String protectionEligibility)
public Authorization setProtectionEligibilityType(java.lang.String protectionEligibilityType)
public Authorization setFmfDetails(FmfDetails fmfDetails)
public Authorization setParentPayment(java.lang.String parentPayment)
public Authorization setValidUntil(java.lang.String validUntil)
public Authorization setCreateTime(java.lang.String createTime)
public Authorization setUpdateTime(java.lang.String updateTime)
public Authorization setReferenceId(java.lang.String referenceId)
public Authorization setReceiptId(java.lang.String receiptId)
public Authorization setLinks(java.util.List<Links> links)
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