Class OrderThresholdPerfectPartnerPromotionModel

java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
All Implemented Interfaces:
Serializable

public class OrderThresholdPerfectPartnerPromotionModel extends OrderPromotionModel
Generated model class for type OrderThresholdPerfectPartnerPromotion first defined at extension promotions.
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 OrderThresholdPerfectPartnerPromotion.thresholdTotals attribute defined at extension promotions.
      See Also:
    • DISCOUNTPRODUCT

      public static final String DISCOUNTPRODUCT
      Generated constant - Attribute key of OrderThresholdPerfectPartnerPromotion.discountProduct attribute defined at extension promotions.
      See Also:
    • PRODUCTPRICES

      public static final String PRODUCTPRICES
      Generated constant - Attribute key of OrderThresholdPerfectPartnerPromotion.productPrices attribute defined at extension promotions.
      See Also:
    • INCLUDEDISCOUNTEDPRICEINTHRESHOLD

      public static final String INCLUDEDISCOUNTEDPRICEINTHRESHOLD
      Generated constant - Attribute key of OrderThresholdPerfectPartnerPromotion.includeDiscountedPriceInThreshold attribute defined at extension promotions.
      See Also:
    • MESSAGEFIRED

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

      public static final String MESSAGECOULDHAVEFIRED
      Generated constant - Attribute key of OrderThresholdPerfectPartnerPromotion.messageCouldHaveFired attribute defined at extension promotions.
      See Also:
    • MESSAGEPRODUCTNOTHRESHOLD

      public static final String MESSAGEPRODUCTNOTHRESHOLD
      Generated constant - Attribute key of OrderThresholdPerfectPartnerPromotion.messageProductNoThreshold attribute defined at extension promotions.
      See Also:
    • MESSAGETHRESHOLDNOPRODUCT

      public static final String MESSAGETHRESHOLDNOPRODUCT
      Generated constant - Attribute key of OrderThresholdPerfectPartnerPromotion.messageThresholdNoProduct attribute defined at extension promotions.
      See Also:
  • Constructor Details

    • OrderThresholdPerfectPartnerPromotionModel

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

      public OrderThresholdPerfectPartnerPromotionModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • OrderThresholdPerfectPartnerPromotionModel

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

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

    • getDiscountProduct

      @Accessor(qualifier="discountProduct", type=GETTER) public ProductModel getDiscountProduct()
      Generated method - Getter of the OrderThresholdPerfectPartnerPromotion.discountProduct attribute defined at extension promotions.
      Returns:
      the discountProduct - The product to discount if it is in the cart.
    • getIncludeDiscountedPriceInThreshold

      @Accessor(qualifier="includeDiscountedPriceInThreshold", type=GETTER) public Boolean getIncludeDiscountedPriceInThreshold()
      Generated method - Getter of the OrderThresholdPerfectPartnerPromotion.includeDiscountedPriceInThreshold attribute defined at extension promotions.
      Returns:
      the includeDiscountedPriceInThreshold - Flag to indicate if the discounted price of the product is allowed to count towards the threshold, otherwise it does not count towards the threshold.
    • getMessageCouldHaveFired

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

      @Accessor(qualifier="messageFired", type=GETTER) public String getMessageFired()
      Generated method - Getter of the OrderThresholdPerfectPartnerPromotion.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 OrderThresholdPerfectPartnerPromotion.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
    • getMessageProductNoThreshold

      @Accessor(qualifier="messageProductNoThreshold", type=GETTER) public String getMessageProductNoThreshold()
      Generated method - Getter of the OrderThresholdPerfectPartnerPromotion.messageProductNoThreshold attribute defined at extension promotions.
      Returns:
      the messageProductNoThreshold - The message to show when there is a partner product but the threshold has not been reached.
    • getMessageProductNoThreshold

      @Accessor(qualifier="messageProductNoThreshold", type=GETTER) public String getMessageProductNoThreshold(Locale loc)
      Generated method - Getter of the OrderThresholdPerfectPartnerPromotion.messageProductNoThreshold attribute defined at extension promotions.
      Parameters:
      loc - the value localization key
      Returns:
      the messageProductNoThreshold - The message to show when there is a partner product but the threshold has not been reached.
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getMessageThresholdNoProduct

      @Accessor(qualifier="messageThresholdNoProduct", type=GETTER) public String getMessageThresholdNoProduct()
      Generated method - Getter of the OrderThresholdPerfectPartnerPromotion.messageThresholdNoProduct attribute defined at extension promotions.
      Returns:
      the messageThresholdNoProduct - The message to show when the threshold is reached, but there is no partner product.
    • getMessageThresholdNoProduct

      @Accessor(qualifier="messageThresholdNoProduct", type=GETTER) public String getMessageThresholdNoProduct(Locale loc)
      Generated method - Getter of the OrderThresholdPerfectPartnerPromotion.messageThresholdNoProduct attribute defined at extension promotions.
      Parameters:
      loc - the value localization key
      Returns:
      the messageThresholdNoProduct - The message to show when the threshold is reached, but there is no partner product.
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getProductPrices

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

      @Accessor(qualifier="thresholdTotals", type=GETTER) public Collection<PromotionPriceRowModel> getThresholdTotals()
      Generated method - Getter of the OrderThresholdPerfectPartnerPromotion.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.
    • setDiscountProduct

      @Accessor(qualifier="discountProduct", type=SETTER) public void setDiscountProduct(ProductModel value)
      Generated method - Setter of OrderThresholdPerfectPartnerPromotion.discountProduct attribute defined at extension promotions.
      Parameters:
      value - the discountProduct - The product to discount if it is in the cart.
    • setIncludeDiscountedPriceInThreshold

      @Accessor(qualifier="includeDiscountedPriceInThreshold", type=SETTER) public void setIncludeDiscountedPriceInThreshold(Boolean value)
      Generated method - Setter of OrderThresholdPerfectPartnerPromotion.includeDiscountedPriceInThreshold attribute defined at extension promotions.
      Parameters:
      value - the includeDiscountedPriceInThreshold - Flag to indicate if the discounted price of the product is allowed to count towards the threshold, otherwise it does not count towards the threshold.
    • setMessageCouldHaveFired

      @Accessor(qualifier="messageCouldHaveFired", type=SETTER) public void setMessageCouldHaveFired(String value)
      Generated method - Setter of OrderThresholdPerfectPartnerPromotion.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(String value, Locale loc)
      Generated method - Setter of OrderThresholdPerfectPartnerPromotion.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:
      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 OrderThresholdPerfectPartnerPromotion.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 OrderThresholdPerfectPartnerPromotion.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
    • setMessageProductNoThreshold

      @Accessor(qualifier="messageProductNoThreshold", type=SETTER) public void setMessageProductNoThreshold(String value)
      Generated method - Setter of OrderThresholdPerfectPartnerPromotion.messageProductNoThreshold attribute defined at extension promotions.
      Parameters:
      value - the messageProductNoThreshold - The message to show when there is a partner product but the threshold has not been reached.
    • setMessageProductNoThreshold

      @Accessor(qualifier="messageProductNoThreshold", type=SETTER) public void setMessageProductNoThreshold(String value, Locale loc)
      Generated method - Setter of OrderThresholdPerfectPartnerPromotion.messageProductNoThreshold attribute defined at extension promotions.
      Parameters:
      value - the messageProductNoThreshold - The message to show when there is a partner product but the threshold has not been reached.
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setMessageThresholdNoProduct

      @Accessor(qualifier="messageThresholdNoProduct", type=SETTER) public void setMessageThresholdNoProduct(String value)
      Generated method - Setter of OrderThresholdPerfectPartnerPromotion.messageThresholdNoProduct attribute defined at extension promotions.
      Parameters:
      value - the messageThresholdNoProduct - The message to show when the threshold is reached, but there is no partner product.
    • setMessageThresholdNoProduct

      @Accessor(qualifier="messageThresholdNoProduct", type=SETTER) public void setMessageThresholdNoProduct(String value, Locale loc)
      Generated method - Setter of OrderThresholdPerfectPartnerPromotion.messageThresholdNoProduct attribute defined at extension promotions.
      Parameters:
      value - the messageThresholdNoProduct - The message to show when the threshold is reached, but there is no partner product.
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setProductPrices

      @Accessor(qualifier="productPrices", type=SETTER) public void setProductPrices(Collection<PromotionPriceRowModel> value)
      Generated method - Setter of OrderThresholdPerfectPartnerPromotion.productPrices attribute defined at extension promotions.
      Parameters:
      value - the productPrices - Fixed price for discounted product in specific currencies.
    • setThresholdTotals

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