Class GeneratedOrderThresholdDiscountPercentagePromotion

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
OrderThresholdDiscountPercentagePromotion

public abstract class GeneratedOrderThresholdDiscountPercentagePromotion extends OrderPromotion
See Also:
  • Field Details

    • THRESHOLDTOTALS

      public static final String THRESHOLDTOTALS
      Qualifier of the OrderThresholdDiscountPercentagePromotion.thresholdTotals attribute
      See Also:
    • PERCENTAGEDISCOUNT

      public static final String PERCENTAGEDISCOUNT
      Qualifier of the OrderThresholdDiscountPercentagePromotion.percentageDiscount attribute
      See Also:
    • MESSAGEFIRED

      public static final String MESSAGEFIRED
      Qualifier of the OrderThresholdDiscountPercentagePromotion.messageFired attribute
      See Also:
    • MESSAGECOULDHAVEFIRED

      public static final String MESSAGECOULDHAVEFIRED
      Qualifier of the OrderThresholdDiscountPercentagePromotion.messageCouldHaveFired attribute
      See Also:
    • DEFAULT_INITIAL_ATTRIBUTES

      protected static final Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
  • Constructor Details

    • GeneratedOrderThresholdDiscountPercentagePromotion

      public GeneratedOrderThresholdDiscountPercentagePromotion()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class GeneratedOrderPromotion
    • getMessageCouldHaveFired

      public String getMessageCouldHaveFired(SessionContext ctx)
      Generated method - Getter of the OrderThresholdDiscountPercentagePromotion.messageCouldHaveFired attribute.
      Returns:
      the messageCouldHaveFired - The message to show when the promotion could have potentially fire.
    • getMessageCouldHaveFired

      public String getMessageCouldHaveFired()
      Generated method - Getter of the OrderThresholdDiscountPercentagePromotion.messageCouldHaveFired attribute.
      Returns:
      the messageCouldHaveFired - The message to show when the promotion could have potentially fire.
    • getAllMessageCouldHaveFired

      public Map<Language,String> getAllMessageCouldHaveFired(SessionContext ctx)
      Generated method - Getter of the OrderThresholdDiscountPercentagePromotion.messageCouldHaveFired attribute.
      Returns:
      the localized messageCouldHaveFired - The message to show when the promotion could have potentially fire.
    • getAllMessageCouldHaveFired

      public Map<Language,String> getAllMessageCouldHaveFired()
      Generated method - Getter of the OrderThresholdDiscountPercentagePromotion.messageCouldHaveFired attribute.
      Returns:
      the localized messageCouldHaveFired - The message to show when the promotion could have potentially fire.
    • setMessageCouldHaveFired

      public void setMessageCouldHaveFired(SessionContext ctx, String value)
      Generated method - Setter of the OrderThresholdDiscountPercentagePromotion.messageCouldHaveFired attribute.
      Parameters:
      value - the messageCouldHaveFired - The message to show when the promotion could have potentially fire.
    • setMessageCouldHaveFired

      public void setMessageCouldHaveFired(String value)
      Generated method - Setter of the OrderThresholdDiscountPercentagePromotion.messageCouldHaveFired attribute.
      Parameters:
      value - the messageCouldHaveFired - The message to show when the promotion could have potentially fire.
    • setAllMessageCouldHaveFired

      public void setAllMessageCouldHaveFired(SessionContext ctx, Map<Language,String> value)
      Generated method - Setter of the OrderThresholdDiscountPercentagePromotion.messageCouldHaveFired attribute.
      Parameters:
      value - the messageCouldHaveFired - The message to show when the promotion could have potentially fire.
    • setAllMessageCouldHaveFired

      public void setAllMessageCouldHaveFired(Map<Language,String> value)
      Generated method - Setter of the OrderThresholdDiscountPercentagePromotion.messageCouldHaveFired attribute.
      Parameters:
      value - the messageCouldHaveFired - The message to show when the promotion could have potentially fire.
    • getMessageFired

      public String getMessageFired(SessionContext ctx)
      Generated method - Getter of the OrderThresholdDiscountPercentagePromotion.messageFired attribute.
      Returns:
      the messageFired - The message to show when the promotion has fired.
    • getMessageFired

      public String getMessageFired()
      Generated method - Getter of the OrderThresholdDiscountPercentagePromotion.messageFired attribute.
      Returns:
      the messageFired - The message to show when the promotion has fired.
    • getAllMessageFired

      public Map<Language,String> getAllMessageFired(SessionContext ctx)
      Generated method - Getter of the OrderThresholdDiscountPercentagePromotion.messageFired attribute.
      Returns:
      the localized messageFired - The message to show when the promotion has fired.
    • getAllMessageFired

      public Map<Language,String> getAllMessageFired()
      Generated method - Getter of the OrderThresholdDiscountPercentagePromotion.messageFired attribute.
      Returns:
      the localized messageFired - The message to show when the promotion has fired.
    • setMessageFired

      public void setMessageFired(SessionContext ctx, String value)
      Generated method - Setter of the OrderThresholdDiscountPercentagePromotion.messageFired attribute.
      Parameters:
      value - the messageFired - The message to show when the promotion has fired.
    • setMessageFired

      public void setMessageFired(String value)
      Generated method - Setter of the OrderThresholdDiscountPercentagePromotion.messageFired attribute.
      Parameters:
      value - the messageFired - The message to show when the promotion has fired.
    • setAllMessageFired

      public void setAllMessageFired(SessionContext ctx, Map<Language,String> value)
      Generated method - Setter of the OrderThresholdDiscountPercentagePromotion.messageFired attribute.
      Parameters:
      value - the messageFired - The message to show when the promotion has fired.
    • setAllMessageFired

      public void setAllMessageFired(Map<Language,String> value)
      Generated method - Setter of the OrderThresholdDiscountPercentagePromotion.messageFired attribute.
      Parameters:
      value - the messageFired - The message to show when the promotion has fired.
    • getPercentageDiscount

      public Double getPercentageDiscount(SessionContext ctx)
      Generated method - Getter of the OrderThresholdDiscountPercentagePromotion.percentageDiscount attribute.
      Returns:
      the percentageDiscount - Percentage discount.
    • getPercentageDiscount

      public Double getPercentageDiscount()
      Generated method - Getter of the OrderThresholdDiscountPercentagePromotion.percentageDiscount attribute.
      Returns:
      the percentageDiscount - Percentage discount.
    • getPercentageDiscountAsPrimitive

      public double getPercentageDiscountAsPrimitive(SessionContext ctx)
      Generated method - Getter of the OrderThresholdDiscountPercentagePromotion.percentageDiscount attribute.
      Returns:
      the percentageDiscount - Percentage discount.
    • getPercentageDiscountAsPrimitive

      public double getPercentageDiscountAsPrimitive()
      Generated method - Getter of the OrderThresholdDiscountPercentagePromotion.percentageDiscount attribute.
      Returns:
      the percentageDiscount - Percentage discount.
    • setPercentageDiscount

      public void setPercentageDiscount(SessionContext ctx, Double value)
      Generated method - Setter of the OrderThresholdDiscountPercentagePromotion.percentageDiscount attribute.
      Parameters:
      value - the percentageDiscount - Percentage discount.
    • setPercentageDiscount

      public void setPercentageDiscount(Double value)
      Generated method - Setter of the OrderThresholdDiscountPercentagePromotion.percentageDiscount attribute.
      Parameters:
      value - the percentageDiscount - Percentage discount.
    • setPercentageDiscount

      public void setPercentageDiscount(SessionContext ctx, double value)
      Generated method - Setter of the OrderThresholdDiscountPercentagePromotion.percentageDiscount attribute.
      Parameters:
      value - the percentageDiscount - Percentage discount.
    • setPercentageDiscount

      public void setPercentageDiscount(double value)
      Generated method - Setter of the OrderThresholdDiscountPercentagePromotion.percentageDiscount attribute.
      Parameters:
      value - the percentageDiscount - Percentage discount.
    • getThresholdTotals

      public Collection<PromotionPriceRow> getThresholdTotals(SessionContext ctx)
      Generated method - Getter of the OrderThresholdDiscountPercentagePromotion.thresholdTotals attribute.
      Returns:
      the thresholdTotals - The cart total value threshold in specific currencies.
    • getThresholdTotals

      public Collection<PromotionPriceRow> getThresholdTotals()
      Generated method - Getter of the OrderThresholdDiscountPercentagePromotion.thresholdTotals attribute.
      Returns:
      the thresholdTotals - The cart total value threshold in specific currencies.
    • setThresholdTotals

      public void setThresholdTotals(SessionContext ctx, Collection<PromotionPriceRow> value)
      Generated method - Setter of the OrderThresholdDiscountPercentagePromotion.thresholdTotals attribute.
      Parameters:
      value - the thresholdTotals - The cart total value threshold in specific currencies.
    • setThresholdTotals

      public void setThresholdTotals(Collection<PromotionPriceRow> value)
      Generated method - Setter of the OrderThresholdDiscountPercentagePromotion.thresholdTotals attribute.
      Parameters:
      value - the thresholdTotals - The cart total value threshold in specific currencies.