Class ExternalCustomerProvider

    • Constructor Detail

      • ExternalCustomerProvider

        public ExternalCustomerProvider​(org.springframework.web.reactive.function.client.WebClient webClient,
                                        com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                        com.broadleafcommerce.common.extension.TypeFactory typeFactory,
                                        ExternalCustomerProperties properties)
    • Method Detail

      • readAccountById

        public reactor.core.publisher.Mono<Account> readAccountById​(String accountId,
                                                                    com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Description copied from interface: CustomerProvider
        Read a customer account by the supplied ID
        Specified by:
        readAccountById in interface CustomerProvider
        Parameters:
        accountId - The account ID
        contextInfo - The context
        Returns:
        An account Mono
      • readByCustomerId

        public reactor.core.publisher.Mono<Customer> readByCustomerId​(String customerId,
                                                                      com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Description copied from interface: CustomerProvider
        Read a customer by ID
        Specified by:
        readByCustomerId in interface CustomerProvider
        Parameters:
        customerId - The customer ID
        contextInfo - The context
        Returns:
        The customer, if found
      • getServiceClient

        protected String getServiceClient()