Class DefaultTmaPromotionActionService

  • All Implemented Interfaces:
    de.hybris.platform.promotionengineservices.promotionengine.PromotionActionService

    public class DefaultTmaPromotionActionService
    extends de.hybris.platform.promotionengineservices.promotionengine.impl.DefaultPromotionActionService
    Custom implementation for DefaultPromotionActionService to clean up and create cart prices for promotions
    Since:
    2007
    • Method Detail

      • recalculateTotals

        public void recalculateTotals​(AbstractOrderModel order)
        Specified by:
        recalculateTotals in interface de.hybris.platform.promotionengineservices.promotionengine.PromotionActionService
        Overrides:
        recalculateTotals in class de.hybris.platform.promotionengineservices.promotionengine.impl.DefaultPromotionActionService
      • removeDiscountValue

        public java.util.List<ItemModel> removeDiscountValue​(java.lang.String code,
                                                             AbstractOrderModel order)
        Specified by:
        removeDiscountValue in interface de.hybris.platform.promotionengineservices.promotionengine.PromotionActionService
        Overrides:
        removeDiscountValue in class de.hybris.platform.promotionengineservices.promotionengine.impl.DefaultPromotionActionService
      • removeOrderLevelPromotionPrices

        protected void removeOrderLevelPromotionPrices​(AbstractOrderModel order)
        Remove cart prices for the given promotion from the order
        Parameters:
        order - the order from which the prices will be removed
      • removeOrderEntryLevelPromotionPrices

        protected void removeOrderEntryLevelPromotionPrices​(AbstractOrderModel order)
        Remove cart prices for the given promotion from the order entries
        Parameters:
        order - the order from which the prices will be removed
      • createOrderPromotionPrices

        protected void createOrderPromotionPrices​(AbstractOrderModel order)
        Creates prices for the promotions applied at order level
        Parameters:
        order - the order for which prices will be created
      • createOrderEntryPromotionPrices

        protected void createOrderEntryPromotionPrices​(AbstractOrderEntryModel entry)
        Creates prices for the promotions applied at order entry level
        Parameters:
        entry - the entry for which prices will be created