public class FlashbuyPromotionModel extends ProductFixedPricePromotionModel
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static String |
_TYPECODE
Generated model type code constant.
|
static String |
AVAILABLEUNITSPERPRODUCT
Generated constant - Attribute key of
FlashbuyPromotion.availableUnitsPerProduct attribute defined at extension timedaccesspromotionsservices. |
static String |
AVAILABLEUNITSPERUSERANDPRODUCT
Generated constant - Attribute key of
FlashbuyPromotion.availableUnitsPerUserAndProduct attribute defined at extension timedaccesspromotionsservices. |
static String |
STARTBUYDATE
Generated constant - Attribute key of
FlashbuyPromotion.startBuyDate attribute defined at extension timedaccesspromotionsservices. |
MESSAGEFIRED, PRODUCTFIXEDUNITPRICE_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 |
|---|
FlashbuyPromotionModel()
Generated constructor - Default constructor for generic creation.
|
FlashbuyPromotionModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
FlashbuyPromotionModel(Long _availableUnitsPerProduct,
String _code,
Date _startBuyDate)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
FlashbuyPromotionModel(Long _availableUnitsPerProduct,
String _code,
ItemModel _owner,
Date _startBuyDate)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
| Modifier and Type | Method and Description |
|---|---|
Long |
getAvailableUnitsPerProduct()
Generated method - Getter of the
FlashbuyPromotion.availableUnitsPerProduct attribute defined at extension timedaccesspromotionsservices. |
Long |
getAvailableUnitsPerUserAndProduct()
Generated method - Getter of the
FlashbuyPromotion.availableUnitsPerUserAndProduct attribute defined at extension timedaccesspromotionsservices. |
Date |
getStartBuyDate()
Generated method - Getter of the
FlashbuyPromotion.startBuyDate attribute defined at extension timedaccesspromotionsservices. |
void |
setAvailableUnitsPerProduct(Long value)
Generated method - Setter of
FlashbuyPromotion.availableUnitsPerProduct attribute defined at extension timedaccesspromotionsservices. |
void |
setAvailableUnitsPerUserAndProduct(Long value)
Generated method - Setter of
FlashbuyPromotion.availableUnitsPerUserAndProduct attribute defined at extension timedaccesspromotionsservices. |
void |
setStartBuyDate(Date value)
Generated method - Setter of
FlashbuyPromotion.startBuyDate attribute defined at extension timedaccesspromotionsservices. |
getMessageFired, getMessageFired, getProductFixedUnitPrice, setMessageFired, setMessageFired, setProductFixedUnitPricegetCategories, 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 AVAILABLEUNITSPERPRODUCT
FlashbuyPromotion.availableUnitsPerProduct attribute defined at extension timedaccesspromotionsservices.public static final String AVAILABLEUNITSPERUSERANDPRODUCT
FlashbuyPromotion.availableUnitsPerUserAndProduct attribute defined at extension timedaccesspromotionsservices.public static final String STARTBUYDATE
FlashbuyPromotion.startBuyDate attribute defined at extension timedaccesspromotionsservices.public FlashbuyPromotionModel()
public FlashbuyPromotionModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public FlashbuyPromotionModel(Long _availableUnitsPerProduct, String _code, Date _startBuyDate)
_availableUnitsPerProduct - initial attribute declared by type FlashbuyPromotion at extension timedaccesspromotionsservices_code - initial attribute declared by type AbstractPromotion at extension promotions_startBuyDate - initial attribute declared by type FlashbuyPromotion at extension timedaccesspromotionsservices@Deprecated public FlashbuyPromotionModel(Long _availableUnitsPerProduct, String _code, ItemModel _owner, Date _startBuyDate)
_availableUnitsPerProduct - initial attribute declared by type FlashbuyPromotion at extension timedaccesspromotionsservices_code - initial attribute declared by type AbstractPromotion at extension promotions_owner - initial attribute declared by type Item at extension core_startBuyDate - initial attribute declared by type FlashbuyPromotion at extension timedaccesspromotionsservices@Accessor(qualifier="availableUnitsPerProduct", type=GETTER) public Long getAvailableUnitsPerProduct()
FlashbuyPromotion.availableUnitsPerProduct attribute defined at extension timedaccesspromotionsservices.@Accessor(qualifier="availableUnitsPerUserAndProduct", type=GETTER) public Long getAvailableUnitsPerUserAndProduct()
FlashbuyPromotion.availableUnitsPerUserAndProduct attribute defined at extension timedaccesspromotionsservices.@Accessor(qualifier="startBuyDate", type=GETTER) public Date getStartBuyDate()
FlashbuyPromotion.startBuyDate attribute defined at extension timedaccesspromotionsservices.@Accessor(qualifier="availableUnitsPerProduct", type=SETTER) public void setAvailableUnitsPerProduct(Long value)
FlashbuyPromotion.availableUnitsPerProduct attribute defined at extension timedaccesspromotionsservices.value - the availableUnitsPerProduct - Number of units available for the flash buy promotion per product.@Accessor(qualifier="availableUnitsPerUserAndProduct", type=SETTER) public void setAvailableUnitsPerUserAndProduct(Long value)
FlashbuyPromotion.availableUnitsPerUserAndProduct attribute defined at extension timedaccesspromotionsservices.value - the availableUnitsPerUserAndProduct - Maximum amount of units that each customer can buy per product.@Accessor(qualifier="startBuyDate", type=SETTER) public void setStartBuyDate(Date value)
FlashbuyPromotion.startBuyDate attribute defined at extension timedaccesspromotionsservices.value - the startBuyDate - Date on which this promotion becomes really available to purchase, if not set the promotion will not be available.Copyright © 2017 SAP SE. All Rights Reserved.