public class VoucherModel extends DiscountModel
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_ORDERDISCOUNTRELATION
Generated relation code constant for relation
OrderDiscountRelation defining source attribute orders in extension core. |
static java.lang.String |
_TYPECODE
Generated model type code constant.
|
static java.lang.String |
DESCRIPTION
Generated constant - Attribute key of
Voucher.description attribute defined at extension voucher. |
static java.lang.String |
FREESHIPPING
Generated constant - Attribute key of
Voucher.freeShipping attribute defined at extension voucher. |
static java.lang.String |
INVALIDATIONS
Generated constant - Attribute key of
Voucher.invalidations attribute defined at extension voucher. |
static java.lang.String |
RESTRICTIONS
Generated constant - Attribute key of
Voucher.restrictions attribute defined at extension voucher. |
static java.lang.String |
VALUESTRING
Generated constant - Attribute key of
Voucher.valueString attribute defined at extension voucher. |
ABSOLUTE, CODE, CURRENCY, DISCOUNTSTRING, GLOBAL, NAME, ORDERS, PRIORITY, VALUE_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
VoucherModel()
Generated constructor - Default constructor for generic creation.
|
VoucherModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
VoucherModel(java.lang.String _code)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
VoucherModel(java.lang.String _code,
ItemModel _owner)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Generated method - Getter of the
Voucher.description attribute defined at extension voucher. |
java.lang.String |
getDescription(java.util.Locale loc)
Generated method - Getter of the
Voucher.description attribute defined at extension voucher. |
java.lang.Boolean |
getFreeShipping()
Generated method - Getter of the
Voucher.freeShipping attribute defined at extension voucher. |
java.util.Collection<VoucherInvalidationModel> |
getInvalidations()
Generated method - Getter of the
Voucher.invalidations attribute defined at extension voucher. |
java.util.Set<RestrictionModel> |
getRestrictions()
Generated method - Getter of the
Voucher.restrictions attribute defined at extension voucher. |
java.lang.String |
getValueString()
Generated method - Getter of the
Voucher.valueString attribute defined at extension voucher. |
void |
setDescription(java.lang.String value)
Generated method - Setter of
Voucher.description attribute defined at extension voucher. |
void |
setDescription(java.lang.String value,
java.util.Locale loc)
Generated method - Setter of
Voucher.description attribute defined at extension voucher. |
void |
setFreeShipping(java.lang.Boolean value)
Generated method - Setter of
Voucher.freeShipping attribute defined at extension voucher. |
void |
setInvalidations(java.util.Collection<VoucherInvalidationModel> value)
Generated method - Setter of
Voucher.invalidations attribute defined at extension voucher. |
void |
setRestrictions(java.util.Set<RestrictionModel> value)
Generated method - Setter of
Voucher.restrictions attribute defined at extension voucher. |
getAbsolute, getCode, getCurrency, getDiscountstring, getDiscountString, getGlobal, getName, getName, getOrders, getPriority, getValue, setCode, setCurrency, setGlobal, setName, setName, setOrders, setPriority, setValuegetComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerequals, 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, writeReplacepublic static final java.lang.String _TYPECODE
public static final java.lang.String _ORDERDISCOUNTRELATION
OrderDiscountRelation defining source attribute orders in extension core.public static final java.lang.String DESCRIPTION
Voucher.description attribute defined at extension voucher.public static final java.lang.String FREESHIPPING
Voucher.freeShipping attribute defined at extension voucher.public static final java.lang.String VALUESTRING
Voucher.valueString attribute defined at extension voucher.public static final java.lang.String RESTRICTIONS
Voucher.restrictions attribute defined at extension voucher.public static final java.lang.String INVALIDATIONS
Voucher.invalidations attribute defined at extension voucher.public VoucherModel()
public VoucherModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public VoucherModel(java.lang.String _code)
_code - initial attribute declared by type Voucher at extension voucher@Deprecated
public VoucherModel(java.lang.String _code,
ItemModel _owner)
_code - initial attribute declared by type Voucher at extension voucher_owner - initial attribute declared by type Item at extension core@Accessor(qualifier="description", type=GETTER) public java.lang.String getDescription()
Voucher.description attribute defined at extension voucher.@Accessor(qualifier="description", type=GETTER) public java.lang.String getDescription(java.util.Locale loc)
Voucher.description attribute defined at extension voucher.loc - the value localization keyjava.lang.IllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="freeShipping", type=GETTER) public java.lang.Boolean getFreeShipping()
Voucher.freeShipping attribute defined at extension voucher.@Accessor(qualifier="invalidations", type=GETTER) public java.util.Collection<VoucherInvalidationModel> getInvalidations()
Voucher.invalidations attribute defined at extension voucher.
Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.@Accessor(qualifier="restrictions", type=GETTER) public java.util.Set<RestrictionModel> getRestrictions()
Voucher.restrictions attribute defined at extension voucher.
Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.@Accessor(qualifier="valueString", type=GETTER) public java.lang.String getValueString()
Voucher.valueString attribute defined at extension voucher.@Accessor(qualifier="description", type=SETTER) public void setDescription(java.lang.String value)
Voucher.description attribute defined at extension voucher.value - the description - the description of the voucher.@Accessor(qualifier="description", type=SETTER) public void setDescription(java.lang.String value, java.util.Locale loc)
Voucher.description attribute defined at extension voucher.value - the description - the description of the voucher.loc - the value localization keyjava.lang.IllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="freeShipping", type=SETTER) public void setFreeShipping(java.lang.Boolean value)
Voucher.freeShipping attribute defined at extension voucher.value - the freeShipping - Specifies if the order this voucher is applied to is shipped
for free (true) or not (false). Default is not (false).@Accessor(qualifier="invalidations", type=SETTER) public void setInvalidations(java.util.Collection<VoucherInvalidationModel> value)
Voucher.invalidations attribute defined at extension voucher.value - the invalidations@Accessor(qualifier="restrictions", type=SETTER) public void setRestrictions(java.util.Set<RestrictionModel> value)
Voucher.restrictions attribute defined at extension voucher.value - the restrictionsCopyright © 2018 SAP SE. All Rights Reserved.