Class CartApprovalEndpoint

java.lang.Object
com.broadleafcommerce.cartoperation.web.endpoint.CartApprovalEndpoint

@FrameworkRestController @FrameworkMapping("/cart-approval") public class CartApprovalEndpoint extends Object
Author:
Susana Cruz (susanaccruz), Kyrylo Boiko (kboiko2)
  • Field Details

  • Constructor Details

  • Method Details

    • retrieveCartsRequiringApproval

      @Policy(permissionRoots="APPROVE_CART") @FrameworkGetMapping public org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.Cart> retrieveCartsRequiringApproval(@RequestParam(value="requestedAccountId",required=false) String requestedAccountId, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, cz.jirutka.rsql.parser.ast.Node filters, @PageableDefault(size=50,sort="approvalRequestedDate",direction=DESC) org.springframework.data.domain.Pageable pageable, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • submitForApproval

      @FrameworkPostMapping(value="/{cartId}/submit-for-approval", consumes="application/json") public CartApprovalProcessResponse submitForApproval(@PathVariable String cartId, @RequestBody CartApprovalProcessRequest cartApprovalProcessRequest, com.broadleafcommerce.order.common.domain.CustomerRef customer, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • rejectCart

      @Policy(permissionRoots="APPROVE_CART") @FrameworkPostMapping(value="/{cartId}/reject-cart", consumes="application/json") public CartApprovalProcessResponse rejectCart(@PathVariable String cartId, @RequestBody CartApprovalProcessRequest cartApprovalProcessRequest, com.broadleafcommerce.order.common.domain.CustomerRef customer, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • resolveCart

      protected com.broadleafcommerce.cart.client.domain.Cart resolveCart(@NonNull @NonNull String cartId, @Nullable com.broadleafcommerce.order.common.domain.CustomerRef customer, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • cartNotFoundMessage

      protected String cartNotFoundMessage(String cartId)
    • getCartResolverService

      protected CartResolverService getCartResolverService()
    • getCartApprovalService

      protected CartApprovalService getCartApprovalService()
    • getCartProvider

      protected CartProvider getCartProvider()