com.konakart.appif
Interface BasketIf

All Known Implementing Classes:
Basket

public interface BasketIf

One basket object corresponds to an item in the shopping cart.


Method Summary
 java.lang.String getCustom1()
           
 java.lang.String getCustom2()
           
 java.lang.String getCustom3()
           
 java.lang.String getCustom4()
           
 java.lang.String getCustom5()
           
 java.util.Calendar getDateAdded()
           
 java.util.Calendar getDateAvailable()
          The date when the product will become available
 java.lang.String getEncodedProduct()
          The encodedProduct is in the form 1{3}5{4}1 where the first number is the product id.
 java.math.BigDecimal getFinalPriceExTax()
          This is the price without including tax.
 java.math.BigDecimal getFinalPriceIncTax()
          This is the price including tax.
 int getId()
           
 OptionIf[] getOpts()
          An array of Option objects that further defines the product.
 ProductIf getProduct()
           
 int getProductId()
           
 int getQuantity()
           
 int getQuantityInStock()
           
 java.lang.String getSku()
          The SKU of the product
 int getWishListId()
          Set to the id of the wish list (gift registry) to keep track that it has been added from a gift registry.
 int getWishListItemId()
          Set to the id of the wish list item (gift registry item) to keep track that it has been added from a gift registry and which item it corresponds to.
 boolean isUseBasketPrice()
          When set, the price of the basket object is used rather than getting the price from the product object.
 void setCustom1(java.lang.String custom1)
           
 void setCustom2(java.lang.String custom2)
           
 void setCustom3(java.lang.String custom3)
           
 void setCustom4(java.lang.String custom4)
           
 void setCustom5(java.lang.String custom5)
           
 void setDateAdded(java.util.Calendar dateAdded)
           
 void setDateAvailable(java.util.Calendar dateAvailable)
          The date when the product will become available
 void setEncodedProduct(java.lang.String encodedProduct)
          The encodedProduct is in the form 1{3}5{4}1 where the first number is the product id.
 void setFinalPriceExTax(java.math.BigDecimal finalPriceExTax)
          This is the price without including tax.
 void setFinalPriceIncTax(java.math.BigDecimal finalPriceIncTax)
          This is the price including tax.
 void setId(int id)
           
 void setOpts(OptionIf[] opts)
          An array of Option objects that further defines the product.
 void setProduct(ProductIf product)
           
 void setProductId(int productId)
           
 void setQuantity(int quantity)
           
 void setQuantityInStock(int quantityInStock)
           
 void setSku(java.lang.String sku)
          The SKU of the product
 void setUseBasketPrice(boolean useBasketPrice)
          When set, the price of the basket object is used rather than getting the price from the product object.
 void setWishListId(int wishListId)
          Set to the id of the wish list (gift registry) to keep track that it has been added from a gift registry.
 void setWishListItemId(int wishListItemId)
          Set to the id of the wish list item (gift registry item) to keep track that it has been added from a gift registry and which item it corresponds to.
 

Method Detail

getDateAdded

java.util.Calendar getDateAdded()
Returns:
Returns the dateAdded.

setDateAdded

void setDateAdded(java.util.Calendar dateAdded)
Parameters:
dateAdded - The dateAdded to set.

getEncodedProduct

java.lang.String getEncodedProduct()
The encodedProduct is in the form 1{3}5{4}1 where the first number is the product id. The number pairs following the first number define the {OptionId}OptionValueId . For example this could be Model Type = Premium or Memory size = 1GB etc. If the basket has an encoded product, then it should have an array of Options that match the encoded product.

Returns:
Returns the encodedProduct.

setEncodedProduct

void setEncodedProduct(java.lang.String encodedProduct)
The encodedProduct is in the form 1{3}5{4}1 where the first number is the product id. The number pairs following the first number define the {OptionId}OptionValueId . For example this could be Model Type = Premium or Memory size = 1GB etc. If the basket has an encoded product, then it should have an array of Options that match the encoded product.

Parameters:
encodedProduct - The encodedProduct to set.

getId

int getId()
Returns:
Returns the id.

setId

void setId(int id)
Parameters:
id - The id to set.

getOpts

OptionIf[] getOpts()
An array of Option objects that further defines the product. i.e. Size = small, color = blue. The encodedProductId should match this array of options.

Returns:
Returns the opts.

setOpts

void setOpts(OptionIf[] opts)
An array of Option objects that further defines the product. i.e. Size = small, color = blue. The encodedProductId should match this array of options.

Parameters:
opts - The opts to set.

getProduct

ProductIf getProduct()
Returns:
Returns the product.

setProduct

void setProduct(ProductIf product)
Parameters:
product - The product to set.

getProductId

int getProductId()
Returns:
Returns the productId.

setProductId

void setProductId(int productId)
Parameters:
productId - The productId to set.

getQuantity

int getQuantity()
Returns:
Returns the quantity.

setQuantity

void setQuantity(int quantity)
Parameters:
quantity - The quantity to set.

getFinalPriceExTax

java.math.BigDecimal getFinalPriceExTax()
This is the price without including tax.

Returns:
Returns the finalPriceExTax.

setFinalPriceExTax

void setFinalPriceExTax(java.math.BigDecimal finalPriceExTax)
This is the price without including tax.

Parameters:
finalPriceExTax - The finalPriceExTax to set.

getFinalPriceIncTax

java.math.BigDecimal getFinalPriceIncTax()
This is the price including tax.

Returns:
Returns the finalPriceIncTax.

setFinalPriceIncTax

void setFinalPriceIncTax(java.math.BigDecimal finalPriceIncTax)
This is the price including tax.

Parameters:
finalPriceIncTax - The finalPriceIncTax to set.

getQuantityInStock

int getQuantityInStock()
Returns:
Returns the quantityInStock.

setQuantityInStock

void setQuantityInStock(int quantityInStock)
Parameters:
quantityInStock - The quantityInStock to set.

getDateAvailable

java.util.Calendar getDateAvailable()
The date when the product will become available

Returns:
the dateAvailable

setDateAvailable

void setDateAvailable(java.util.Calendar dateAvailable)
The date when the product will become available

Parameters:
dateAvailable - the dateAvailable to set

getCustom1

java.lang.String getCustom1()
Returns:
Returns the custom1.

setCustom1

void setCustom1(java.lang.String custom1)
Parameters:
custom1 - The custom1 to set.

getCustom2

java.lang.String getCustom2()
Returns:
Returns the custom2.

setCustom2

void setCustom2(java.lang.String custom2)
Parameters:
custom2 - The custom2 to set.

getCustom3

java.lang.String getCustom3()
Returns:
Returns the custom3.

setCustom3

void setCustom3(java.lang.String custom3)
Parameters:
custom3 - The custom3 to set.

getCustom4

java.lang.String getCustom4()
Returns:
Returns the custom4.

setCustom4

void setCustom4(java.lang.String custom4)
Parameters:
custom4 - The custom4 to set.

getCustom5

java.lang.String getCustom5()
Returns:
Returns the custom5.

setCustom5

void setCustom5(java.lang.String custom5)
Parameters:
custom5 - The custom5 to set.

getSku

java.lang.String getSku()
The SKU of the product

Returns:
the sku

setSku

void setSku(java.lang.String sku)
The SKU of the product

Parameters:
sku - the sku to set

getWishListId

int getWishListId()
Set to the id of the wish list (gift registry) to keep track that it has been added from a gift registry.

Returns:
the wishListId

setWishListId

void setWishListId(int wishListId)
Set to the id of the wish list (gift registry) to keep track that it has been added from a gift registry.

Parameters:
wishListId - the wishListId to set

getWishListItemId

int getWishListItemId()
Set to the id of the wish list item (gift registry item) to keep track that it has been added from a gift registry and which item it corresponds to.

Returns:
the wishListItemId

setWishListItemId

void setWishListItemId(int wishListItemId)
Set to the id of the wish list item (gift registry item) to keep track that it has been added from a gift registry and which item it corresponds to.

Parameters:
wishListItemId - the wishListItemId to set

isUseBasketPrice

boolean isUseBasketPrice()
When set, the price of the basket object is used rather than getting the price from the product object.

Returns:
the useBasketPrice

setUseBasketPrice

void setUseBasketPrice(boolean useBasketPrice)
When set, the price of the basket object is used rather than getting the price from the product object.

Parameters:
useBasketPrice - the useBasketPrice to set


Copyright © 2011 DS Data Systems UK Ltd.