Interface OrderHistoryService<O extends com.broadleafcommerce.order.client.domain.Order,OF extends OrderWithFulfillmentsAndReturns>
-
- All Known Implementing Classes:
DefaultOrderHistoryService
public interface OrderHistoryService<O extends com.broadleafcommerce.order.client.domain.Order,OF extends OrderWithFulfillmentsAndReturns>
Service API forOrder
history for customers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OF
readOrderByIdOrNumber(String orderRef, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Retrieve the order with the given order reference (ID or order number) and its fulfillments and returns.org.springframework.data.domain.Page<OF>
readOrderHistoryForCustomer(Integer days, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Read all orders with its fulfillments and returns for the currently authenticated customer for the past number of days.
-
-
-
Method Detail
-
readOrderHistoryForCustomer
org.springframework.data.domain.Page<OF> readOrderHistoryForCustomer(@Nullable Integer days, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Read all orders with its fulfillments and returns for the currently authenticated customer for the past number of days.- Parameters:
days
- The number of days to read order historypage
- the requested page of results from the databasecontextInfo
- The current context- Returns:
- The orders with the customer ID in the date range
-
readOrderByIdOrNumber
OF readOrderByIdOrNumber(String orderRef, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Retrieve the order with the given order reference (ID or order number) and its fulfillments and returns.- Parameters:
orderRef
- The ID or number of the order to readcontextInfo
- The current context- Returns:
- The order with the given ID and its fulfillments and returns.
-
-