Interface OrderHistoryService<O extends com.broadleafcommerce.order.client.domain.Order,​OF extends OrderWithFulfillmentsAndReturns>

    • 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 history
        page - the requested page of results from the database
        contextInfo - 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 read
        contextInfo - The current context
        Returns:
        The order with the given ID and its fulfillments and returns.