public interface AddToBasketOptionsIf
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, the basket reserved stock attributes (
reservationId ,
qtyResrvdForResId , reservationExpiryDate ,
reservationStartDate ) are populated by the method
updateBasketWithStockInfoWithOptions() and when retrieving basket items. |
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, the basket reserved stock attributes (
reservationId ,
qtyResrvdForResId , reservationExpiryDate ,
reservationStartDate ) are populated by the method
updateBasketWithStockInfoWithOptions() and when retrieving basket items. |
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
|
boolean isAllowMultipleEntriesForSameProduct()
void setAllowMultipleEntriesForSameProduct(boolean allowMultipleEntriesForSameProduct)
allowMultipleEntriesForSameProduct
- The allowMultipleEntriesForSameProduct to set.java.lang.String getCatalogId()
void setCatalogId(java.lang.String catalogId)
catalogId
- the catalogId to setjava.util.Calendar getPriceDate()
void setPriceDate(java.util.Calendar priceDate)
priceDate
- the priceDate to setboolean isUseExternalPrice()
void setUseExternalPrice(boolean useExternalPrice)
useExternalPrice
- the useExternalPrice to setboolean isUseExternalQuantity()
void setUseExternalQuantity(boolean useExternalQuantity)
useExternalQuantity
- the useExternalQuantity to setboolean isCalcQuantityForBundles()
void setCalcQuantityForBundles(boolean calcQuantityForBundles)
calcQuantityForBundles
- the calcQuantityForBundles to setboolean isGetImages()
void setGetImages(boolean getImages)
getImages
- the getImages to setboolean isGetStockReservationInfo()
reservationId
,
qtyResrvdForResId
, reservationExpiryDate
,
reservationStartDate
) are populated by the method
updateBasketWithStockInfoWithOptions() and when retrieving basket items. The attribute
quantityReserved
is also populated by
updateBasketWithStockInfoWithOptions().void setGetStockReservationInfo(boolean getStockReservationInfo)
reservationId
,
qtyResrvdForResId
, reservationExpiryDate
,
reservationStartDate
) are populated by the method
updateBasketWithStockInfoWithOptions() and when retrieving basket items. The attribute
quantityReserved
is also populated by
updateBasketWithStockInfoWithOptions().getStockReservationInfo
- the getStockReservationInfo to setboolean 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.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.removeExpiredReservations
- the removeExpiredReservations to setboolean 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.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.calculateOptionTax
- the calculateOptionTax to setCopyright © 2018 DS Data Systems UK Ltd.