public class SingleCodeCouponModel extends AbstractCouponModel
A SingleCodeCoupon uses one coupon code (i.e. the inherited couponId attribute) for coupon redemption. The additional attributes allow to restrict the number of times the coupon can be redeemed.
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_TYPECODE
Generated model type code constant.
|
static java.lang.String |
MAXREDEMPTIONSPERCUSTOMER
Generated constant - Attribute key of
SingleCodeCoupon.maxRedemptionsPerCustomer attribute defined at extension couponservices. |
static java.lang.String |
MAXTOTALREDEMPTIONS
Generated constant - Attribute key of
SingleCodeCoupon.maxTotalRedemptions attribute defined at extension couponservices. |
ACTIVE, COUPONID, ENDDATE, NAME, STARTDATE_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
SingleCodeCouponModel()
Generated constructor - Default constructor for generic creation.
|
SingleCodeCouponModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
SingleCodeCouponModel(java.lang.String _couponId)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
SingleCodeCouponModel(java.lang.String _couponId,
ItemModel _owner)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getMaxRedemptionsPerCustomer()
Generated method - Getter of the
SingleCodeCoupon.maxRedemptionsPerCustomer attribute defined at extension couponservices. |
java.lang.Integer |
getMaxTotalRedemptions()
Generated method - Getter of the
SingleCodeCoupon.maxTotalRedemptions attribute defined at extension couponservices. |
void |
setMaxRedemptionsPerCustomer(java.lang.Integer value)
Generated method - Setter of
SingleCodeCoupon.maxRedemptionsPerCustomer attribute defined at extension couponservices. |
void |
setMaxTotalRedemptions(java.lang.Integer value)
Generated method - Setter of
SingleCodeCoupon.maxTotalRedemptions attribute defined at extension couponservices. |
getActive, getCouponId, getEndDate, getName, getName, getStartDate, setActive, setCouponId, setEndDate, setName, setName, setStartDategetComments, 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 MAXREDEMPTIONSPERCUSTOMER
SingleCodeCoupon.maxRedemptionsPerCustomer attribute defined at extension couponservices.public static final java.lang.String MAXTOTALREDEMPTIONS
SingleCodeCoupon.maxTotalRedemptions attribute defined at extension couponservices.public SingleCodeCouponModel()
public SingleCodeCouponModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public SingleCodeCouponModel(java.lang.String _couponId)
_couponId - initial attribute declared by type AbstractCoupon at extension couponservices@Deprecated
public SingleCodeCouponModel(java.lang.String _couponId,
ItemModel _owner)
_couponId - initial attribute declared by type AbstractCoupon at extension couponservices_owner - initial attribute declared by type Item at extension core@Accessor(qualifier="maxRedemptionsPerCustomer", type=GETTER) public java.lang.Integer getMaxRedemptionsPerCustomer()
SingleCodeCoupon.maxRedemptionsPerCustomer attribute defined at extension couponservices.@Accessor(qualifier="maxTotalRedemptions", type=GETTER) public java.lang.Integer getMaxTotalRedemptions()
SingleCodeCoupon.maxTotalRedemptions attribute defined at extension couponservices.@Accessor(qualifier="maxRedemptionsPerCustomer", type=SETTER) public void setMaxRedemptionsPerCustomer(java.lang.Integer value)
SingleCodeCoupon.maxRedemptionsPerCustomer attribute defined at extension couponservices.value - the maxRedemptionsPerCustomerCopyright © 2018 SAP SE. All Rights Reserved.