public class Refund extends PayPalResource
| Constructor and Description |
|---|
Refund()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
static Refund |
get(APIContext apiContext,
java.lang.String refundId)
Shows details for a refund, by ID.
|
static Refund |
get(java.lang.String accessToken,
java.lang.String refundId)
Deprecated.
Please use
get(APIContext, String) instead. |
Amount |
getAmount()
Details including both refunded amount (to payer) and refunded fee (to payee).
|
java.lang.String |
getCaptureId()
ID of the sale transaction being refunded.
|
java.lang.String |
getCreateTime()
Time of refund as defined in [RFC 3339 Section 5.6](http://tools.ietf.org/html/rfc3339#section-5.6).
|
java.lang.String |
getDescription()
Description of what is being refunded for.
|
java.lang.String |
getId()
ID of the refund transaction.
|
java.lang.String |
getInvoiceNumber()
Your own invoice or tracking ID number.
|
java.util.List<Links> |
getLinks() |
java.lang.String |
getParentPayment()
ID of the payment resource on which this transaction is based.
|
java.lang.String |
getReason()
Reason description for the Sale transaction being refunded.
|
java.lang.String |
getReasonCode()
The reason code for the refund state being pending
|
java.lang.String |
getSaleId()
ID of the Sale transaction being refunded.
|
java.lang.String |
getState()
State of the refund.
|
java.lang.String |
getUpdateTime()
Time that the resource was last updated.
|
int |
hashCode() |
Refund |
setAmount(Amount amount)
Details including both refunded amount (to payer) and refunded fee (to payee).
|
Refund |
setCaptureId(java.lang.String captureId)
ID of the sale transaction being refunded.
|
Refund |
setCreateTime(java.lang.String createTime)
Time of refund as defined in [RFC 3339 Section 5.6](http://tools.ietf.org/html/rfc3339#section-5.6).
|
Refund |
setDescription(java.lang.String description)
Description of what is being refunded for.
|
Refund |
setId(java.lang.String id)
ID of the refund transaction.
|
Refund |
setInvoiceNumber(java.lang.String invoiceNumber)
Your own invoice or tracking ID number.
|
Refund |
setLinks(java.util.List<Links> links) |
Refund |
setParentPayment(java.lang.String parentPayment)
ID of the payment resource on which this transaction is based.
|
Refund |
setReason(java.lang.String reason)
Reason description for the Sale transaction being refunded.
|
Refund |
setReasonCode(java.lang.String reasonCode)
The reason code for the refund state being pending
|
Refund |
setSaleId(java.lang.String saleId)
ID of the Sale transaction being refunded.
|
Refund |
setState(java.lang.String state)
State of the refund.
|
Refund |
setUpdateTime(java.lang.String updateTime)
Time that the resource was last updated.
|
configureAndExecute, configureAndExecute, configureAndExecute, configureAndExecute, createAPICallPreHandler, getClientCredential, getClientID, getClientSecret, getConfigurations, getCredential, getLastRequest, getLastResponse, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefaulttoJSON, toStringpublic static Refund get(java.lang.String accessToken, java.lang.String refundId) throws PayPalRESTException
get(APIContext, String) instead.accessToken - Access Token used for the API call.refundId - StringPayPalRESTExceptionpublic static Refund get(APIContext apiContext, java.lang.String refundId) throws PayPalRESTException
apiContext - APIContext used for the API call.refundId - StringPayPalRESTExceptionpublic java.lang.String getId()
public Amount getAmount()
public java.lang.String getState()
public java.lang.String getReason()
public java.lang.String getInvoiceNumber()
public java.lang.String getSaleId()
public java.lang.String getCaptureId()
public java.lang.String getParentPayment()
public java.lang.String getDescription()
public java.lang.String getCreateTime()
public java.lang.String getUpdateTime()
public java.lang.String getReasonCode()
public java.util.List<Links> getLinks()
public Refund setId(java.lang.String id)
public Refund setAmount(Amount amount)
public Refund setState(java.lang.String state)
public Refund setReason(java.lang.String reason)
public Refund setInvoiceNumber(java.lang.String invoiceNumber)
public Refund setSaleId(java.lang.String saleId)
public Refund setCaptureId(java.lang.String captureId)
public Refund setParentPayment(java.lang.String parentPayment)
public Refund setDescription(java.lang.String description)
public Refund setCreateTime(java.lang.String createTime)
public Refund setUpdateTime(java.lang.String updateTime)
public Refund setReasonCode(java.lang.String reasonCode)
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