public class Capture extends PayPalResource
| Constructor and Description |
|---|
Capture()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static Capture |
get(APIContext apiContext,
String captureId)
Obtain the Capture transaction resource for the given identifier.
|
static Capture |
get(String accessToken,
String captureId)
Obtain the Capture transaction resource for the given identifier.
|
Amount |
getAmount()
Getter for amount
|
String |
getCreateTime()
Getter for createTime
|
String |
getId()
Getter for id
|
Boolean |
getIsFinalCapture()
Getter for isFinalCapture
|
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 |
getState()
Getter for state
|
Currency |
getTransactionFee()
Getter for transactionFee
|
String |
getUpdateTime()
Getter for updateTime
|
Refund |
refund(APIContext apiContext,
Refund refund)
Creates (and processes) a new Refund Transaction added as a related resource.
|
Refund |
refund(String accessToken,
Refund refund)
Creates (and processes) a new Refund Transaction added as a related resource.
|
Capture |
setAmount(Amount amount)
Setter for amount
|
Capture |
setCreateTime(String createTime)
Setter for createTime
|
Capture |
setId(String id)
Setter for id
|
Capture |
setIsFinalCapture(Boolean isFinalCapture)
Setter for isFinalCapture
|
Capture |
setLinks(List<Links> links)
Setter for links
|
Capture |
setParentPayment(String parentPayment)
Setter for parentPayment
|
Capture |
setState(String state)
Setter for state
|
Capture |
setTransactionFee(Currency transactionFee)
Setter for transactionFee
|
Capture |
setUpdateTime(String updateTime)
Setter for updateTime
|
configureAndExecute, configureAndExecute, configureAndExecute, createAPICallPreHandler, getClientCredential, getClientID, getClientSecret, getConfigurations, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefaultequals, hashCode, toJSON, toStringpublic static String getLastRequest()
public static String getLastResponse()
public String getId()
public Amount getAmount()
public Capture setIsFinalCapture(Boolean isFinalCapture)
public Boolean getIsFinalCapture()
public String getState()
public String getParentPayment()
public Capture setTransactionFee(Currency transactionFee)
public Currency getTransactionFee()
public String getCreateTime()
public String getUpdateTime()
public static Capture get(String accessToken, String captureId) throws PayPalRESTException
accessToken - Access Token used for the API call.captureId - StringPayPalRESTExceptionpublic static Capture get(APIContext apiContext, String captureId) throws PayPalRESTException
apiContext - APIContext used for the API call.captureId - StringPayPalRESTExceptionpublic Refund refund(String accessToken, Refund refund) throws PayPalRESTException
accessToken - Access Token used for the API call.refund - RefundPayPalRESTExceptionpublic Refund refund(APIContext apiContext, Refund refund) throws PayPalRESTException
apiContext - APIContext used for the API call.refund - RefundPayPalRESTExceptionCopyright © 2016. All Rights Reserved.