|
|||||||||
| 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(com.paypal.core.rest.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 |
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 |
static void |
initConfig(File file)
Initialize using a File(Properties file) |
static void |
initConfig(InputStream is)
Initialize using InputStream(of a Properties file) |
static void |
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 |
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 |
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 void initConfig(InputStream is)
throws com.paypal.core.rest.PayPalRESTException
is - InputStream
com.paypal.core.rest.PayPalRESTException
public static void initConfig(File file)
throws com.paypal.core.rest.PayPalRESTException
file - File object of a properties entity
com.paypal.core.rest.PayPalRESTExceptionpublic static void initConfig(Properties properties)
properties - Properties objectpublic Refund setId(String id)
public String getId()
public Refund setCreateTime(String createTime)
public String getCreateTime()
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 setLinks(List<Links> links)
public List<Links> getLinks()
public static Refund get(String accessToken,
String refundId)
throws com.paypal.core.rest.PayPalRESTException
accessToken - Access Token used for the API call.refundId - String
com.paypal.core.rest.PayPalRESTException
public static Refund get(com.paypal.core.rest.APIContext apiContext,
String refundId)
throws com.paypal.core.rest.PayPalRESTException
apiContext - APIContext used for the API call.refundId - String
com.paypal.core.rest.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 | ||||||||