Class OrderThresholdFreeGiftPromotionModel

  • All Implemented Interfaces:
    java.io.Serializable

    public class OrderThresholdFreeGiftPromotionModel
    extends OrderPromotionModel
    Generated model class for type OrderThresholdFreeGiftPromotion first defined at extension promotions.
    See Also:
    Serialized Form
    • Field Detail

      • _TYPECODE

        public static final java.lang.String _TYPECODE
        Generated model type code constant.
        See Also:
        Constant Field Values
      • THRESHOLDTOTALS

        public static final java.lang.String THRESHOLDTOTALS
        Generated constant - Attribute key of OrderThresholdFreeGiftPromotion.thresholdTotals attribute defined at extension promotions.
        See Also:
        Constant Field Values
      • GIFTPRODUCT

        public static final java.lang.String GIFTPRODUCT
        Generated constant - Attribute key of OrderThresholdFreeGiftPromotion.giftProduct attribute defined at extension promotions.
        See Also:
        Constant Field Values
      • MESSAGEFIRED

        public static final java.lang.String MESSAGEFIRED
        Generated constant - Attribute key of OrderThresholdFreeGiftPromotion.messageFired attribute defined at extension promotions.
        See Also:
        Constant Field Values
      • MESSAGECOULDHAVEFIRED

        public static final java.lang.String MESSAGECOULDHAVEFIRED
        Generated constant - Attribute key of OrderThresholdFreeGiftPromotion.messageCouldHaveFired attribute defined at extension promotions.
        See Also:
        Constant Field Values
    • Constructor Detail

      • OrderThresholdFreeGiftPromotionModel

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

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

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public OrderThresholdFreeGiftPromotionModel​(java.lang.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
      • OrderThresholdFreeGiftPromotionModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public OrderThresholdFreeGiftPromotionModel​(java.lang.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 Detail

      • getGiftProduct

        @Accessor(qualifier="giftProduct",
                  type=GETTER)
        public ProductModel getGiftProduct()
        Generated method - Getter of the OrderThresholdFreeGiftPromotion.giftProduct attribute defined at extension promotions.
        Returns:
        the giftProduct - The free gift product to add to the cart.
      • getMessageCouldHaveFired

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

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

        @Accessor(qualifier="messageFired",
                  type=GETTER)
        public java.lang.String getMessageFired()
        Generated method - Getter of the OrderThresholdFreeGiftPromotion.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 java.lang.String getMessageFired​(java.util.Locale loc)
        Generated method - Getter of the OrderThresholdFreeGiftPromotion.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:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • getThresholdTotals

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

        @Accessor(qualifier="giftProduct",
                  type=SETTER)
        public void setGiftProduct​(ProductModel value)
        Generated method - Setter of OrderThresholdFreeGiftPromotion.giftProduct attribute defined at extension promotions.
        Parameters:
        value - the giftProduct - The free gift product to add to the cart.
      • setMessageCouldHaveFired

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

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

        @Accessor(qualifier="messageFired",
                  type=SETTER)
        public void setMessageFired​(java.lang.String value)
        Generated method - Setter of OrderThresholdFreeGiftPromotion.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​(java.lang.String value,
                                    java.util.Locale loc)
        Generated method - Setter of OrderThresholdFreeGiftPromotion.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:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • setThresholdTotals

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