public final class CSDiscountSchemeContent extends CSItemContent
CSDiscountScheme
object.
set/get
methods within CSDiscountScheme
provide access to this content data and so
there should not typically be any need to explicitly use the set/get
methods supplied here.
CSDiscountScheme
,
Serialized FormConstructor and Description |
---|
CSDiscountSchemeContent()
Creates an empty
CSDiscountSchemeContent object. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Determines whether the data contained in this
CSDiscountSchemeContent object is the same as that
contained within the one supplied. |
java.lang.String |
getDiscountDescription()
Gets the description of the discount scheme.
|
java.util.Date |
getDiscountEndDate()
Gets the end date of the discount scheme.
|
java.lang.Double |
getDiscountQualify()
Gets the qualifying value of the discount scheme.
|
java.lang.String |
getDiscountQualifyType()
Gets the qualify type of the discount scheme.
|
java.lang.String |
getDiscountSchemeName()
Gets the name of the discount scheme.
|
java.util.Date |
getDiscountStartDate()
Gets the start date of the discount scheme.
|
double |
getDiscountValue()
Gets the value of the discount scheme.
|
java.lang.String |
getDiscountValueType()
Gets the value type of the discount scheme.
|
int |
getDisplayOrder()
Gets the display order of the discount scheme.
|
java.lang.String |
getUserData()
Gets the user data of the discount scheme.
|
boolean |
isDiscountAvailable()
Gets the availability of the discount scheme.
|
void |
setDiscountAvailable(boolean bAvailable)
Sets the availability of the discount scheme.
|
void |
setDiscountDescription(java.lang.String strDescription)
Sets the description of the discount scheme.
|
void |
setDiscountEndDate(java.util.Date objEndDate)
Sets the end date of the discount scheme.
|
void |
setDiscountQualify(java.lang.Double nQualifyValue)
Sets the qualifying value of the discount scheme.
|
void |
setDiscountQualifyType(java.lang.String strQualifyType)
Sets the qualify type of the discount scheme.
|
void |
setDiscountSchemeName(java.lang.String strName)
Sets the name of the discount scheme.
|
void |
setDiscountStartDate(java.util.Date objStartDate)
Sets the start date of the discount scheme.
|
void |
setDiscountValue(double nValue)
Sets the value of the discount scheme.
|
void |
setDiscountValueType(java.lang.String strValueType)
Sets the value type of the discount scheme.
|
void |
setDisplayOrder(int nDisplayOrder)
Sets the display order of the discount scheme.
|
void |
setUserData(java.lang.String strUserData)
Sets the user data of the discount scheme.
|
void |
unset()
Clear all the content details of the
CSDiscountSchemeContent object. |
clone, getID, setID, toString
public CSDiscountSchemeContent()
CSDiscountSchemeContent
object.public java.lang.String getDiscountSchemeName()
public void setDiscountSchemeName(java.lang.String strName)
strName
- the discount scheme's name.public double getDiscountValue()
The discount scheme value is the amount of discount to be applied which will either be a fixed discount value or a percentage.
public void setDiscountValue(double nValue)
The discount scheme value is the amount of discount to be applied which will either be a fixed discount value or a percentage.
nValue
- the discount scheme's value.public java.lang.String getDiscountValueType()
The DiscountValueType
indicates if the DiscountValue
is a fixed amount or
percentage discount.
public void setDiscountValueType(java.lang.String strValueType)
The valid value types are as follows :
Amount
Percent
strValueType
- the discount scheme's value type.public java.lang.Double getDiscountQualify()
The DiscountQualify
indicates if the qualifying value which must be met before the discount can be
applied.
public void setDiscountQualify(java.lang.Double nQualifyValue)
The DiscountQualify
indicates if the qualifying value which must be met before the discount can be
applied.
nQualifyValue
- the discount scheme's qualifying value.public java.lang.String getDiscountQualifyType()
The DiscountQualifyType
indicates if the DiscountQualify
is a quantity, a total
spend or no qualification required.
public void setDiscountQualifyType(java.lang.String strQualifyType)
strQualifyType
- the discount scheme's qualify type.public java.util.Date getDiscountStartDate()
public void setDiscountStartDate(java.util.Date objStartDate)
objStartDate
- the discount scheme's start date.public java.util.Date getDiscountEndDate()
public void setDiscountEndDate(java.util.Date objEndDate)
objEndDate
- the discount scheme's end date.public boolean isDiscountAvailable()
public void setDiscountAvailable(boolean bAvailable)
bAvailable
- the discount scheme's availability.public java.lang.String getDiscountDescription()
public void setDiscountDescription(java.lang.String strDescription)
strDescription
- the discount scheme's description.public int getDisplayOrder()
public void setDisplayOrder(int nDisplayOrder)
nDisplayOrder
- the discount scheme's display order.public java.lang.String getUserData()
public void setUserData(java.lang.String strUserData)
strUserData
- the discount scheme's user data.public void unset()
CSDiscountSchemeContent
object.unset
in class CSItemContent
public boolean equals(java.lang.Object obj)
CSDiscountSchemeContent
object is the same as that
contained within the one supplied. Note that the key data used for searching is not tested for equality.
equals
in class CSItemContent
obj
- the CSDiscountSchemeContent
to be tested for equality.true
if the data matches, false
otherwise.Copyright © 2022 Goss Interactive Ltd. All Rights Reserved.