public class AddToBasketOptions extends java.lang.Object implements AddToBasketOptionsIf
| Constructor and Description |
|---|
AddToBasketOptions()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCatalogId()
The id of the catalog which contains dynamic product information such as the price and
quantity
|
java.util.Calendar |
getPriceDate()
The date for which a price is requested.
|
boolean |
isAllowMultipleEntriesForSameProduct()
Normally when an identical product is added to the basket more than once, rather than
creating multiple basket entries we update the existing entry with an updated quantity.
|
boolean |
isCalcQuantityForBundles()
When set to true the quantity available for a product is calculated by reading the quantities
of the products within the bundle.
|
boolean |
isCalculateOptionTax()
When
getBasketItemsPerCustomerWithOptions() is called, the price (including and
excluding tax) of each basket item is returned. |
boolean |
isGetImages()
When getting basket items we attach a product object to each basket item.
|
boolean |
isGetStockReservationInfo()
If true, information about reserved stock is returned by the method
updateBasketWithStockInfoWithOptions()
|
boolean |
isRemoveExpiredReservations()
If true, in the
updateBasketWithStockInfoWithOptions() method, when a
reservation is detected to be expired, the reservation information of the returned basket
item is removed and the reservation itself is deleted. |
boolean |
isUseExternalPrice()
If true we attempt to fetch the prices from the external table
|
boolean |
isUseExternalQuantity()
If true we attempt to fetch the quantities from the external table
|
void |
setAllowMultipleEntriesForSameProduct(boolean allowMultipleEntriesForSameProduct)
Normally when an identical product is added to the basket more than once, rather than
creating multiple basket entries we update the existing entry with an updated quantity.
|
void |
setCalcQuantityForBundles(boolean calcQuantityForBundles)
When set to true the quantity available for a product is calculated by reading the quantities
of the products within the bundle.
|
void |
setCalculateOptionTax(boolean calculateOptionTax)
When
getBasketItemsPerCustomerWithOptions() is called, the price (including and
excluding tax) of each basket item is returned. |
void |
setCatalogId(java.lang.String catalogId)
The id of the catalog which contains dynamic product information such as the price and
quantity
|
void |
setGetImages(boolean getImages)
When getting basket items we attach a product object to each basket item.
|
void |
setGetStockReservationInfo(boolean getStockReservationInfo)
If true, information about reserved stock is returned by the method
updateBasketWithStockInfoWithOptions()
|
void |
setPriceDate(java.util.Calendar priceDate)
The date for which a price is requested.
|
void |
setRemoveExpiredReservations(boolean removeExpiredReservations)
If true, in the
updateBasketWithStockInfoWithOptions() method, when a
reservation is detected to be expired, the reservation information of the returned basket
item is removed and the reservation itself is deleted. |
void |
setUseExternalPrice(boolean useExternalPrice)
If true we attempt to fetch the prices from the external table
|
void |
setUseExternalQuantity(boolean useExternalQuantity)
If true we attempt to fetch the quantities from the external table
|
public boolean isAllowMultipleEntriesForSameProduct()
AddToBasketOptionsIfisAllowMultipleEntriesForSameProduct in interface AddToBasketOptionsIfpublic void setAllowMultipleEntriesForSameProduct(boolean allowMultipleEntriesForSameProduct)
AddToBasketOptionsIfsetAllowMultipleEntriesForSameProduct in interface AddToBasketOptionsIfallowMultipleEntriesForSameProduct - The allowMultipleEntriesForSameProduct to set.public java.lang.String getCatalogId()
AddToBasketOptionsIfgetCatalogId in interface AddToBasketOptionsIfpublic void setCatalogId(java.lang.String catalogId)
AddToBasketOptionsIfsetCatalogId in interface AddToBasketOptionsIfcatalogId - the catalogId to setpublic java.util.Calendar getPriceDate()
AddToBasketOptionsIfgetPriceDate in interface AddToBasketOptionsIfpublic void setPriceDate(java.util.Calendar priceDate)
AddToBasketOptionsIfsetPriceDate in interface AddToBasketOptionsIfpriceDate - the priceDate to setpublic boolean isUseExternalPrice()
AddToBasketOptionsIfisUseExternalPrice in interface AddToBasketOptionsIfpublic void setUseExternalPrice(boolean useExternalPrice)
AddToBasketOptionsIfsetUseExternalPrice in interface AddToBasketOptionsIfuseExternalPrice - the useExternalPrice to setpublic boolean isUseExternalQuantity()
AddToBasketOptionsIfisUseExternalQuantity in interface AddToBasketOptionsIfpublic void setUseExternalQuantity(boolean useExternalQuantity)
AddToBasketOptionsIfsetUseExternalQuantity in interface AddToBasketOptionsIfuseExternalQuantity - the useExternalQuantity to setpublic boolean isCalcQuantityForBundles()
AddToBasketOptionsIfisCalcQuantityForBundles in interface AddToBasketOptionsIfpublic void setCalcQuantityForBundles(boolean calcQuantityForBundles)
AddToBasketOptionsIfsetCalcQuantityForBundles in interface AddToBasketOptionsIfcalcQuantityForBundles - the calcQuantityForBundles to setpublic boolean isGetImages()
isGetImages in interface AddToBasketOptionsIfpublic void setGetImages(boolean getImages)
setGetImages in interface AddToBasketOptionsIfgetImages - the getImages to setpublic boolean isGetStockReservationInfo()
isGetStockReservationInfo in interface AddToBasketOptionsIfpublic void setGetStockReservationInfo(boolean getStockReservationInfo)
setGetStockReservationInfo in interface AddToBasketOptionsIfgetStockReservationInfo - the getStockReservationInfo to setpublic boolean isRemoveExpiredReservations()
updateBasketWithStockInfoWithOptions() method, when a
reservation is detected to be expired, the reservation information of the returned basket
item is removed and the reservation itself is deleted. This attribute is only used when
getStockReservationInfo is set to true. The default value is true.isRemoveExpiredReservations in interface AddToBasketOptionsIfpublic void setRemoveExpiredReservations(boolean removeExpiredReservations)
updateBasketWithStockInfoWithOptions() method, when a
reservation is detected to be expired, the reservation information of the returned basket
item is removed and the reservation itself is deleted. This attribute is only used when
getStockReservationInfo is set to true. The default value is true.setRemoveExpiredReservations in interface AddToBasketOptionsIfremoveExpiredReservations - the removeExpiredReservations to setpublic boolean isCalculateOptionTax()
getBasketItemsPerCustomerWithOptions() is called, the price (including and
excluding tax) of each basket item is returned. However, if the basket item has options, the
option price including tax is not returned by default because in most cases it's never used
and so it's not calculated. If calculateOptionTax() is set to true then the
prices including tax for each option are calculated and returned.isCalculateOptionTax in interface AddToBasketOptionsIfpublic void setCalculateOptionTax(boolean calculateOptionTax)
getBasketItemsPerCustomerWithOptions() is called, the price (including and
excluding tax) of each basket item is returned. However, if the basket item has options, the
option price including tax is not returned by default because in most cases it's never used
and so it's not calculated. If calculateOptionTax() is set to true then the
prices including tax for each option are calculated and returned.setCalculateOptionTax in interface AddToBasketOptionsIfcalculateOptionTax - the calculateOptionTax to setCopyright © 2018 DS Data Systems UK Ltd.