public class Sale extends PayPalResource
| Constructor and Description |
|---|
Sale()
Default Constructor
|
Sale(java.lang.String id,
Amount amount,
java.lang.String state,
java.lang.String parentPayment,
java.lang.String createTime)
Parameterized Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
static Sale |
get(APIContext apiContext,
java.lang.String saleId)
Shows details for a sale, by ID.
|
static Sale |
get(java.lang.String accessToken,
java.lang.String saleId)
Deprecated.
Please use
get(APIContext, String) instead. |
Amount |
getAmount()
Amount being collected.
|
java.lang.String |
getBillingAgreementId()
ID of the billing agreement used as reference to execute this transaction.
|
java.lang.String |
getClearingTime()
Expected clearing time for eCheck Transactions.
|
java.lang.String |
getCreateTime()
Time of sale as defined in [RFC 3339 Section 5.6](http://tools.ietf.org/html/rfc3339#section-5.6)
|
java.lang.String |
getExchangeRate()
Exchange rate applied for this transaction.
|
FmfDetails |
getFmfDetails()
Fraud Management Filter (FMF) details applied for the payment that could result in accept, deny, or pending action.
|
java.lang.String |
getId()
Identifier of the sale transaction.
|
java.util.List<Links> |
getLinks() |
java.lang.String |
getParentPayment()
ID of the payment resource on which this transaction is based.
|
java.util.List<java.lang.String> |
getPaymentHoldReasons()
Reasons for PayPal holding recipient fund.
|
java.lang.String |
getPaymentHoldStatus()
Status of the Recipient Fund.
|
java.lang.String |
getPaymentMode()
Specifies payment mode of the transaction.
|
ProcessorResponse |
getProcessorResponse()
Response codes returned by the processor concerning the submitted payment.
|
java.lang.String |
getProtectionEligibility()
The level of seller protection in force for the transaction.
|
java.lang.String |
getProtectionEligibilityType()
The kind of seller protection in force for the transaction.
|
java.lang.String |
getPurchaseUnitReferenceId()
Identifier to the purchase or transaction unit corresponding to this sale transaction.
|
java.lang.String |
getReasonCode()
Reason code for the transaction state being Pending or Reversed.
|
java.lang.String |
getReceiptId()
Receipt id is a payment identification number returned for guest users to identify the payment.
|
Currency |
getReceivableAmount()
Net amount the merchant receives for this transaction in their receivable currency.
|
java.lang.String |
getState()
State of the sale transaction.
|
Currency |
getTransactionFee()
Transaction fee applicable for this payment.
|
java.lang.String |
getUpdateTime()
Time the resource was last updated in UTC ISO8601 format.
|
int |
hashCode() |
Refund |
refund(APIContext apiContext,
Refund refund)
Deprecated.
Please use
refund(APIContext, RefundRequest) instead
Refunds a sale, by ID. For a full refund, include an empty payload in the JSON request body. For a partial refund, include an `amount` object in the JSON request body. |
DetailedRefund |
refund(APIContext apiContext,
RefundRequest refundRequest)
Refunds a sale, by ID.
|
Refund |
refund(java.lang.String accessToken,
Refund refund)
Deprecated.
Please use
refund(APIContext, Refund) instead. |
Sale |
setAmount(Amount amount)
Amount being collected.
|
Sale |
setBillingAgreementId(java.lang.String billingAgreementId)
ID of the billing agreement used as reference to execute this transaction.
|
Sale |
setClearingTime(java.lang.String clearingTime)
Expected clearing time for eCheck Transactions.
|
Sale |
setCreateTime(java.lang.String createTime)
Time of sale as defined in [RFC 3339 Section 5.6](http://tools.ietf.org/html/rfc3339#section-5.6)
|
Sale |
setExchangeRate(java.lang.String exchangeRate)
Exchange rate applied for this transaction.
|
Sale |
setFmfDetails(FmfDetails fmfDetails)
Fraud Management Filter (FMF) details applied for the payment that could result in accept, deny, or pending action.
|
Sale |
setId(java.lang.String id)
Identifier of the sale transaction.
|
Sale |
setLinks(java.util.List<Links> links) |
Sale |
setParentPayment(java.lang.String parentPayment)
ID of the payment resource on which this transaction is based.
|
Sale |
setPaymentHoldReasons(java.util.List<java.lang.String> paymentHoldReasons)
Reasons for PayPal holding recipient fund.
|
Sale |
setPaymentHoldStatus(java.lang.String paymentHoldStatus)
Status of the Recipient Fund.
|
Sale |
setPaymentMode(java.lang.String paymentMode)
Specifies payment mode of the transaction.
|
Sale |
setProcessorResponse(ProcessorResponse processorResponse)
Response codes returned by the processor concerning the submitted payment.
|
Sale |
setProtectionEligibility(java.lang.String protectionEligibility)
The level of seller protection in force for the transaction.
|
Sale |
setProtectionEligibilityType(java.lang.String protectionEligibilityType)
The kind of seller protection in force for the transaction.
|
Sale |
setPurchaseUnitReferenceId(java.lang.String purchaseUnitReferenceId)
Identifier to the purchase or transaction unit corresponding to this sale transaction.
|
Sale |
setReasonCode(java.lang.String reasonCode)
Reason code for the transaction state being Pending or Reversed.
|
Sale |
setReceiptId(java.lang.String receiptId)
Receipt id is a payment identification number returned for guest users to identify the payment.
|
Sale |
setReceivableAmount(Currency receivableAmount)
Net amount the merchant receives for this transaction in their receivable currency.
|
Sale |
setState(java.lang.String state)
State of the sale transaction.
|
Sale |
setTransactionFee(Currency transactionFee)
Transaction fee applicable for this payment.
|
Sale |
setUpdateTime(java.lang.String updateTime)
Time the resource was last updated in UTC ISO8601 format.
|
configureAndExecute, configureAndExecute, configureAndExecute, configureAndExecute, createAPICallPreHandler, getClientCredential, getClientID, getClientSecret, getConfigurations, getCredential, getLastRequest, getLastResponse, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefaulttoJSON, toStringpublic Sale()
public Sale(java.lang.String id,
Amount amount,
java.lang.String state,
java.lang.String parentPayment,
java.lang.String createTime)
public static Sale get(java.lang.String accessToken, java.lang.String saleId) throws PayPalRESTException
get(APIContext, String) instead.accessToken - Access Token used for the API call.saleId - StringPayPalRESTExceptionpublic static Sale get(APIContext apiContext, java.lang.String saleId) throws PayPalRESTException
apiContext - APIContext used for the API call.saleId - StringPayPalRESTException@Deprecated public Refund refund(java.lang.String accessToken, Refund refund) throws PayPalRESTException
refund(APIContext, Refund) instead.accessToken - Access Token used for the API call.refund - RefundPayPalRESTException@Deprecated public Refund refund(APIContext apiContext, Refund refund) throws PayPalRESTException
refund(APIContext, RefundRequest) instead
Refunds a sale, by ID. For a full refund, include an empty payload in the JSON request body. For a partial refund, include an `amount` object in the JSON request body.apiContext - APIContext used for the API call.refund - RefundPayPalRESTExceptionpublic DetailedRefund refund(APIContext apiContext, RefundRequest refundRequest) throws PayPalRESTException
apiContext - APIContext used for the API call.refundRequest - RefundRequestPayPalRESTExceptionpublic java.lang.String getId()
public java.lang.String getPurchaseUnitReferenceId()
public Amount getAmount()
public java.lang.String getPaymentMode()
public java.lang.String getState()
public java.lang.String getReasonCode()
public java.lang.String getProtectionEligibility()
public java.lang.String getProtectionEligibilityType()
public java.lang.String getClearingTime()
public java.lang.String getPaymentHoldStatus()
public java.util.List<java.lang.String> getPaymentHoldReasons()
public Currency getTransactionFee()
public Currency getReceivableAmount()
public java.lang.String getExchangeRate()
public FmfDetails getFmfDetails()
public java.lang.String getReceiptId()
public java.lang.String getParentPayment()
public ProcessorResponse getProcessorResponse()
public java.lang.String getBillingAgreementId()
public java.lang.String getCreateTime()
public java.lang.String getUpdateTime()
public java.util.List<Links> getLinks()
public Sale setId(java.lang.String id)
public Sale setPurchaseUnitReferenceId(java.lang.String purchaseUnitReferenceId)
public Sale setPaymentMode(java.lang.String paymentMode)
public Sale setState(java.lang.String state)
public Sale setReasonCode(java.lang.String reasonCode)
public Sale setProtectionEligibility(java.lang.String protectionEligibility)
public Sale setProtectionEligibilityType(java.lang.String protectionEligibilityType)
public Sale setClearingTime(java.lang.String clearingTime)
public Sale setPaymentHoldStatus(java.lang.String paymentHoldStatus)
public Sale setPaymentHoldReasons(java.util.List<java.lang.String> paymentHoldReasons)
public Sale setTransactionFee(Currency transactionFee)
public Sale setReceivableAmount(Currency receivableAmount)
public Sale setExchangeRate(java.lang.String exchangeRate)
public Sale setFmfDetails(FmfDetails fmfDetails)
public Sale setReceiptId(java.lang.String receiptId)
public Sale setParentPayment(java.lang.String parentPayment)
public Sale setProcessorResponse(ProcessorResponse processorResponse)
public Sale setBillingAgreementId(java.lang.String billingAgreementId)
public Sale setCreateTime(java.lang.String createTime)
public Sale setUpdateTime(java.lang.String updateTime)
public boolean equals(java.lang.Object o)
equals in class PayPalModelprotected boolean canEqual(java.lang.Object other)
canEqual in class PayPalModelpublic int hashCode()
hashCode in class PayPalModel