public interface FetchPromotionOptionsIf
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getCouponCodes()
Coupon codes to use.
|
int |
getCustomerId()
If the sessionId is set to null then the customerId should contain the id of the temporary
user which is a negative number.
|
java.lang.String |
getSessionId()
Only used if the customer is logged in.
|
boolean |
isOnlyReturnIfActive()
Only return the promotion if it is active.
|
boolean |
isPopulateCategories()
If true we populate the includedCategories or excludedCategories arrays of the promotion.
|
boolean |
isPopulateManufacturers()
If true we populate the includedManufacturers or excludedManufacturers arrays of the
promotion.
|
boolean |
isPopulateProducts()
If true we populate the includedProducts or excludedProducts arrays of the promotion.
|
void |
setCouponCodes(java.lang.String[] couponCodes)
Coupon codes to use.
|
void |
setCustomerId(int customerId)
If the sessionId is set to null then the customerId should contain the id of the temporary
user which is a negative number.
|
void |
setOnlyReturnIfActive(boolean onlyReturnIfActive)
Only return the promotion if it is active.
|
void |
setPopulateCategories(boolean populateCategories)
If true we populate the includedCategories or excludedCategories arrays of the promotion.
|
void |
setPopulateManufacturers(boolean populateManufacturers)
If true we populate the includedManufacturers or excludedManufacturers arrays of the
promotion.
|
void |
setPopulateProducts(boolean populateProducts)
If true we populate the includedProducts or excludedProducts arrays of the promotion.
|
void |
setSessionId(java.lang.String sessionId)
Only used if the customer is logged in.
|
boolean isPopulateProducts()
void setPopulateProducts(boolean populateProducts)
populateProducts
- the populateProducts to setboolean isPopulateManufacturers()
void setPopulateManufacturers(boolean populateManufacturers)
populateManufacturers
- the populateManufacturers to setboolean isPopulateCategories()
void setPopulateCategories(boolean populateCategories)
populateCategories
- the populateCategories to setboolean isOnlyReturnIfActive()
void setOnlyReturnIfActive(boolean onlyReturnIfActive)
onlyReturnIfActive
- the onlyReturnIfActive to setjava.lang.String getSessionId()
void setSessionId(java.lang.String sessionId)
sessionId
- the sessionId to setint getCustomerId()
void setCustomerId(int customerId)
customerId
- the customerId to setjava.lang.String[] getCouponCodes()
void setCouponCodes(java.lang.String[] couponCodes)
couponCodes
- the couponCodes to setCopyright © 2018 DS Data Systems UK Ltd.