com.konakart.json.app
Class J_AddToBasketOptions

java.lang.Object
  extended by com.konakart.json.app.J_AddToBasketOptions
All Implemented Interfaces:
java.io.Serializable

public class J_AddToBasketOptions
extends java.lang.Object
implements java.io.Serializable

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

See Also:
Serialized Form

Constructor Summary
J_AddToBasketOptions()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J_AddToBasketOptions

public J_AddToBasketOptions()
Method Detail

isAllowMultipleEntriesForSameProduct

public 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

public 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

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

Returns:
the catalogId

setCatalogId

public 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

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

Returns:
the priceDate

setPriceDate

public 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

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

Returns:
the useExternalPrice

setUseExternalPrice

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

Parameters:
_useExternalPrice - the useExternalPrice to set

isUseExternalQuantity

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

Returns:
the useExternalQuantity

setUseExternalQuantity

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

Parameters:
_useExternalQuantity - the useExternalQuantity to set

isCalcQuantityForBundles

public 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

public 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.