Class PayPalCaptureRetrievalRequest

java.lang.Object
org.broadleafcommerce.vendor.paypal.service.payment.AbstractPayPalRequest<com.paypal.payments.Capture,com.paypal.payments.CapturesGetRequest>
org.broadleafcommerce.vendor.paypal.service.payment.PayPalCaptureRetrievalRequest
All Implemented Interfaces:
PayPalRequest

public class PayPalCaptureRetrievalRequest extends AbstractPayPalRequest<com.paypal.payments.Capture,com.paypal.payments.CapturesGetRequest>
  • Constructor Details

    • PayPalCaptureRetrievalRequest

      public PayPalCaptureRetrievalRequest(PayPalClientProvider clientProvider, org.broadleafcommerce.common.payment.dto.PaymentRequestDTO paymentRequest, String captureId)
  • Method Details

    • buildRequest

      protected com.paypal.payments.CapturesGetRequest buildRequest()
      Description copied from class: AbstractPayPalRequest
      Method to build out AbstractPayPalRequest.request and provide it the implementation-specific configuration such as headers and request body.
      Specified by:
      buildRequest in class AbstractPayPalRequest<com.paypal.payments.Capture,com.paypal.payments.CapturesGetRequest>
      Returns:
      The configured request
    • executeInternal

      protected AbstractPayPalResponse<com.paypal.payments.Capture> executeInternal() throws IOException
      Description copied from class: AbstractPayPalRequest
      Executes the configured AbstractPayPalRequest.request using the PayPalHttpClient.
      Specified by:
      executeInternal in class AbstractPayPalRequest<com.paypal.payments.Capture,com.paypal.payments.CapturesGetRequest>
      Returns:
      The response from PayPal.
      Throws:
      IOException - Thrown if the request execution fails.
    • isValidInternal

      protected boolean isValidInternal()
      Description copied from class: AbstractPayPalRequest
      Implementation specific determination of whether the request can be executed.
      Specified by:
      isValidInternal in class AbstractPayPalRequest<com.paypal.payments.Capture,com.paypal.payments.CapturesGetRequest>
      Returns:
      Whether the request can be executed or is in an erroneous state.
    • getCaptureId

      protected String getCaptureId()