public class PromotionVoucherModel extends VoucherModel
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static String |
_TYPECODE
Generated model type code constant.
|
static String |
REDEMPTIONQUANTITYLIMIT
Generated constant - Attribute key of
PromotionVoucher.redemptionQuantityLimit attribute defined at extension voucher. |
static String |
REDEMPTIONQUANTITYLIMITPERUSER
Generated constant - Attribute key of
PromotionVoucher.redemptionQuantityLimitPerUser attribute defined at extension voucher. |
static String |
VOUCHERCODE
Generated constant - Attribute key of
PromotionVoucher.voucherCode attribute defined at extension voucher. |
_ORDERDISCOUNTRELATION, DESCRIPTION, FREESHIPPING, INVALIDATIONS, RESTRICTIONS, VALUESTRINGABSOLUTE, CODE, CURRENCY, DISCOUNTSTRING, GLOBAL, NAME, ORDERS, PRIORITY, VALUE_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PKLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
PromotionVoucherModel()
Generated constructor - Default constructor for generic creation.
|
PromotionVoucherModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
PromotionVoucherModel(String _code)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
PromotionVoucherModel(String _code,
ItemModel _owner)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
getRedemptionQuantityLimit()
Generated method - Getter of the
PromotionVoucher.redemptionQuantityLimit attribute defined at extension voucher. |
Integer |
getRedemptionQuantityLimitPerUser()
Generated method - Getter of the
PromotionVoucher.redemptionQuantityLimitPerUser attribute defined at extension voucher. |
String |
getVoucherCode()
Generated method - Getter of the
PromotionVoucher.voucherCode attribute defined at extension voucher. |
void |
setRedemptionQuantityLimit(Integer value)
Generated method - Setter of
PromotionVoucher.redemptionQuantityLimit attribute defined at extension voucher. |
void |
setRedemptionQuantityLimitPerUser(Integer value)
Generated method - Setter of
PromotionVoucher.redemptionQuantityLimitPerUser attribute defined at extension voucher. |
void |
setVoucherCode(String value)
Generated method - Setter of
PromotionVoucher.voucherCode attribute defined at extension voucher. |
getDescription, getDescription, getFreeShipping, getInvalidations, getRestrictions, getValueString, setDescription, setDescription, setFreeShipping, setInvalidations, setRestrictionsgetAbsolute, getCode, getCurrency, getDiscountstring, getDiscountString, getGlobal, getName, getName, getOrders, getPriority, getValue, setCode, setCurrency, setGlobal, setName, setName, setOrders, setPriority, setValuegetComments, 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 VOUCHERCODE
PromotionVoucher.voucherCode attribute defined at extension voucher.public static final String REDEMPTIONQUANTITYLIMIT
PromotionVoucher.redemptionQuantityLimit attribute defined at extension voucher.public static final String REDEMPTIONQUANTITYLIMITPERUSER
PromotionVoucher.redemptionQuantityLimitPerUser attribute defined at extension voucher.public PromotionVoucherModel()
public PromotionVoucherModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public PromotionVoucherModel(String _code)
_code - initial attribute declared by type Voucher at extension voucher@Deprecated public PromotionVoucherModel(String _code, ItemModel _owner)
_code - initial attribute declared by type Voucher at extension voucher_owner - initial attribute declared by type Item at extension core@Accessor(qualifier="redemptionQuantityLimit", type=GETTER) public Integer getRedemptionQuantityLimit()
PromotionVoucher.redemptionQuantityLimit attribute defined at extension voucher.@Accessor(qualifier="redemptionQuantityLimitPerUser", type=GETTER) public Integer getRedemptionQuantityLimitPerUser()
PromotionVoucher.redemptionQuantityLimitPerUser attribute defined at extension voucher.@Accessor(qualifier="voucherCode", type=GETTER) public String getVoucherCode()
PromotionVoucher.voucherCode attribute defined at extension voucher.@Accessor(qualifier="redemptionQuantityLimit", type=SETTER) public void setRedemptionQuantityLimit(Integer value)
PromotionVoucher.redemptionQuantityLimit attribute defined at extension voucher.value - the redemptionQuantityLimit - the upper limit of uses possible for this voucher.@Accessor(qualifier="redemptionQuantityLimitPerUser", type=SETTER) public void setRedemptionQuantityLimitPerUser(Integer value)
PromotionVoucher.redemptionQuantityLimitPerUser attribute defined at extension voucher.value - the redemptionQuantityLimitPerUser - the upper limit of voucher uses possible per user. Default is one.Copyright © 2017 SAP SE. All Rights Reserved.