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
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Account>
readAccountById
(String accountId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read a customer account by the supplied IDreactor.core.publisher.Mono<Customer>
readByCustomerId
(String customerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read a customer by ID
-
Method Details
-
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 IDcontextInfo
- 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 IDcontextInfo
- The context- Returns:
- The customer, if found
-