Class ExternalPaymentProvider<P extends Payment>

    • Constructor Detail

      • 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)
    • Method Detail

      • readAllByCartId

        public List<P> readAllByCartId​(@NonNull
                                       @NonNull String cartId,
                                       @Nullable
                                       com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        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()
        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()
        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()