com.worldpac.fulfillment
Class FulfillmentQuote

java.lang.Object
  |
  +--com.worldpac.fulfillment.FulfillmentQuote

public class FulfillmentQuote
extends java.lang.Object

Use to get price and availability information for a specific product. Call the initialize() method to retrieve availability information from Worldpac, then use the get methods.


Constructor Summary
FulfillmentQuote()
          Construct a FulfillmentQuote.
 
Method Summary
 java.lang.String getBrandID()
          Get Worldpac brand identifier.
 java.lang.String getCorePrice()
          Get the price at which Worldpac offers the core of the product to you.
 int getDaysUntilShip()
          Get the number of days from now until Worldpac can ship the product.
 java.lang.String getDescription()
          Get the description of the product
 java.lang.String getListPrice()
          Get Worldpac's estimated dealer list price for the product.
 java.lang.String getPrice()
          Get the price at which Worldpac offers the product to you.
 java.lang.String getProductID()
          Get Worldpac product identifier.
 int getQuantityAvailable()
          Get the maximum quantity of the product that can be ordered at the quoted terms.
 java.util.Date getShipsAt()
          Get the time when an order for this product will ship
 java.util.Date getSubmitBy()
          Get the time by which an order must be submitted to guarantee the quoted terms
 java.lang.String getWarehouseID()
          Get the warehouse which contains the product
 java.lang.String getWeight()
          Get the weight of the product.
 boolean hasImage()
          Product images are available.
 java.lang.String hiresURL()
          Product hi-res image URL.
 java.lang.String imageURL()
          Product image URL.
 java.lang.String initialize(java.lang.String fulfillerID, java.lang.String productID, java.lang.String brandID, int quantity)
          Initialize the FulfillmentQuote object.
 java.lang.String thumbnailURL()
          Product thumbnail image URL.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FulfillmentQuote

public FulfillmentQuote()
Construct a FulfillmentQuote.

Method Detail

initialize

public java.lang.String initialize(java.lang.String fulfillerID,
                                   java.lang.String productID,
                                   java.lang.String brandID,
                                   int quantity)
Initialize the FulfillmentQuote object.

Parameters:
fulfillerID - Fulfiller identifier. Obtain by calling getID() on the Fulfiller to be used.
productID - Worldpac product identifier. May contain embedded spaces, which are significant.
brandID - Worldpac brand identifier.
quantity - Requested quantity, which may be needed to locate the best warehouse from which to ship.
Returns:
Error text. null if successful.

getProductID

public java.lang.String getProductID()
Get Worldpac product identifier.

Returns:
Worldpac product identifier. Will be null if the requested product is not available.

getBrandID

public java.lang.String getBrandID()
Get Worldpac brand identifier.

Returns:
Worldpac brand identifier. Will be null if the requested product is not available.

getDaysUntilShip

public int getDaysUntilShip()
Get the number of days from now until Worldpac can ship the product.

Returns:
The number of days from now until Worldpac can ship the product. A value of zero means the product can be shipped today. Will be -1 if the requested product is not available.

getQuantityAvailable

public int getQuantityAvailable()
Get the maximum quantity of the product that can be ordered at the quoted terms.

Returns:
The maximum quantity of the product that can be ordered at the quoted terms. This number will wither exactly equal the quantity that was passed on the call to initialize(), or 0 if the product is not available.

getPrice

public java.lang.String getPrice()
Get the price at which Worldpac offers the product to you.

Returns:
The price at which Worldpac offers the product to you, exclusive of any core it may contain. Will be null if the requested product is not available.

getListPrice

public java.lang.String getListPrice()
Get Worldpac's estimated dealer list price for the product.

Returns:
Worldpac's estimated dealer list price for the product. Will be null if the requested product is not available.

getCorePrice

public java.lang.String getCorePrice()
Get the price at which Worldpac offers the core of the product to you.

Returns:
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. Will be null if the requested product is not available.

getDescription

public java.lang.String getDescription()
Get the description of the product

Returns:
The description of the product

getWarehouseID

public java.lang.String getWarehouseID()
Get the warehouse which contains the product

Returns:
Worldpac warehouse identifier

getSubmitBy

public java.util.Date getSubmitBy()
Get the time by which an order must be submitted to guarantee the quoted terms

Returns:
Submit-by time. All times are Pacific.

getShipsAt

public java.util.Date getShipsAt()
Get the time when an order for this product will ship

Returns:
Ships-at time. All times are Pacific.

getWeight

public java.lang.String getWeight()
Get the weight of the product.

Returns:
The weight of the product, in pounds.

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.