Interface CustomerProvider

  • All Known Implementing Classes:
    ExternalCustomerProvider

    public interface CustomerProvider
    Provider for interfacing with operations directly involving customer related domain. Typically utilizes WebClient to make requests to an external REST API.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      reactor.core.publisher.Mono<Account> readAccountById​(String accountId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Read a customer account by the supplied ID
      reactor.core.publisher.Mono<Customer> readByCustomerId​(String customerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Read a customer by ID
    • Method Detail

      • readAccountById

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

        reactor.core.publisher.Mono<Customer> readByCustomerId​(String customerId,
                                                               com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Read a customer by ID
        Parameters:
        customerId - The customer ID
        contextInfo - The context
        Returns:
        The customer, if found