Class ProductFixedPricePromotionModel

All Implemented Interfaces:
Serializable

public class ProductFixedPricePromotionModel extends ProductPromotionModel
Generated model class for type ProductFixedPricePromotion first defined at extension promotions.
See Also:
  • Field Details

    • _TYPECODE

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

      public static final String PRODUCTFIXEDUNITPRICE
      Generated constant - Attribute key of ProductFixedPricePromotion.productFixedUnitPrice attribute defined at extension promotions.
      See Also:
    • MESSAGEFIRED

      public static final String MESSAGEFIRED
      Generated constant - Attribute key of ProductFixedPricePromotion.messageFired attribute defined at extension promotions.
      See Also:
  • Constructor Details

    • ProductFixedPricePromotionModel

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

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

      @Deprecated(since="4.1.1", forRemoval=true) public ProductFixedPricePromotionModel(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
    • ProductFixedPricePromotionModel

      @Deprecated(since="4.1.1", forRemoval=true) public ProductFixedPricePromotionModel(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

    • getMessageFired

      @Accessor(qualifier="messageFired", type=GETTER) public String getMessageFired()
      Generated method - Getter of the ProductFixedPricePromotion.messageFired attribute defined at extension promotions.
      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 ProductFixedPricePromotion.messageFired attribute defined at extension promotions.
      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
    • getProductFixedUnitPrice

      @Accessor(qualifier="productFixedUnitPrice", type=GETTER) public Collection<PromotionPriceRowModel> getProductFixedUnitPrice()
      Generated method - Getter of the ProductFixedPricePromotion.productFixedUnitPrice attribute defined at extension promotions. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the productFixedUnitPrice - Fixed price to sell the product at in specific currencies.
    • setMessageFired

      @Accessor(qualifier="messageFired", type=SETTER) public void setMessageFired(String value)
      Generated method - Setter of ProductFixedPricePromotion.messageFired attribute defined at extension promotions.
      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 ProductFixedPricePromotion.messageFired attribute defined at extension promotions.
      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
    • setProductFixedUnitPrice

      @Accessor(qualifier="productFixedUnitPrice", type=SETTER) public void setProductFixedUnitPrice(Collection<PromotionPriceRowModel> value)
      Generated method - Setter of ProductFixedPricePromotion.productFixedUnitPrice attribute defined at extension promotions.
      Parameters:
      value - the productFixedUnitPrice - Fixed price to sell the product at in specific currencies.