<?xml version="1.0" encoding="utf-8"?>
<!--
        
        ** OAGIS® Revision: 9.1  **
        ** Date: 11 May 2007 **
        ** Copyright 1997-2007, All Rights Reserved **
        
        This is an OAGIS® BOD XML Schema (XSD) Definition.
        
       License information for this file is provided in the file **OAGi License Agreement.txt** that is provided with this download package.
        
        For support, more information, or to report implementation bugs, please contact the Open Applications Group at xml@openapplications.org.
        
        XML Schema 
        
-->
 
<!--
© Copyright 2007 Infor Global Solutions Technology GmbH and/or its affiliates and subsidiaries. All rights reserved. The 
word and design marks set forth herein are trademarks and/or registered trademarks of Infor Global Solutions 
Technology GmbH and/or its affiliates and subsidiaries. All rights reserved. All other trademarks listed herein 
are the property of their respective owners.
 
-->
 
<!--    *****     Update Log     *****
 
Date           By      Note
10 Apr 2008    JB      Added correct Copyright and update comments to schema.
14 Jan 2010    PO      Changed cardinality on the tracking ID (BOD-1154)
05 Oct 2010    NO      Added EquipmentClassificationCode element (BOD-1341)
*****     Update End     *****
 
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns="http://schema.infor.com/InforOAGIS/2"
        targetNamespace="http://schema.infor.com/InforOAGIS/2" elementFormDefault="qualified">

        <xsd:include schemaLocation="../Components/Operational/LogisticsComponents.xsd"/>

        <xsd:element name="CarrierRoute" type="CarrierRouteType">

                <xsd:annotation>

                        <xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Describes a
                                scheduled journey that a particular goods transportation service
                                provider (freight carrier) is requested to perform on the behalf of
                                a shipper, customer or other transportation corrdinator. The journey
                                may contain one or more stops. There are many possible business
                                applications in several environments that may use this capability. A
                                CarrierRoute is typically generated by a transportation planning
                                system to coordinate and optimize the movement of many goods
                                shipment to reduce overall freight cost, improve overall delivery
                                schedules, and ensure that a carrier's equipment is utilized
                                efficiently. Other business systems typically interested in a
                                CarrierRoute document include supply chain execution, supply chain
                                visibility, warehouse management, and transportaion management
                                systems.</xsd:documentation>

                </xsd:annotation>

        </xsd:element>

        <xsd:element name="RouteType" type="CodeType"/>

        <xsd:complexType name="CarrierRouteType">
                <xsd:complexContent>
                        <xsd:extension base="HeaderType">
                                <xsd:sequence>
                                        <xsd:element ref="TrackingID" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="RouteType" minOccurs="0"/>
                                        <xsd:element ref="BillToParty" minOccurs="0"/>
                                        <xsd:element ref="TransportationPool" minOccurs="0"/>
                                        <xsd:element ref="TransportationServiceCode" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="EquipmentTypeCode" minOccurs="0"/>
                                        <xsd:element ref="EquipmentLengthCode" minOccurs="0"/>
                                        <xsd:element ref="EquipmentClassificationCode" minOccurs="0"/>                                        
                                        <xsd:element ref="ActualShipDateTime" minOccurs="0">
                                                <xsd:annotation>
                                                  <xsd:documentation
                                                  source="http://schema.infor.com/InforOAGIS/2">Is
                                                  the date that is used to identify the actual date
                                                  and time a shipment occurs.</xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element ref="ScheduledDeliveryDateTime" minOccurs="0"/>
                                        <xsd:element ref="ActualDeliveryDateTime" minOccurs="0"/>
                                        <xsd:element ref="RequiredDeliveryDateTime" minOccurs="0">
                                                <xsd:annotation>
                                                  <xsd:documentation
                                                  source="http://schema.infor.com/InforOAGIS/2">Is
                                                  the date that the business partner is requesting
                                                  delivery of goods to arrive.</xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element ref="PromisedDeliveryDateTime" minOccurs="0">
                                                <xsd:annotation>
                                                  <xsd:documentation
                                                  source="http://schema.infor.com/InforOAGIS/2">Is
                                                  the date that the supplier business partner
                                                  promises delivery of goods</xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element ref="LoadingDateTime" minOccurs="0">
                                                <xsd:annotation>
                                                  <xsd:documentation
                                                  source="http://schema.infor.com/InforOAGIS/2">Is
                                                  the date that is used to mark the date and time a
                                                  shipment loading process is
                                                  complete.</xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element ref="EarliestShipDateTime" minOccurs="0">
                                                <xsd:annotation>
                                                  <xsd:documentation
                                                  source="http://schema.infor.com/InforOAGIS/2">This
                                                  identifies the earliest possible date at which a
                                                  shipment can be made. This may be used in
                                                  conjunction with the ShipPriorToDueDateInd which
                                                  indicates that the item, shipping unit or delivery
                                                  may be shipped early.</xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element ref="PromisedShipDateTime" minOccurs="0">
                                                <xsd:annotation>
                                                  <xsd:documentation
                                                  source="http://schema.infor.com/InforOAGIS/2">Is
                                                  the date the business partner supplying goods is
                                                  promising goods to be shipped.</xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element ref="ScheduledShipDateTime" minOccurs="0">
                                                <xsd:annotation>
                                                  <xsd:documentation
                                                  source="http://schema.infor.com/InforOAGIS/2"
                                                  >Identifies the date on which the goods are
                                                  scheduled to be shipped.</xsd:documentation>
                                                </xsd:annotation>
                                        </xsd:element>
                                        <xsd:element ref="EarliestDeliveryDateTime" minOccurs="0"/>
                                        <xsd:element ref="RequiredShipDateTime" minOccurs="0"/>
                                        <xsd:element ref="PlannedShipDateTime" minOccurs="0"/>
                                        <xsd:element ref="PlannedDeliveryDateTime" minOccurs="0"/>
                                        <xsd:element ref="RespondByDateTime" minOccurs="0"/>
                                        <xsd:element ref="PointOfLoadingCode" minOccurs="0"/>
                                        <xsd:element ref="PointOfShipmentCode" minOccurs="0"/>
                                        <xsd:element ref="PointOfStagingCode" minOccurs="0"/>
                                        <xsd:element ref="TransportationMethodCode" minOccurs="0"/>
                                        <xsd:element ref="TransportationTerm" minOccurs="0"/>
                                        <xsd:group ref="ShippingWeightandVolumeGroup" minOccurs="0"/>
                                        <xsd:element ref="Container" minOccurs="0"/>
                                        <xsd:element ref="Status" minOccurs="0"/>
                                        <xsd:element ref="Charge" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="CarrierParty" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="Party" minOccurs="0" maxOccurs="unbounded"/>
                                        <xsd:element ref="RouteStop" minOccurs="0"
                                                maxOccurs="unbounded"/>
                                        <xsd:element ref="Distance" minOccurs="0"/>
                                        <xsd:element ref="OptimalCarrierParty" minOccurs="0"/>
                                        <xsd:element ref="OptimalCostAmount" minOccurs="0"/>
                                        <xsd:element ref="OptimalCostBaseAmount" minOccurs="0"/>
                                        <xsd:element ref="OptimalCostReportAmount" minOccurs="0"/>
                                        <xsd:element ref="PreOptimizationCostAmount" minOccurs="0"/>
                                        <xsd:element ref="PreOptimizationCostBaseAmount" minOccurs="0"/>
                                        <xsd:element ref="PreOptimizationCostReportAmount" minOccurs="0"/>
                                        <xsd:element ref="SecondaryCarrierParty" minOccurs="0"/>
                                        <xsd:element ref="TotalPiecesNumeric" minOccurs="0"/>
                                        <xsd:element ref="TotalStopsNumeric" minOccurs="0"/>
                                        <xsd:element ref="OceanDetails" minOccurs="0"/>
                                        <xsd:element ref="AirDetails" minOccurs="0"/>
                                        <xsd:element ref="UserArea" minOccurs="0"/>
                                </xsd:sequence>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>


</xsd:schema>
