Package de.hybris.platform.voucher.model
Class OrderRestrictionModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.voucher.model.RestrictionModel
-
- de.hybris.platform.voucher.model.OrderRestrictionModel
-
- All Implemented Interfaces:
java.io.Serializable
public class OrderRestrictionModel extends RestrictionModel
Generated model class for type OrderRestriction 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.StringCURRENCYGenerated constant - Attribute key ofOrderRestriction.currencyattribute defined at extensionvoucher.static java.lang.StringNETGenerated constant - Attribute key ofOrderRestriction.netattribute defined at extensionvoucher.static java.lang.StringTOTALGenerated constant - Attribute key ofOrderRestriction.totalattribute defined at extensionvoucher.static java.lang.StringVALUEOFGOODSONLYGenerated constant - Attribute key ofOrderRestriction.valueofgoodsonlyattribute defined at extensionvoucher.-
Fields inherited from class de.hybris.platform.voucher.model.RestrictionModel
_VOUCHERRESTRICTIONSRELATION, DESCRIPTION, POSITIVE, RESTRICTIONTYPE, VIOLATIONMESSAGE, VOUCHER, VOUCHERPOS
-
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 OrderRestrictionModel()Generated constructor - Default constructor for generic creation.OrderRestrictionModel(CurrencyModel _currency, ItemModel _owner, java.lang.Double _total, VoucherModel _voucher)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersOrderRestrictionModel(CurrencyModel _currency, java.lang.Double _total, VoucherModel _voucher)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersOrderRestrictionModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing context
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CurrencyModelgetCurrency()Generated method - Getter of theOrderRestriction.currencyattribute defined at extensionvoucher.java.lang.BooleangetNet()Generated method - Getter of theOrderRestriction.netattribute defined at extensionvoucher.java.lang.DoublegetTotal()Generated method - Getter of theOrderRestriction.totalattribute defined at extensionvoucher.java.lang.BooleangetValueofgoodsonly()Generated method - Getter of theOrderRestriction.valueofgoodsonlyattribute defined at extensionvoucher.voidsetCurrency(CurrencyModel value)Generated method - Setter ofOrderRestriction.currencyattribute defined at extensionvoucher.voidsetNet(java.lang.Boolean value)Generated method - Setter ofOrderRestriction.netattribute defined at extensionvoucher.voidsetTotal(java.lang.Double value)Generated method - Setter ofOrderRestriction.totalattribute defined at extensionvoucher.voidsetValueofgoodsonly(java.lang.Boolean value)Generated method - Setter ofOrderRestriction.valueofgoodsonlyattribute defined at extensionvoucher.-
Methods inherited from class de.hybris.platform.voucher.model.RestrictionModel
getDescription, getDescription, getPositive, getRestrictionType, getRestrictionType, getViolationMessage, getViolationMessage, getVoucher, setDescription, setDescription, setPositive, setViolationMessage, setViolationMessage, setVoucher
-
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
-
TOTAL
public static final java.lang.String TOTAL
Generated constant - Attribute key ofOrderRestriction.totalattribute defined at extensionvoucher.- See Also:
- Constant Field Values
-
CURRENCY
public static final java.lang.String CURRENCY
Generated constant - Attribute key ofOrderRestriction.currencyattribute defined at extensionvoucher.- See Also:
- Constant Field Values
-
NET
public static final java.lang.String NET
Generated constant - Attribute key ofOrderRestriction.netattribute defined at extensionvoucher.- See Also:
- Constant Field Values
-
VALUEOFGOODSONLY
public static final java.lang.String VALUEOFGOODSONLY
Generated constant - Attribute key ofOrderRestriction.valueofgoodsonlyattribute defined at extensionvoucher.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OrderRestrictionModel
public OrderRestrictionModel()
Generated constructor - Default constructor for generic creation.
-
OrderRestrictionModel
public OrderRestrictionModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
OrderRestrictionModel
@Deprecated(since="4.1.1", forRemoval=true) public OrderRestrictionModel(CurrencyModel _currency, java.lang.Double _total, VoucherModel _voucher)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:
_currency- initial attribute declared by typeOrderRestrictionat extensionvoucher_total- initial attribute declared by typeOrderRestrictionat extensionvoucher_voucher- initial attribute declared by typeRestrictionat extensionvoucher
-
OrderRestrictionModel
@Deprecated(since="4.1.1", forRemoval=true) public OrderRestrictionModel(CurrencyModel _currency, ItemModel _owner, java.lang.Double _total, VoucherModel _voucher)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:
_currency- initial attribute declared by typeOrderRestrictionat extensionvoucher_owner- initial attribute declared by typeItemat extensioncore_total- initial attribute declared by typeOrderRestrictionat extensionvoucher_voucher- initial attribute declared by typeRestrictionat extensionvoucher
-
-
Method Detail
-
getCurrency
@Accessor(qualifier="currency", type=GETTER) public CurrencyModel getCurrency()
Generated method - Getter of theOrderRestriction.currencyattribute defined at extensionvoucher.- Returns:
- the currency - the currency of the total sum of an order for which the given voucher is valid.
-
getNet
@Accessor(qualifier="net", type=GETTER) public java.lang.Boolean getNet()
Generated method - Getter of theOrderRestriction.netattribute defined at extensionvoucher.- Returns:
- the net - Specifies if total sum of an order is consulted inclusive or exclusive VAT. Default is true (exclusive VAT).
-
getTotal
@Accessor(qualifier="total", type=GETTER) public java.lang.Double getTotal()
Generated method - Getter of theOrderRestriction.totalattribute defined at extensionvoucher.- Returns:
- the total - the total sum of an order for which the given voucher is valid.
-
getValueofgoodsonly
@Accessor(qualifier="valueofgoodsonly", type=GETTER) public java.lang.Boolean getValueofgoodsonly()
Generated method - Getter of theOrderRestriction.valueofgoodsonlyattribute defined at extensionvoucher.- Returns:
- the valueofgoodsonly - Specifies if total sum of an order is consulted inclusive or exclusive shipping and payment costs. Default is true (exclusive shipping costs).
-
setCurrency
@Accessor(qualifier="currency", type=SETTER) public void setCurrency(CurrencyModel value)
Generated method - Setter ofOrderRestriction.currencyattribute defined at extensionvoucher.- Parameters:
value- the currency - the currency of the total sum of an order for which the given voucher is valid.
-
setNet
@Accessor(qualifier="net", type=SETTER) public void setNet(java.lang.Boolean value)
Generated method - Setter ofOrderRestriction.netattribute defined at extensionvoucher.- Parameters:
value- the net - Specifies if total sum of an order is consulted inclusive or exclusive VAT. Default is true (exclusive VAT).
-
setTotal
@Accessor(qualifier="total", type=SETTER) public void setTotal(java.lang.Double value)
Generated method - Setter ofOrderRestriction.totalattribute defined at extensionvoucher.- Parameters:
value- the total - the total sum of an order for which the given voucher is valid.
-
setValueofgoodsonly
@Accessor(qualifier="valueofgoodsonly", type=SETTER) public void setValueofgoodsonly(java.lang.Boolean value)
Generated method - Setter ofOrderRestriction.valueofgoodsonlyattribute defined at extensionvoucher.- Parameters:
value- the valueofgoodsonly - Specifies if total sum of an order is consulted inclusive or exclusive shipping and payment costs. Default is true (exclusive shipping costs).
-
-