Class OrderThresholdPerfectPartnerPromotionModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.promotions.model.AbstractPromotionModel
-
- de.hybris.platform.promotions.model.OrderPromotionModel
-
- de.hybris.platform.promotions.model.OrderThresholdPerfectPartnerPromotionModel
-
- All Implemented Interfaces:
java.io.Serializable
public class OrderThresholdPerfectPartnerPromotionModel extends OrderPromotionModel
Generated model class for type OrderThresholdPerfectPartnerPromotion first defined at extension promotions.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringDISCOUNTPRODUCTGenerated constant - Attribute key ofOrderThresholdPerfectPartnerPromotion.discountProductattribute defined at extensionpromotions.static java.lang.StringINCLUDEDISCOUNTEDPRICEINTHRESHOLDGenerated constant - Attribute key ofOrderThresholdPerfectPartnerPromotion.includeDiscountedPriceInThresholdattribute defined at extensionpromotions.static java.lang.StringMESSAGECOULDHAVEFIREDGenerated constant - Attribute key ofOrderThresholdPerfectPartnerPromotion.messageCouldHaveFiredattribute defined at extensionpromotions.static java.lang.StringMESSAGEFIREDGenerated constant - Attribute key ofOrderThresholdPerfectPartnerPromotion.messageFiredattribute defined at extensionpromotions.static java.lang.StringMESSAGEPRODUCTNOTHRESHOLDGenerated constant - Attribute key ofOrderThresholdPerfectPartnerPromotion.messageProductNoThresholdattribute defined at extensionpromotions.static java.lang.StringMESSAGETHRESHOLDNOPRODUCTGenerated constant - Attribute key ofOrderThresholdPerfectPartnerPromotion.messageThresholdNoProductattribute defined at extensionpromotions.static java.lang.StringPRODUCTPRICESGenerated constant - Attribute key ofOrderThresholdPerfectPartnerPromotion.productPricesattribute defined at extensionpromotions.static java.lang.StringTHRESHOLDTOTALSGenerated constant - Attribute key ofOrderThresholdPerfectPartnerPromotion.thresholdTotalsattribute defined at extensionpromotions.-
Fields inherited from class de.hybris.platform.promotions.model.AbstractPromotionModel
_PROMOTIONGROUPPROMOTIONSRELATION, CODE, DESCRIPTION, DETAILSURL, ENABLED, ENDDATE, IMMUTABLEKEY, IMMUTABLEKEYHASH, NAME, PRIORITY, PROMOTIONGROUP, PROMOTIONTYPE, RESTRICTIONS, STARTDATE, TITLE
-
Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description OrderThresholdPerfectPartnerPromotionModel()Generated constructor - Default constructor for generic creation.OrderThresholdPerfectPartnerPromotionModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing contextOrderThresholdPerfectPartnerPromotionModel(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 parametersOrderThresholdPerfectPartnerPromotionModel(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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProductModelgetDiscountProduct()Generated method - Getter of theOrderThresholdPerfectPartnerPromotion.discountProductattribute defined at extensionpromotions.java.lang.BooleangetIncludeDiscountedPriceInThreshold()Generated method - Getter of theOrderThresholdPerfectPartnerPromotion.includeDiscountedPriceInThresholdattribute defined at extensionpromotions.java.lang.StringgetMessageCouldHaveFired()Generated method - Getter of theOrderThresholdPerfectPartnerPromotion.messageCouldHaveFiredattribute defined at extensionpromotions.java.lang.StringgetMessageCouldHaveFired(java.util.Locale loc)Generated method - Getter of theOrderThresholdPerfectPartnerPromotion.messageCouldHaveFiredattribute defined at extensionpromotions.java.lang.StringgetMessageFired()Generated method - Getter of theOrderThresholdPerfectPartnerPromotion.messageFiredattribute defined at extensionpromotions.java.lang.StringgetMessageFired(java.util.Locale loc)Generated method - Getter of theOrderThresholdPerfectPartnerPromotion.messageFiredattribute defined at extensionpromotions.java.lang.StringgetMessageProductNoThreshold()Generated method - Getter of theOrderThresholdPerfectPartnerPromotion.messageProductNoThresholdattribute defined at extensionpromotions.java.lang.StringgetMessageProductNoThreshold(java.util.Locale loc)Generated method - Getter of theOrderThresholdPerfectPartnerPromotion.messageProductNoThresholdattribute defined at extensionpromotions.java.lang.StringgetMessageThresholdNoProduct()Generated method - Getter of theOrderThresholdPerfectPartnerPromotion.messageThresholdNoProductattribute defined at extensionpromotions.java.lang.StringgetMessageThresholdNoProduct(java.util.Locale loc)Generated method - Getter of theOrderThresholdPerfectPartnerPromotion.messageThresholdNoProductattribute defined at extensionpromotions.java.util.Collection<PromotionPriceRowModel>getProductPrices()Generated method - Getter of theOrderThresholdPerfectPartnerPromotion.productPricesattribute defined at extensionpromotions.java.util.Collection<PromotionPriceRowModel>getThresholdTotals()Generated method - Getter of theOrderThresholdPerfectPartnerPromotion.thresholdTotalsattribute defined at extensionpromotions.voidsetDiscountProduct(ProductModel value)Generated method - Setter ofOrderThresholdPerfectPartnerPromotion.discountProductattribute defined at extensionpromotions.voidsetIncludeDiscountedPriceInThreshold(java.lang.Boolean value)Generated method - Setter ofOrderThresholdPerfectPartnerPromotion.includeDiscountedPriceInThresholdattribute defined at extensionpromotions.voidsetMessageCouldHaveFired(java.lang.String value)Generated method - Setter ofOrderThresholdPerfectPartnerPromotion.messageCouldHaveFiredattribute defined at extensionpromotions.voidsetMessageCouldHaveFired(java.lang.String value, java.util.Locale loc)Generated method - Setter ofOrderThresholdPerfectPartnerPromotion.messageCouldHaveFiredattribute defined at extensionpromotions.voidsetMessageFired(java.lang.String value)Generated method - Setter ofOrderThresholdPerfectPartnerPromotion.messageFiredattribute defined at extensionpromotions.voidsetMessageFired(java.lang.String value, java.util.Locale loc)Generated method - Setter ofOrderThresholdPerfectPartnerPromotion.messageFiredattribute defined at extensionpromotions.voidsetMessageProductNoThreshold(java.lang.String value)Generated method - Setter ofOrderThresholdPerfectPartnerPromotion.messageProductNoThresholdattribute defined at extensionpromotions.voidsetMessageProductNoThreshold(java.lang.String value, java.util.Locale loc)Generated method - Setter ofOrderThresholdPerfectPartnerPromotion.messageProductNoThresholdattribute defined at extensionpromotions.voidsetMessageThresholdNoProduct(java.lang.String value)Generated method - Setter ofOrderThresholdPerfectPartnerPromotion.messageThresholdNoProductattribute defined at extensionpromotions.voidsetMessageThresholdNoProduct(java.lang.String value, java.util.Locale loc)Generated method - Setter ofOrderThresholdPerfectPartnerPromotion.messageThresholdNoProductattribute defined at extensionpromotions.voidsetProductPrices(java.util.Collection<PromotionPriceRowModel> value)Generated method - Setter ofOrderThresholdPerfectPartnerPromotion.productPricesattribute defined at extensionpromotions.voidsetThresholdTotals(java.util.Collection<PromotionPriceRowModel> value)Generated method - Setter ofOrderThresholdPerfectPartnerPromotion.thresholdTotalsattribute defined at extensionpromotions.-
Methods inherited from class de.hybris.platform.promotions.model.AbstractPromotionModel
getCode, getDescription, getDetailsURL, getEnabled, getEndDate, getImmutableKey, getImmutableKeyHash, getName, getName, getPriority, getPromotionGroup, getPromotionType, getPromotionType, getRestrictions, getStartDate, getTitle, setCode, setDescription, setDetailsURL, setEnabled, setEndDate, setImmutableKey, setImmutableKeyHash, setName, setName, setPriority, setPromotionGroup, setRestrictions, setStartDate, setTitle
-
Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner
-
Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace
-
-
-
-
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 ofOrderThresholdPerfectPartnerPromotion.thresholdTotalsattribute defined at extensionpromotions.- See Also:
- Constant Field Values
-
DISCOUNTPRODUCT
public static final java.lang.String DISCOUNTPRODUCT
Generated constant - Attribute key ofOrderThresholdPerfectPartnerPromotion.discountProductattribute defined at extensionpromotions.- See Also:
- Constant Field Values
-
PRODUCTPRICES
public static final java.lang.String PRODUCTPRICES
Generated constant - Attribute key ofOrderThresholdPerfectPartnerPromotion.productPricesattribute defined at extensionpromotions.- See Also:
- Constant Field Values
-
INCLUDEDISCOUNTEDPRICEINTHRESHOLD
public static final java.lang.String INCLUDEDISCOUNTEDPRICEINTHRESHOLD
Generated constant - Attribute key ofOrderThresholdPerfectPartnerPromotion.includeDiscountedPriceInThresholdattribute defined at extensionpromotions.- See Also:
- Constant Field Values
-
MESSAGEFIRED
public static final java.lang.String MESSAGEFIRED
Generated constant - Attribute key ofOrderThresholdPerfectPartnerPromotion.messageFiredattribute defined at extensionpromotions.- See Also:
- Constant Field Values
-
MESSAGECOULDHAVEFIRED
public static final java.lang.String MESSAGECOULDHAVEFIRED
Generated constant - Attribute key ofOrderThresholdPerfectPartnerPromotion.messageCouldHaveFiredattribute defined at extensionpromotions.- See Also:
- Constant Field Values
-
MESSAGEPRODUCTNOTHRESHOLD
public static final java.lang.String MESSAGEPRODUCTNOTHRESHOLD
Generated constant - Attribute key ofOrderThresholdPerfectPartnerPromotion.messageProductNoThresholdattribute defined at extensionpromotions.- See Also:
- Constant Field Values
-
MESSAGETHRESHOLDNOPRODUCT
public static final java.lang.String MESSAGETHRESHOLDNOPRODUCT
Generated constant - Attribute key ofOrderThresholdPerfectPartnerPromotion.messageThresholdNoProductattribute defined at extensionpromotions.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OrderThresholdPerfectPartnerPromotionModel
public OrderThresholdPerfectPartnerPromotionModel()
Generated constructor - Default constructor for generic creation.
-
OrderThresholdPerfectPartnerPromotionModel
public OrderThresholdPerfectPartnerPromotionModel(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(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 parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_code- initial attribute declared by typeAbstractPromotionat extensionpromotions
-
OrderThresholdPerfectPartnerPromotionModel
@Deprecated(since="4.1.1", forRemoval=true) public OrderThresholdPerfectPartnerPromotionModel(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 parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_code- initial attribute declared by typeAbstractPromotionat extensionpromotions_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Detail
-
getDiscountProduct
@Accessor(qualifier="discountProduct", type=GETTER) public ProductModel getDiscountProduct()
Generated method - Getter of theOrderThresholdPerfectPartnerPromotion.discountProductattribute defined at extensionpromotions.- Returns:
- the discountProduct - The product to discount if it is in the cart.
-
getIncludeDiscountedPriceInThreshold
@Accessor(qualifier="includeDiscountedPriceInThreshold", type=GETTER) public java.lang.Boolean getIncludeDiscountedPriceInThreshold()
Generated method - Getter of theOrderThresholdPerfectPartnerPromotion.includeDiscountedPriceInThresholdattribute defined at extensionpromotions.- 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 java.lang.String getMessageCouldHaveFired()
Generated method - Getter of theOrderThresholdPerfectPartnerPromotion.messageCouldHaveFiredattribute defined at extensionpromotions.- 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 theOrderThresholdPerfectPartnerPromotion.messageCouldHaveFiredattribute defined at extensionpromotions.- 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 theOrderThresholdPerfectPartnerPromotion.messageFiredattribute defined at extensionpromotions.- 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 theOrderThresholdPerfectPartnerPromotion.messageFiredattribute defined at extensionpromotions.- 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
-
getMessageProductNoThreshold
@Accessor(qualifier="messageProductNoThreshold", type=GETTER) public java.lang.String getMessageProductNoThreshold()
Generated method - Getter of theOrderThresholdPerfectPartnerPromotion.messageProductNoThresholdattribute defined at extensionpromotions.- 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 java.lang.String getMessageProductNoThreshold(java.util.Locale loc)
Generated method - Getter of theOrderThresholdPerfectPartnerPromotion.messageProductNoThresholdattribute defined at extensionpromotions.- 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:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
getMessageThresholdNoProduct
@Accessor(qualifier="messageThresholdNoProduct", type=GETTER) public java.lang.String getMessageThresholdNoProduct()
Generated method - Getter of theOrderThresholdPerfectPartnerPromotion.messageThresholdNoProductattribute defined at extensionpromotions.- 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 java.lang.String getMessageThresholdNoProduct(java.util.Locale loc)
Generated method - Getter of theOrderThresholdPerfectPartnerPromotion.messageThresholdNoProductattribute defined at extensionpromotions.- 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:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
getProductPrices
@Accessor(qualifier="productPrices", type=GETTER) public java.util.Collection<PromotionPriceRowModel> getProductPrices()
Generated method - Getter of theOrderThresholdPerfectPartnerPromotion.productPricesattribute defined at extensionpromotions. 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 java.util.Collection<PromotionPriceRowModel> getThresholdTotals()
Generated method - Getter of theOrderThresholdPerfectPartnerPromotion.thresholdTotalsattribute defined at extensionpromotions. 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 ofOrderThresholdPerfectPartnerPromotion.discountProductattribute defined at extensionpromotions.- Parameters:
value- the discountProduct - The product to discount if it is in the cart.
-
setIncludeDiscountedPriceInThreshold
@Accessor(qualifier="includeDiscountedPriceInThreshold", type=SETTER) public void setIncludeDiscountedPriceInThreshold(java.lang.Boolean value)
Generated method - Setter ofOrderThresholdPerfectPartnerPromotion.includeDiscountedPriceInThresholdattribute defined at extensionpromotions.- 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(java.lang.String value)
Generated method - Setter ofOrderThresholdPerfectPartnerPromotion.messageCouldHaveFiredattribute defined at extensionpromotions.- 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 ofOrderThresholdPerfectPartnerPromotion.messageCouldHaveFiredattribute defined at extensionpromotions.- 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 ofOrderThresholdPerfectPartnerPromotion.messageFiredattribute defined at extensionpromotions.- 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 ofOrderThresholdPerfectPartnerPromotion.messageFiredattribute defined at extensionpromotions.- 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
-
setMessageProductNoThreshold
@Accessor(qualifier="messageProductNoThreshold", type=SETTER) public void setMessageProductNoThreshold(java.lang.String value)
Generated method - Setter ofOrderThresholdPerfectPartnerPromotion.messageProductNoThresholdattribute defined at extensionpromotions.- 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(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofOrderThresholdPerfectPartnerPromotion.messageProductNoThresholdattribute defined at extensionpromotions.- 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:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
setMessageThresholdNoProduct
@Accessor(qualifier="messageThresholdNoProduct", type=SETTER) public void setMessageThresholdNoProduct(java.lang.String value)
Generated method - Setter ofOrderThresholdPerfectPartnerPromotion.messageThresholdNoProductattribute defined at extensionpromotions.- 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(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofOrderThresholdPerfectPartnerPromotion.messageThresholdNoProductattribute defined at extensionpromotions.- 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:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
setProductPrices
@Accessor(qualifier="productPrices", type=SETTER) public void setProductPrices(java.util.Collection<PromotionPriceRowModel> value)
Generated method - Setter ofOrderThresholdPerfectPartnerPromotion.productPricesattribute defined at extensionpromotions.- Parameters:
value- the productPrices - Fixed price for discounted product in specific currencies.
-
setThresholdTotals
@Accessor(qualifier="thresholdTotals", type=SETTER) public void setThresholdTotals(java.util.Collection<PromotionPriceRowModel> value)
Generated method - Setter ofOrderThresholdPerfectPartnerPromotion.thresholdTotalsattribute defined at extensionpromotions.- Parameters:
value- the thresholdTotals - The cart total value threshold in specific currencies.
-
-