Class MultiCodeCouponModel
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.MultiCodeCouponModel
- All Implemented Interfaces:
Serializable
Generated model class for type MultiCodeCoupon first defined at extension couponservices.
A MultiCodeCoupon uses generated coupon codes for coupon redemption. The (inherited) couponId attribute functions as a prefix for the generated coupon codes.
- 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 ofMultiCodeCoupon.alphabetattribute defined at extensioncouponservices.static final StringGenerated constant - Attribute key ofMultiCodeCoupon.codeGenerationConfigurationattribute defined at extensioncouponservices.static final StringGenerated constant - Attribute key ofMultiCodeCoupon.couponCodeNumberattribute defined at extensioncouponservices.static final StringGenerated constant - Attribute key ofMultiCodeCoupon.generatedCodesattribute defined at extensioncouponservices.static final StringGenerated constant - Attribute key ofMultiCodeCoupon.signatureattribute 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.MultiCodeCouponModel(CodeGenerationConfigurationModel _codeGenerationConfiguration, 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 - Default constructor for creation with existing contextMultiCodeCouponModel(String _alphabet, CodeGenerationConfigurationModel _codeGenerationConfiguration, String _couponId, ItemModel _owner, String _signature) 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 theMultiCodeCoupon.alphabetattribute defined at extensioncouponservices.Generated method - Getter of theMultiCodeCoupon.codeGenerationConfigurationattribute defined at extensioncouponservices.Generated method - Getter of theMultiCodeCoupon.couponCodeNumberattribute defined at extensioncouponservices.Generated method - Getter of theMultiCodeCoupon.generatedCodesattribute defined at extensioncouponservices.Generated method - Getter of theMultiCodeCoupon.signatureattribute defined at extensioncouponservices.voidsetAlphabet(String value) Generated method - Initial setter ofMultiCodeCoupon.alphabetattribute defined at extensioncouponservices.voidGenerated method - Setter ofMultiCodeCoupon.codeGenerationConfigurationattribute defined at extensioncouponservices.voidsetCouponCodeNumber(Long value) Generated method - Setter ofMultiCodeCoupon.couponCodeNumberattribute defined at extensioncouponservices.voidsetGeneratedCodes(Collection<MediaModel> value) Generated method - Setter ofMultiCodeCoupon.generatedCodesattribute defined at extensioncouponservices.voidsetSignature(String value) Generated method - Initial setter ofMultiCodeCoupon.signatureattribute 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:
-
CODEGENERATIONCONFIGURATION
Generated constant - Attribute key ofMultiCodeCoupon.codeGenerationConfigurationattribute defined at extensioncouponservices.- See Also:
-
GENERATEDCODES
Generated constant - Attribute key ofMultiCodeCoupon.generatedCodesattribute defined at extensioncouponservices.- See Also:
-
ALPHABET
Generated constant - Attribute key ofMultiCodeCoupon.alphabetattribute defined at extensioncouponservices.- See Also:
-
SIGNATURE
Generated constant - Attribute key ofMultiCodeCoupon.signatureattribute defined at extensioncouponservices.- See Also:
-
COUPONCODENUMBER
Generated constant - Attribute key ofMultiCodeCoupon.couponCodeNumberattribute defined at extensioncouponservices.- See Also:
-
-
Constructor Details
-
MultiCodeCouponModel
public MultiCodeCouponModel()Generated constructor - Default constructor for generic creation. -
MultiCodeCouponModel
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
MultiCodeCouponModel
@Deprecated(since="4.1.1", forRemoval=true) public MultiCodeCouponModel(CodeGenerationConfigurationModel _codeGenerationConfiguration, 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:
_codeGenerationConfiguration- initial attribute declared by typeMultiCodeCouponat extensioncouponservices_couponId- initial attribute declared by typeAbstractCouponat extensioncouponservices
-
MultiCodeCouponModel
@Deprecated(since="4.1.1", forRemoval=true) public MultiCodeCouponModel(String _alphabet, CodeGenerationConfigurationModel _codeGenerationConfiguration, String _couponId, ItemModel _owner, String _signature) 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:
_alphabet- initial attribute declared by typeMultiCodeCouponat extensioncouponservices_codeGenerationConfiguration- initial attribute declared by typeMultiCodeCouponat extensioncouponservices_couponId- initial attribute declared by typeAbstractCouponat extensioncouponservices_owner- initial attribute declared by typeItemat extensioncore_signature- initial attribute declared by typeMultiCodeCouponat extensioncouponservices
-
-
Method Details
-
getAlphabet
Generated method - Getter of theMultiCodeCoupon.alphabetattribute defined at extensioncouponservices.- Returns:
- the alphabet - used for coupon code generation. The alphabet is a 16 character long distinct set of characters.
-
getCodeGenerationConfiguration
@Accessor(qualifier="codeGenerationConfiguration", type=GETTER) public CodeGenerationConfigurationModel getCodeGenerationConfiguration()Generated method - Getter of theMultiCodeCoupon.codeGenerationConfigurationattribute defined at extensioncouponservices.- Returns:
- the codeGenerationConfiguration
-
getCouponCodeNumber
Generated method - Getter of theMultiCodeCoupon.couponCodeNumberattribute defined at extensioncouponservices.- Returns:
- the couponCodeNumber - used for coupon code generation. The coupon code number functions as a seed for coupon codes.
-
getGeneratedCodes
@Accessor(qualifier="generatedCodes", type=GETTER) public Collection<MediaModel> getGeneratedCodes()Generated method - Getter of theMultiCodeCoupon.generatedCodesattribute defined at extensioncouponservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the generatedCodes
-
getSignature
Generated method - Getter of theMultiCodeCoupon.signatureattribute defined at extensioncouponservices.- Returns:
- the signature - used for coupon code generation. The signature is a base64 encoded signature used for the ciphertext part of the coupon code.
-
setAlphabet
Generated method - Initial setter ofMultiCodeCoupon.alphabetattribute defined at extensioncouponservices. Can only be used at creation of model - before first save.- Parameters:
value- the alphabet - used for coupon code generation. The alphabet is a 16 character long distinct set of characters.
-
setCodeGenerationConfiguration
@Accessor(qualifier="codeGenerationConfiguration", type=SETTER) public void setCodeGenerationConfiguration(CodeGenerationConfigurationModel value) Generated method - Setter ofMultiCodeCoupon.codeGenerationConfigurationattribute defined at extensioncouponservices.- Parameters:
value- the codeGenerationConfiguration
-
setCouponCodeNumber
Generated method - Setter ofMultiCodeCoupon.couponCodeNumberattribute defined at extensioncouponservices.- Parameters:
value- the couponCodeNumber - used for coupon code generation. The coupon code number functions as a seed for coupon codes.
-
setGeneratedCodes
@Accessor(qualifier="generatedCodes", type=SETTER) public void setGeneratedCodes(Collection<MediaModel> value) Generated method - Setter ofMultiCodeCoupon.generatedCodesattribute defined at extensioncouponservices.- Parameters:
value- the generatedCodes
-
setSignature
Generated method - Initial setter ofMultiCodeCoupon.signatureattribute defined at extensioncouponservices. Can only be used at creation of model - before first save.- Parameters:
value- the signature - used for coupon code generation. The signature is a base64 encoded signature used for the ciphertext part of the coupon code.
-