public class PayPalUpdateOrderRequest extends AbstractPayPalRequest<Void,com.paypal.orders.OrdersPatchRequest>
| Constructor and Description |
|---|
PayPalUpdateOrderRequest(PayPalClientProvider clientProvider,
org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequest,
String orderId,
List<com.paypal.orders.Patch> patches) |
| Modifier and Type | Method and Description |
|---|---|
protected com.paypal.orders.OrdersPatchRequest |
buildRequest()
Method to build out
AbstractPayPalRequest.request and provide it the implementation-specific configuration
such as headers and request body. |
protected AbstractPayPalResponse<Void> |
executeInternal()
Executes the configured
AbstractPayPalRequest.request using the PayPalHttpClient. |
protected String |
getOrderId() |
protected List<com.paypal.orders.Patch> |
getPatches() |
protected boolean |
isValidInternal()
Implementation specific determination of whether the request can be executed.
|
configureRequest, execute, getClient, getClientProvider, getPaymentRequest, getRequest, isExecuted, isValidpublic PayPalUpdateOrderRequest(PayPalClientProvider clientProvider, org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequest, String orderId, List<com.paypal.orders.Patch> patches)
protected com.paypal.orders.OrdersPatchRequest buildRequest()
AbstractPayPalRequestAbstractPayPalRequest.request and provide it the implementation-specific configuration
such as headers and request body.buildRequest in class AbstractPayPalRequest<Void,com.paypal.orders.OrdersPatchRequest>protected AbstractPayPalResponse<Void> executeInternal() throws IOException
AbstractPayPalRequestAbstractPayPalRequest.request using the PayPalHttpClient.executeInternal in class AbstractPayPalRequest<Void,com.paypal.orders.OrdersPatchRequest>IOException - Thrown if the request execution fails.protected boolean isValidInternal()
AbstractPayPalRequestisValidInternal in class AbstractPayPalRequest<Void,com.paypal.orders.OrdersPatchRequest>protected String getOrderId()
protected List<com.paypal.orders.Patch> getPatches()
Copyright © 2021. All rights reserved.