Class OrderThresholdChangeDeliveryModePromotion

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable

    public class OrderThresholdChangeDeliveryModePromotion
    extends GeneratedOrderThresholdChangeDeliveryModePromotion
    OrderThresholdChangeDeliveryModePromotion. Get a different shipping method when you spend at least a certain value. For example: Get free next day delivery when you spend €150.00. Change the shipping mode when the order subtotal is at least the threshold value.
    See Also:
    Serialized Form
    • Constructor Detail

      • OrderThresholdChangeDeliveryModePromotion

        public OrderThresholdChangeDeliveryModePromotion()
    • Method Detail

      • getResultDescription

        public java.lang.String getResultDescription​(SessionContext ctx,
                                                     PromotionResult promotionResult,
                                                     java.util.Locale locale)
        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,
                                          java.lang.StringBuilder builder)
        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 AbstractPromotion
        Parameters:
        ctx - The hybris context
        builder - A StringBuilder used to build up the immutable key
      • deepCloneAttributes

        protected void deepCloneAttributes​(SessionContext ctx,
                                           java.util.Map values)
        Called to deep clone attributes of this instance

        The values map contains all the attributes defined on this instance. The map will be used to initialse a new instance of the Action that is a clone of this instance. This method can remove, replace or add to the Map of attributes.

        Overrides:
        deepCloneAttributes in class AbstractPromotion
        Parameters:
        ctx - The hybris context
        values - The map to write into