Class 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
    • Method Detail

      • mergeCarts

        public void mergeCarts​(CartModel fromCart,
                               CartModel toCart,
                               java.util.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 java.util.List<CommerceCartModification> processCartAction​(java.util.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