|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.json.app.J_Product
public class J_Product
Describes a product object for use within KonaKart.
| Constructor Summary | |
|---|---|
J_Product()
|
|
| Method Summary | |
|---|---|
J_Address[] |
getAddresses()
An array containing all of the addresses defined for this product. |
J_BookableProduct |
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()
|
J_ProdCustAttr[] |
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. |
J_Manufacturer |
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. |
J_MiscItem[] |
getMiscItems()
Miscellaneous Items associated with this product. |
java.lang.String |
getModel()
|
java.lang.String |
getName()
|
int |
getNumberReviews()
|
J_Option[] |
getOpts()
An array of Option objects. |
int |
getOrdered()
The number of times that the product has been ordered. |
J_PaymentSchedule |
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. |
J_ProductQuantity[] |
getProductQuantities()
An array of productQuantity objects that define quantity in stock and availability date for different SKUs. |
J_PromotionResult[] |
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. |
J_Tag[] |
getTags()
|
int |
getTaxClassId()
|
java.lang.String |
getTaxCode()
tax code used when looking up tax from an external service |
J_TierPrice[] |
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(J_Address[] _addresses)
An array containing all of the addresses defined for this product. |
void |
setBookableProd(J_BookableProduct _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(J_ProdCustAttr[] _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(J_Manufacturer _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(J_MiscItem[] _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(J_Option[] _opts)
An array of Option objects. |
void |
setOrdered(int _ordered)
The number of times that the product has been ordered. |
void |
setPaymentSchedule(J_PaymentSchedule _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(J_ProductQuantity[] _productQuantities)
An array of productQuantity objects that define quantity in stock and availability date for different SKUs. |
void |
setPromotionResults(J_PromotionResult[] _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(J_Tag[] _tags)
|
void |
setTaxClassId(int _taxClassId)
|
void |
setTaxCode(java.lang.String _taxCode)
tax code used when looking up tax from an external service |
void |
setTierPrices(J_TierPrice[] _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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public J_Product()
| Method Detail |
|---|
public int getTaxClassId()
public void setTaxClassId(int _taxClassId)
_taxClassId - The taxClassId to set.public java.lang.String getManufacturerName()
public void setManufacturerName(java.lang.String _manufacturerName)
_manufacturerName - The manufacturerName to set.public java.lang.String getDescription()
public void setDescription(java.lang.String _description)
_description - The description to set.public int getId()
public void setId(int _id)
_id - The id to set.public java.lang.String getImage()
public void setImage(java.lang.String _image)
_image - The image to set.public java.lang.String getModel()
public void setModel(java.lang.String _model)
_model - The model to set.public java.lang.String getName()
public void setName(java.lang.String _name)
_name - The name to set.public J_Option[] getOpts()
public void setOpts(J_Option[] _opts)
_opts - The opts to set.public int getQuantity()
public void setQuantity(int _quantity)
_quantity - The quantity to set.public byte getStatus()
public void setStatus(byte _status)
_status - The status to set.public java.lang.String getUrl()
public void setUrl(java.lang.String _url)
_url - The url to set.public int getViewedCount()
public void setViewedCount(int _viewedCount)
_viewedCount - The viewedCount to set.public java.math.BigDecimal getWeight()
public void setWeight(java.math.BigDecimal _weight)
_weight - The weight to set.public int getNumberReviews()
public void setNumberReviews(int _numberReviews)
_numberReviews - The numberReviews to set.public java.util.Calendar getDateAdded()
public void setDateAdded(java.util.Calendar _dateAdded)
_dateAdded - The dateAdded to set.public java.util.Calendar getDateAvailable()
public void setDateAvailable(java.util.Calendar _dateAvailable)
_dateAvailable - The dateAvailable to set.public J_Manufacturer getManufacturer()
public void setManufacturer(J_Manufacturer _manufacturer)
_manufacturer - The manufacturer to set.public int getManufacturerId()
public void setManufacturerId(int _manufacturerId)
_manufacturerId - The manufacturerId to set.public int getCategoryId()
public void setCategoryId(int _categoryId)
_categoryId - The categoryId to set.public int getOrdered()
public void setOrdered(int _ordered)
_ordered - The ordered to set.public java.math.BigDecimal getPriceExTax()
public void setPriceExTax(java.math.BigDecimal _priceExTax)
_priceExTax - The priceExTax to set.public java.math.BigDecimal getSpecialPriceExTax()
public void setSpecialPriceExTax(java.math.BigDecimal _specialPriceExTax)
_specialPriceExTax - The specialPriceExTax to set.public java.math.BigDecimal getSpecialPriceIncTax()
public void setSpecialPriceIncTax(java.math.BigDecimal _specialPriceIncTax)
_specialPriceIncTax - The specialPriceIncTax to set.public java.math.BigDecimal getPriceIncTax()
public void setPriceIncTax(java.math.BigDecimal _priceIncTax)
_priceIncTax - The priceIncTax to set.public java.lang.String getCustom1()
public void setCustom1(java.lang.String _custom1)
_custom1 - The custom1 to set.public java.lang.String getCustom2()
public void setCustom2(java.lang.String _custom2)
_custom2 - The custom2 to set.public java.lang.String getCustom3()
public void setCustom3(java.lang.String _custom3)
_custom3 - The custom3 to set.public java.lang.String getCustom4()
public void setCustom4(java.lang.String _custom4)
_custom4 - The custom4 to set.public java.lang.String getCustom5()
public void setCustom5(java.lang.String _custom5)
_custom5 - The custom5 to set.public java.lang.String getCustom6()
public void setCustom6(java.lang.String _custom6)
_custom6 - the custom6 to setpublic java.lang.String getCustom7()
public void setCustom7(java.lang.String _custom7)
_custom7 - the custom7 to setpublic java.lang.String getCustom8()
public void setCustom8(java.lang.String _custom8)
_custom8 - the custom8 to setpublic java.lang.String getCustom9()
public void setCustom9(java.lang.String _custom9)
_custom9 - the custom9 to setpublic java.lang.String getCustom10()
public void setCustom10(java.lang.String _custom10)
_custom10 - the custom10 to setpublic int getCustom1Int()
public void setCustom1Int(int _custom1Int)
_custom1Int - the custom1Int to setpublic int getCustom2Int()
public void setCustom2Int(int _custom2Int)
_custom2Int - the custom2Int to setpublic java.math.BigDecimal getCustom1Dec()
public void setCustom1Dec(java.math.BigDecimal _custom1Dec)
_custom1Dec - the custom1Dec to setpublic java.math.BigDecimal getCustom2Dec()
public void setCustom2Dec(java.math.BigDecimal _custom2Dec)
_custom2Dec - the custom2Dec to setpublic int[] getProdRelationTypeArray()
public void setProdRelationTypeArray(int[] _prodRelationTypeArray)
_prodRelationTypeArray - The prodRelationTypeArray to set.public byte getInvisible()
public void setInvisible(byte _invisible)
_invisible - The invisible to set.public java.lang.String getSku()
public void setSku(java.lang.String _sku)
_sku - The sku to set.public java.lang.String getContentType()
public void setContentType(java.lang.String _contentType)
_contentType - The contentType to set.public java.lang.String getFilePath()
public void setFilePath(java.lang.String _filePath)
_filePath - The filePath to set.public int getType()
public void setType(int _type)
_type - The type to set.public java.lang.String getImage2()
public void setImage2(java.lang.String _image2)
_image2 - The image2 to set.public java.lang.String getImage3()
public void setImage3(java.lang.String _image3)
_image3 - The image3 to set.public java.lang.String getImage4()
public void setImage4(java.lang.String _image4)
_image4 - The image4 to set.public java.lang.String getComparison()
public void setComparison(java.lang.String _comparison)
_comparison - The comparison to set.public java.math.BigDecimal getPrice0()
public void setPrice0(java.math.BigDecimal _price0)
_price0 - The price0 to set.public java.math.BigDecimal getPrice1()
public void setPrice1(java.math.BigDecimal _price1)
_price1 - The price1 to set.public java.math.BigDecimal getPrice2()
public void setPrice2(java.math.BigDecimal _price2)
_price2 - The price2 to set.public java.math.BigDecimal getPrice3()
public void setPrice3(java.math.BigDecimal _price3)
_price3 - The price3 to set.public int getBundledProdQuantity()
public void setBundledProdQuantity(int _bundledProdQuantity)
_bundledProdQuantity - The bundledProdQuantity to set.public java.lang.String getEncodedOptionValues()
public void setEncodedOptionValues(java.lang.String _encodedOptionValues)
_encodedOptionValues - The encodedOptionValues to set.public J_Tag[] getTags()
public void setTags(J_Tag[] _tags)
_tags - The tags to set.public java.lang.String getStoreId()
public void setStoreId(java.lang.String _storeId)
_storeId - public int getMaxNumDownloads()
public void setMaxNumDownloads(int _maxNumDownloads)
_maxNumDownloads - the maxNumDownloads to setpublic int getMaxDownloadDays()
public void setMaxDownloadDays(int _maxDownloadDays)
_maxDownloadDays - the maxDownloadDays to setpublic int getStockReorderLevel()
public void setStockReorderLevel(int _stockReorderLevel)
_stockReorderLevel - the stockReorderLevel to setpublic java.lang.Boolean getCanOrderWhenNotInStock()
public void setCanOrderWhenNotInStock(java.lang.Boolean _canOrderWhenNotInStock)
_canOrderWhenNotInStock - the canOrderWhenNotInStock to setpublic boolean isIndexAttachment()
public void setIndexAttachment(boolean _indexAttachment)
_indexAttachment - the indexAttachment to setpublic java.lang.String[] getSnippets()
public void setSnippets(java.lang.String[] _snippets)
_snippets - the snippets to setpublic java.math.BigDecimal getRating()
public void setRating(java.math.BigDecimal _rating)
_rating - the rating to setpublic java.util.Calendar getExpiryDate()
public void setExpiryDate(java.util.Calendar _expiryDate)
_expiryDate - the expiryDate to setpublic int getPaymentScheduleId()
public void setPaymentScheduleId(int _paymentScheduleId)
_paymentScheduleId - the paymentScheduleId to setpublic J_PaymentSchedule getPaymentSchedule()
public void setPaymentSchedule(J_PaymentSchedule _paymentSchedule)
_paymentSchedule - the paymentSchedule to setpublic J_TierPrice[] getTierPrices()
public void setTierPrices(J_TierPrice[] _tierPrices)
_tierPrices - the tierPrices to setpublic java.util.Calendar getSpecialExpiryDate()
public void setSpecialExpiryDate(java.util.Calendar _specialExpiryDate)
_specialExpiryDate - the specialExpiryDate to setpublic java.util.Calendar getSpecialStartDate()
public void setSpecialStartDate(java.util.Calendar _specialStartDate)
_specialStartDate - the specialStartDate to setpublic byte getSpecialStatus()
public void setSpecialStatus(byte _specialStatus)
_specialStatus - the specialStatus to setpublic J_ProductQuantity[] getProductQuantities()
public void setProductQuantities(J_ProductQuantity[] _productQuantities)
_productQuantities - the productQuantities to setpublic J_Address[] getAddresses()
public void setAddresses(J_Address[] _addresses)
_addresses - The addresses to set.public java.lang.String getCustomAttrs()
public void setCustomAttrs(java.lang.String _customAttrs)
_customAttrs - the customAttrs to setpublic J_ProdCustAttr[] getCustomAttrArray()
public void setCustomAttrArray(J_ProdCustAttr[] _customAttrArray)
_customAttrArray - the customAttrArray to setpublic java.lang.String getTaxCode()
public void setTaxCode(java.lang.String _taxCode)
_taxCode - the taxCode to setpublic java.lang.String getStoreCustom1()
public void setStoreCustom1(java.lang.String _storeCustom1)
_storeCustom1 - the storeCustom1 to setpublic java.lang.String getStoreCustom2()
public void setStoreCustom2(java.lang.String _storeCustom2)
_storeCustom2 - the storeCustom2 to setpublic java.lang.String getStoreCustom3()
public void setStoreCustom3(java.lang.String _storeCustom3)
_storeCustom3 - the storeCustom3 to setpublic J_BookableProduct getBookableProd()
public void setBookableProd(J_BookableProduct _bookableProd)
_bookableProd - the bookableProd to setpublic J_MiscItem[] getMiscItems()
public void setMiscItems(J_MiscItem[] _miscItems)
_miscItems - the miscItems to setpublic J_PromotionResult[] getPromotionResults()
public void setPromotionResults(J_PromotionResult[] _promotionResults)
_promotionResults - the promotionResults to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||