public class Sale extends PayPalResource
| Constructor and Description |
|---|
Sale()
Default Constructor
|
Sale(Amount amount,
String state,
String parentPayment)
Parameterized Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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 |
getExchangeRate() |
FmfDetails |
getFmfDetails() |
String |
getHoldReason() |
String |
getId()
Getter for id
|
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 |
getReceiptId() |
Currency |
getReceivableAmount() |
String |
getRecipientFundStatus() |
String |
getState()
Getter for state
|
Currency |
getTransactionFee() |
String |
getUpdateTime()
Getter for updateTime
|
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 |
setExchangeRate(String exchangeRate) |
Sale |
setFmfDetails(FmfDetails fmfDetails) |
Sale |
setHoldReason(String holdReason) |
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 |
setReceiptId(String receiptId) |
Sale |
setReceivableAmount(Currency receivableAmount) |
Sale |
setRecipientFundStatus(String recipientFundStatus) |
Sale |
setState(String state)
Setter for state
|
Sale |
setTransactionFee(Currency transactionFee) |
Sale |
setUpdateTime(String updateTime)
Setter for updateTime
|
configureAndExecute, configureAndExecute, configureAndExecute, createAPICallPreHandler, getClientID, getClientSecret, getConfigurations, getLastRequest, getLastResponse, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefaultequals, hashCode, toJSON, toStringpublic String getId()
public String getCreateTime()
public String getUpdateTime()
public Amount getAmount()
public String getPaymentMode()
public String getState()
public String getReasonCode()
public Sale setProtectionEligibility(String protectionEligibility)
public String getProtectionEligibility()
public Sale setProtectionEligibilityType(String protectionEligibilityType)
public String getProtectionEligibilityType()
public String getClearingTime()
public String getParentPayment()
public String getRecipientFundStatus()
public String getHoldReason()
public Currency getTransactionFee()
public Currency getReceivableAmount()
public String getExchangeRate()
public FmfDetails getFmfDetails()
public Sale setFmfDetails(FmfDetails fmfDetails)
public String getReceiptId()
public static Sale get(String accessToken, String saleId) throws PayPalRESTException
accessToken - Access Token used for the API call.saleId - StringPayPalRESTExceptionpublic static Sale get(APIContext apiContext, String saleId) throws PayPalRESTException
apiContext - APIContext used for the API call.saleId - StringPayPalRESTExceptionpublic Refund refund(String accessToken, Refund refund) throws PayPalRESTException
accessToken - Access Token used for the API call.refund - RefundPayPalRESTExceptionpublic Refund refund(APIContext apiContext, Refund refund) throws PayPalRESTException
apiContext - APIContext used for the API call.refund - RefundPayPalRESTExceptionCopyright © 2015. All Rights Reserved.