com.konakart.appif
Interface ProductQuantityIf

All Known Implementing Classes:
ProductQuantity

public interface ProductQuantityIf

Product Quantity object which contains the quantity of a product for different option value combinations. For example, there may be different quantities in stock for the product "brown leather shoe" depending on the size.


Method Summary
 java.util.Calendar getDateAvailable()
           
 java.lang.String getEncodedOptionValues()
          encodedOptionValues: {4}3{3}6 which means product_options of id==4 and product_options_values of id==3 followed by product_options of id==3 and product_options_values of id==6.
 OptionIf[] getOpts()
          Array of options matching the encoded option values
 int getProductId()
           
 PromotionResultIf[] getPromotionResults()
          Active promotions for this product configuration
 int getQuantity()
           
 java.lang.String getSku()
          The SKU of the product
 void setDateAvailable(java.util.Calendar dateAvailable)
           
 void setEncodedOptionValues(java.lang.String encodedOptionValues)
          encodedOptionValues: {4}3{3}6 which means product_options of id==4 and product_options_values of id==3 followed by product_options of id==3 and product_options_values of id==6.
 void setOpts(OptionIf[] opts)
          Array of options matching the encoded option values
 void setProductId(int productId)
           
 void setPromotionResults(PromotionResultIf[] promotionResults)
          Active promotions for this product configuration
 void setQuantity(int quantity)
           
 void setSku(java.lang.String sku)
          The SKU of the product
 

Method Detail

getEncodedOptionValues

java.lang.String getEncodedOptionValues()
encodedOptionValues: {4}3{3}6 which means product_options of id==4 and product_options_values of id==3 followed by product_options of id==3 and product_options_values of id==6.

Returns:
Returns the encodedOptionValues.

setEncodedOptionValues

void setEncodedOptionValues(java.lang.String encodedOptionValues)
encodedOptionValues: {4}3{3}6 which means product_options of id==4 and product_options_values of id==3 followed by product_options of id==3 and product_options_values of id==6.

Parameters:
encodedOptionValues - The encodedOptionValues 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.

getDateAvailable

java.util.Calendar getDateAvailable()
Returns:
the dateAvailable

setDateAvailable

void setDateAvailable(java.util.Calendar dateAvailable)
Parameters:
dateAvailable - the dateAvailable to set

getSku

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

Returns:
Returns the sku.

setSku

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

Parameters:
sku - The sku to set.

getOpts

OptionIf[] getOpts()
Array of options matching the encoded option values

Returns:
the opts

setOpts

void setOpts(OptionIf[] opts)
Array of options matching the encoded option values

Parameters:
opts - the opts to set

getPromotionResults

PromotionResultIf[] getPromotionResults()
Active promotions for this product configuration

Returns:
the promotionResults

setPromotionResults

void setPromotionResults(PromotionResultIf[] promotionResults)
Active promotions for this product configuration

Parameters:
promotionResults - the promotionResults to set


Copyright © 2011 DS Data Systems UK Ltd.