Class ExternalPaymentProvider<P extends Payment>

java.lang.Object
com.broadleafcommerce.customer.service.provider.external.AbstractExternalProvider
com.broadleafcommerce.customer.service.provider.external.ExternalPaymentProvider<P>
All Implemented Interfaces:
PaymentProvider<P>

@Deprecated(since="1.7.2", forRemoval=true) public class ExternalPaymentProvider<P extends Payment> extends AbstractExternalProvider implements PaymentProvider<P>
Deprecated, for removal: This API element is subject to removal in a future version.
since 1.7.2, in favor of using PaymentTransactionServices as saved payment method storage location.
This particular implementation of PaymentProvider is designed to interact with the payment transaction service.
Author:
Chris Kittrell (ckittrell)
  • Constructor Details

    • ExternalPaymentProvider

      public ExternalPaymentProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalPaymentProperties properties)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • readAllByCartId

      public List<P> readAllByCartId(@NonNull @NonNull String cartId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: PaymentProvider
      Retrieves a list of Payments that belong to the given cart id.
      Specified by:
      readAllByCartId in interface PaymentProvider<P extends Payment>
      Parameters:
      cartId - the cart id of the Payments to retrieve
      contextInfo - context information around sandbox and multitenant state.
      Returns:
      a list of Payments that belong to the given cart id.
    • getBaseUri

      protected org.springframework.web.util.UriComponentsBuilder getBaseUri()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the base URI common to all requests this provider will make.
      Returns:
      a URI components builder with the base URI set up
    • getPageType

      protected org.springframework.core.ParameterizedTypeReference<ResponsePageGenerator<P>> getPageType()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the type reference for a page generator of item list items.
      Returns:
      type reference for a page generator of item list items
    • getServiceClient

      protected String getServiceClient()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getProperties

      protected ExternalPaymentProperties getProperties()
      Deprecated, for removal: This API element is subject to removal in a future version.