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:
Serializable
Generated model class for type PromotionVoucher first defined at extension voucher.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.servicelayer.model.AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofPromotionVoucher.redemptionQuantityLimitattribute defined at extensionvoucher.static final StringGenerated constant - Attribute key ofPromotionVoucher.redemptionQuantityLimitPerUserattribute defined at extensionvoucher.static final StringGenerated constant - Attribute key ofPromotionVoucher.voucherCodeattribute defined at extensionvoucher.Fields inherited from class de.hybris.platform.voucher.model.VoucherModel
_ORDERDISCOUNTRELATION, DESCRIPTION, FREESHIPPING, INVALIDATIONS, RESTRICTIONS, VALUESTRINGFields inherited from class de.hybris.platform.core.model.order.price.DiscountModel
ABSOLUTE, CODE, CURRENCY, DISCOUNTSTRING, GLOBAL, NAME, ORDERS, PRIORITY, VALUEFields 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.PromotionVoucherModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing contextPromotionVoucherModel(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(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
Modifier and TypeMethodDescriptionGenerated method - Getter of thePromotionVoucher.redemptionQuantityLimitattribute defined at extensionvoucher.Generated method - Getter of thePromotionVoucher.redemptionQuantityLimitPerUserattribute defined at extensionvoucher.Generated method - Getter of thePromotionVoucher.voucherCodeattribute defined at extensionvoucher.voidGenerated method - Setter ofPromotionVoucher.redemptionQuantityLimitattribute defined at extensionvoucher.voidGenerated method - Setter ofPromotionVoucher.redemptionQuantityLimitPerUserattribute defined at extensionvoucher.voidsetVoucherCode(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, setRestrictionsMethods 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, setValueMethods 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:
-
VOUCHERCODE
Generated constant - Attribute key ofPromotionVoucher.voucherCodeattribute defined at extensionvoucher.- See Also:
-
REDEMPTIONQUANTITYLIMIT
Generated constant - Attribute key ofPromotionVoucher.redemptionQuantityLimitattribute defined at extensionvoucher.- See Also:
-
REDEMPTIONQUANTITYLIMITPERUSER
Generated constant - Attribute key ofPromotionVoucher.redemptionQuantityLimitPerUserattribute defined at extensionvoucher.- See Also:
-
-
Constructor Details
-
PromotionVoucherModel
public PromotionVoucherModel()Generated constructor - Default constructor for generic creation. -
PromotionVoucherModel
public PromotionVoucherModel(de.hybris.platform.servicelayer.model.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, 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(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 Details
-
getRedemptionQuantityLimit
@Accessor(qualifier="redemptionQuantityLimit", type=GETTER) public 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 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
Generated method - Getter of thePromotionVoucher.voucherCodeattribute defined at extensionvoucher.- Returns:
- the voucherCode - the voucher code.
-
setRedemptionQuantityLimit
@Accessor(qualifier="redemptionQuantityLimit", type=SETTER) public void setRedemptionQuantityLimit(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(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.
-
setVoucherCode
Generated method - Setter ofPromotionVoucher.voucherCodeattribute defined at extensionvoucher.- Parameters:
value- the voucherCode - the voucher code.
-