Package de.hybris.platform.voucher.model
Class PromotionVoucherModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.core.model.order.price.DiscountModel
-
- de.hybris.platform.voucher.model.VoucherModel
-
- de.hybris.platform.voucher.model.PromotionVoucherModel
-
- All Implemented Interfaces:
java.io.Serializable
public class PromotionVoucherModel extends VoucherModel
Generated model class for type PromotionVoucher first defined at extension voucher.- 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.StringREDEMPTIONQUANTITYLIMITGenerated constant - Attribute key ofPromotionVoucher.redemptionQuantityLimitattribute defined at extensionvoucher.static java.lang.StringREDEMPTIONQUANTITYLIMITPERUSERGenerated constant - Attribute key ofPromotionVoucher.redemptionQuantityLimitPerUserattribute defined at extensionvoucher.static java.lang.StringVOUCHERCODEGenerated constant - Attribute key ofPromotionVoucher.voucherCodeattribute defined at extensionvoucher.-
Fields inherited from class de.hybris.platform.voucher.model.VoucherModel
_ORDERDISCOUNTRELATION, DESCRIPTION, FREESHIPPING, INVALIDATIONS, RESTRICTIONS, VALUESTRING
-
Fields inherited from class de.hybris.platform.core.model.order.price.DiscountModel
ABSOLUTE, CODE, CURRENCY, DISCOUNTSTRING, GLOBAL, NAME, ORDERS, PRIORITY, VALUE
-
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 PromotionVoucherModel()Generated constructor - Default constructor for generic creation.PromotionVoucherModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing contextPromotionVoucherModel(java.lang.String _code)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersPromotionVoucherModel(java.lang.String _code, 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.IntegergetRedemptionQuantityLimit()Generated method - Getter of thePromotionVoucher.redemptionQuantityLimitattribute defined at extensionvoucher.java.lang.IntegergetRedemptionQuantityLimitPerUser()Generated method - Getter of thePromotionVoucher.redemptionQuantityLimitPerUserattribute defined at extensionvoucher.java.lang.StringgetVoucherCode()Generated method - Getter of thePromotionVoucher.voucherCodeattribute defined at extensionvoucher.voidsetRedemptionQuantityLimit(java.lang.Integer value)Generated method - Setter ofPromotionVoucher.redemptionQuantityLimitattribute defined at extensionvoucher.voidsetRedemptionQuantityLimitPerUser(java.lang.Integer value)Generated method - Setter ofPromotionVoucher.redemptionQuantityLimitPerUserattribute defined at extensionvoucher.voidsetVoucherCode(java.lang.String value)Generated method - Setter ofPromotionVoucher.voucherCodeattribute defined at extensionvoucher.-
Methods inherited from class de.hybris.platform.voucher.model.VoucherModel
getDescription, getDescription, getFreeShipping, getInvalidations, getRestrictions, getValueString, setDescription, setDescription, setFreeShipping, setInvalidations, setRestrictions
-
Methods inherited from class de.hybris.platform.core.model.order.price.DiscountModel
getAbsolute, getCode, getCurrency, getDiscountstring, getDiscountString, getGlobal, getName, getName, getOrders, getPriority, getValue, setCode, setCurrency, setGlobal, setName, setName, setOrders, setPriority, setValue
-
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
-
VOUCHERCODE
public static final java.lang.String VOUCHERCODE
Generated constant - Attribute key ofPromotionVoucher.voucherCodeattribute defined at extensionvoucher.- See Also:
- Constant Field Values
-
REDEMPTIONQUANTITYLIMIT
public static final java.lang.String REDEMPTIONQUANTITYLIMIT
Generated constant - Attribute key ofPromotionVoucher.redemptionQuantityLimitattribute defined at extensionvoucher.- See Also:
- Constant Field Values
-
REDEMPTIONQUANTITYLIMITPERUSER
public static final java.lang.String REDEMPTIONQUANTITYLIMITPERUSER
Generated constant - Attribute key ofPromotionVoucher.redemptionQuantityLimitPerUserattribute defined at extensionvoucher.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PromotionVoucherModel
public PromotionVoucherModel()
Generated constructor - Default constructor for generic creation.
-
PromotionVoucherModel
public PromotionVoucherModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
PromotionVoucherModel
@Deprecated(since="4.1.1", forRemoval=true) public PromotionVoucherModel(java.lang.String _code)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:
_code- initial attribute declared by typeVoucherat extensionvoucher
-
PromotionVoucherModel
@Deprecated(since="4.1.1", forRemoval=true) public PromotionVoucherModel(java.lang.String _code, 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:
_code- initial attribute declared by typeVoucherat extensionvoucher_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Detail
-
getRedemptionQuantityLimit
@Accessor(qualifier="redemptionQuantityLimit", type=GETTER) public java.lang.Integer getRedemptionQuantityLimit()
Generated method - Getter of thePromotionVoucher.redemptionQuantityLimitattribute defined at extensionvoucher.- Returns:
- the redemptionQuantityLimit - the upper limit of uses possible for this voucher.
-
getRedemptionQuantityLimitPerUser
@Accessor(qualifier="redemptionQuantityLimitPerUser", type=GETTER) public java.lang.Integer getRedemptionQuantityLimitPerUser()
Generated method - Getter of thePromotionVoucher.redemptionQuantityLimitPerUserattribute defined at extensionvoucher.- Returns:
- the redemptionQuantityLimitPerUser - the upper limit of voucher uses possible per user. Default is one.
-
getVoucherCode
@Accessor(qualifier="voucherCode", type=GETTER) public java.lang.String getVoucherCode()
Generated method - Getter of thePromotionVoucher.voucherCodeattribute defined at extensionvoucher.- Returns:
- the voucherCode - the voucher code.
-
setRedemptionQuantityLimit
@Accessor(qualifier="redemptionQuantityLimit", type=SETTER) public void setRedemptionQuantityLimit(java.lang.Integer value)
Generated method - Setter ofPromotionVoucher.redemptionQuantityLimitattribute defined at extensionvoucher.- Parameters:
value- the redemptionQuantityLimit - the upper limit of uses possible for this voucher.
-
setRedemptionQuantityLimitPerUser
@Accessor(qualifier="redemptionQuantityLimitPerUser", type=SETTER) public void setRedemptionQuantityLimitPerUser(java.lang.Integer value)
Generated method - Setter ofPromotionVoucher.redemptionQuantityLimitPerUserattribute defined at extensionvoucher.- Parameters:
value- the redemptionQuantityLimitPerUser - the upper limit of voucher uses possible per user. Default is one.
-
-