Class ProductPriceDiscountPromotionByPaymentType

All Implemented Interfaces:
Serializable, Comparable

@Deprecated(since="6.3") public class ProductPriceDiscountPromotionByPaymentType extends GeneratedProductPriceDiscountPromotionByPaymentType
Deprecated.
Since 6.3, please use promotion engine instead.
ProductPriceDiscountPromotionByPaymentType This promotion is mainly applicable for scenarios where we fire promotions only for certain users based on the payment type. For example: Get X% of discount when you checkout with Account details.
See Also:
  • Constructor Details

    • ProductPriceDiscountPromotionByPaymentType

      public ProductPriceDiscountPromotionByPaymentType()
      Deprecated.
  • Method Details

    • evaluate

      public List<PromotionResult> evaluate(SessionContext ctx, PromotionEvaluationContext promoContext)
      Deprecated.
      Description copied from class: AbstractPromotion
      Evaluate whether a promotion can fire or not.
      Specified by:
      evaluate in class AbstractPromotion
      Parameters:
      ctx - The context to run the operation in
      promoContext - The evaluation context
      Returns:
      the list of promotion results that this promotions creates
    • getResultDescription

      public String getResultDescription(SessionContext ctx, PromotionResult promotionResult, Locale locale)
      Deprecated.
      Description copied from class: AbstractPromotion
      Get a localized user presentable description for the result of this promotion.
      Specified by:
      getResultDescription in class AbstractPromotion
      Parameters:
      ctx - The context
      promotionResult - The promotion result to be described
      locale - The locale to use to generate the message
      Returns:
      a string description
    • buildDataUniqueKey

      protected void buildDataUniqueKey(SessionContext ctx, StringBuilder builder)
      Deprecated.
      Description copied from class: AbstractPromotion
      Build a unique data driven key. Build a unique key that is data driven. This will uniquely identify the rules used in this promotion and will form the immutable key for stored promotions. This method may be overridden in a subclass to customize the identifier.
      Overrides:
      buildDataUniqueKey in class ProductPromotion
      Parameters:
      ctx - The hybris context
      builder - A StringBuilder used to build up the immutable key