Class B2ctelcoCommerceCartMergingStrategy

java.lang.Object
de.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartMergingStrategy
de.hybris.platform.b2ctelcoservices.order.impl.B2ctelcoCommerceCartMergingStrategy
All Implemented Interfaces:
TmaCartStrategy, de.hybris.platform.commerceservices.order.impl.CommerceCartMergingStrategy

public class B2ctelcoCommerceCartMergingStrategy extends de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartMergingStrategy implements de.hybris.platform.commerceservices.order.impl.CommerceCartMergingStrategy, TmaCartStrategy
B2ctelcoCommerceCartMergingStrategy, an implementation of CommerceCartMergingStrategy to merge anonymous cart with user cart.
Since:
1911
  • Constructor Details

  • Method Details

    • mergeCarts

      public void mergeCarts(CartModel fromCart, CartModel toCart, List<CommerceCartModification> modifications) throws de.hybris.platform.commerceservices.order.CommerceCartMergingException
      Specified by:
      mergeCarts in interface de.hybris.platform.commerceservices.order.impl.CommerceCartMergingStrategy
      Overrides:
      mergeCarts in class de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartMergingStrategy
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartMergingException
    • processCartAction

      public List<CommerceCartModification> processCartAction(List<CommerceCartParameter> commerceCartParameterList) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Description copied from interface: TmaCartStrategy
      Processes cart updates.
      Specified by:
      processCartAction in interface TmaCartStrategy
      Parameters:
      commerceCartParameterList - contains attributes used for cart updates
      Returns:
      list CommerceCartModification
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException - in case of any error occurs during cart update
    • recalculateCart

      protected void recalculateCart(CartModel toCart)
    • validateFromCartEligibilityContext

      protected void validateFromCartEligibilityContext(CartModel fromCart) throws de.hybris.platform.commerceservices.order.CommerceCartMergingException
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartMergingException
    • mergeEntryWithCart

      protected CommerceCartModification mergeEntryWithCart(AbstractOrderEntryModel entry, CartModel toCart) throws de.hybris.platform.commerceservices.order.CommerceCartMergingException
      Overrides:
      mergeEntryWithCart in class de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartMergingStrategy
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartMergingException
    • addEntryToCart

      protected CommerceCartModification addEntryToCart(CartModel cart, AbstractOrderEntryModel entry, AbstractOrderEntryModel parentEntry) throws de.hybris.platform.commerceservices.order.CommerceCartMergingException
      Adds the provided entry to the given cart.
      Parameters:
      cart - The cart
      entry - The entry to be added
      parentEntry - The parent of the entry
      Returns:
      The modifications containing the root entry
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartMergingException - If errors occur during add to cart
    • createCommerceCartParameter

      protected CommerceCartParameter createCommerceCartParameter(CartModel cart, AbstractOrderEntryModel entry, AbstractOrderEntryModel parentEntry)
      Creates the new cart parameter used for adding the new entry to cart.
      Parameters:
      cart - Current cart
      entry - The entry to be added
      parentEntry - The parent entry
      Returns:
      CommerceCartParameter for the new entry
    • getCustomerInventoryService

      protected TmaCustomerInventoryService getCustomerInventoryService()
    • getCommerceAddToCartStrategy

      protected TmaCommerceAddToCartStrategy getCommerceAddToCartStrategy()
    • getTmaUpdateCartStrategy

      protected TmaUpdateCartStrategy getTmaUpdateCartStrategy()