Class AbstractPayPalRequest<RES>

    • Constructor Detail

      • AbstractPayPalRequest

        protected AbstractPayPalRequest​(@NonNull
                                        @NonNull PayPalApiProvider payPalApiProvider,
                                        @NonNull
                                        @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
    • Method Detail

      • isValid

        protected boolean isValid()
        Whether this is configured correctly and can execute the request. Relies upon isValidInternal() and whether the request has already been executed.
        Returns:
        Whether this is configured correctly and can execute the request.
      • preferMinimalHeader

        protected org.springframework.http.HttpHeaders preferMinimalHeader​(org.springframework.http.HttpHeaders httpHeaders)
      • preferRepresentationHeader

        protected void preferRepresentationHeader​(org.springframework.http.HttpHeaders httpHeaders)
      • configureRequestHeaders

        protected void configureRequestHeaders​(@NonNull
                                               @NonNull org.springframework.http.HttpHeaders httpHeaders)
      • buildIdempotencyKey

        protected String buildIdempotencyKey​(@NonNull
                                             @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest)
      • isValidInternal

        protected abstract boolean isValidInternal()
        Implementation specific determination of whether the request can be executed.
        Returns:
        Whether the request can be executed or is in an erroneous state.
      • getPaymentRequest

        protected com.broadleafcommerce.paymentgateway.domain.PaymentRequest getPaymentRequest()
      • isExecuted

        protected boolean isExecuted()
        Whether the request has been executed.