Class OrderHistoryEndpoint

java.lang.Object
com.broadleafcommerce.orderoperation.web.endpoint.OrderHistoryEndpoint

@FrameworkRestController @FrameworkMapping("/order-history") public class OrderHistoryEndpoint extends Object
Endpoint for viewing Order history for a customer.
  • Field Details

  • Constructor Details

  • Method Details

    • readOrderHistoryForCustomer

      @Policy(permissionRoots="CUSTOMER_ORDER", identityTypes=OWNER) @FrameworkGetMapping public org.springframework.data.domain.Page<OrderWithFulfillmentsAndReturns> readOrderHistoryForCustomer(@RequestParam(required=false) Integer days, @PageableDefault(sort="submitDate",direction=DESC) org.springframework.data.domain.Pageable page, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • readOrderByIdOrNumber

      @Policy(permissionRoots="CUSTOMER_ORDER", identityTypes=OWNER) @FrameworkGetMapping("/{orderRef}") public OrderWithFulfillmentsAndReturns readOrderByIdOrNumber(@PathVariable("orderRef") String orderRef, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • readOrderHistoryForAccount

      @Policy(permissionRoots="ACCOUNT_ORDER") @FrameworkGetMapping("/account") public org.springframework.data.domain.Page<OrderWithFulfillmentsAndReturns> readOrderHistoryForAccount(@RequestParam(required=false) boolean includeChildren, @PageableDefault(sort="submitDate",direction=DESC) org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • readOrderByIdOrNumberForAccount

      @Policy(permissionRoots="ACCOUNT_ORDER") @FrameworkGetMapping("/account/{orderRef}") public OrderWithFulfillmentsAndReturns readOrderByIdOrNumberForAccount(@PathVariable("orderRef") String orderRef, @RequestParam(required=false) boolean includeChildren, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • getOrderHistoryService

      protected OrderHistoryService<com.broadleafcommerce.order.client.domain.Order,OrderWithFulfillmentsAndReturns> getOrderHistoryService()