public class PayPalRefundRequest extends AbstractPayPalRequest<com.paypal.payments.Refund,com.paypal.payments.CapturesRefundRequest>
RefundRequest.amount(Money), otherwise the refund request may be empty (but not null).| Constructor and Description |
|---|
PayPalRefundRequest(PayPalClientProvider clientProvider,
org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequest,
com.paypal.payments.RefundRequest refundRequest,
String captureId) |
| Modifier and Type | Method and Description |
|---|---|
protected com.paypal.payments.CapturesRefundRequest |
buildRequest()
Method to build out
AbstractPayPalRequest.request and provide it the implementation-specific configuration
such as headers and request body. |
protected AbstractPayPalResponse<com.paypal.payments.Refund> |
executeInternal()
Executes the configured
AbstractPayPalRequest.request using the PayPalHttpClient. |
protected String |
getCaptureId() |
protected com.paypal.payments.RefundRequest |
getRefundRequest() |
protected boolean |
isValidInternal()
Implementation specific determination of whether the request can be executed.
|
configureRequest, execute, getClient, getClientProvider, getPaymentRequest, getRequest, isExecuted, isValidpublic PayPalRefundRequest(PayPalClientProvider clientProvider, org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequest, com.paypal.payments.RefundRequest refundRequest, String captureId)
protected com.paypal.payments.CapturesRefundRequest buildRequest()
AbstractPayPalRequestAbstractPayPalRequest.request and provide it the implementation-specific configuration
such as headers and request body.buildRequest in class AbstractPayPalRequest<com.paypal.payments.Refund,com.paypal.payments.CapturesRefundRequest>protected AbstractPayPalResponse<com.paypal.payments.Refund> executeInternal() throws IOException
AbstractPayPalRequestAbstractPayPalRequest.request using the PayPalHttpClient.executeInternal in class AbstractPayPalRequest<com.paypal.payments.Refund,com.paypal.payments.CapturesRefundRequest>IOException - Thrown if the request execution fails.protected boolean isValidInternal()
AbstractPayPalRequestisValidInternal in class AbstractPayPalRequest<com.paypal.payments.Refund,com.paypal.payments.CapturesRefundRequest>protected String getCaptureId()
protected com.paypal.payments.RefundRequest getRefundRequest()
Copyright © 2021. All rights reserved.