|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PromotionIf
The Promotion object contains information about the promotion.
Method Summary | |
---|---|
OrderProductIf[] |
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. |
CouponIf |
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(OrderProductIf[] 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(CouponIf 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. |
Method Detail |
---|
boolean isActive()
void setActive(boolean active)
active
- The active to set.boolean isCumulative()
void setCumulative(boolean cumulative)
cumulative
- The cumulative to set.java.lang.String getCustom1()
void setCustom1(java.lang.String custom1)
custom1
- The custom1 to set.java.lang.String getCustom2()
void setCustom2(java.lang.String custom2)
custom2
- The custom2 to set.java.lang.String getCustom3()
void setCustom3(java.lang.String custom3)
custom3
- The custom3 to set.java.lang.String getCustom4()
void setCustom4(java.lang.String custom4)
custom4
- The custom4 to set.java.lang.String getCustom5()
void setCustom5(java.lang.String custom5)
custom5
- The custom5 to set.java.lang.String getCustom6()
void setCustom6(java.lang.String custom6)
custom6
- The custom6 to set.java.lang.String getCustom7()
void setCustom7(java.lang.String custom7)
custom7
- The custom7 to set.java.lang.String getCustom8()
void setCustom8(java.lang.String custom8)
custom8
- The custom8 to set.java.lang.String getCustom9()
void setCustom9(java.lang.String custom9)
custom9
- The custom9 to set.java.lang.String getCustom10()
void setCustom10(java.lang.String custom10)
custom10
- The custom10 to set.int getId()
void setId(int id)
id
- The id to set.java.lang.String getOrderTotalCode()
void setOrderTotalCode(java.lang.String orderTotalCode)
orderTotalCode
- The orderTotalCode to set.java.lang.String getName()
void setName(java.lang.String name)
name
- The name to set.java.lang.String getDescription()
void setDescription(java.lang.String description)
description
- The description to set.int getCategoryRule()
void setCategoryRule(int categoryRule)
categoryRule
- The categoryRule to set.int getCustomerRule()
void setCustomerRule(int customerRule)
customerRule
- The customerRule to set.int getCustomerGroupRule()
void setCustomerGroupRule(int customerGroupRule)
customerGroupRule
- The customerGroupRule to set.int getManufacturerRule()
void setManufacturerRule(int manufacturerRule)
manufacturerRule
- The manufacturerRule to set.int getProductRule()
void setProductRule(int productRule)
productRule
- The productRule to set.OrderProductIf[] getApplicableProducts()
void setApplicableProducts(OrderProductIf[] applicableProducts)
applicableProducts
- The applicableProducts to set.java.util.Calendar getDateAdded()
void setDateAdded(java.util.Calendar dateAdded)
dateAdded
- The dateAdded to set.java.util.Calendar getEndDate()
void setEndDate(java.util.Calendar endDate)
endDate
- The endDate to set.java.util.Calendar getLastModified()
void setLastModified(java.util.Calendar lastModified)
lastModified
- The lastModified to set.java.util.Calendar getStartDate()
void setStartDate(java.util.Calendar startDate)
startDate
- The startDate to set.CouponIf getCoupon()
void setCoupon(CouponIf coupon)
coupon
- The coupon to set.int getMaxUse()
void setMaxUse(int maxUse)
maxUse
- the maxUse to setboolean isRequiresCoupon()
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 |