public class PromotionVoucherModel extends VoucherModel
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_TYPECODE
Generated model type code constant.
|
static java.lang.String |
REDEMPTIONQUANTITYLIMIT
Generated constant - Attribute key of
PromotionVoucher.redemptionQuantityLimit attribute defined at extension voucher. |
static java.lang.String |
REDEMPTIONQUANTITYLIMITPERUSER
Generated constant - Attribute key of
PromotionVoucher.redemptionQuantityLimitPerUser attribute defined at extension voucher. |
static java.lang.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, PK, SEALEDLANGUAGE_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(java.lang.String _code)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
PromotionVoucherModel(java.lang.String _code,
ItemModel _owner)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getRedemptionQuantityLimit()
Generated method - Getter of the
PromotionVoucher.redemptionQuantityLimit attribute defined at extension voucher. |
java.lang.Integer |
getRedemptionQuantityLimitPerUser()
Generated method - Getter of the
PromotionVoucher.redemptionQuantityLimitPerUser attribute defined at extension voucher. |
java.lang.String |
getVoucherCode()
Generated method - Getter of the
PromotionVoucher.voucherCode attribute defined at extension voucher. |
void |
setRedemptionQuantityLimit(java.lang.Integer value)
Generated method - Setter of
PromotionVoucher.redemptionQuantityLimit attribute defined at extension voucher. |
void |
setRedemptionQuantityLimitPerUser(java.lang.Integer value)
Generated method - Setter of
PromotionVoucher.redemptionQuantityLimitPerUser attribute defined at extension voucher. |
void |
setVoucherCode(java.lang.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, isSealed, 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 java.lang.String _TYPECODE
public static final java.lang.String VOUCHERCODE
PromotionVoucher.voucherCode attribute defined at extension voucher.public static final java.lang.String REDEMPTIONQUANTITYLIMIT
PromotionVoucher.redemptionQuantityLimit attribute defined at extension voucher.public static final java.lang.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(java.lang.String _code)
_code - initial attribute declared by type Voucher at extension voucher@Deprecated
public PromotionVoucherModel(java.lang.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 java.lang.Integer getRedemptionQuantityLimit()
PromotionVoucher.redemptionQuantityLimit attribute defined at extension voucher.@Accessor(qualifier="redemptionQuantityLimitPerUser", type=GETTER) public java.lang.Integer getRedemptionQuantityLimitPerUser()
PromotionVoucher.redemptionQuantityLimitPerUser attribute defined at extension voucher.@Accessor(qualifier="voucherCode", type=GETTER) public java.lang.String getVoucherCode()
PromotionVoucher.voucherCode attribute defined at extension voucher.@Accessor(qualifier="redemptionQuantityLimit", type=SETTER) public void setRedemptionQuantityLimit(java.lang.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(java.lang.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 © 2018 SAP SE. All Rights Reserved.