com.worldpac.catalog
Class ProductQuote

java.lang.Object
  |
  +--com.worldpac.catalog.ProductQuote
All Implemented Interfaces:
java.lang.Cloneable

public class ProductQuote
extends java.lang.Object
implements java.lang.Cloneable

Price and availability information for a specific replacement product. One or more ProductQuotes may issued for a Product, representing different manufacturer brands.


Field Summary
 java.lang.String brandDescription
          Text description of the brand.
 java.lang.String brandID
          Worldpac brand identifier.
 java.lang.String categoryID
          The Worldpac identifier of the category usually associated with this product.
 java.math.BigDecimal corePrice
          The price at which Worldpac offers the core of the product to you.
 int deliveryDays
          The number of days from now until Worldpac can ship the product.
 java.lang.String description
          Text description of the product.
 java.lang.String id
          Worldpac product identifier.
 boolean isPerformance
           
 java.math.BigDecimal listPrice
          Worldpac's estimated dealer list price for the product.
 java.lang.String makeID
          The Worldpac identifier of the make on which this product is usually used.
 java.math.BigDecimal price
          The price at which Worldpac offers the product to you, exclusive of any core it may contain.
 java.lang.String quality
          The quality of the product.
 int quantity
          The maximum quantity of the product that can be ordered at the quoted terms.
 int sellingIncrement
          Order quantity must be a multiple of this number.
 java.math.BigDecimal weight
          The weight of the product, in pounds.
 
Constructor Summary
ProductQuote(java.lang.String id, java.lang.String description, java.math.BigDecimal price)
          Create a ProductQuote from an arbitrary productID, description, and price (other attributes will be null).
 
Method Summary
 java.lang.Object clone()
          Standard clone method.
 java.lang.String getBrandedDescription()
           
 java.lang.String getBrandImageURL()
           
 java.lang.String getDeliveryFormatted()
           
 java.lang.String getDeliveryTime()
           
 java.lang.String getLink()
           
 java.lang.String getProductNotes()
           
 java.lang.String getSubmitByFormatted()
           
 java.lang.String getTip()
           
 java.lang.String getWarehouse()
           
 boolean hasImage()
          Product images are available.
 java.lang.String hiresURL()
          Product hi-res image URL.
 java.lang.String imageURL()
          Product image URL.
 void setProductNotes(java.lang.String productNotes)
           
 boolean showBrandImageURL()
           
 java.lang.String thumbnailURL()
          Product thumbnail image URL.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public java.lang.String id
Worldpac product identifier. In combination with brand identifier, uniquely identifies the quoted product.


brandID

public java.lang.String brandID
Worldpac brand identifier. In combination with product identifier, uniquely identifies the quoted product.


description

public java.lang.String description
Text description of the product. May contain more information than Product.description, due to the specific brand context of a ProductQuote.


brandDescription

public java.lang.String brandDescription
Text description of the brand. If the manufacturer does not want his name displayed, this may actually be the country of manufacture.


deliveryDays

public int deliveryDays
The number of days from now until Worldpac can ship the product. A value of zero means the product can be shipped today.


quantity

public int quantity
The maximum quantity of the product that can be ordered at the quoted terms.


price

public java.math.BigDecimal price
The price at which Worldpac offers the product to you, exclusive of any core it may contain.


listPrice

public java.math.BigDecimal listPrice
Worldpac's estimated dealer list price for the product.


corePrice

public java.math.BigDecimal corePrice
The price at which Worldpac offers the core of the product to you. If the core is not returned, this price must paid in addition to the price for the product.


weight

public java.math.BigDecimal weight
The weight of the product, in pounds.


quality

public java.lang.String quality
The quality of the product. Possible values are:


sellingIncrement

public int sellingIncrement
Order quantity must be a multiple of this number.


makeID

public java.lang.String makeID
The Worldpac identifier of the make on which this product is usually used.


categoryID

public java.lang.String categoryID
The Worldpac identifier of the category usually associated with this product.


isPerformance

public boolean isPerformance
Constructor Detail

ProductQuote

public ProductQuote(java.lang.String id,
                    java.lang.String description,
                    java.math.BigDecimal price)
Create a ProductQuote from an arbitrary productID, description, and price (other attributes will be null). This constructor is intended to be used to allow pricing of pseudo-products like shipping using a general-purpose getConsumerPrice function that always accepts a ProductQuote as its sole parameter.

Method Detail

setProductNotes

public final void setProductNotes(java.lang.String productNotes)

getProductNotes

public final java.lang.String getProductNotes()

getLink

public final java.lang.String getLink()

getTip

public final java.lang.String getTip()

getBrandImageURL

public final java.lang.String getBrandImageURL()

showBrandImageURL

public final boolean showBrandImageURL()

getSubmitByFormatted

public final java.lang.String getSubmitByFormatted()

getDeliveryFormatted

public final java.lang.String getDeliveryFormatted()

hasImage

public boolean hasImage()
Product images are available.

Returns:
True if product images are available, false otherwise.

thumbnailURL

public java.lang.String thumbnailURL()
Product thumbnail image URL. The dimensions of a thumbnail image are 110x83.

Returns:
URL of the thumbnail image.

imageURL

public java.lang.String imageURL()
Product image URL. The dimensions of a product image are 640x480.

Returns:
URL of the image.

hiresURL

public java.lang.String hiresURL()
Product hi-res image URL. The dimensions of a hi-res product image are 1024x768.

Returns:
URL of the hi-res image.

getBrandedDescription

public final java.lang.String getBrandedDescription()

getWarehouse

public final java.lang.String getWarehouse()

getDeliveryTime

public java.lang.String getDeliveryTime()

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Standard clone method.

Overrides:
clone in class java.lang.Object
Returns:
A clone of this ProductQuote.
java.lang.CloneNotSupportedException