Class GeneratedProductBOGOFPromotion

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

public abstract class GeneratedProductBOGOFPromotion extends ProductPromotion
Generated class for type ProductBOGOFPromotion.
See Also:
  • Field Details

    • QUALIFYINGCOUNT

      public static final String QUALIFYINGCOUNT
      Qualifier of the ProductBOGOFPromotion.qualifyingCount attribute
      See Also:
    • FREECOUNT

      public static final String FREECOUNT
      Qualifier of the ProductBOGOFPromotion.freeCount attribute
      See Also:
    • MESSAGEFIRED

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

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

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

    • GeneratedProductBOGOFPromotion

      public GeneratedProductBOGOFPromotion()
  • Method Details

    • getDefaultAttributeModes

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

      public Integer getFreeCount(SessionContext ctx)
      Generated method - Getter of the ProductBOGOFPromotion.freeCount attribute.
      Returns:
      the freeCount - The number of products within the cart to give away free. (For standard BOGOF this is 1).
    • getFreeCount

      public Integer getFreeCount()
      Generated method - Getter of the ProductBOGOFPromotion.freeCount attribute.
      Returns:
      the freeCount - The number of products within the cart to give away free. (For standard BOGOF this is 1).
    • getFreeCountAsPrimitive

      public int getFreeCountAsPrimitive(SessionContext ctx)
      Generated method - Getter of the ProductBOGOFPromotion.freeCount attribute.
      Returns:
      the freeCount - The number of products within the cart to give away free. (For standard BOGOF this is 1).
    • getFreeCountAsPrimitive

      public int getFreeCountAsPrimitive()
      Generated method - Getter of the ProductBOGOFPromotion.freeCount attribute.
      Returns:
      the freeCount - The number of products within the cart to give away free. (For standard BOGOF this is 1).
    • setFreeCount

      public void setFreeCount(SessionContext ctx, Integer value)
      Generated method - Setter of the ProductBOGOFPromotion.freeCount attribute.
      Parameters:
      value - the freeCount - The number of products within the cart to give away free. (For standard BOGOF this is 1).
    • setFreeCount

      public void setFreeCount(Integer value)
      Generated method - Setter of the ProductBOGOFPromotion.freeCount attribute.
      Parameters:
      value - the freeCount - The number of products within the cart to give away free. (For standard BOGOF this is 1).
    • setFreeCount

      public void setFreeCount(SessionContext ctx, int value)
      Generated method - Setter of the ProductBOGOFPromotion.freeCount attribute.
      Parameters:
      value - the freeCount - The number of products within the cart to give away free. (For standard BOGOF this is 1).
    • setFreeCount

      public void setFreeCount(int value)
      Generated method - Setter of the ProductBOGOFPromotion.freeCount attribute.
      Parameters:
      value - the freeCount - The number of products within the cart to give away free. (For standard BOGOF this is 1).
    • getMessageCouldHaveFired

      public String getMessageCouldHaveFired(SessionContext ctx)
      Generated method - Getter of the ProductBOGOFPromotion.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 ProductBOGOFPromotion.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 ProductBOGOFPromotion.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 ProductBOGOFPromotion.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 ProductBOGOFPromotion.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 ProductBOGOFPromotion.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 ProductBOGOFPromotion.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 ProductBOGOFPromotion.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 ProductBOGOFPromotion.messageFired attribute.
      Returns:
      the messageFired - The message to show when the promotion has fired.
    • getMessageFired

      public String getMessageFired()
      Generated method - Getter of the ProductBOGOFPromotion.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 ProductBOGOFPromotion.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 ProductBOGOFPromotion.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 ProductBOGOFPromotion.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 ProductBOGOFPromotion.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 ProductBOGOFPromotion.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 ProductBOGOFPromotion.messageFired attribute.
      Parameters:
      value - the messageFired - The message to show when the promotion has fired.
    • getQualifyingCount

      public Integer getQualifyingCount(SessionContext ctx)
      Generated method - Getter of the ProductBOGOFPromotion.qualifyingCount attribute.
      Returns:
      the qualifyingCount - The number of products required in the cart to activate the promotion. (For standard BOGOF this is 2).
    • getQualifyingCount

      public Integer getQualifyingCount()
      Generated method - Getter of the ProductBOGOFPromotion.qualifyingCount attribute.
      Returns:
      the qualifyingCount - The number of products required in the cart to activate the promotion. (For standard BOGOF this is 2).
    • getQualifyingCountAsPrimitive

      public int getQualifyingCountAsPrimitive(SessionContext ctx)
      Generated method - Getter of the ProductBOGOFPromotion.qualifyingCount attribute.
      Returns:
      the qualifyingCount - The number of products required in the cart to activate the promotion. (For standard BOGOF this is 2).
    • getQualifyingCountAsPrimitive

      public int getQualifyingCountAsPrimitive()
      Generated method - Getter of the ProductBOGOFPromotion.qualifyingCount attribute.
      Returns:
      the qualifyingCount - The number of products required in the cart to activate the promotion. (For standard BOGOF this is 2).
    • setQualifyingCount

      public void setQualifyingCount(SessionContext ctx, Integer value)
      Generated method - Setter of the ProductBOGOFPromotion.qualifyingCount attribute.
      Parameters:
      value - the qualifyingCount - The number of products required in the cart to activate the promotion. (For standard BOGOF this is 2).
    • setQualifyingCount

      public void setQualifyingCount(Integer value)
      Generated method - Setter of the ProductBOGOFPromotion.qualifyingCount attribute.
      Parameters:
      value - the qualifyingCount - The number of products required in the cart to activate the promotion. (For standard BOGOF this is 2).
    • setQualifyingCount

      public void setQualifyingCount(SessionContext ctx, int value)
      Generated method - Setter of the ProductBOGOFPromotion.qualifyingCount attribute.
      Parameters:
      value - the qualifyingCount - The number of products required in the cart to activate the promotion. (For standard BOGOF this is 2).
    • setQualifyingCount

      public void setQualifyingCount(int value)
      Generated method - Setter of the ProductBOGOFPromotion.qualifyingCount attribute.
      Parameters:
      value - the qualifyingCount - The number of products required in the cart to activate the promotion. (For standard BOGOF this is 2).