public class Authorization extends PayPalResource
| Constructor and Description |
|---|
Authorization()
Default Constructor
|
Authorization(Amount amount)
Parameterized Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
Authorization |
doVoid(APIContext apiContext)
Voids (cancels) an Authorization.
|
Authorization |
doVoid(String accessToken)
Voids (cancels) an Authorization.
|
static Authorization |
get(APIContext apiContext,
String authorizationId)
Obtain the Authorization transaction resource for the given identifier.
|
static Authorization |
get(String accessToken,
String authorizationId)
Obtain the Authorization transaction 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 |
getReasonCode()
Getter for reasonCode
|
String |
getState()
Getter for state
|
String |
getUpdateTime()
Getter for updateTime
|
String |
getValidUntil()
Getter for validUntil
|
Authorization |
reauthorize(APIContext apiContext)
Reauthorizes an expired Authorization.
|
Authorization |
reauthorize(String accessToken)
Reauthorizes an expired Authorization.
|
Authorization |
setAmount(Amount amount)
Setter for amount
|
Authorization |
setCreateTime(String createTime)
Setter for createTime
|
Authorization |
setFmfDetails(FmfDetails fmfDetails)
Setter for fmfDetails
|
Authorization |
setId(String id)
Setter for id
|
Authorization |
setLinks(List<Links> links)
Setter for links
|
Authorization |
setParentPayment(String parentPayment)
Setter for parentPayment
|
Authorization |
setPaymentMode(String paymentMode)
Setter for paymentMode
|
Authorization |
setPendingReason(String pendingReason)
Setter for pendingReason
|
Authorization |
setProtectionEligibility(String protectionEligibility)
Setter for protectionEligibility
|
Authorization |
setProtectionEligibilityType(String protectionEligibilityType)
Setter for protectionEligibilityType
|
Authorization |
setReasonCode(String reasonCode)
Setter for reasonCode
|
Authorization |
setState(String state)
Setter for state
|
Authorization |
setUpdateTime(String updateTime)
Setter for updateTime
|
Authorization |
setValidUntil(String validUntil)
Setter for validUntil
|
configureAndExecute, configureAndExecute, configureAndExecute, createAPICallPreHandler, getClientCredential, getClientID, getClientSecret, getConfigurations, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefaultequals, hashCode, toJSON, toStringpublic Authorization()
public Authorization(Amount amount)
public static String getLastRequest()
public static String getLastResponse()
public Authorization setId(String id)
public String getId()
public Authorization setAmount(Amount amount)
public Amount getAmount()
public Authorization setPaymentMode(String paymentMode)
public String getPaymentMode()
public Authorization setState(String state)
public String getState()
public Authorization setReasonCode(String reasonCode)
public String getReasonCode()
public Authorization setPendingReason(String pendingReason)
public String getPendingReason()
public Authorization setProtectionEligibility(String protectionEligibility)
public String getProtectionEligibility()
public Authorization setProtectionEligibilityType(String protectionEligibilityType)
public String getProtectionEligibilityType()
public Authorization setFmfDetails(FmfDetails fmfDetails)
public FmfDetails getFmfDetails()
public Authorization setParentPayment(String parentPayment)
public String getParentPayment()
public Authorization setValidUntil(String validUntil)
public String getValidUntil()
public Authorization setCreateTime(String createTime)
public String getCreateTime()
public Authorization setUpdateTime(String updateTime)
public String getUpdateTime()
public Authorization setLinks(List<Links> links)
public static Authorization get(String accessToken, String authorizationId) throws PayPalRESTException
accessToken - Access Token used for the API call.authorizationId - StringPayPalRESTExceptionpublic static Authorization get(APIContext apiContext, String authorizationId) throws PayPalRESTException
apiContext - APIContext used for the API call.authorizationId - 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 Authorization doVoid(String accessToken) throws PayPalRESTException
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(String accessToken) throws PayPalRESTException
accessToken - Access Token used for the API call.PayPalRESTExceptionpublic Authorization reauthorize(APIContext apiContext) throws PayPalRESTException
apiContext - APIContext used for the API call.PayPalRESTExceptionCopyright © 2016. All Rights Reserved.