@FrameworkRestController @FrameworkMapping(value="/csr") public class CSRCartEndpoint extends Object
Constructor and Description |
---|
CSRCartEndpoint(CartResolverService cartResolverService,
CartOperationService cartOperationService,
CsrCartOperationService csrCartOperationService,
CartTransferService cartTransferService,
CartVersionValidationService cartVersionValidationService) |
Modifier and Type | Method and Description |
---|---|
void |
cancelCSRCart(String cartId,
Integer cartVersion,
com.broadleafcommerce.cart.client.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.cart.client.domain.CustomerRef customer,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) |
com.broadleafcommerce.cart.client.domain.Cart |
consumeTransferToken(String cartId,
String tokenString,
com.broadleafcommerce.cart.client.domain.CustomerRef customer,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) |
TransferCartToken |
createTransferToken(String cartId,
Integer cartVersion,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) |
protected CartOperationService |
getCartOperationService() |
protected CartResolverService |
getCartResolverService() |
protected CartTransferService |
getCartTransferService() |
protected CartVersionValidationService |
getCartVersionValidationService() |
protected CsrCartOperationService |
getCsrCartOperationService() |
com.broadleafcommerce.cart.client.domain.Cart |
overrideFulfillmentGroupPriceInCart(String cartId,
String referenceNumber,
OverridePriceRequest overridePrice,
boolean price,
Integer cartVersion,
com.broadleafcommerce.cart.client.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.cart.client.domain.CustomerRef customer,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) |
protected com.broadleafcommerce.cart.client.domain.Cart |
resolveCart(String cartId,
com.broadleafcommerce.cart.client.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.cart.client.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.cart.client.domain.CustomerRef customer,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) |
void |
transferCSRCartToCustomer(String cartId,
Integer cartVersion,
com.broadleafcommerce.cart.client.domain.CustomerRef customer,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) |
public static final String BASE_URI
public CSRCartEndpoint(CartResolverService cartResolverService, CartOperationService cartOperationService, CsrCartOperationService csrCartOperationService, CartTransferService cartTransferService, CartVersionValidationService cartVersionValidationService)
@Policy(permissionRoots="CSR") @FrameworkDeleteMapping(value="/cart/{cartId}") public void cancelCSRCart(@PathVariable String cartId, Integer cartVersion, com.broadleafcommerce.cart.client.domain.CustomerRef customer, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
@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.cart.client.domain.CustomerRef customer, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
@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.cart.client.domain.CustomerRef customer, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
@Policy(permissionRoots="CSR") @FrameworkPostMapping(value="/cart-transfer/{cartId}/create-token") public TransferCartToken createTransferToken(@PathVariable String cartId, Integer cartVersion, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
@FrameworkPostMapping(value="/cart-transfer/{cartId}/consume-token") public com.broadleafcommerce.cart.client.domain.Cart consumeTransferToken(@PathVariable String cartId, @RequestParam(value="transferCartToken") String tokenString, com.broadleafcommerce.cart.client.domain.CustomerRef customer, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) throws TransferCartTokenParseException
TransferCartTokenParseException
@Policy(permissionRoots="CSR") @FrameworkPostMapping(value="/cart-transfer/{cartId}/from-customer") public com.broadleafcommerce.cart.client.domain.Cart cloneCSRCartFromCustomer(@PathVariable String cartId, Integer cartVersion, com.broadleafcommerce.cart.client.domain.CustomerRef customer, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
@Policy(permissionRoots="CSR") @FrameworkPostMapping(value="/cart-transfer/{cartId}/to-customer") public void transferCSRCartToCustomer(@PathVariable String cartId, Integer cartVersion, com.broadleafcommerce.cart.client.domain.CustomerRef customer, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
protected com.broadleafcommerce.cart.client.domain.Cart resolveCartForRead(String cartId, @Nullable Integer cartVersion, @Nullable com.broadleafcommerce.cart.client.domain.CustomerRef customer, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
protected com.broadleafcommerce.cart.client.domain.Cart resolveCartForUpdate(String cartId, @Nullable Integer cartVersion, @Nullable com.broadleafcommerce.cart.client.domain.CustomerRef customer, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
protected com.broadleafcommerce.cart.client.domain.Cart resolveCart(@NonNull String cartId, @Nullable com.broadleafcommerce.cart.client.domain.CustomerRef customer, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
protected CartResolverService getCartResolverService()
protected CartOperationService getCartOperationService()
protected CsrCartOperationService getCsrCartOperationService()
protected CartTransferService getCartTransferService()
protected CartVersionValidationService getCartVersionValidationService()
Copyright © 2021. All rights reserved.