Class OrderThresholdDiscountPercentagePromotionModel

All Implemented Interfaces:
Serializable

public class OrderThresholdDiscountPercentagePromotionModel extends OrderPromotionModel
Generated model class for type OrderThresholdDiscountPercentagePromotion first defined at extension b2bacceleratorservices.
See Also:
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • THRESHOLDTOTALS

      public static final String THRESHOLDTOTALS
      Generated constant - Attribute key of OrderThresholdDiscountPercentagePromotion.thresholdTotals attribute defined at extension b2bacceleratorservices.
      See Also:
    • PERCENTAGEDISCOUNT

      public static final String PERCENTAGEDISCOUNT
      Generated constant - Attribute key of OrderThresholdDiscountPercentagePromotion.percentageDiscount attribute defined at extension b2bacceleratorservices.
      See Also:
    • MESSAGEFIRED

      public static final String MESSAGEFIRED
      Generated constant - Attribute key of OrderThresholdDiscountPercentagePromotion.messageFired attribute defined at extension b2bacceleratorservices.
      See Also:
    • MESSAGECOULDHAVEFIRED

      public static final String MESSAGECOULDHAVEFIRED
      Generated constant - Attribute key of OrderThresholdDiscountPercentagePromotion.messageCouldHaveFired attribute defined at extension b2bacceleratorservices.
      See Also:
  • Constructor Details

    • OrderThresholdDiscountPercentagePromotionModel

      public OrderThresholdDiscountPercentagePromotionModel()
      Generated constructor - Default constructor for generic creation.
    • OrderThresholdDiscountPercentagePromotionModel

      public OrderThresholdDiscountPercentagePromotionModel(ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • OrderThresholdDiscountPercentagePromotionModel

      @Deprecated(since="4.1.1", forRemoval=true) public OrderThresholdDiscountPercentagePromotionModel(String _code)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _code - initial attribute declared by type AbstractPromotion at extension promotions
    • OrderThresholdDiscountPercentagePromotionModel

      @Deprecated(since="4.1.1", forRemoval=true) public OrderThresholdDiscountPercentagePromotionModel(String _code, ItemModel _owner)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _code - initial attribute declared by type AbstractPromotion at extension promotions
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getMessageCouldHaveFired

      @Accessor(qualifier="messageCouldHaveFired", type=GETTER) public String getMessageCouldHaveFired()
      Generated method - Getter of the OrderThresholdDiscountPercentagePromotion.messageCouldHaveFired attribute defined at extension b2bacceleratorservices.
      Returns:
      the messageCouldHaveFired - The message to show when the promotion could have potentially fire.
    • getMessageCouldHaveFired

      @Accessor(qualifier="messageCouldHaveFired", type=GETTER) public String getMessageCouldHaveFired(Locale loc)
      Generated method - Getter of the OrderThresholdDiscountPercentagePromotion.messageCouldHaveFired attribute defined at extension b2bacceleratorservices.
      Parameters:
      loc - the value localization key
      Returns:
      the messageCouldHaveFired - The message to show when the promotion could have potentially fire.
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getMessageFired

      @Accessor(qualifier="messageFired", type=GETTER) public String getMessageFired()
      Generated method - Getter of the OrderThresholdDiscountPercentagePromotion.messageFired attribute defined at extension b2bacceleratorservices.
      Returns:
      the messageFired - The message to show when the promotion has fired.
    • getMessageFired

      @Accessor(qualifier="messageFired", type=GETTER) public String getMessageFired(Locale loc)
      Generated method - Getter of the OrderThresholdDiscountPercentagePromotion.messageFired attribute defined at extension b2bacceleratorservices.
      Parameters:
      loc - the value localization key
      Returns:
      the messageFired - The message to show when the promotion has fired.
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getPercentageDiscount

      @Accessor(qualifier="percentageDiscount", type=GETTER) public Double getPercentageDiscount()
      Generated method - Getter of the OrderThresholdDiscountPercentagePromotion.percentageDiscount attribute defined at extension b2bacceleratorservices.
      Returns:
      the percentageDiscount - Percentage discount.
    • getThresholdTotals

      @Accessor(qualifier="thresholdTotals", type=GETTER) public Collection<PromotionPriceRowModel> getThresholdTotals()
      Generated method - Getter of the OrderThresholdDiscountPercentagePromotion.thresholdTotals attribute defined at extension b2bacceleratorservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the thresholdTotals - The cart total value threshold in specific currencies.
    • setMessageCouldHaveFired

      @Accessor(qualifier="messageCouldHaveFired", type=SETTER) public void setMessageCouldHaveFired(String value)
      Generated method - Setter of OrderThresholdDiscountPercentagePromotion.messageCouldHaveFired attribute defined at extension b2bacceleratorservices.
      Parameters:
      value - the messageCouldHaveFired - The message to show when the promotion could have potentially fire.
    • setMessageCouldHaveFired

      @Accessor(qualifier="messageCouldHaveFired", type=SETTER) public void setMessageCouldHaveFired(String value, Locale loc)
      Generated method - Setter of OrderThresholdDiscountPercentagePromotion.messageCouldHaveFired attribute defined at extension b2bacceleratorservices.
      Parameters:
      value - the messageCouldHaveFired - The message to show when the promotion could have potentially fire.
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setMessageFired

      @Accessor(qualifier="messageFired", type=SETTER) public void setMessageFired(String value)
      Generated method - Setter of OrderThresholdDiscountPercentagePromotion.messageFired attribute defined at extension b2bacceleratorservices.
      Parameters:
      value - the messageFired - The message to show when the promotion has fired.
    • setMessageFired

      @Accessor(qualifier="messageFired", type=SETTER) public void setMessageFired(String value, Locale loc)
      Generated method - Setter of OrderThresholdDiscountPercentagePromotion.messageFired attribute defined at extension b2bacceleratorservices.
      Parameters:
      value - the messageFired - The message to show when the promotion has fired.
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setPercentageDiscount

      @Accessor(qualifier="percentageDiscount", type=SETTER) public void setPercentageDiscount(Double value)
      Generated method - Setter of OrderThresholdDiscountPercentagePromotion.percentageDiscount attribute defined at extension b2bacceleratorservices.
      Parameters:
      value - the percentageDiscount - Percentage discount.
    • setThresholdTotals

      @Accessor(qualifier="thresholdTotals", type=SETTER) public void setThresholdTotals(Collection<PromotionPriceRowModel> value)
      Generated method - Setter of OrderThresholdDiscountPercentagePromotion.thresholdTotals attribute defined at extension b2bacceleratorservices.
      Parameters:
      value - the thresholdTotals - The cart total value threshold in specific currencies.