public class Capture extends PayPalResource
| Constructor and Description |
|---|
Capture()
Default Constructor
|
Capture(Amount amount)
Parameterized 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
|
List<Links> |
getLinks()
Getter for links
|
String |
getParentPayment()
Getter for parentPayment
|
String |
getState()
Getter for state
|
Currency |
getTransactionFee() |
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) |
Capture |
setUpdateTime(String updateTime)
Setter for updateTime
|
configureAndExecute, configureAndExecute, configureAndExecute, createAPICallPreHandler, getClientID, getClientSecret, getConfigurations, getLastRequest, getLastResponse, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefaultequals, hashCode, toJSON, toStringpublic Capture()
public Capture(Amount amount)
public String getId()
public String getCreateTime()
public String getUpdateTime()
public Amount getAmount()
public Capture setIsFinalCapture(Boolean isFinalCapture)
public Boolean getIsFinalCapture()
public String getState()
public String getParentPayment()
public Currency getTransactionFee()
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 © 2015. All Rights Reserved.