Class PayPalVoidAuthRequest
java.lang.Object
org.broadleafcommerce.vendor.paypal.service.payment.AbstractPayPalRequest<Void,com.paypal.payments.AuthorizationsVoidRequest>
org.broadleafcommerce.vendor.paypal.service.payment.PayPalVoidAuthRequest
- All Implemented Interfaces:
PayPalRequest
public class PayPalVoidAuthRequest
extends AbstractPayPalRequest<Void,com.paypal.payments.AuthorizationsVoidRequest>
-
Constructor Summary
ConstructorsConstructorDescriptionPayPalVoidAuthRequest(PayPalClientProvider clientProvider, org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequest, String authId) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.paypal.payments.AuthorizationsVoidRequestMethod to build outAbstractPayPalRequest.requestand provide it the implementation-specific configuration such as headers and request body.protected AbstractPayPalResponse<Void>Executes the configuredAbstractPayPalRequest.requestusing thePayPalHttpClient.protected Stringprotected booleanImplementation specific determination of whether the request can be executed.Methods inherited from class org.broadleafcommerce.vendor.paypal.service.payment.AbstractPayPalRequest
configureRequest, execute, getClient, getClientProvider, getPaymentRequest, getRequest, isExecuted, isValid
-
Constructor Details
-
PayPalVoidAuthRequest
public PayPalVoidAuthRequest(PayPalClientProvider clientProvider, org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequest, String authId)
-
-
Method Details
-
buildRequest
protected com.paypal.payments.AuthorizationsVoidRequest buildRequest()Description copied from class:AbstractPayPalRequestMethod to build outAbstractPayPalRequest.requestand provide it the implementation-specific configuration such as headers and request body.- Specified by:
buildRequestin classAbstractPayPalRequest<Void,com.paypal.payments.AuthorizationsVoidRequest> - Returns:
- The configured request
-
executeInternal
Description copied from class:AbstractPayPalRequestExecutes the configuredAbstractPayPalRequest.requestusing thePayPalHttpClient.- Specified by:
executeInternalin classAbstractPayPalRequest<Void,com.paypal.payments.AuthorizationsVoidRequest> - Returns:
- The response from PayPal.
- Throws:
IOException- Thrown if the request execution fails.
-
isValidInternal
protected boolean isValidInternal()Description copied from class:AbstractPayPalRequestImplementation specific determination of whether the request can be executed.- Specified by:
isValidInternalin classAbstractPayPalRequest<Void,com.paypal.payments.AuthorizationsVoidRequest> - Returns:
- Whether the request can be executed or is in an erroneous state.
-
getAuthId
-