com.konakart.appif
Interface BasketIf


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.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()
           
 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 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)
           
 

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.

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.


Copyright © 2006 DS Data Systems UK Ltd.