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()
FetchPromotionOptionsIf
isPopulateProducts
in interface FetchPromotionOptionsIf
public void setPopulateProducts(boolean populateProducts)
FetchPromotionOptionsIf
setPopulateProducts
in interface FetchPromotionOptionsIf
populateProducts
- the populateProducts to setpublic boolean isPopulateManufacturers()
FetchPromotionOptionsIf
isPopulateManufacturers
in interface FetchPromotionOptionsIf
public void setPopulateManufacturers(boolean populateManufacturers)
FetchPromotionOptionsIf
setPopulateManufacturers
in interface FetchPromotionOptionsIf
populateManufacturers
- the populateManufacturers to setpublic boolean isPopulateCategories()
FetchPromotionOptionsIf
isPopulateCategories
in interface FetchPromotionOptionsIf
public void setPopulateCategories(boolean populateCategories)
FetchPromotionOptionsIf
setPopulateCategories
in interface FetchPromotionOptionsIf
populateCategories
- the populateCategories to setpublic boolean isOnlyReturnIfActive()
FetchPromotionOptionsIf
isOnlyReturnIfActive
in interface FetchPromotionOptionsIf
public void setOnlyReturnIfActive(boolean onlyReturnIfActive)
FetchPromotionOptionsIf
setOnlyReturnIfActive
in interface FetchPromotionOptionsIf
onlyReturnIfActive
- the onlyReturnIfActive to setpublic java.lang.String getSessionId()
FetchPromotionOptionsIf
getSessionId
in interface FetchPromotionOptionsIf
public void setSessionId(java.lang.String sessionId)
FetchPromotionOptionsIf
setSessionId
in interface FetchPromotionOptionsIf
sessionId
- the sessionId to setpublic int getCustomerId()
FetchPromotionOptionsIf
getCustomerId
in interface FetchPromotionOptionsIf
public void setCustomerId(int customerId)
FetchPromotionOptionsIf
setCustomerId
in interface FetchPromotionOptionsIf
customerId
- the customerId to setpublic java.lang.String[] getCouponCodes()
FetchPromotionOptionsIf
getCouponCodes
in interface FetchPromotionOptionsIf
public void setCouponCodes(java.lang.String[] couponCodes)
FetchPromotionOptionsIf
setCouponCodes
in interface FetchPromotionOptionsIf
couponCodes
- the couponCodes to setCopyright © 2018 DS Data Systems UK Ltd.