Examples of DispatchNotification


Examples of uk.co.purebuy.commerce.businessobjects.importexport.playtrade.dom.DispatchNotification

   * Creates a dummy dispatch notification to be sent the PlayTrade API
   * @return
   */
  private DispatchNotification createDummyDispatchNotification()
  {
    DispatchNotification doc = new DispatchNotification();
    DispatchNotificationRow header = new DispatchNotificationRow(true);
    doc.setHeader( header );
    DispatchNotificationRow row = new DispatchNotificationRow();
    row.setOrderId("dummy-order-id"+System.currentTimeMillis());
    row.setDispatched("Y");
    row.setCarrierName("Unknown Carrier");
    row.setTrackingNo("Unknow Tracking");
    doc.addRowData(row);
    return doc;
  }
View Full Code Here

Examples of uk.co.purebuy.commerce.businessobjects.importexport.playtrade.dom.DispatchNotification

   * @throws PlayTradeApiCallException
   */
  public static void main(String[] args) throws IOException, PlayTradeApiCallException
  {
    //create the dispatch notifcation report
    DispatchNotification dispatch_notification = new DispatchNotification();
       
    //create data for each order to be notified
    DispatchNotificationRow row_data = new DispatchNotificationRow();   
    row_data.setOrderId( "5743938475894" )//the playtrade orderid
    row_data.setDispatched("Y");      //the order has been dispatched
    row_data.setCarrierId( DispatchNotification.CarrierID.Royal_Mail )//use playtrades index to their carriers if possible
    row_data.setTrackingNo( "tracking_#" );      //the courier tracking number
   
    //add data to the report
    dispatch_notification.addRowData(row_data)
       
    //create the call
    UploadDispatchNotesCall call = new UploadDispatchNotesCall();
   
    //set the authentication
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.