public class ProductBOGOFPromotionModel extends ProductPromotionModel
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static String |
_TYPECODE
Generated model type code constant.
|
static String |
FREECOUNT
Generated constant - Attribute key of
ProductBOGOFPromotion.freeCount attribute defined at extension promotions. |
static String |
MESSAGECOULDHAVEFIRED
Generated constant - Attribute key of
ProductBOGOFPromotion.messageCouldHaveFired attribute defined at extension promotions. |
static String |
MESSAGEFIRED
Generated constant - Attribute key of
ProductBOGOFPromotion.messageFired attribute defined at extension promotions. |
static String |
QUALIFYINGCOUNT
Generated constant - Attribute key of
ProductBOGOFPromotion.qualifyingCount attribute defined at extension promotions. |
_CATEGORYPROMOTIONRELATION, _PRODUCTPROMOTIONRELATION, CATEGORIES, PRODUCTBANNER, PRODUCTS, SPECIALDISCOUNT_PROMOTIONGROUPPROMOTIONSRELATION, CODE, DESCRIPTION, DETAILSURL, ENABLED, ENDDATE, IMMUTABLEKEY, IMMUTABLEKEYHASH, NAME, PRIORITY, PROMOTIONGROUP, PROMOTIONTYPE, RESTRICTIONS, STARTDATE, TITLE_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PKLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
ProductBOGOFPromotionModel()
Generated constructor - Default constructor for generic creation.
|
ProductBOGOFPromotionModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
ProductBOGOFPromotionModel(String _code)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
ProductBOGOFPromotionModel(String _code,
ItemModel _owner)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
getFreeCount()
Generated method - Getter of the
ProductBOGOFPromotion.freeCount attribute defined at extension promotions. |
String |
getMessageCouldHaveFired()
Generated method - Getter of the
ProductBOGOFPromotion.messageCouldHaveFired attribute defined at extension promotions. |
String |
getMessageCouldHaveFired(Locale loc)
Generated method - Getter of the
ProductBOGOFPromotion.messageCouldHaveFired attribute defined at extension promotions. |
String |
getMessageFired()
Generated method - Getter of the
ProductBOGOFPromotion.messageFired attribute defined at extension promotions. |
String |
getMessageFired(Locale loc)
Generated method - Getter of the
ProductBOGOFPromotion.messageFired attribute defined at extension promotions. |
Integer |
getQualifyingCount()
Generated method - Getter of the
ProductBOGOFPromotion.qualifyingCount attribute defined at extension promotions. |
void |
setFreeCount(Integer value)
Generated method - Setter of
ProductBOGOFPromotion.freeCount attribute defined at extension promotions. |
void |
setMessageCouldHaveFired(String value)
Generated method - Setter of
ProductBOGOFPromotion.messageCouldHaveFired attribute defined at extension promotions. |
void |
setMessageCouldHaveFired(String value,
Locale loc)
Generated method - Setter of
ProductBOGOFPromotion.messageCouldHaveFired attribute defined at extension promotions. |
void |
setMessageFired(String value)
Generated method - Setter of
ProductBOGOFPromotion.messageFired attribute defined at extension promotions. |
void |
setMessageFired(String value,
Locale loc)
Generated method - Setter of
ProductBOGOFPromotion.messageFired attribute defined at extension promotions. |
void |
setQualifyingCount(Integer value)
Generated method - Setter of
ProductBOGOFPromotion.qualifyingCount attribute defined at extension promotions. |
getCategories, getProductBanner, getProducts, getSpecialDiscount, setCategories, setProductBanner, setProducts, setSpecialDiscountgetCode, 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, setTitlegetComments, getCreationtime, getModifiedtime, getOwner, setComments, setCreationtime, setModifiedtime, setOwnerequals, 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, writeReplacepublic static final String _TYPECODE
public static final String QUALIFYINGCOUNT
ProductBOGOFPromotion.qualifyingCount attribute defined at extension promotions.public static final String FREECOUNT
ProductBOGOFPromotion.freeCount attribute defined at extension promotions.public static final String MESSAGEFIRED
ProductBOGOFPromotion.messageFired attribute defined at extension promotions.public static final String MESSAGECOULDHAVEFIRED
ProductBOGOFPromotion.messageCouldHaveFired attribute defined at extension promotions.public ProductBOGOFPromotionModel()
public ProductBOGOFPromotionModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public ProductBOGOFPromotionModel(String _code)
_code - initial attribute declared by type AbstractPromotion at extension promotions@Deprecated public ProductBOGOFPromotionModel(String _code, ItemModel _owner)
_code - initial attribute declared by type AbstractPromotion at extension promotions_owner - initial attribute declared by type Item at extension core@Accessor(qualifier="freeCount", type=GETTER) public Integer getFreeCount()
ProductBOGOFPromotion.freeCount attribute defined at extension promotions.@Accessor(qualifier="messageCouldHaveFired", type=GETTER) public String getMessageCouldHaveFired()
ProductBOGOFPromotion.messageCouldHaveFired attribute defined at extension promotions.@Accessor(qualifier="messageCouldHaveFired", type=GETTER) public String getMessageCouldHaveFired(Locale loc)
ProductBOGOFPromotion.messageCouldHaveFired attribute defined at extension promotions.loc - the value localization keyIllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="messageFired", type=GETTER) public String getMessageFired()
ProductBOGOFPromotion.messageFired attribute defined at extension promotions.@Accessor(qualifier="messageFired", type=GETTER) public String getMessageFired(Locale loc)
ProductBOGOFPromotion.messageFired attribute defined at extension promotions.loc - the value localization keyIllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="qualifyingCount", type=GETTER) public Integer getQualifyingCount()
ProductBOGOFPromotion.qualifyingCount attribute defined at extension promotions.@Accessor(qualifier="freeCount", type=SETTER) public void setFreeCount(Integer value)
ProductBOGOFPromotion.freeCount attribute defined at extension promotions.value - the freeCount - The number of products within the cart to give away free. (For standard BOGOF this is 1).@Accessor(qualifier="messageCouldHaveFired", type=SETTER) public void setMessageCouldHaveFired(String value)
ProductBOGOFPromotion.messageCouldHaveFired attribute defined at extension promotions.value - the messageCouldHaveFired - The message to show when the promotion could have potentially fire.@Accessor(qualifier="messageCouldHaveFired", type=SETTER) public void setMessageCouldHaveFired(String value, Locale loc)
ProductBOGOFPromotion.messageCouldHaveFired attribute defined at extension promotions.value - the messageCouldHaveFired - The message to show when the promotion could have potentially fire.loc - the value localization keyIllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="messageFired", type=SETTER) public void setMessageFired(String value)
ProductBOGOFPromotion.messageFired attribute defined at extension promotions.value - the messageFired - The message to show when the promotion has fired.@Accessor(qualifier="messageFired", type=SETTER) public void setMessageFired(String value, Locale loc)
ProductBOGOFPromotion.messageFired attribute defined at extension promotions.value - the messageFired - The message to show when the promotion has fired.loc - the value localization keyIllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="qualifyingCount", type=SETTER) public void setQualifyingCount(Integer value)
ProductBOGOFPromotion.qualifyingCount attribute defined at extension promotions.value - the qualifyingCount - The number of products required in the cart to activate the promotion. (For standard BOGOF this is 2).Copyright © 2017 SAP SE. All Rights Reserved.