public class Sale extends PayPalResource
| Constructor and Description |
|---|
Sale()
Default Constructor
|
Sale(String id,
Amount amount,
String state,
String parentPayment,
String createTime)
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 |
getBillingAgreementId()
Getter for billingAgreementId
|
String |
getClearingTime()
Getter for clearingTime
|
String |
getCreateTime()
Getter for createTime
|
String |
getExchangeRate()
Getter for exchangeRate
|
FmfDetails |
getFmfDetails()
Getter for fmfDetails
|
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
|
List<String> |
getPaymentHoldReasons()
Getter for paymentHoldReasons
|
String |
getPaymentHoldStatus()
Getter for paymentHoldStatus
|
String |
getPaymentMode()
Getter for paymentMode
|
ProcessorResponse |
getProcessorResponse()
Getter for processorResponse
|
String |
getProtectionEligibility()
Getter for protectionEligibility
|
String |
getProtectionEligibilityType()
Getter for protectionEligibilityType
|
String |
getPurchaseUnitReferenceId()
Getter for purchaseUnitReferenceId
|
String |
getReasonCode()
Getter for reasonCode
|
String |
getReceiptId()
Getter for receiptId
|
Currency |
getReceivableAmount()
Getter for receivableAmount
|
String |
getState()
Getter for state
|
Currency |
getTransactionFee()
Getter for transactionFee
|
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 |
setBillingAgreementId(String billingAgreementId)
Setter for billingAgreementId
|
Sale |
setClearingTime(String clearingTime)
Setter for clearingTime
|
Sale |
setCreateTime(String createTime)
Setter for createTime
|
Sale |
setExchangeRate(String exchangeRate)
Setter for exchangeRate
|
Sale |
setFmfDetails(FmfDetails fmfDetails)
Setter for fmfDetails
|
Sale |
setId(String id)
Setter for id
|
Sale |
setLinks(List<Links> links)
Setter for links
|
Sale |
setParentPayment(String parentPayment)
Setter for parentPayment
|
Sale |
setPaymentHoldReasons(List<String> paymentHoldReasons)
Setter for paymentHoldReasons
|
Sale |
setPaymentHoldStatus(String paymentHoldStatus)
Setter for paymentHoldStatus
|
Sale |
setPaymentMode(String paymentMode)
Setter for paymentMode
|
Sale |
setProcessorResponse(ProcessorResponse processorResponse)
Setter for processorResponse
|
Sale |
setProtectionEligibility(String protectionEligibility)
Setter for protectionEligibility
|
Sale |
setProtectionEligibilityType(String protectionEligibilityType)
Setter for protectionEligibilityType
|
Sale |
setPurchaseUnitReferenceId(String purchaseUnitReferenceId)
Setter for purchaseUnitReferenceId
|
Sale |
setReasonCode(String reasonCode)
Setter for reasonCode
|
Sale |
setReceiptId(String receiptId)
Setter for receiptId
|
Sale |
setReceivableAmount(Currency receivableAmount)
Setter for receivableAmount
|
Sale |
setState(String state)
Setter for state
|
Sale |
setTransactionFee(Currency transactionFee)
Setter for transactionFee
|
Sale |
setUpdateTime(String updateTime)
Setter for updateTime
|
configureAndExecute, configureAndExecute, configureAndExecute, createAPICallPreHandler, getClientCredential, getClientID, getClientSecret, getConfigurations, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefaultequals, hashCode, toJSON, toStringpublic static String getLastRequest()
public static String getLastResponse()
public String getId()
public Sale setPurchaseUnitReferenceId(String purchaseUnitReferenceId)
public String getPurchaseUnitReferenceId()
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 Sale setPaymentHoldStatus(String paymentHoldStatus)
public String getPaymentHoldStatus()
public Sale setPaymentHoldReasons(List<String> paymentHoldReasons)
public Currency getTransactionFee()
public Sale setReceivableAmount(Currency receivableAmount)
public Currency getReceivableAmount()
public String getExchangeRate()
public Sale setFmfDetails(FmfDetails fmfDetails)
public FmfDetails getFmfDetails()
public String getReceiptId()
public String getParentPayment()
public Sale setProcessorResponse(ProcessorResponse processorResponse)
public ProcessorResponse getProcessorResponse()
public Sale setBillingAgreementId(String billingAgreementId)
public String getBillingAgreementId()
public String getCreateTime()
public String getUpdateTime()
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 © 2016. All Rights Reserved.