Class CSRCartEndpoint

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

@FrameworkRestController @FrameworkMapping("/csr") @DataRouteByKey("cartoperation") public class CSRCartEndpoint extends Object
Author:
Nick Crum (ncrum)
  • Field Details

  • Constructor Details

  • Method Details

    • cancelCSRCart

      @Policy(permissionRoots="CSR") @FrameworkDeleteMapping("/cart/{cartId}") public void cancelCSRCart(@PathVariable String cartId, Integer cartVersion, com.broadleafcommerce.order.common.domain.CustomerRef customer, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • overrideItemPriceInCart

      @Policy(permissionRoots="CSR") @FrameworkPatchMapping(value="/cart/{cartId}/items/{cartItemId}/overridePrice", consumes="application/json") public com.broadleafcommerce.cart.client.domain.Cart overrideItemPriceInCart(@PathVariable String cartId, @PathVariable String cartItemId, @RequestBody OverridePriceRequest overridePrice, @RequestParam(defaultValue="true") boolean price, Integer cartVersion, com.broadleafcommerce.order.common.domain.CustomerRef customer, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • overrideFulfillmentGroupPriceInCart

      @Policy(permissionRoots="CSR") @FrameworkPatchMapping(value="/cart/{cartId}/fulfillment-groups/{referenceNumber}/overrideFulfillmentPrice", consumes="application/json") public com.broadleafcommerce.cart.client.domain.Cart overrideFulfillmentGroupPriceInCart(@PathVariable String cartId, @PathVariable String referenceNumber, @RequestBody OverridePriceRequest overridePrice, @RequestParam(defaultValue="true") boolean price, Integer cartVersion, com.broadleafcommerce.order.common.domain.CustomerRef customer, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • createTransferToken

      @Policy(permissionRoots="CSR") @FrameworkPostMapping("/cart-transfer/{cartId}/create-token") public TransferCartToken createTransferToken(@PathVariable String cartId, Integer cartVersion, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • consumeTransferToken

      @FrameworkPostMapping("/cart-transfer/{cartId}/consume-token") public com.broadleafcommerce.cart.client.domain.Cart consumeTransferToken(@PathVariable String cartId, @RequestParam("transferCartToken") String tokenString, com.broadleafcommerce.order.common.domain.CustomerRef customer, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) throws TransferCartTokenParseException
      Throws:
      TransferCartTokenParseException
    • cloneCSRCartFromCustomer

      @Policy(permissionRoots="CSR") @FrameworkPostMapping("/cart-transfer/{cartId}/from-customer") public com.broadleafcommerce.cart.client.domain.Cart cloneCSRCartFromCustomer(@PathVariable String cartId, Integer cartVersion, com.broadleafcommerce.order.common.domain.CustomerRef customer, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • transferCSRCartToCustomer

      @Policy(permissionRoots="CSR") @FrameworkPostMapping("/cart-transfer/{cartId}/to-customer") public void transferCSRCartToCustomer(@PathVariable String cartId, Integer cartVersion, com.broadleafcommerce.order.common.domain.CustomerRef customer, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • resolveCartForRead

      protected com.broadleafcommerce.cart.client.domain.Cart resolveCartForRead(String cartId, @Nullable Integer cartVersion, @Nullable com.broadleafcommerce.order.common.domain.CustomerRef customer, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • resolveCartForUpdate

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

      protected com.broadleafcommerce.cart.client.domain.Cart resolveCart(@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()
    • getCartOperationService

      protected CartOperationService getCartOperationService()
    • getCsrCartOperationService

      protected CsrCartOperationService getCsrCartOperationService()
    • getCartTransferService

      protected CartTransferService getCartTransferService()
    • getCartVersionValidationService

      protected CartVersionValidationService getCartVersionValidationService()
    • getAuthenticationUtils

      protected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils getAuthenticationUtils()
    • getTypeFactory

      protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()