public class FetchPromotionOptions extends java.lang.Object implements FetchPromotionOptionsIf
| Constructor and Description |
|---|
FetchPromotionOptions()
Constructor
|
| 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.
|
public boolean isPopulateProducts()
FetchPromotionOptionsIfisPopulateProducts in interface FetchPromotionOptionsIfpublic void setPopulateProducts(boolean populateProducts)
FetchPromotionOptionsIfsetPopulateProducts in interface FetchPromotionOptionsIfpopulateProducts - the populateProducts to setpublic boolean isPopulateManufacturers()
FetchPromotionOptionsIfisPopulateManufacturers in interface FetchPromotionOptionsIfpublic void setPopulateManufacturers(boolean populateManufacturers)
FetchPromotionOptionsIfsetPopulateManufacturers in interface FetchPromotionOptionsIfpopulateManufacturers - the populateManufacturers to setpublic boolean isPopulateCategories()
FetchPromotionOptionsIfisPopulateCategories in interface FetchPromotionOptionsIfpublic void setPopulateCategories(boolean populateCategories)
FetchPromotionOptionsIfsetPopulateCategories in interface FetchPromotionOptionsIfpopulateCategories - the populateCategories to setpublic boolean isOnlyReturnIfActive()
FetchPromotionOptionsIfisOnlyReturnIfActive in interface FetchPromotionOptionsIfpublic void setOnlyReturnIfActive(boolean onlyReturnIfActive)
FetchPromotionOptionsIfsetOnlyReturnIfActive in interface FetchPromotionOptionsIfonlyReturnIfActive - the onlyReturnIfActive to setpublic java.lang.String getSessionId()
FetchPromotionOptionsIfgetSessionId in interface FetchPromotionOptionsIfpublic void setSessionId(java.lang.String sessionId)
FetchPromotionOptionsIfsetSessionId in interface FetchPromotionOptionsIfsessionId - the sessionId to setpublic int getCustomerId()
FetchPromotionOptionsIfgetCustomerId in interface FetchPromotionOptionsIfpublic void setCustomerId(int customerId)
FetchPromotionOptionsIfsetCustomerId in interface FetchPromotionOptionsIfcustomerId - the customerId to setpublic java.lang.String[] getCouponCodes()
FetchPromotionOptionsIfgetCouponCodes in interface FetchPromotionOptionsIfpublic void setCouponCodes(java.lang.String[] couponCodes)
FetchPromotionOptionsIfsetCouponCodes in interface FetchPromotionOptionsIfcouponCodes - the couponCodes to setCopyright © 2018 DS Data Systems UK Ltd.