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:
Serializable
- Direct Known Subclasses:
FlashBuyCouponModel
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofSingleCodeCoupon.maxRedemptionsPerCustomerattribute defined at extensioncouponservices.static final StringGenerated constant - Attribute key ofSingleCodeCoupon.maxTotalRedemptionsattribute defined at extensioncouponservices.Fields inherited from class de.hybris.platform.couponservices.model.AbstractCouponModel
ACTIVE, COUPONID, ENDDATE, NAME, STARTDATEFields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.Generated constructor - Default constructor for creation with existing contextSingleCodeCouponModel(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(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
Modifier and TypeMethodDescriptionGenerated method - Getter of theSingleCodeCoupon.maxRedemptionsPerCustomerattribute defined at extensioncouponservices.Generated method - Getter of theSingleCodeCoupon.maxTotalRedemptionsattribute defined at extensioncouponservices.voidGenerated method - Setter ofSingleCodeCoupon.maxRedemptionsPerCustomerattribute defined at extensioncouponservices.voidsetMaxTotalRedemptions(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, setStartDateMethods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerMethods 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 Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
MAXREDEMPTIONSPERCUSTOMER
Generated constant - Attribute key ofSingleCodeCoupon.maxRedemptionsPerCustomerattribute defined at extensioncouponservices.- See Also:
-
MAXTOTALREDEMPTIONS
Generated constant - Attribute key ofSingleCodeCoupon.maxTotalRedemptionsattribute defined at extensioncouponservices.- See Also:
-
-
Constructor Details
-
SingleCodeCouponModel
public SingleCodeCouponModel()Generated constructor - Default constructor for generic creation. -
SingleCodeCouponModel
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
SingleCodeCouponModel
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(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 Details
-
getMaxRedemptionsPerCustomer
@Accessor(qualifier="maxRedemptionsPerCustomer", type=GETTER) public Integer getMaxRedemptionsPerCustomer()Generated method - Getter of theSingleCodeCoupon.maxRedemptionsPerCustomerattribute defined at extensioncouponservices.- Returns:
- the maxRedemptionsPerCustomer
-
getMaxTotalRedemptions
Generated method - Getter of theSingleCodeCoupon.maxTotalRedemptionsattribute defined at extensioncouponservices.- Returns:
- the maxTotalRedemptions
-
setMaxRedemptionsPerCustomer
@Accessor(qualifier="maxRedemptionsPerCustomer", type=SETTER) public void setMaxRedemptionsPerCustomer(Integer value) Generated method - Setter ofSingleCodeCoupon.maxRedemptionsPerCustomerattribute defined at extensioncouponservices.- Parameters:
value- the maxRedemptionsPerCustomer
-
setMaxTotalRedemptions
@Accessor(qualifier="maxTotalRedemptions", type=SETTER) public void setMaxTotalRedemptions(Integer value) Generated method - Setter ofSingleCodeCoupon.maxTotalRedemptionsattribute defined at extensioncouponservices.- Parameters:
value- the maxTotalRedemptions
-