Class ProductThresholdPriceDiscountPromotionModel
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.ProductPromotionModel
de.hybris.platform.b2bacceleratorservices.model.promotions.ProductThresholdPriceDiscountPromotionModel
- All Implemented Interfaces:
Serializable
Generated model class for type ProductThresholdPriceDiscountPromotion first defined at extension b2bacceleratorservices.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.servicelayer.model.AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofProductThresholdPriceDiscountPromotion.messageCouldHaveFiredattribute defined at extensionb2bacceleratorservices.static final StringGenerated constant - Attribute key ofProductThresholdPriceDiscountPromotion.messageFiredattribute defined at extensionb2bacceleratorservices.static final StringGenerated constant - Attribute key ofProductThresholdPriceDiscountPromotion.productPriceDiscountattribute defined at extensionb2bacceleratorservices.static final StringGenerated constant - Attribute key ofProductThresholdPriceDiscountPromotion.productThresholdPriceattribute defined at extensionb2bacceleratorservices.Fields inherited from class de.hybris.platform.promotions.model.ProductPromotionModel
_CATEGORYPROMOTIONRELATION, _PRODUCTPROMOTIONRELATION, CATEGORIES, PRODUCTBANNER, PRODUCTSFields inherited from class de.hybris.platform.promotions.model.AbstractPromotionModel
_PROMOTIONGROUPPROMOTIONSRELATION, CODE, DESCRIPTION, DETAILSURL, ENABLED, ENDDATE, IMMUTABLEKEY, IMMUTABLEKEYHASH, NAME, PRIORITY, PROMOTIONGROUP, PROMOTIONTYPE, RESTRICTIONS, STARTDATE, TITLEFields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.ProductThresholdPriceDiscountPromotionModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing contextDeprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersProductThresholdPriceDiscountPromotionModel(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
Modifier and TypeMethodDescriptionGenerated method - Getter of theProductThresholdPriceDiscountPromotion.messageCouldHaveFiredattribute defined at extensionb2bacceleratorservices.Generated method - Getter of theProductThresholdPriceDiscountPromotion.messageCouldHaveFiredattribute defined at extensionb2bacceleratorservices.Generated method - Getter of theProductThresholdPriceDiscountPromotion.messageFiredattribute defined at extensionb2bacceleratorservices.getMessageFired(Locale loc) Generated method - Getter of theProductThresholdPriceDiscountPromotion.messageFiredattribute defined at extensionb2bacceleratorservices.Generated method - Getter of theProductThresholdPriceDiscountPromotion.productPriceDiscountattribute defined at extensionb2bacceleratorservices.Generated method - Getter of theProductThresholdPriceDiscountPromotion.productThresholdPriceattribute defined at extensionb2bacceleratorservices.voidsetMessageCouldHaveFired(String value) Generated method - Setter ofProductThresholdPriceDiscountPromotion.messageCouldHaveFiredattribute defined at extensionb2bacceleratorservices.voidsetMessageCouldHaveFired(String value, Locale loc) Generated method - Setter ofProductThresholdPriceDiscountPromotion.messageCouldHaveFiredattribute defined at extensionb2bacceleratorservices.voidsetMessageFired(String value) Generated method - Setter ofProductThresholdPriceDiscountPromotion.messageFiredattribute defined at extensionb2bacceleratorservices.voidsetMessageFired(String value, Locale loc) Generated method - Setter ofProductThresholdPriceDiscountPromotion.messageFiredattribute defined at extensionb2bacceleratorservices.voidGenerated method - Setter ofProductThresholdPriceDiscountPromotion.productPriceDiscountattribute defined at extensionb2bacceleratorservices.voidGenerated method - Setter ofProductThresholdPriceDiscountPromotion.productThresholdPriceattribute defined at extensionb2bacceleratorservices.Methods inherited from class de.hybris.platform.promotions.model.ProductPromotionModel
getCategories, getProductBanner, getProducts, setCategories, setProductBanner, setProductsMethods 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, setTitleMethods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerMethods 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 Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
PRODUCTTHRESHOLDPRICE
Generated constant - Attribute key ofProductThresholdPriceDiscountPromotion.productThresholdPriceattribute defined at extensionb2bacceleratorservices.- See Also:
-
PRODUCTPRICEDISCOUNT
Generated constant - Attribute key ofProductThresholdPriceDiscountPromotion.productPriceDiscountattribute defined at extensionb2bacceleratorservices.- See Also:
-
MESSAGEFIRED
Generated constant - Attribute key ofProductThresholdPriceDiscountPromotion.messageFiredattribute defined at extensionb2bacceleratorservices.- See Also:
-
MESSAGECOULDHAVEFIRED
Generated constant - Attribute key ofProductThresholdPriceDiscountPromotion.messageCouldHaveFiredattribute defined at extensionb2bacceleratorservices.- See Also:
-
-
Constructor Details
-
ProductThresholdPriceDiscountPromotionModel
public ProductThresholdPriceDiscountPromotionModel()Generated constructor - Default constructor for generic creation. -
ProductThresholdPriceDiscountPromotionModel
public ProductThresholdPriceDiscountPromotionModel(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
-
ProductThresholdPriceDiscountPromotionModel
@Deprecated(since="4.1.1", forRemoval=true) public ProductThresholdPriceDiscountPromotionModel(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
-
ProductThresholdPriceDiscountPromotionModel
@Deprecated(since="4.1.1", forRemoval=true) public ProductThresholdPriceDiscountPromotionModel(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 Details
-
getMessageCouldHaveFired
Generated method - Getter of theProductThresholdPriceDiscountPromotion.messageCouldHaveFiredattribute defined at extensionb2bacceleratorservices.- 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 theProductThresholdPriceDiscountPromotion.messageCouldHaveFiredattribute defined at extensionb2bacceleratorservices.- 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
Generated method - Getter of theProductThresholdPriceDiscountPromotion.messageFiredattribute defined at extensionb2bacceleratorservices.- Returns:
- the messageFired - The message to show when the promotion has fired.
-
getMessageFired
Generated method - Getter of theProductThresholdPriceDiscountPromotion.messageFiredattribute defined at extensionb2bacceleratorservices.- 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
-
getProductPriceDiscount
@Accessor(qualifier="productPriceDiscount", type=GETTER) public Collection<PromotionPriceRowModel> getProductPriceDiscount()Generated method - Getter of theProductThresholdPriceDiscountPromotion.productPriceDiscountattribute defined at extensionb2bacceleratorservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the productPriceDiscount - Fixed price for discount in specific currencies.
-
getProductThresholdPrice
@Accessor(qualifier="productThresholdPrice", type=GETTER) public Collection<PromotionPriceRowModel> getProductThresholdPrice()Generated method - Getter of theProductThresholdPriceDiscountPromotion.productThresholdPriceattribute defined at extensionb2bacceleratorservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the productThresholdPrice - The cart total value threshold in specific currencies.
-
setMessageCouldHaveFired
@Accessor(qualifier="messageCouldHaveFired", type=SETTER) public void setMessageCouldHaveFired(String value) Generated method - Setter ofProductThresholdPriceDiscountPromotion.messageCouldHaveFiredattribute defined at extensionb2bacceleratorservices.- 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 ofProductThresholdPriceDiscountPromotion.messageCouldHaveFiredattribute defined at extensionb2bacceleratorservices.- 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
Generated method - Setter ofProductThresholdPriceDiscountPromotion.messageFiredattribute defined at extensionb2bacceleratorservices.- 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 ofProductThresholdPriceDiscountPromotion.messageFiredattribute defined at extensionb2bacceleratorservices.- 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
-
setProductPriceDiscount
@Accessor(qualifier="productPriceDiscount", type=SETTER) public void setProductPriceDiscount(Collection<PromotionPriceRowModel> value) Generated method - Setter ofProductThresholdPriceDiscountPromotion.productPriceDiscountattribute defined at extensionb2bacceleratorservices.- Parameters:
value- the productPriceDiscount - Fixed price for discount in specific currencies.
-
setProductThresholdPrice
@Accessor(qualifier="productThresholdPrice", type=SETTER) public void setProductThresholdPrice(Collection<PromotionPriceRowModel> value) Generated method - Setter ofProductThresholdPriceDiscountPromotion.productThresholdPriceattribute defined at extensionb2bacceleratorservices.- Parameters:
value- the productThresholdPrice - The cart total value threshold in specific currencies.
-