|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.json.app.J_Promotion
public class J_Promotion
The Promotion object contains information about the promotion.
| Constructor Summary | |
|---|---|
J_Promotion()
|
|
| Method Summary | |
|---|---|
J_OrderProduct[] |
getApplicableProducts()
Contains an array of OrderProduct objects to which the promotion can be applied. |
int |
getCategoryRule()
This is the rule linking categories to the promotion. |
J_Coupon |
getCoupon()
There may be a coupon associated with the promotion. |
java.lang.String |
getCustom1()
|
java.lang.String |
getCustom10()
|
java.lang.String |
getCustom2()
|
java.lang.String |
getCustom3()
|
java.lang.String |
getCustom4()
|
java.lang.String |
getCustom5()
|
java.lang.String |
getCustom6()
|
java.lang.String |
getCustom7()
|
java.lang.String |
getCustom8()
|
java.lang.String |
getCustom9()
|
int |
getCustomerGroupRule()
This is the rule linking customer groups to the promotion. |
int |
getCustomerRule()
This is the rule linking customers to the promotion. |
java.util.Calendar |
getDateAdded()
|
java.lang.String |
getDescription()
A description of the promotion. |
java.util.Calendar |
getEndDate()
After this date the promotion is no longer active. |
int |
getId()
|
java.util.Calendar |
getLastModified()
|
int |
getManufacturerRule()
This is the rule linking manufacturers to the promotion. |
int |
getMaxUse()
The maximum number of times that the promotion can be used by a single customer |
java.lang.String |
getName()
The promotion name. |
java.lang.String |
getOrderTotalCode()
The code of the order total module used to calculate the promotion. |
int |
getProductRule()
This is the rule linking products to the promotion. |
java.util.Calendar |
getStartDate()
Before this date the promotion is not active. |
boolean |
isActive()
Set to true if the promotion is active. |
boolean |
isCumulative()
Set to true if the promotion is cumulative with other promotions. |
boolean |
isRequiresCoupon()
Does the promotion require a coupon |
void |
setActive(boolean _active)
Set to true if the promotion is active. |
void |
setApplicableProducts(J_OrderProduct[] _applicableProducts)
Contains an array of OrderProduct objects to which the promotion can be applied. |
void |
setCategoryRule(int _categoryRule)
This is the rule linking categories to the promotion. |
void |
setCoupon(J_Coupon _coupon)
There may be a coupon associated with the promotion. |
void |
setCumulative(boolean _cumulative)
Set to true if the promotion is cumulative with other promotions. |
void |
setCustom1(java.lang.String _custom1)
|
void |
setCustom10(java.lang.String _custom10)
|
void |
setCustom2(java.lang.String _custom2)
|
void |
setCustom3(java.lang.String _custom3)
|
void |
setCustom4(java.lang.String _custom4)
|
void |
setCustom5(java.lang.String _custom5)
|
void |
setCustom6(java.lang.String _custom6)
|
void |
setCustom7(java.lang.String _custom7)
|
void |
setCustom8(java.lang.String _custom8)
|
void |
setCustom9(java.lang.String _custom9)
|
void |
setCustomerGroupRule(int _customerGroupRule)
This is the rule linking customer groups to the promotion. |
void |
setCustomerRule(int _customerRule)
This is the rule linking customers to the promotion. |
void |
setDateAdded(java.util.Calendar _dateAdded)
|
void |
setDescription(java.lang.String _description)
A description of the promotion. |
void |
setEndDate(java.util.Calendar _endDate)
After this date the promotion is no longer active. |
void |
setId(int _id)
|
void |
setLastModified(java.util.Calendar _lastModified)
|
void |
setManufacturerRule(int _manufacturerRule)
This is the rule linking manufacturers to the promotion. |
void |
setMaxUse(int _maxUse)
The maximum number of times that the promotion can be used by a single customer |
void |
setName(java.lang.String _name)
The promotion name. |
void |
setOrderTotalCode(java.lang.String _orderTotalCode)
The code of the order total module used to calculate the promotion. |
void |
setProductRule(int _productRule)
This is the rule linking products to the promotion. |
void |
setRequiresCoupon(boolean _requiresCoupon)
Does the promotion require a coupon |
void |
setStartDate(java.util.Calendar _startDate)
Before this date the promotion is not active. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public J_Promotion()
| Method Detail |
|---|
public boolean isActive()
public void setActive(boolean _active)
_active - The active to set.public boolean isCumulative()
public void setCumulative(boolean _cumulative)
_cumulative - The cumulative to set.public java.lang.String getCustom1()
public void setCustom1(java.lang.String _custom1)
_custom1 - The custom1 to set.public java.lang.String getCustom2()
public void setCustom2(java.lang.String _custom2)
_custom2 - The custom2 to set.public java.lang.String getCustom3()
public void setCustom3(java.lang.String _custom3)
_custom3 - The custom3 to set.public java.lang.String getCustom4()
public void setCustom4(java.lang.String _custom4)
_custom4 - The custom4 to set.public java.lang.String getCustom5()
public void setCustom5(java.lang.String _custom5)
_custom5 - The custom5 to set.public java.lang.String getCustom6()
public void setCustom6(java.lang.String _custom6)
_custom6 - The custom6 to set.public java.lang.String getCustom7()
public void setCustom7(java.lang.String _custom7)
_custom7 - The custom7 to set.public java.lang.String getCustom8()
public void setCustom8(java.lang.String _custom8)
_custom8 - The custom8 to set.public java.lang.String getCustom9()
public void setCustom9(java.lang.String _custom9)
_custom9 - The custom9 to set.public java.lang.String getCustom10()
public void setCustom10(java.lang.String _custom10)
_custom10 - The custom10 to set.public int getId()
public void setId(int _id)
_id - The id to set.public java.lang.String getOrderTotalCode()
public void setOrderTotalCode(java.lang.String _orderTotalCode)
_orderTotalCode - The orderTotalCode to set.public java.lang.String getName()
public void setName(java.lang.String _name)
_name - The name to set.public java.lang.String getDescription()
public void setDescription(java.lang.String _description)
_description - The description to set.public int getCategoryRule()
public void setCategoryRule(int _categoryRule)
_categoryRule - The categoryRule to set.public int getCustomerRule()
public void setCustomerRule(int _customerRule)
_customerRule - The customerRule to set.public int getCustomerGroupRule()
public void setCustomerGroupRule(int _customerGroupRule)
_customerGroupRule - The customerGroupRule to set.public int getManufacturerRule()
public void setManufacturerRule(int _manufacturerRule)
_manufacturerRule - The manufacturerRule to set.public int getProductRule()
public void setProductRule(int _productRule)
_productRule - The productRule to set.public J_OrderProduct[] getApplicableProducts()
public void setApplicableProducts(J_OrderProduct[] _applicableProducts)
_applicableProducts - The applicableProducts to set.public java.util.Calendar getDateAdded()
public void setDateAdded(java.util.Calendar _dateAdded)
_dateAdded - The dateAdded to set.public java.util.Calendar getEndDate()
public void setEndDate(java.util.Calendar _endDate)
_endDate - The endDate to set.public java.util.Calendar getLastModified()
public void setLastModified(java.util.Calendar _lastModified)
_lastModified - The lastModified to set.public java.util.Calendar getStartDate()
public void setStartDate(java.util.Calendar _startDate)
_startDate - The startDate to set.public J_Coupon getCoupon()
public void setCoupon(J_Coupon _coupon)
_coupon - The coupon to set.public int getMaxUse()
public void setMaxUse(int _maxUse)
_maxUse - the maxUse to setpublic boolean isRequiresCoupon()
public void setRequiresCoupon(boolean _requiresCoupon)
_requiresCoupon - The requiresCoupon to set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||