com.worldpac.fulfillment
Class OrderStatus

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

public class OrderStatus
extends java.lang.Object

Use to get order status information for a specific order. Call the initialize() method to retrieve status information from Worldpac, then use the get methods.


Constructor Summary
OrderStatus()
           
 
Method Summary
 int getStatus()
          Get status.
 java.lang.String getTrackingInfo()
          Get tracking information.
 java.lang.String initialize(java.lang.String fulfillerID, java.lang.String orderID)
          Initialize the OrderStatus object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderStatus

public OrderStatus()
Method Detail

initialize

public java.lang.String initialize(java.lang.String fulfillerID,
                                   java.lang.String orderID)
Initialize the OrderStatus object.

Parameters:
fulfillerID - Fulfiller identifier. Obtain by calling getID() on the Fulfiller.
orderID - Worldpac order identifier.
Returns:
Error text. null if successful.

getStatus

public int getStatus()
Get status.

Returns:
Status. Possible values are
  • 100 - Not yet submitted
  • 200 - Submitted but not yet shipped
  • 225 - Shipping in progress
  • 250 - Partially shipped. You may call getTrackingInfo to get partial tracking information.
  • 300 - Shipped. You may call getTrackingInfo to get tracking information.

getTrackingInfo

public java.lang.String getTrackingInfo()
Get tracking information.

Returns:
Tracking information string. null if status is not > 225. The format of the tracking string is a carrier code, followed by a colon, followed by a colon-delimited list of carrier-specific tracking strings. If tracking information exists for multiple carriers, a CR/LF separates each carrier substring from the next. Valid carrier codes are:
  • "Airborne" - Airborne
  • "UPS" - United Parcel Service
Depending on the carrier, there may be a delay between the time a tracking string is available and the time the carrier's systems become aware of it.