com.konakart.appif
Interface AddToBasketOptionsIf

All Known Implementing Classes:
AddToBasketOptions

public interface AddToBasketOptionsIf

An object used to contain options used when adding items to the basket.


Method Summary
 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 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 setCatalogId(java.lang.String catalogId)
          The id of the catalog which contains dynamic product information such as the price and quantity
 void setPriceDate(java.util.Calendar priceDate)
          The date for which a price is requested.
 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
 

Method Detail

isAllowMultipleEntriesForSameProduct

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. When this boolean is set, allow multiple entries of the same item.

Returns:
Returns the allowMultipleEntriesForSameProduct.

setAllowMultipleEntriesForSameProduct

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. When this boolean is set, allow multiple entries of the same item.

Parameters:
allowMultipleEntriesForSameProduct - The allowMultipleEntriesForSameProduct to set.

getCatalogId

java.lang.String getCatalogId()
The id of the catalog which contains dynamic product information such as the price and quantity

Returns:
the catalogId

setCatalogId

void setCatalogId(java.lang.String catalogId)
The id of the catalog which contains dynamic product information such as the price and quantity

Parameters:
catalogId - the catalogId to set

getPriceDate

java.util.Calendar getPriceDate()
The date for which a price is requested. It could be out in the future.

Returns:
the priceDate

setPriceDate

void setPriceDate(java.util.Calendar priceDate)
The date for which a price is requested. It could be out in the future.

Parameters:
priceDate - the priceDate to set

isUseExternalPrice

boolean isUseExternalPrice()
If true we attempt to fetch the prices from the external table

Returns:
the useExternalPrice

setUseExternalPrice

void setUseExternalPrice(boolean useExternalPrice)
If true we attempt to fetch the prices from the external table

Parameters:
useExternalPrice - the useExternalPrice to set

isUseExternalQuantity

boolean isUseExternalQuantity()
If true we attempt to fetch the quantities from the external table

Returns:
the useExternalQuantity

setUseExternalQuantity

void setUseExternalQuantity(boolean useExternalQuantity)
If true we attempt to fetch the quantities from the external table

Parameters:
useExternalQuantity - the useExternalQuantity to set

isCalcQuantityForBundles

boolean isCalcQuantityForBundles()
When set to true the quantity available for a product is calculated by reading the quantities of the products within the bundle.

Returns:
the calcQuantityForBundles

setCalcQuantityForBundles

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.

Parameters:
calcQuantityForBundles - the calcQuantityForBundles to set


Copyright © 2011 DS Data Systems UK Ltd.