Class SingleCodeCouponModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.couponservices.model.AbstractCouponModel
-
- de.hybris.platform.couponservices.model.SingleCodeCouponModel
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
FlashBuyCouponModel
public class SingleCodeCouponModel extends AbstractCouponModel
Generated model class for type SingleCodeCoupon first defined at extension couponservices.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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringMAXREDEMPTIONSPERCUSTOMERGenerated constant - Attribute key ofSingleCodeCoupon.maxRedemptionsPerCustomerattribute defined at extensioncouponservices.static java.lang.StringMAXTOTALREDEMPTIONSGenerated constant - Attribute key ofSingleCodeCoupon.maxTotalRedemptionsattribute defined at extensioncouponservices.-
Fields inherited from class de.hybris.platform.couponservices.model.AbstractCouponModel
ACTIVE, COUPONID, ENDDATE, NAME, STARTDATE
-
Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description SingleCodeCouponModel()Generated constructor - Default constructor for generic creation.SingleCodeCouponModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing contextSingleCodeCouponModel(java.lang.String _couponId)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersSingleCodeCouponModel(java.lang.String _couponId, ItemModel _owner)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegergetMaxRedemptionsPerCustomer()Generated method - Getter of theSingleCodeCoupon.maxRedemptionsPerCustomerattribute defined at extensioncouponservices.java.lang.IntegergetMaxTotalRedemptions()Generated method - Getter of theSingleCodeCoupon.maxTotalRedemptionsattribute defined at extensioncouponservices.voidsetMaxRedemptionsPerCustomer(java.lang.Integer value)Generated method - Setter ofSingleCodeCoupon.maxRedemptionsPerCustomerattribute defined at extensioncouponservices.voidsetMaxTotalRedemptions(java.lang.Integer value)Generated method - Setter ofSingleCodeCoupon.maxTotalRedemptionsattribute defined at extensioncouponservices.-
Methods inherited from class de.hybris.platform.couponservices.model.AbstractCouponModel
getActive, getCouponId, getEndDate, getName, getName, getStartDate, setActive, setCouponId, setEndDate, setName, setName, setStartDate
-
Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner
-
Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, 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, writeReplace
-
-
-
-
Field Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
MAXREDEMPTIONSPERCUSTOMER
public static final java.lang.String MAXREDEMPTIONSPERCUSTOMER
Generated constant - Attribute key ofSingleCodeCoupon.maxRedemptionsPerCustomerattribute defined at extensioncouponservices.- See Also:
- Constant Field Values
-
MAXTOTALREDEMPTIONS
public static final java.lang.String MAXTOTALREDEMPTIONS
Generated constant - Attribute key ofSingleCodeCoupon.maxTotalRedemptionsattribute defined at extensioncouponservices.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SingleCodeCouponModel
public SingleCodeCouponModel()
Generated constructor - Default constructor for generic creation.
-
SingleCodeCouponModel
public SingleCodeCouponModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
SingleCodeCouponModel
@Deprecated(since="4.1.1", forRemoval=true) public SingleCodeCouponModel(java.lang.String _couponId)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_couponId- initial attribute declared by typeAbstractCouponat extensioncouponservices
-
SingleCodeCouponModel
@Deprecated(since="4.1.1", forRemoval=true) public SingleCodeCouponModel(java.lang.String _couponId, ItemModel _owner)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_couponId- initial attribute declared by typeAbstractCouponat extensioncouponservices_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Detail
-
getMaxRedemptionsPerCustomer
@Accessor(qualifier="maxRedemptionsPerCustomer", type=GETTER) public java.lang.Integer getMaxRedemptionsPerCustomer()
Generated method - Getter of theSingleCodeCoupon.maxRedemptionsPerCustomerattribute defined at extensioncouponservices.- Returns:
- the maxRedemptionsPerCustomer
-
getMaxTotalRedemptions
@Accessor(qualifier="maxTotalRedemptions", type=GETTER) public java.lang.Integer getMaxTotalRedemptions()
Generated method - Getter of theSingleCodeCoupon.maxTotalRedemptionsattribute defined at extensioncouponservices.- Returns:
- the maxTotalRedemptions
-
setMaxRedemptionsPerCustomer
@Accessor(qualifier="maxRedemptionsPerCustomer", type=SETTER) public void setMaxRedemptionsPerCustomer(java.lang.Integer value)
Generated method - Setter ofSingleCodeCoupon.maxRedemptionsPerCustomerattribute defined at extensioncouponservices.- Parameters:
value- the maxRedemptionsPerCustomer
-
-