public class VoucherModel extends DiscountModel
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static String |
_ORDERDISCOUNTRELATION
Generated relation code constant for relation
OrderDiscountRelation defining source attribute orders in extension core. |
static String |
_TYPECODE
Generated model type code constant.
|
static String |
DESCRIPTION
Generated constant - Attribute key of
Voucher.description attribute defined at extension voucher. |
static String |
FREESHIPPING
Generated constant - Attribute key of
Voucher.freeShipping attribute defined at extension voucher. |
static String |
INVALIDATIONS
Generated constant - Attribute key of
Voucher.invalidations attribute defined at extension voucher. |
static String |
RESTRICTIONS
Generated constant - Attribute key of
Voucher.restrictions attribute defined at extension voucher. |
static 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, PKLANGUAGE_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(String _code)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
VoucherModel(String _code,
ItemModel _owner)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Generated method - Getter of the
Voucher.description attribute defined at extension voucher. |
String |
getDescription(Locale loc)
Generated method - Getter of the
Voucher.description attribute defined at extension voucher. |
Boolean |
getFreeShipping()
Generated method - Getter of the
Voucher.freeShipping attribute defined at extension voucher. |
Collection<VoucherInvalidationModel> |
getInvalidations()
Generated method - Getter of the
Voucher.invalidations attribute defined at extension voucher. |
Set<RestrictionModel> |
getRestrictions()
Generated method - Getter of the
Voucher.restrictions attribute defined at extension voucher. |
String |
getValueString()
Generated method - Getter of the
Voucher.valueString attribute defined at extension voucher. |
void |
setDescription(String value)
Generated method - Setter of
Voucher.description attribute defined at extension voucher. |
void |
setDescription(String value,
Locale loc)
Generated method - Setter of
Voucher.description attribute defined at extension voucher. |
void |
setFreeShipping(Boolean value)
Generated method - Setter of
Voucher.freeShipping attribute defined at extension voucher. |
void |
setInvalidations(Collection<VoucherInvalidationModel> value)
Generated method - Setter of
Voucher.invalidations attribute defined at extension voucher. |
void |
setRestrictions(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, 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 String _TYPECODE
public static final String _ORDERDISCOUNTRELATION
OrderDiscountRelation defining source attribute orders in extension core.public static final String DESCRIPTION
Voucher.description attribute defined at extension voucher.public static final String FREESHIPPING
Voucher.freeShipping attribute defined at extension voucher.public static final String VALUESTRING
Voucher.valueString attribute defined at extension voucher.public static final String RESTRICTIONS
Voucher.restrictions attribute defined at extension voucher.public static final 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(String _code)
_code - initial attribute declared by type Voucher at extension voucher@Deprecated public VoucherModel(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 String getDescription()
Voucher.description attribute defined at extension voucher.@Accessor(qualifier="description", type=GETTER) public String getDescription(Locale loc)
Voucher.description attribute defined at extension voucher.loc - the value localization keyIllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="freeShipping", type=GETTER) public Boolean getFreeShipping()
Voucher.freeShipping attribute defined at extension voucher.@Accessor(qualifier="invalidations", type=GETTER) public 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 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 String getValueString()
Voucher.valueString attribute defined at extension voucher.@Accessor(qualifier="description", type=SETTER) public void setDescription(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(String value, Locale loc)
Voucher.description attribute defined at extension voucher.value - the description - the description of the voucher.loc - the value localization keyIllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="freeShipping", type=SETTER) public void setFreeShipping(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(Collection<VoucherInvalidationModel> value)
Voucher.invalidations attribute defined at extension voucher.value - the invalidationsCopyright © 2017 SAP SE. All Rights Reserved.