|
||||||||||
| 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(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 |
getClearingTime()
Getter for clearingTime |
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 |
getPaymentMode()
Getter for paymentMode |
String |
getProtectionEligibility()
Getter for protectionEligibility |
String |
getProtectionEligibilityType()
Getter for protectionEligibilityType |
String |
getReasonCode()
Getter for reasonCode |
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 |
refund(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 |
setClearingTime(String clearingTime)
Setter for clearingTime |
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 |
setPaymentMode(String paymentMode)
Setter for paymentMode |
Sale |
setProtectionEligibility(String protectionEligibility)
Setter for protectionEligibility |
Sale |
setProtectionEligibilityType(String protectionEligibilityType)
Setter for protectionEligibilityType |
Sale |
setReasonCode(String reasonCode)
Setter for reasonCode |
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 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 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 setPaymentMode(String paymentMode)
public String getPaymentMode()
public Sale setState(String state)
public String getState()
public Sale setReasonCode(String reasonCode)
public String getReasonCode()
public Sale setProtectionEligibility(String protectionEligibility)
public String getProtectionEligibility()
public Sale setProtectionEligibilityType(String protectionEligibilityType)
public String getProtectionEligibilityType()
public Sale setClearingTime(String clearingTime)
public String getClearingTime()
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 PayPalRESTException
accessToken - Access Token used for the API call.saleId - String
PayPalRESTException
public static Sale get(APIContext apiContext,
String saleId)
throws PayPalRESTException
apiContext - APIContext used for the API call.saleId - String
PayPalRESTException
public Refund refund(String accessToken,
Refund refund)
throws PayPalRESTException
accessToken - Access Token used for the API call.refund - Refund
PayPalRESTException
public Refund refund(APIContext apiContext,
Refund refund)
throws PayPalRESTException
apiContext - APIContext used for the API call.refund - Refund
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 | |||||||||