Class PayPalReAuthorizeRequest
java.lang.Object
org.broadleafcommerce.vendor.paypal.service.payment.AbstractPayPalRequest<com.paypal.payments.Authorization,com.paypal.payments.AuthorizationsReauthorizeRequest>
org.broadleafcommerce.vendor.paypal.service.payment.PayPalReAuthorizeRequest
- All Implemented Interfaces:
PayPalRequest
public class PayPalReAuthorizeRequest
extends AbstractPayPalRequest<com.paypal.payments.Authorization,com.paypal.payments.AuthorizationsReauthorizeRequest>
- Author:
- Nathan Moore (nathandmoore)
-
Constructor Summary
ConstructorsConstructorDescriptionPayPalReAuthorizeRequest(PayPalClientProvider clientProvider, org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequest, String authId, com.paypal.payments.ReauthorizeRequest reauthorizeRequest) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.paypal.payments.AuthorizationsReauthorizeRequestMethod to build outAbstractPayPalRequest.requestand provide it the implementation-specific configuration such as headers and request body.protected AbstractPayPalResponse<com.paypal.payments.Authorization>Executes the configuredAbstractPayPalRequest.requestusing thePayPalHttpClient.protected Stringprotected com.paypal.payments.ReauthorizeRequestprotected 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
-
PayPalReAuthorizeRequest
public PayPalReAuthorizeRequest(PayPalClientProvider clientProvider, org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequest, String authId, com.paypal.payments.ReauthorizeRequest reauthorizeRequest)
-
-
Method Details
-
buildRequest
protected com.paypal.payments.AuthorizationsReauthorizeRequest 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<com.paypal.payments.Authorization,com.paypal.payments.AuthorizationsReauthorizeRequest> - Returns:
- The configured request
-
executeInternal
protected AbstractPayPalResponse<com.paypal.payments.Authorization> executeInternal() throws IOExceptionDescription copied from class:AbstractPayPalRequestExecutes the configuredAbstractPayPalRequest.requestusing thePayPalHttpClient.- Specified by:
executeInternalin classAbstractPayPalRequest<com.paypal.payments.Authorization,com.paypal.payments.AuthorizationsReauthorizeRequest> - 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<com.paypal.payments.Authorization,com.paypal.payments.AuthorizationsReauthorizeRequest> - Returns:
- Whether the request can be executed or is in an erroneous state.
-
getAuthId
-
getReauthorizeRequest
protected com.paypal.payments.ReauthorizeRequest getReauthorizeRequest()
-