|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.paypal.api.payments.Refund
public class Refund
| Constructor Summary | |
|---|---|
Refund()
Default Constructor |
|
| Method Summary | |
|---|---|
static Refund |
get(APIContext apiContext,
String refundId)
Obtain the Refund transaction resource for the given identifier. |
static Refund |
get(String accessToken,
String refundId)
Obtain the Refund transaction resource for the given identifier. |
Amount |
getAmount()
Getter for amount |
String |
getCaptureId()
Getter for captureId |
String |
getCreateTime()
Getter for createTime |
String |
getDescription()
Getter for description |
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 |
getSaleId()
Getter for saleId |
String |
getState()
Getter for state |
String |
getUpdateTime()
Getter for updateTime |
static OAuthTokenCredential |
initConfig(File file)
Initialize using a File(Properties file) |
static OAuthTokenCredential |
initConfig(InputStream is)
Initialize using InputStream(of a Properties file) |
static OAuthTokenCredential |
initConfig(Properties properties)
Initialize using Properties |
Refund |
setAmount(Amount amount)
Setter for amount |
Refund |
setCaptureId(String captureId)
Setter for captureId |
Refund |
setCreateTime(String createTime)
Setter for createTime |
Refund |
setDescription(String description)
Setter for description |
Refund |
setId(String id)
Setter for id |
Refund |
setLinks(List<Links> links)
Setter for links |
Refund |
setParentPayment(String parentPayment)
Setter for parentPayment |
Refund |
setSaleId(String saleId)
Setter for saleId |
Refund |
setState(String state)
Setter for state |
Refund |
setUpdateTime(String updateTime)
Setter for updateTime |
String |
toJSON()
Returns a JSON string corresponding to object state |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Refund()
| Method Detail |
|---|
public static String getLastRequest()
public static String getLastResponse()
public static OAuthTokenCredential initConfig(InputStream is)
throws PayPalRESTException
is - InputStream
PayPalRESTException
public static OAuthTokenCredential initConfig(File file)
throws PayPalRESTException
file - File object of a properties entity
PayPalRESTExceptionpublic static OAuthTokenCredential initConfig(Properties properties)
properties - Properties object
public Refund setId(String id)
public String getId()
public Refund setCreateTime(String createTime)
public String getCreateTime()
public Refund setUpdateTime(String updateTime)
public String getUpdateTime()
public Refund setAmount(Amount amount)
public Amount getAmount()
public Refund setState(String state)
public String getState()
public Refund setSaleId(String saleId)
public String getSaleId()
public Refund setCaptureId(String captureId)
public String getCaptureId()
public Refund setParentPayment(String parentPayment)
public String getParentPayment()
public Refund setDescription(String description)
public String getDescription()
public Refund setLinks(List<Links> links)
public List<Links> getLinks()
public static Refund get(String accessToken,
String refundId)
throws PayPalRESTException
accessToken - Access Token used for the API call.refundId - String
PayPalRESTException
public static Refund get(APIContext apiContext,
String refundId)
throws PayPalRESTException
apiContext - APIContext used for the API call.refundId - String
PayPalRESTExceptionpublic String toJSON()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||