Interface CustomerOrderInfoProvider<O extends CustomerOrderInfo>
- All Known Implementing Classes:
ExternalCustomerOrderInfoProvider
public interface CustomerOrderInfoProvider<O extends CustomerOrderInfo>
Provider that is used to read the Order history from the Order Ops service. Typically utilizes
WebClient
to make requests to an external REST API.- Author:
- Dima Myroniuk (dmyroniuk)
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<O>
readOrderInfoForAnonymousCustomer
(String customerEmail, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the order history for an anonymous customer by email address.org.springframework.data.domain.Page<O>
readOrderInfoForCustomer
(String customerId, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the order history for the provided customer id.
-
Method Details
-
readOrderInfoForCustomer
org.springframework.data.domain.Page<O> readOrderInfoForCustomer(String customerId, org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the order history for the provided customer id.- Parameters:
customerId
- the customer id to read the Orderspage
- the requested page of results from the databasecontextInfo
- context information related to multitenancy- Returns:
- the page of
CustomerOrderInfo
-
readOrderInfoForAnonymousCustomer
org.springframework.data.domain.Page<O> readOrderInfoForAnonymousCustomer(String customerEmail, org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads the order history for an anonymous customer by email address.- Parameters:
customerEmail
- the customer emailpage
- the requested page of results from the databasecontextInfo
- context information related to multitenancy- Returns:
- the page of
CustomerOrderInfo
-