|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.paypal.api.payments.Sale
public class Sale
| Constructor Summary | |
|---|---|
Sale()
Default Constructor |
|
Sale(Amount amount,
String state,
String parentPayment)
Parameterized Constructor |
|
| Method Summary | |
|---|---|
static Sale |
get(com.paypal.core.rest.APIContext apiContext,
String saleId)
Obtain the Sale transaction resource for the given identifier. |
static Sale |
get(String accessToken,
String saleId)
Obtain the Sale transaction resource for the given identifier. |
Amount |
getAmount()
Getter for amount |
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 |
getState()
Getter for state |
String |
getUpdateTime()
Getter for updateTime |
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 |
refund(com.paypal.core.rest.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. |
Sale |
setAmount(Amount amount)
Setter for amount |
Sale |
setCreateTime(String createTime)
Setter for createTime |
Sale |
setId(String id)
Setter for id |
Sale |
setLinks(List<Links> links)
Setter for links |
Sale |
setParentPayment(String parentPayment)
Setter for parentPayment |
Sale |
setState(String state)
Setter for state |
Sale |
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 Sale()
public Sale(Amount amount,
String state,
String parentPayment)
| 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 Sale setId(String id)
public String getId()
public Sale setCreateTime(String createTime)
public String getCreateTime()
public Sale setUpdateTime(String updateTime)
public String getUpdateTime()
public Sale setAmount(Amount amount)
public Amount getAmount()
public Sale setState(String state)
public String getState()
public Sale setParentPayment(String parentPayment)
public String getParentPayment()
public Sale setLinks(List<Links> links)
public List<Links> getLinks()
public static Sale get(String accessToken,
String saleId)
throws com.paypal.core.rest.PayPalRESTException
accessToken - Access Token used for the API call.saleId - String
com.paypal.core.rest.PayPalRESTException
public static Sale get(com.paypal.core.rest.APIContext apiContext,
String saleId)
throws com.paypal.core.rest.PayPalRESTException
apiContext - APIContext used for the API call.saleId - String
com.paypal.core.rest.PayPalRESTException
public Refund refund(String accessToken,
Refund refund)
throws com.paypal.core.rest.PayPalRESTException
accessToken - Access Token used for the API call.refund - Refund
com.paypal.core.rest.PayPalRESTException
public Refund refund(com.paypal.core.rest.APIContext apiContext,
Refund refund)
throws com.paypal.core.rest.PayPalRESTException
apiContext - APIContext used for the API call.refund - Refund
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 | ||||||||