public class Capture extends PayPalResource
| Constructor and Description |
|---|
Capture()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
static Capture |
get(APIContext apiContext,
java.lang.String captureId)
Shows details for a captured payment, by ID.
|
static Capture |
get(java.lang.String accessToken,
java.lang.String captureId)
Deprecated.
Please use
get(APIContext, String) instead. |
Amount |
getAmount()
The amount to capture.
|
java.lang.String |
getCreateTime()
The date and time of capture, as defined in [RFC 3339 Section 5.6](http://tools.ietf.org/html/rfc3339#section-5.6).
|
java.lang.String |
getId()
The ID of the capture transaction.
|
java.lang.String |
getInvoiceNumber()
The invoice number to track this payment.
|
java.lang.Boolean |
getIsFinalCapture()
Indicates whether to release all remaining funds that the authorization holds in the funding instrument.
|
java.util.List<Links> |
getLinks() |
java.lang.String |
getParentPayment()
The ID of the payment on which this transaction is based.
|
java.lang.String |
getReasonCode()
The reason code that describes why the transaction state is pending or reversed.
|
java.lang.String |
getState()
The state of the capture.
|
Currency |
getTransactionFee()
The transaction fee for this payment.
|
java.lang.String |
getUpdateTime()
The date and time when the resource was last updated.
|
int |
hashCode() |
Refund |
refund(APIContext apiContext,
Refund refund)
Deprecated.
Please use
refund(APIContext, RefundRequest) instead
Refunds a captured payment, by ID. Include an `amount` object in the JSON request body. |
DetailedRefund |
refund(APIContext apiContext,
RefundRequest refundRequest)
Refunds a captured payment, by ID.
|
Refund |
refund(java.lang.String accessToken,
Refund refund)
Deprecated.
Please use
refund(APIContext, Refund) instead. |
Capture |
setAmount(Amount amount)
The amount to capture.
|
Capture |
setCreateTime(java.lang.String createTime)
The date and time of capture, as defined in [RFC 3339 Section 5.6](http://tools.ietf.org/html/rfc3339#section-5.6).
|
Capture |
setId(java.lang.String id)
The ID of the capture transaction.
|
Capture |
setInvoiceNumber(java.lang.String invoiceNumber)
The invoice number to track this payment.
|
Capture |
setIsFinalCapture(java.lang.Boolean isFinalCapture)
Indicates whether to release all remaining funds that the authorization holds in the funding instrument.
|
Capture |
setLinks(java.util.List<Links> links) |
Capture |
setParentPayment(java.lang.String parentPayment)
The ID of the payment on which this transaction is based.
|
Capture |
setReasonCode(java.lang.String reasonCode)
The reason code that describes why the transaction state is pending or reversed.
|
Capture |
setState(java.lang.String state)
The state of the capture.
|
Capture |
setTransactionFee(Currency transactionFee)
The transaction fee for this payment.
|
Capture |
setUpdateTime(java.lang.String updateTime)
The date and time when the resource was last updated.
|
configureAndExecute, configureAndExecute, configureAndExecute, configureAndExecute, createAPICallPreHandler, getClientCredential, getClientID, getClientSecret, getConfigurations, getCredential, getLastRequest, getLastResponse, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefaulttoJSON, toStringpublic static Capture get(java.lang.String accessToken, java.lang.String captureId) throws PayPalRESTException
get(APIContext, String) instead.accessToken - Access Token used for the API call.captureId - StringPayPalRESTExceptionpublic static Capture get(APIContext apiContext, java.lang.String captureId) throws PayPalRESTException
apiContext - APIContext used for the API call.captureId - StringPayPalRESTExceptionpublic Refund refund(java.lang.String accessToken, Refund refund) throws PayPalRESTException
refund(APIContext, Refund) instead.accessToken - Access Token used for the API call.refund - RefundPayPalRESTExceptionpublic Refund refund(APIContext apiContext, Refund refund) throws PayPalRESTException
refund(APIContext, RefundRequest) instead
Refunds a captured payment, by ID. Include an `amount` object in the JSON request body.apiContext - APIContext used for the API call.refund - RefundPayPalRESTExceptionpublic DetailedRefund refund(APIContext apiContext, RefundRequest refundRequest) throws PayPalRESTException
apiContext - APIContext used for the API call.refundRequest - RefundRequestPayPalRESTExceptionpublic java.lang.String getId()
public Amount getAmount()
public java.lang.Boolean getIsFinalCapture()
public java.lang.String getState()
public java.lang.String getReasonCode()
public java.lang.String getParentPayment()
public java.lang.String getInvoiceNumber()
public Currency getTransactionFee()
public java.lang.String getCreateTime()
public java.lang.String getUpdateTime()
public java.util.List<Links> getLinks()
public Capture setId(java.lang.String id)
public Capture setAmount(Amount amount)
public Capture setIsFinalCapture(java.lang.Boolean isFinalCapture)
public Capture setState(java.lang.String state)
public Capture setReasonCode(java.lang.String reasonCode)
public Capture setParentPayment(java.lang.String parentPayment)
public Capture setInvoiceNumber(java.lang.String invoiceNumber)
public Capture setTransactionFee(Currency transactionFee)
public Capture setCreateTime(java.lang.String createTime)
public Capture 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