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 Summary
-
Constructor Summary
ConstructorDescriptionCSRCartEndpoint
(CartResolverService cartResolverService, CartOperationService cartOperationService, CsrCartOperationService csrCartOperationService, CartTransferService cartTransferService, CartVersionValidationService cartVersionValidationService, com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancelCSRCart
(String cartId, Integer cartVersion, com.broadleafcommerce.order.common.domain.CustomerRef customer, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected String
cartNotFoundMessage
(String cartId) com.broadleafcommerce.cart.client.domain.Cart
cloneCSRCartFromCustomer
(String cartId, Integer cartVersion, com.broadleafcommerce.order.common.domain.CustomerRef customer, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) com.broadleafcommerce.cart.client.domain.Cart
consumeTransferToken
(String cartId, String tokenString, com.broadleafcommerce.order.common.domain.CustomerRef customer, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) createTransferToken
(String cartId, Integer cartVersion, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils
protected CartOperationService
protected CartResolverService
protected CartTransferService
protected CartVersionValidationService
protected CsrCartOperationService
protected com.broadleafcommerce.common.extension.TypeFactory
com.broadleafcommerce.cart.client.domain.Cart
overrideFulfillmentGroupPriceInCart
(String cartId, String referenceNumber, OverridePriceRequest overridePrice, boolean price, Integer cartVersion, com.broadleafcommerce.order.common.domain.CustomerRef customer, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) com.broadleafcommerce.cart.client.domain.Cart
overrideItemPriceInCart
(String cartId, String cartItemId, OverridePriceRequest overridePrice, boolean price, Integer cartVersion, com.broadleafcommerce.order.common.domain.CustomerRef customer, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected com.broadleafcommerce.cart.client.domain.Cart
resolveCart
(String cartId, com.broadleafcommerce.order.common.domain.CustomerRef customer, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected com.broadleafcommerce.cart.client.domain.Cart
resolveCartForRead
(String cartId, Integer cartVersion, com.broadleafcommerce.order.common.domain.CustomerRef customer, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected com.broadleafcommerce.cart.client.domain.Cart
resolveCartForUpdate
(String cartId, Integer cartVersion, com.broadleafcommerce.order.common.domain.CustomerRef customer, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) void
transferCSRCartToCustomer
(String cartId, Integer cartVersion, com.broadleafcommerce.order.common.domain.CustomerRef customer, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
CSRCartEndpoint
public CSRCartEndpoint(CartResolverService cartResolverService, CartOperationService cartOperationService, CsrCartOperationService csrCartOperationService, CartTransferService cartTransferService, CartVersionValidationService cartVersionValidationService, com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
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
-
resolveCartForUpdate
-
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
-
getCartResolverService
-
getCartOperationService
-
getCsrCartOperationService
-
getCartTransferService
-
getCartVersionValidationService
-
getAuthenticationUtils
protected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils getAuthenticationUtils() -
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-