|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ProductIf
Describes a product object for use within KonaKart.
| Method Summary | |
|---|---|
AddressIf[] |
getAddresses()
An array containing all of the addresses defined for this product. |
BookableProductIf |
getBookableProd()
An object containing attributes relevant to a bookable product |
int |
getBundledProdQuantity()
When products are returned from the API call getRelatedProducts() and the relationship is a bundle relationship, they will have this attribute instantiated to show the number of times that this product appears in the bundle |
java.lang.Boolean |
getCanOrderWhenNotInStock()
If null then we use the global value set by the config variable STOCK_ALLOW_CHECKOUT. |
int |
getCategoryId()
|
java.lang.String |
getComparison()
The content of this attribute should be structured data such as xml so that it can be easily used to compare product features with other products. |
java.lang.String |
getContentType()
Valid for digital products. |
java.lang.String |
getCustom1()
|
java.lang.String |
getCustom10()
|
java.math.BigDecimal |
getCustom1Dec()
|
int |
getCustom1Int()
|
java.lang.String |
getCustom2()
|
java.math.BigDecimal |
getCustom2Dec()
|
int |
getCustom2Int()
|
java.lang.String |
getCustom3()
|
java.lang.String |
getCustom4()
|
java.lang.String |
getCustom5()
|
java.lang.String |
getCustom6()
|
java.lang.String |
getCustom7()
|
java.lang.String |
getCustom8()
|
java.lang.String |
getCustom9()
|
ProdCustAttrIf[] |
getCustomAttrArray()
An array of ProdCustAttr objects |
java.lang.String |
getCustomAttrs()
Contains the custom attributes in XML format |
java.util.Calendar |
getDateAdded()
|
java.util.Calendar |
getDateAvailable()
|
java.lang.String |
getDescription()
|
java.lang.String |
getEncodedOptionValues()
When products are returned from the API call getRelatedProducts() and the relationship is a bundle relationship, they will have this attribute instantiated if the product in the bundle is configured with one or more options. encodedOptionValues 3{5}4{1} means product_options of id==3 and product_options_values of id==5 followed by product_options of id==4 and product_options_values of id==1. |
java.util.Calendar |
getExpiryDate()
The date that the product expires |
java.lang.String |
getFilePath()
Valid for digital products. |
int |
getId()
|
java.lang.String |
getImage()
|
java.lang.String |
getImage2()
|
java.lang.String |
getImage3()
|
java.lang.String |
getImage4()
|
byte |
getInvisible()
When set to '1' the product is invisible and will not be returned from normal API calls. |
ManufacturerIf |
getManufacturer()
|
int |
getManufacturerId()
|
java.lang.String |
getManufacturerName()
|
int |
getMaxDownloadDays()
Maximum number of days a product can be downloaded in the case of digital downloads. |
int |
getMaxNumDownloads()
Maximum number of downloads allowed in the case of digital download products. |
MiscItemIf[] |
getMiscItems()
Miscellaneous Items associated with this product. |
java.lang.String |
getModel()
|
java.lang.String |
getName()
|
int |
getNumberReviews()
|
OptionIf[] |
getOpts()
An array of Option objects. |
int |
getOrdered()
The number of times that the product has been ordered. |
PaymentScheduleIf |
getPaymentSchedule()
A product may be associated to a PaymentSchedule object when it is paid for using recurring billing. |
int |
getPaymentScheduleId()
Determines whether the product requires recurring billing and if so, connects it to a Payment Schedule object. |
java.math.BigDecimal |
getPrice0()
|
java.math.BigDecimal |
getPrice1()
|
java.math.BigDecimal |
getPrice2()
|
java.math.BigDecimal |
getPrice3()
|
java.math.BigDecimal |
getPriceExTax()
|
java.math.BigDecimal |
getPriceIncTax()
|
int[] |
getProdRelationTypeArray()
When products are returned from the API call getRelatedProducts() they will have this array initialised. |
ProductQuantityIf[] |
getProductQuantities()
An array of productQuantity objects that define quantity in stock and availability date for different SKUs. |
PromotionResultIf[] |
getPromotionResults()
Active promotions for this product |
int |
getQuantity()
|
java.math.BigDecimal |
getRating()
Average product rating |
java.lang.String |
getSku()
The SKU is the stock keeping unit. |
java.lang.String[] |
getSnippets()
Array of strings containing snippets which are text fragments surrounding the search keywords. |
java.util.Calendar |
getSpecialExpiryDate()
The date when the special price expires |
java.math.BigDecimal |
getSpecialPriceExTax()
|
java.math.BigDecimal |
getSpecialPriceIncTax()
|
java.util.Calendar |
getSpecialStartDate()
The date when the special price starts |
byte |
getSpecialStatus()
Set to '1' if the special price is active. |
byte |
getStatus()
Set to '1' if the product is active. |
int |
getStockReorderLevel()
Product needs to be reordered when the stock hits this level. |
java.lang.String |
getStoreCustom1()
Custom field with unique value for a store when in multi-store shared products mode |
java.lang.String |
getStoreCustom2()
Custom field with unique value for a store when in multi-store shared products mode |
java.lang.String |
getStoreCustom3()
Custom field with unique value for a store when in multi-store shared products mode |
java.lang.String |
getStoreId()
Attribute is only applicable when KonaKart is configured in multi-store single db mode. |
TagIf[] |
getTags()
|
int |
getTaxClassId()
|
java.lang.String |
getTaxCode()
tax code used when looking up tax from an external service |
TierPriceIf[] |
getTierPrices()
An array of tier price objects for this product |
int |
getType()
product type. |
java.lang.String |
getUrl()
The url of the product, for example from the manufacturer's web site. |
int |
getViewedCount()
The number of times the product has been viewed. |
java.math.BigDecimal |
getWeight()
|
boolean |
isIndexAttachment()
If the product is a digital download and the SOLR search engine is enabled, then the attachment is indexed within the search engine when this boolean is set. |
void |
setAddresses(AddressIf[] addresses)
An array containing all of the addresses defined for this product. |
void |
setBookableProd(BookableProductIf bookableProd)
An object containing attributes relevant to a bookable product |
void |
setBundledProdQuantity(int bundledProdQuantity)
When products are returned from the API call getRelatedProducts() and the relationship is a bundle relationship, they will have this attribute instantiated to show the number of times that this product appears in the bundle |
void |
setCanOrderWhenNotInStock(java.lang.Boolean canOrderWhenNotInStock)
If null then we use the global value set by the config variable STOCK_ALLOW_CHECKOUT. |
void |
setCategoryId(int categoryId)
|
void |
setComparison(java.lang.String comparison)
The content of this attribute should be structured data such as xml so that it can be easily used to compare product features with other products. |
void |
setContentType(java.lang.String contentType)
Valid for digital products. |
void |
setCustom1(java.lang.String custom1)
|
void |
setCustom10(java.lang.String custom10)
|
void |
setCustom1Dec(java.math.BigDecimal custom1Dec)
|
void |
setCustom1Int(int custom1Int)
|
void |
setCustom2(java.lang.String custom2)
|
void |
setCustom2Dec(java.math.BigDecimal custom2Dec)
|
void |
setCustom2Int(int custom2Int)
|
void |
setCustom3(java.lang.String custom3)
|
void |
setCustom4(java.lang.String custom4)
|
void |
setCustom5(java.lang.String custom5)
|
void |
setCustom6(java.lang.String custom6)
|
void |
setCustom7(java.lang.String custom7)
|
void |
setCustom8(java.lang.String custom8)
|
void |
setCustom9(java.lang.String custom9)
|
void |
setCustomAttrArray(ProdCustAttrIf[] customAttrArray)
An array of ProdCustAttr objects |
void |
setCustomAttrs(java.lang.String customAttrs)
Contains the custom attributes in XML format |
void |
setDateAdded(java.util.Calendar dateAdded)
|
void |
setDateAvailable(java.util.Calendar dateAvailable)
|
void |
setDescription(java.lang.String description)
|
void |
setEncodedOptionValues(java.lang.String encodedOptionValues)
When products are returned from the API call getRelatedProducts() and the relationship is a bundle relationship, they will have this attribute instantiated if the product in the bundle is configured with one or more options. encodedOptionValues 3{5}4{1} means product_options of id==3 and product_options_values of id==5 followed by product_options of id==4 and product_options_values of id==1. |
void |
setExpiryDate(java.util.Calendar expiryDate)
The date that the product expires |
void |
setFilePath(java.lang.String filePath)
Valid for digital products. |
void |
setId(int id)
|
void |
setImage(java.lang.String image)
|
void |
setImage2(java.lang.String image2)
|
void |
setImage3(java.lang.String image3)
|
void |
setImage4(java.lang.String image4)
|
void |
setIndexAttachment(boolean indexAttachment)
If the product is a digital download and the SOLR search engine is enabled, then the attachment is indexed within the search engine when this boolean is set. |
void |
setInvisible(byte invisible)
When set to '1' the product is invisible and will not be returned from normal API calls. |
void |
setManufacturer(ManufacturerIf manufacturer)
|
void |
setManufacturerId(int manufacturerId)
|
void |
setManufacturerName(java.lang.String manufacturerName)
|
void |
setMaxDownloadDays(int maxDownloadDays)
Maximum number of days a product can be downloaded in the case of digital downloads. |
void |
setMaxNumDownloads(int maxNumDownloads)
Maximum number of downloads allowed in the case of digital download products. |
void |
setMiscItems(MiscItemIf[] miscItems)
Miscellaneous Items associated with this product |
void |
setModel(java.lang.String model)
|
void |
setName(java.lang.String name)
|
void |
setNumberReviews(int numberReviews)
|
void |
setOpts(OptionIf[] opts)
An array of Option objects. |
void |
setOrdered(int ordered)
The number of times that the product has been ordered. |
void |
setPaymentSchedule(PaymentScheduleIf paymentSchedule)
A product may be associated to a PaymentSchedule object when it is paid for using recurring billing. |
void |
setPaymentScheduleId(int paymentScheduleId)
Determines whether the product requires recurring billing and if so, connects it to a Payment Schedule object. |
void |
setPrice0(java.math.BigDecimal price0)
|
void |
setPrice1(java.math.BigDecimal price1)
|
void |
setPrice2(java.math.BigDecimal price2)
|
void |
setPrice3(java.math.BigDecimal price3)
|
void |
setPriceExTax(java.math.BigDecimal priceExTax)
|
void |
setPriceIncTax(java.math.BigDecimal priceIncTax)
|
void |
setProdRelationTypeArray(int[] prodRelationTypeArray)
When products are returned from the API call getRelatedProducts() they will have this array initialised. |
void |
setProductQuantities(ProductQuantityIf[] productQuantities)
An array of productQuantity objects that define quantity in stock and availability date for different SKUs. |
void |
setPromotionResults(PromotionResultIf[] promotionResults)
Active promotions for this product |
void |
setQuantity(int quantity)
|
void |
setRating(java.math.BigDecimal rating)
Average product rating |
void |
setSku(java.lang.String sku)
The SKU is the stock keeping unit. |
void |
setSnippets(java.lang.String[] snippets)
Array of strings containing snippets which are text fragments surrounding the search keywords. |
void |
setSpecialExpiryDate(java.util.Calendar specialExpiryDate)
The date when the special price expires |
void |
setSpecialPriceExTax(java.math.BigDecimal specialPriceExTax)
|
void |
setSpecialPriceIncTax(java.math.BigDecimal specialPriceIncTax)
|
void |
setSpecialStartDate(java.util.Calendar specialStartDate)
The date when the special price starts |
void |
setSpecialStatus(byte specialStatus)
Set to '1' if the special price is active. |
void |
setStatus(byte status)
Set to '1' if the product is active. |
void |
setStockReorderLevel(int stockReorderLevel)
Product needs to be reordered when the stock hits this level. |
void |
setStoreCustom1(java.lang.String storeCustom1)
Custom field with unique value for a store when in multi-store shared products mode |
void |
setStoreCustom2(java.lang.String storeCustom2)
Custom field with unique value for a store when in multi-store shared products mode |
void |
setStoreCustom3(java.lang.String storeCustom3)
Custom field with unique value for a store when in multi-store shared products mode |
void |
setStoreId(java.lang.String storeId)
Attribute is only applicable when KonaKart is configured in multi-store single db mode. |
void |
setTags(TagIf[] tags)
|
void |
setTaxClassId(int taxClassId)
|
void |
setTaxCode(java.lang.String taxCode)
tax code used when looking up tax from an external service |
void |
setTierPrices(TierPriceIf[] tierPrices)
An array of tier price objects for this product |
void |
setType(int type)
product type. |
void |
setUrl(java.lang.String url)
The url of the product, for example from the manufacturer's web site. |
void |
setViewedCount(int viewedCount)
The number of times the product has been viewed. |
void |
setWeight(java.math.BigDecimal weight)
|
| Method Detail |
|---|
int getTaxClassId()
void setTaxClassId(int taxClassId)
taxClassId - The taxClassId to set.java.lang.String getManufacturerName()
void setManufacturerName(java.lang.String manufacturerName)
manufacturerName - The manufacturerName to set.java.lang.String getDescription()
void setDescription(java.lang.String description)
description - The description to set.int getId()
void setId(int id)
id - The id to set.java.lang.String getImage()
void setImage(java.lang.String image)
image - The image to set.java.lang.String getModel()
void setModel(java.lang.String model)
model - The model to set.java.lang.String getName()
void setName(java.lang.String name)
name - The name to set.OptionIf[] getOpts()
void setOpts(OptionIf[] opts)
opts - The opts to set.int getQuantity()
void setQuantity(int quantity)
quantity - The quantity to set.byte getStatus()
void setStatus(byte status)
status - The status to set.java.lang.String getUrl()
void setUrl(java.lang.String url)
url - The url to set.int getViewedCount()
void setViewedCount(int viewedCount)
viewedCount - The viewedCount to set.java.math.BigDecimal getWeight()
void setWeight(java.math.BigDecimal weight)
weight - The weight to set.int getNumberReviews()
void setNumberReviews(int numberReviews)
numberReviews - The numberReviews to set.java.util.Calendar getDateAdded()
void setDateAdded(java.util.Calendar dateAdded)
dateAdded - The dateAdded to set.java.util.Calendar getDateAvailable()
void setDateAvailable(java.util.Calendar dateAvailable)
dateAvailable - The dateAvailable to set.ManufacturerIf getManufacturer()
void setManufacturer(ManufacturerIf manufacturer)
manufacturer - The manufacturer to set.int getManufacturerId()
void setManufacturerId(int manufacturerId)
manufacturerId - The manufacturerId to set.int getCategoryId()
void setCategoryId(int categoryId)
categoryId - The categoryId to set.int getOrdered()
void setOrdered(int ordered)
ordered - The ordered to set.java.math.BigDecimal getPriceExTax()
void setPriceExTax(java.math.BigDecimal priceExTax)
priceExTax - The priceExTax to set.java.math.BigDecimal getSpecialPriceExTax()
void setSpecialPriceExTax(java.math.BigDecimal specialPriceExTax)
specialPriceExTax - The specialPriceExTax to set.java.math.BigDecimal getSpecialPriceIncTax()
void setSpecialPriceIncTax(java.math.BigDecimal specialPriceIncTax)
specialPriceIncTax - The specialPriceIncTax to set.java.math.BigDecimal getPriceIncTax()
void setPriceIncTax(java.math.BigDecimal priceIncTax)
priceIncTax - The priceIncTax to set.java.lang.String getCustom1()
void setCustom1(java.lang.String custom1)
custom1 - The custom1 to set.java.lang.String getCustom2()
void setCustom2(java.lang.String custom2)
custom2 - The custom2 to set.java.lang.String getCustom3()
void setCustom3(java.lang.String custom3)
custom3 - The custom3 to set.java.lang.String getCustom4()
void setCustom4(java.lang.String custom4)
custom4 - The custom4 to set.java.lang.String getCustom5()
void setCustom5(java.lang.String custom5)
custom5 - The custom5 to set.java.lang.String getCustom6()
void setCustom6(java.lang.String custom6)
custom6 - the custom6 to setjava.lang.String getCustom7()
void setCustom7(java.lang.String custom7)
custom7 - the custom7 to setjava.lang.String getCustom8()
void setCustom8(java.lang.String custom8)
custom8 - the custom8 to setjava.lang.String getCustom9()
void setCustom9(java.lang.String custom9)
custom9 - the custom9 to setjava.lang.String getCustom10()
void setCustom10(java.lang.String custom10)
custom10 - the custom10 to setint getCustom1Int()
void setCustom1Int(int custom1Int)
custom1Int - the custom1Int to setint getCustom2Int()
void setCustom2Int(int custom2Int)
custom2Int - the custom2Int to setjava.math.BigDecimal getCustom1Dec()
void setCustom1Dec(java.math.BigDecimal custom1Dec)
custom1Dec - the custom1Dec to setjava.math.BigDecimal getCustom2Dec()
void setCustom2Dec(java.math.BigDecimal custom2Dec)
custom2Dec - the custom2Dec to setint[] getProdRelationTypeArray()
void setProdRelationTypeArray(int[] prodRelationTypeArray)
prodRelationTypeArray - The prodRelationTypeArray to set.byte getInvisible()
void setInvisible(byte invisible)
invisible - The invisible to set.java.lang.String getSku()
void setSku(java.lang.String sku)
sku - The sku to set.java.lang.String getContentType()
void setContentType(java.lang.String contentType)
contentType - The contentType to set.java.lang.String getFilePath()
void setFilePath(java.lang.String filePath)
filePath - The filePath to set.int getType()
void setType(int type)
type - The type to set.java.lang.String getImage2()
void setImage2(java.lang.String image2)
image2 - The image2 to set.java.lang.String getImage3()
void setImage3(java.lang.String image3)
image3 - The image3 to set.java.lang.String getImage4()
void setImage4(java.lang.String image4)
image4 - The image4 to set.java.lang.String getComparison()
void setComparison(java.lang.String comparison)
comparison - The comparison to set.java.math.BigDecimal getPrice0()
void setPrice0(java.math.BigDecimal price0)
price0 - The price0 to set.java.math.BigDecimal getPrice1()
void setPrice1(java.math.BigDecimal price1)
price1 - The price1 to set.java.math.BigDecimal getPrice2()
void setPrice2(java.math.BigDecimal price2)
price2 - The price2 to set.java.math.BigDecimal getPrice3()
void setPrice3(java.math.BigDecimal price3)
price3 - The price3 to set.int getBundledProdQuantity()
void setBundledProdQuantity(int bundledProdQuantity)
bundledProdQuantity - The bundledProdQuantity to set.java.lang.String getEncodedOptionValues()
void setEncodedOptionValues(java.lang.String encodedOptionValues)
encodedOptionValues - The encodedOptionValues to set.TagIf[] getTags()
void setTags(TagIf[] tags)
tags - The tags to set.java.lang.String getStoreId()
void setStoreId(java.lang.String storeId)
storeId - int getMaxNumDownloads()
void setMaxNumDownloads(int maxNumDownloads)
maxNumDownloads - the maxNumDownloads to setint getMaxDownloadDays()
void setMaxDownloadDays(int maxDownloadDays)
maxDownloadDays - the maxDownloadDays to setint getStockReorderLevel()
void setStockReorderLevel(int stockReorderLevel)
stockReorderLevel - the stockReorderLevel to setjava.lang.Boolean getCanOrderWhenNotInStock()
void setCanOrderWhenNotInStock(java.lang.Boolean canOrderWhenNotInStock)
canOrderWhenNotInStock - the canOrderWhenNotInStock to setboolean isIndexAttachment()
void setIndexAttachment(boolean indexAttachment)
indexAttachment - the indexAttachment to setjava.lang.String[] getSnippets()
void setSnippets(java.lang.String[] snippets)
snippets - the snippets to setjava.math.BigDecimal getRating()
void setRating(java.math.BigDecimal rating)
rating - the rating to setjava.util.Calendar getExpiryDate()
void setExpiryDate(java.util.Calendar expiryDate)
expiryDate - the expiryDate to setint getPaymentScheduleId()
void setPaymentScheduleId(int paymentScheduleId)
paymentScheduleId - the paymentScheduleId to setPaymentScheduleIf getPaymentSchedule()
void setPaymentSchedule(PaymentScheduleIf paymentSchedule)
paymentSchedule - the paymentSchedule to setTierPriceIf[] getTierPrices()
void setTierPrices(TierPriceIf[] tierPrices)
tierPrices - the tierPrices to setjava.util.Calendar getSpecialExpiryDate()
void setSpecialExpiryDate(java.util.Calendar specialExpiryDate)
specialExpiryDate - the specialExpiryDate to setjava.util.Calendar getSpecialStartDate()
void setSpecialStartDate(java.util.Calendar specialStartDate)
specialStartDate - the specialStartDate to setbyte getSpecialStatus()
void setSpecialStatus(byte specialStatus)
specialStatus - the specialStatus to setProductQuantityIf[] getProductQuantities()
void setProductQuantities(ProductQuantityIf[] productQuantities)
productQuantities - the productQuantities to setAddressIf[] getAddresses()
void setAddresses(AddressIf[] addresses)
addresses - The addresses to set.java.lang.String getCustomAttrs()
void setCustomAttrs(java.lang.String customAttrs)
customAttrs - the customAttrs to setProdCustAttrIf[] getCustomAttrArray()
void setCustomAttrArray(ProdCustAttrIf[] customAttrArray)
customAttrArray - the customAttrArray to setjava.lang.String getTaxCode()
void setTaxCode(java.lang.String taxCode)
taxCode - the taxCode to setjava.lang.String getStoreCustom1()
void setStoreCustom1(java.lang.String storeCustom1)
storeCustom1 - the storeCustom1 to setjava.lang.String getStoreCustom2()
void setStoreCustom2(java.lang.String storeCustom2)
storeCustom2 - the storeCustom2 to setjava.lang.String getStoreCustom3()
void setStoreCustom3(java.lang.String storeCustom3)
storeCustom3 - the storeCustom3 to setBookableProductIf getBookableProd()
void setBookableProd(BookableProductIf bookableProd)
bookableProd - the bookableProd to setMiscItemIf[] getMiscItems()
void setMiscItems(MiscItemIf[] miscItems)
miscItems - the miscItems to setPromotionResultIf[] getPromotionResults()
void setPromotionResults(PromotionResultIf[] promotionResults)
promotionResults - the promotionResults to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||