<?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.
10 Sep 2009   NO      Added ReturnToShipFromParty and ReturnFromShipToParty (BOD-1082).
09 Dec 2009   PO      Created Specialized elements for autoconnect - see BOD-1161 for details
05 Oct 2010   NO      Added EquipmentClassificationCode element (BOD-1341)
11 Oct 2010   NO      Added EngineeringLevel element (BOD-1354)
27 may 2013 Ajay      Added EngineeringChangeLevel & EngineeringChangeDate to EngineeringLevelType (BOD -1772)
07 June 2013 Ajay     Added Reference element to ShipmentUnitItemType(BOD-2239)
12 Sep 2013 ravi.ravuri	 Added ProjectContractReference as ref at the ShipItemBaseType and Added Element ProjectContractReference  (BOD -2362)
12 Sep 2013 ravi.ravuri  Removed Element ProjectContractReference  (BOD -2362)
23 Oct 2013 ravi.ravuri  Added KanbanHandling ref in ShipUnitBaseType and declared KanbanHandling and HeterogeneousTransportIndicator (BOD-2128)
24 Oct 2013 ravi.ravuri  Added description of HeterogeneousTransportIndicator and Removed description to KanbanHandling (BOD-2128)
30 Jan 2014 LA			Added changes for ShippersExportDeclaration BOD-2133, header
16 Dec 2014 LA			New element ConsignmentType defined, BOD-2730
20 Apr 2015 LA			Type added to ShipItemBaseType to indicate packaging items, BOD-2802
22 Apr 2015 LA          Added Reference to ShipmentHeaderBaseType BOD-2877 (not possible to add it to ShipItemBaseType, since
                       Reference already exists with ShipUnitBaseType that inherits ShipItemBaseType. For the line level,
                       Reference added in individual nouns)
24 Apr 2015	LA			FullyPackedIndicator added to SpecializedLogisticUnitType BOD-2880   
8 Jul  2015 LA          Moved EngineeringLevel to Operational/Components.xsd, BOD-2602
9 Jul 2015  LA          Added KanbanNumber, ModelYear, ShipToLocation, ExternalDocumentReferenec,
                        ReleaseAuthorizationNumeber to SpecializedLogisticItemType - BOD-2605
                        Added ShipToLocation, KanbanNumber to SpecializedLogisticUnitType
                        Added ShipToLocation to ShipmentUnitItemType - BOD-2605
13 Jul 2015  LA        maxOccurs changed to unbounded for ContainerID in ContainerInstanceIDsGroup BOD-2605/BOD-2993
31 Jul 2015  LA        Missed KanbanNumber in SpecializedLogisticUnitType earlier, added it now; BOD-2605
4 Aug 2015   LA        Added SpecializedLogisticItem to ShipmentUnitItemType and QualityAssuranceIndicator and SafetyItemIndicator
                       to SpecializedLogisticItemType (BOD-2800). Would be better to think about redesigning ShipmentUnitItem so that
                       the type aligns with ShipItemBaseType; this must be done carefully when time permits. 
14 Aug 2015  LA         AuxiliaryQuantity added to ShipItemBaseType BOD-3020      
19 Oct 2015  LA        ShipmentHeaderBaseType now extends StatusEnabledHeaderWithValidationType, BOD-2979
20 Oct 2015  LA        Element 'Validation' added to ShipItemBaseType and ShipUnitBaseType, BOD-2979
20 Oct 2015  LA        ManufacturingReferenceNumber added to SpecializedLogisticItemType, BOD-3083.
19 Jan 2016	 LA		   ProductionDate and ExpiryDate added to ShipmentUnitItemType, BOD-2254
4 Feb 2016	 LA		   QualityRemark added to SpecializedLogisticUnitType, BOD-3100
26 Feb 2016  LA        IntermediaryShipToParty definition added, BOD-2512
13 Apr 2016  LA        ExcessTransportation added to ShipmentHeaderBaseType, BOD-3175
18 Jul 2016  LA        TrackingURL added to ShipUnitBaseType, BOD-3074
28 Jul 2016  LA        Reference added to ShipUnitBaseType, BOD-3197
5 Oct 2016   LA        ShipmentClassificationCode added, BOD-3233
6 Oct 2016   LA	 	   NatureOfTransaction added to SpecializedLogisticItemType, BOD-3235
26 Oct 2016  LA        VirtualIndicator added to SpecializedLogisticUnitType, BOD-3257
22 Nov 2016  LA        InventoryCharacteristic added to ShipItemBaseType, BOD-3026
21 Dec 2017  LA        Statistical Procedure Code added to Specialized Logistic Item, BOD-3394
5 Feb  2019  LA		   ExternalCharge (Landed costs) added to ShipmentHeaderBaseType, BOD-3383
     *****     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"
	attributeFormDefault="unqualified">

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

	<xsd:complexType name="ShipmentHeaderBaseType">

		<xsd:annotation>

			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">The Warehouse Location
				identifies the place from where the goods are shipped</xsd:documentation>

		</xsd:annotation>

		<xsd:complexContent>

			<xsd:extension base="StatusEnabledHeaderWithValidationType">

				<xsd:sequence>

					<xsd:element ref="ShipUnitQuantity" minOccurs="0">

						<xsd:annotation>

							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2"
								>Contains the quantity of units or things shipped. This represents
								the container(s), not the product shipped. An example of this is "4
								truck loads" or "2 wooden crates".</xsd:documentation>

						</xsd:annotation>

					</xsd:element>

					<xsd:element ref="WarehouseLocation" minOccurs="0">

						<xsd:annotation>

							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Is the
								storage facility for inventory.</xsd:documentation>

							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Is the
								storage facility for inventory.</xsd:documentation>

						</xsd:annotation>

					</xsd:element>

					<xsd:element ref="CarrierRouteReference" minOccurs="0" maxOccurs="unbounded"/>

					<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: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="EstimatedWeightMeasure" minOccurs="0">

						<xsd:annotation>

							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">The
								estimated weight of an item or container. An estimate is provided as
								a processing alternative when the actual weight of an item is not
								known or cannot be calculated exactly.</xsd:documentation>

							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">The
								estimated weight of an item or container. An estimate is provided as
								a processing alternative when the actual weight of an item is not
								known or cannot be calculated exactly.</xsd:documentation>

						</xsd:annotation>

					</xsd:element>

					<xsd:element ref="LoadingWeightMeasure" minOccurs="0">

						<xsd:annotation>

							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">This is
								the net weight at loading time of the container in which the
								materials are being shipped.</xsd:documentation>

						</xsd:annotation>

					</xsd:element>

					<xsd:group ref="ShippingWeightandVolumeGroup" minOccurs="0"/>

					<xsd:element ref="HazardousMaterialCodes" minOccurs="0"/>

					<xsd:element ref="CountryOfOriginCode" minOccurs="0"/>

					<xsd:element ref="DistributionCenterCode" minOccurs="0"/>
					<xsd:element ref="ExcessTransportation" minOccurs="0"/>

					<xsd:element ref="TransportationMethodCode" minOccurs="0" maxOccurs="unbounded">
						<xsd:annotation>
							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2"
								>Identifies the general type of carrier transportation used to
								deliver goods.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="SpecialHandlingNote" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="DockID" minOccurs="0"/>
					<xsd:element ref="ShipFromParty" minOccurs="0"/>
					<xsd:element ref="CarrierParty" minOccurs="0"/>
					<xsd:element ref="FreightTermCode" minOccurs="0"/>
					<xsd:element ref="Party" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="DistributedCharge" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="ExternalCharge" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="ReturnToShipFromParty" minOccurs="0"/>
					<xsd:element ref="ReturnFromShipToParty" minOccurs="0"/>
					<xsd:element ref="Reference" minOccurs="0" maxOccurs="unbounded"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>

	<xsd:complexType name="ShipUnitBaseType">

		<xsd:sequence>

			<xsd:group ref="TrackingIDGroup" minOccurs="0"/>
			<xsd:element ref="TrackingURL" minOccurs="0"/>
			<xsd:group ref="ContainerInstanceIDsGroup" minOccurs="0"/>
			<xsd:element ref="ContainerType" minOccurs="0"/>
			<xsd:element ref="CarrierParty" minOccurs="0"/>

			<xsd:element ref="ShipFromParty" minOccurs="0"/>
			<xsd:element ref="Validation" minOccurs="0"/>

			<xsd:element ref="DeclaredValueAmount" minOccurs="0"/>
			<xsd:element ref="DeclaredValueBaseAmount" minOccurs="0"/>
			<xsd:element ref="DeclaredValueReportAmount" minOccurs="0"/>
			<xsd:element ref="ShipmentDateTime" minOccurs="0"/>

			<xsd:element ref="ExportLicenseRequiredIndicator" minOccurs="0"/>

			<xsd:element ref="ImportLicenseRequiredIndicator" minOccurs="0"/>
			
			<xsd:element ref="KanbanHandling" minOccurs="0"/> <!-- BOD-2128 -->

			<xsd:element ref="ScheduledDeliveryDateTime" minOccurs="0"/>

			<xsd:element ref="ActualDeliveryDateTime" minOccurs="0"/>

			<xsd:element ref="SpecialHandlingNote" minOccurs="0" maxOccurs="unbounded"/>

			<xsd:element ref="Status" minOccurs="0"/>
			

			<xsd:group ref="ShippingWeightandVolumeGroup" minOccurs="0"/>

			<xsd:element ref="DistributedCharge" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="Reference" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>

	</xsd:complexType>

	<xsd:complexType name="ShipItemBaseType">

		<xsd:complexContent>

			<xsd:extension base="ItemInstanceBaseType">
				<xsd:sequence>
					<xsd:element ref="InventoryCharacteristic" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="Type" minOccurs="0"/>
					<xsd:element ref="CountryOfOriginCode" minOccurs="0"/>
					<xsd:choice>
						<xsd:element ref="CountryAndPercent" minOccurs="0" maxOccurs="unbounded"/>
						<xsd:element ref="ComplexCountryOfOriginCode" minOccurs="0"/>
					</xsd:choice>
					<xsd:element ref="ImportLicenseRequiredIndicator" minOccurs="0"/>
					
					<xsd:element ref="OrderQuantity" minOccurs="0"/>
					<xsd:element ref="OrderQuantityDistribution" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="OrderBaseUOMQuantity" minOccurs="0"/>
					<xsd:element ref="CustomerPurchaseOrderReference" minOccurs="0"/>

					<xsd:element ref="ShippedQuantity" minOccurs="0"/>
					<xsd:element ref="ShippedQuantityDistribution" minOccurs="0"
						maxOccurs="unbounded"/>
					<xsd:element ref="ShippedBaseUOMQuantity" minOccurs="0"/>
					<xsd:element ref="ShippedAuxiliaryQuantity" minOccurs="0"
						maxOccurs="unbounded"/> 
					<xsd:element ref="OpenQuantity" minOccurs="0"/>
					<xsd:element ref="OpenBaseUOMQuantity" minOccurs="0"/>
					<xsd:element ref="BackOrderedQuantity" minOccurs="0"/>
					<xsd:element ref="BackOrderedBaseUOMQuantity" minOccurs="0"/>
					<xsd:element ref="OwnershipCode" minOccurs="0"/>

					<xsd:element ref="EstimatedWeightMeasure" minOccurs="0">

						<xsd:annotation>

							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">The
								estimated weight of an item or container. An estimate is provided as
								a processing alternative when the actual weight of an item is not
								known or cannot be calculated exactly.</xsd:documentation>

							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">The
								estimated weight of an item or container. An estimate is provided as
								a processing alternative when the actual weight of an item is not
								known or cannot be calculated exactly.</xsd:documentation>

						</xsd:annotation>

					</xsd:element>

					<xsd:element ref="LoadingWeightMeasure" minOccurs="0">

						<xsd:annotation>

							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">This is
								the net weight at loading time of the container in which the
								materials are being shipped.</xsd:documentation>

						</xsd:annotation>

					</xsd:element>

					<xsd:element ref="RequisitionReference" minOccurs="0" maxOccurs="unbounded"/>

					<xsd:element ref="PurchaseOrderReference" minOccurs="0" maxOccurs="unbounded"/>

					<xsd:element ref="SalesOrderReference" minOccurs="0" maxOccurs="unbounded"/>
					
					<xsd:element ref="ProjectContractReference"  minOccurs="0"/><!--Element added as ref for BOD-2362  -->  
					
					<xsd:element ref="DocumentReference" minOccurs="0" maxOccurs="unbounded"/>
					
					<xsd:element ref="ItemSubLine" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="Validation" minOccurs="0"/>

				</xsd:sequence>

			</xsd:extension>

		</xsd:complexContent>

	</xsd:complexType>
	
	<xsd:complexType name="ProductionShipItemBaseType">
		<xsd:complexContent>
			<xsd:extension base="ShipItemBaseType">
				<xsd:sequence>
					<xsd:element ref="AllowSubstitutionIndicator" minOccurs="0"/>
					<xsd:element ref="Substitution" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								To specify that a substitution is used when the Shipment BOD is used
								in production scenarios. 
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	
	<xsd:complexType name="ContainerBaseType">

		<xsd:sequence>

			<xsd:group ref="ContainerInstanceIDsGroup" minOccurs="0"/>

			<xsd:element ref="ContainerGroupID" minOccurs="0"/>

			<xsd:element ref="PackingMaterial" minOccurs="0"/>

			<xsd:element ref="ShippingMaterial" minOccurs="0"/>

		</xsd:sequence>

		<xsd:attribute name="type" type="NormalizedStringType">

			<xsd:annotation>

				<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Indicates the type
					of container.</xsd:documentation>

			</xsd:annotation>

		</xsd:attribute>

	</xsd:complexType>

	<xsd:complexType name="ContainerType">

		<xsd:complexContent>

			<xsd:extension base="ContainerBaseType">

				<xsd:sequence>

					<xsd:element ref="UserArea" minOccurs="0"/>

				</xsd:sequence>

			</xsd:extension>

		</xsd:complexContent>

	</xsd:complexType>
	
	<xsd:complexType name="ItemSubLineType">

		<xsd:sequence>

			<xsd:group ref="ItemInstanceIDsGroup" minOccurs="0"/>

			<xsd:element ref="Quantity" minOccurs="0"/>
			<xsd:element ref="BaseUOMQuantity" minOccurs="0"/>
			<xsd:element ref="Status" minOccurs="0"/>

			<xsd:group ref="FreeFormTextGroup" minOccurs="0"/>

			<xsd:element ref="UserArea" minOccurs="0"/>

		</xsd:sequence>

	</xsd:complexType>

	<xsd:element name="ItemSubLine" type="ItemSubLineType">

		<xsd:annotation>

			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Identifies the lot
				number and serial number details for a specific quantity of items. This can be used
				to identify either all the serial numbers within a given lot, or lot numbers and
				serial numbers independent of each other</xsd:documentation>

		</xsd:annotation>

	</xsd:element>

	<xsd:element name="Container" type="ContainerType">

		<xsd:annotation>

			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Uniquely identifies a
				shipping container</xsd:documentation>

		</xsd:annotation>

	</xsd:element>

	<xsd:group name="ContainerInstanceIDsGroup">

		<xsd:sequence>

			<xsd:element ref="ContainerID" minOccurs="0" maxOccurs="unbounded"/>

			<xsd:element ref="RFID" minOccurs="0"/>

			<xsd:element ref="SealID" minOccurs="0"/>

		</xsd:sequence>

	</xsd:group>

	<xsd:complexType name="ShipmentUnitType">

		<xsd:annotation>

			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">The Amount contains the
				total sales price for the contents of the shipping unit. The TotalAmount contains
				the sum of the FreightCharges and the Sales price (Amount) for the shipping unit. If
				C.O.D. (Collect On Delivery) freight terms were specified for the transaction, this
				is monetary amount that the carrier is to collect as payment from the customer upon
				shipment of the shipping unit.</xsd:documentation>

		</xsd:annotation>

		<xsd:complexContent>

			<xsd:extension base="ShipUnitBaseType">

				<xsd:sequence>

					<xsd:element ref="EstimatedFreightChargeAmount" minOccurs="0"/>
					<xsd:element ref="EstimatedFreightChargeBaseAmount" minOccurs="0"/>
					<xsd:element ref="EstimatedFreightChargeReportAmount" minOccurs="0"/>
					<xsd:element ref="FreightChargeAmount" minOccurs="0"/>
					<xsd:element ref="FreightChargeBaseAmount" minOccurs="0"/>
					<xsd:element ref="FreightChargeReportAmount" minOccurs="0"/>
					<xsd:element ref="SalePriceAmount" minOccurs="0"/>
					<xsd:element ref="SalePriceBaseAmount" minOccurs="0"/>
					<xsd:element ref="SalePriceReportAmount" minOccurs="0"/>
					<xsd:element ref="ShipmentTotalAmount" minOccurs="0"/>
					<xsd:element ref="ShipmentTotalBaseAmount" minOccurs="0"/>
					<xsd:element ref="ShipmentTotalReportAmount" minOccurs="0"/>
					<xsd:element ref="LoadingDateTime" minOccurs="0"/>

					<xsd:element ref="EstimatedWeightMeasure" minOccurs="0">

						<xsd:annotation>

							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">The
								estimated weight of an item or container. An estimate is provided as
								a processing alternative when the actual weight of an item is not
								known or cannot be calculated exactly.</xsd:documentation>

							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">The
								estimated weight of an item or container. An estimate is provided as
								a processing alternative when the actual weight of an item is not
								known or cannot be calculated exactly.</xsd:documentation>

						</xsd:annotation>

					</xsd:element>

					<xsd:element ref="LoadingWeightMeasure" minOccurs="0">

						<xsd:annotation>

							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">This is
								the net weight at loading time of the container in which the
								materials are being shipped.</xsd:documentation>

						</xsd:annotation>

					</xsd:element>

					<xsd:element ref="Dimensions" minOccurs="0"/>

					<xsd:element ref="CountryOfOriginCode" minOccurs="0"/>

					<xsd:element ref="DestinationCountryCode" minOccurs="0"/>

					<xsd:element ref="TransportationMethodCode" minOccurs="0"/>

					<xsd:element ref="ShipmentServiceLevelCode" minOccurs="0"/>

					<xsd:element ref="PointOfStagingCode" minOccurs="0"/>

					<xsd:element ref="TransportationTerm" minOccurs="0"/>

					<xsd:element ref="ShipToLocation" minOccurs="0"/>

					<xsd:element ref="PackingMaterial" minOccurs="0" maxOccurs="unbounded"/>

					<xsd:element ref="ShippingMaterial" minOccurs="0" maxOccurs="unbounded"/>

					<xsd:element ref="ShipmentUnitContainer" minOccurs="0" maxOccurs="unbounded"/>

					<xsd:element ref="ShipmentUnitItem" minOccurs="0" maxOccurs="unbounded"/>

					<xsd:element ref="UserArea" minOccurs="0"/>
					<xsd:element ref="SpecializedLogisticUnit" minOccurs="0"/>
					<xsd:element ref="ItemLineNumberReference" minOccurs="0"/>
				</xsd:sequence>

			</xsd:extension>

		</xsd:complexContent>

	</xsd:complexType>

	<xsd:complexType name="ShipmentUnitItemType">

		<xsd:complexContent>

			<xsd:extension base="ShipItemBaseType">

				<xsd:sequence>

					<xsd:element ref="UnitSalePriceAmount" minOccurs="0"/>
					<xsd:element ref="UnitSalePriceBaseAmount" minOccurs="0"/>
					<xsd:element ref="UnitSalePriceReportAmount" minOccurs="0"/>
					<xsd:element ref="ExtendedSalePriceAmount" minOccurs="0"/>
					<xsd:element ref="ExtendedSalePriceBaseAmount" minOccurs="0"/>
					<xsd:element ref="ExtendedSalePriceReportAmount" minOccurs="0"/>
					<xsd:group ref="FreightItemGroup" minOccurs="0"/>
					<xsd:element ref="Reference" minOccurs="0" maxOccurs="unbounded"/><!--Element added for BOD-2239  -->           
					<xsd:element ref="UserArea" minOccurs="0"/>
					<xsd:element ref="SerializedLot" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="SpecializedLogisticItem" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								This part is present only for PackageLabel due to the incorrect design
								that existed from the beginning for PackageLabel. Do not mark this
								element as 'Used' in the tool for any other noun that contains ShipmentUnitItem
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="EngineeringLevel" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>used by AutoConnect</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="ShipToLocation" minOccurs="0" maxOccurs="unbounded">
						<xsd:annotation>
							<xsd:documentation>
								To specify various customer location IDs like consumption point,
								unloading dock ID, line feed location etc
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="ProductionDate" minOccurs="0"/>
					<xsd:element ref="ExpiryDate" minOccurs="0"/>
				</xsd:sequence>

			</xsd:extension>

		</xsd:complexContent>

	</xsd:complexType>

	<xsd:complexType name="ShipmentUnitContainerType">

		<xsd:complexContent>

			<xsd:extension base="ContainerBaseType">

				<xsd:sequence>

					<xsd:element ref="ParentContainerID" minOccurs="0">

						<xsd:annotation>

							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Is the
								identifier of the container that physically holds other subordinate
								containers.</xsd:documentation>


						</xsd:annotation>

					</xsd:element>

					<xsd:group ref="FreeFormTextGroup" minOccurs="0"/>

					<xsd:element ref="ShipmentUnitItem" minOccurs="0" maxOccurs="unbounded"/>

					<xsd:element ref="UserArea" minOccurs="0"/>

				</xsd:sequence>

			</xsd:extension>

		</xsd:complexContent>

	</xsd:complexType>

	<xsd:element name="ShipmentUnit" type="ShipmentUnitType">

		<xsd:annotation>

			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">The ShipmentUnit
				represents a single trackable, uniquely identifiable assembly or container
				containing a specific collection of goods inventory that is packaged by a supplier
				for carrier transportation to a customer business partner destination The
				ShipmentUnit component identifies and describes the physical shipping container(s)
				and internal packaging structure of the delivered goods. The ShipmentUnit component
				is typically constructed to describe the result of an inventory picking and packing
				operation. A ShipmentUnit is generally the smallest "thing" that can be individually
				moved and tracked throughout a carrier's transportation network. The physical size,
				inventory, content and internal nested container complexity within a ShipUnit is
				arbitrary. The ShipUnit component was specifically designed to be transportation
				mode independent. It may be used to represent any uniquely identifiable and
				trackable assembly, container or vessel including, but not limited to: a parcel
				express package; a pallet of identical or mixed items; a truck trailer, rail car or
				an ocean cargo container. The ShipmentUnit complements the line-item oriented
				summary information provided in the Shipment's ShipmentItem and InventoryDetail
				component with detailed information to accurately describe complex shipping unit
				assemblies and item packaging. </xsd:documentation>

		</xsd:annotation>

	</xsd:element>

	<xsd:element name="ShipmentUnitItem" type="ShipmentUnitItemType"/>

	<xsd:element name="ShipmentUnitContainer" type="ShipmentUnitContainerType">

		<xsd:annotation>

			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">The
				ShipmentUnitContainer represents information about an intermediate packaging level
				within the shipping unit. A ShipmentUnitContainer may or may not have
				ShipmentUnitItem associated with it</xsd:documentation>

		</xsd:annotation>

	</xsd:element>

	<xsd:group name="TrackingIDGroup">

		<xsd:annotation>

			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Contains the TrackingID
				and the two optional elements that uniquely identify a ship unit</xsd:documentation>

		</xsd:annotation>

		<xsd:sequence>

			<xsd:element ref="TrackingID" minOccurs="0"/>

			<xsd:element ref="ShipUnitSequenceID" minOccurs="0"/>

			<xsd:element ref="ShipUnitTotalID" minOccurs="0"/>

			<xsd:element ref="ContainerGroupID" minOccurs="0"/>

		</xsd:sequence>

	</xsd:group>

	<xsd:group name="CatchWeightGroup">

		<xsd:sequence>

			<xsd:element ref="CatchWeightQuantity" minOccurs="0"/>
			<xsd:element ref="CatchWeightBaseUOMQuantity" minOccurs="0"/>
			<xsd:element ref="CatchWeightConversionFactor" minOccurs="0"/>

		</xsd:sequence>

	</xsd:group>

	<xsd:group name="FreightItemGroup">

		<xsd:sequence>

			<xsd:element ref="FreightItemID" minOccurs="0"/>

			<xsd:element ref="FreightClassificationCode" minOccurs="0"/>

		</xsd:sequence>

	</xsd:group>

	<xsd:complexType name="ProductionReceiverBaseType">

		<xsd:sequence>

			<xsd:group ref="TrackingIDGroup" minOccurs="0"/>

			<xsd:group ref="ContainerInstanceIDsGroup" minOccurs="0"/>

			<xsd:element ref="CarrierParty" minOccurs="0"/>

			<xsd:element ref="ShipFromParty" minOccurs="0"/>

			<xsd:element ref="DeclaredValueAmount" minOccurs="0"/>
			<xsd:element ref="DeclaredValueBaseAmount" minOccurs="0"/>
			<xsd:element ref="DeclaredValueReportAmount" minOccurs="0"/>
			<xsd:element ref="ShipmentDateTime" minOccurs="0"/>

			<xsd:element ref="ExportLicenseRequiredIndicator" minOccurs="0"/>

			<xsd:element ref="ImportLicenseRequiredIndicator" minOccurs="0"/>

			<xsd:element ref="ScheduledDeliveryDateTime" minOccurs="0"/>

			<xsd:element ref="ActualDeliveryDateTime" minOccurs="0"/>

			<xsd:element ref="SpecialHandlingNote" minOccurs="0" maxOccurs="unbounded"/>

			<xsd:element ref="Status" minOccurs="0"/>

			<xsd:group ref="ShippingWeightandVolumeGroup" minOccurs="0"/>

			<xsd:element ref="DistributedCharge" minOccurs="0" maxOccurs="unbounded"/>

		</xsd:sequence>

	</xsd:complexType>

	<xsd:complexType name="ProductionReceiverUnitBaseType">

		<xsd:sequence>

			<xsd:group ref="TrackingIDGroup" minOccurs="0"/>

			<xsd:group ref="ContainerInstanceIDsGroup" minOccurs="0"/>
			<xsd:element ref="ContainerType" minOccurs="0"/>
			<xsd:element ref="CarrierParty" minOccurs="0"/>

			<xsd:element ref="ShipFromParty" minOccurs="0"/>

			<xsd:element ref="DeclaredValueAmount" minOccurs="0"/>
			<xsd:element ref="DeclaredValueBaseAmount" minOccurs="0"/>
			<xsd:element ref="DeclaredValueReportAmount" minOccurs="0"/>
			<xsd:element ref="ShipmentDateTime" minOccurs="0"/>

			<xsd:element ref="ExportLicenseRequiredIndicator" minOccurs="0"/>

			<xsd:element ref="ImportLicenseRequiredIndicator" minOccurs="0"/>

			<xsd:element ref="ScheduledDeliveryDateTime" minOccurs="0"/>

			<xsd:element ref="ActualDeliveryDateTime" minOccurs="0"/>

			<xsd:element ref="SpecialHandlingNote" minOccurs="0" maxOccurs="unbounded"/>

			<xsd:element ref="Status" minOccurs="0"/>

			<xsd:group ref="ShippingWeightandVolumeGroup" minOccurs="0"/>

			<xsd:element ref="DistributedCharge" minOccurs="0" maxOccurs="unbounded"/>

		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="ProductionReceiverUnitType">

		<xsd:annotation>

			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">The Amount contains the
				total sales price for the contents of the shipping unit. The TotalAmount contains
				the sum of the FreightCharges and the Sales price (Amount) for the shipping unit. If
				C.O.D. (Collect On Delivery) freight terms were specified for the transaction, this
				is monetary amount that the carrier is to collect as payment from the customer upon
				shipment of the shipping unit.</xsd:documentation>

		</xsd:annotation>

		<xsd:complexContent>

			<xsd:extension base="ProductionReceiverUnitBaseType">

				<xsd:sequence>

					<xsd:element ref="EstimatedFreightChargeAmount" minOccurs="0"/>
					<xsd:element ref="EstimatedFreightChargeBaseAmount" minOccurs="0"/>
					<xsd:element ref="EstimatedFreightChargeReportAmount" minOccurs="0"/>
					<xsd:element ref="FreightChargeAmount" minOccurs="0"/>
					<xsd:element ref="FreightChargeBaseAmount" minOccurs="0"/>
					<xsd:element ref="FreightChargeReportAmount" minOccurs="0"/>
					<xsd:element ref="SalePriceAmount" minOccurs="0"/>
					<xsd:element ref="SalePriceBaseAmount" minOccurs="0"/>
					<xsd:element ref="SalePriceReportAmount" minOccurs="0"/>
					<xsd:element ref="ShipmentTotalAmount" minOccurs="0"/>
					<xsd:element ref="ShipmentTotalBaseAmount" minOccurs="0"/>
					<xsd:element ref="ShipmentTotalReportAmount" minOccurs="0"/>
					<xsd:element ref="LoadingDateTime" minOccurs="0"/>

					<xsd:element ref="EstimatedWeightMeasure" minOccurs="0">

						<xsd:annotation>

							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">The
								estimated weight of an item or container. An estimate is provided as
								a processing alternative when the actual weight of an item is not
								known or cannot be calculated exactly.</xsd:documentation>

							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">The
								estimated weight of an item or container. An estimate is provided as
								a processing alternative when the actual weight of an item is not
								known or cannot be calculated exactly.</xsd:documentation>

						</xsd:annotation>

					</xsd:element>

					<xsd:element ref="LoadingWeightMeasure" minOccurs="0">

						<xsd:annotation>

							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">This is
								the net weight at loading time of the container in which the
								materials are being shipped.</xsd:documentation>

						</xsd:annotation>

					</xsd:element>

					<xsd:element ref="Dimensions" minOccurs="0"/>

					<xsd:element ref="CountryOfOriginCode" minOccurs="0"/>

					<xsd:element ref="DestinationCountryCode" minOccurs="0"/>

					<xsd:element ref="TransportationMethodCode" minOccurs="0"/>

					<xsd:element ref="ShipmentServiceLevelCode" minOccurs="0"/>

					<xsd:element ref="PointOfStagingCode" minOccurs="0"/>

					<xsd:element ref="TransportationTerm" minOccurs="0"/>

					<xsd:element ref="ShipToLocation" minOccurs="0"/>

					<xsd:element ref="PackingMaterial" minOccurs="0"/>

					<xsd:element ref="ShippingMaterial" minOccurs="0"/>

					<xsd:element ref="ProductionReceiverUnitContainer" minOccurs="0"
						maxOccurs="unbounded"/>

					<xsd:element ref="ProductionReceiverUnitItem" minOccurs="0"
						maxOccurs="unbounded"/>

					<xsd:element ref="UserArea" minOccurs="0"/>

				</xsd:sequence>

			</xsd:extension>

		</xsd:complexContent>

	</xsd:complexType>

	<xsd:complexType name="ProductionReceiverUnitItemType">

		<xsd:complexContent>

			<xsd:extension base="ShipItemBaseType">

				<xsd:sequence>

					<xsd:element ref="UnitSalePriceAmount" minOccurs="0"/>
					<xsd:element ref="UnitSalePriceBaseAmount" minOccurs="0"/>
					<xsd:element ref="UnitSalePriceReportAmount" minOccurs="0"/>
					<xsd:element ref="ExtendedSalePriceAmount" minOccurs="0"/>
					<xsd:element ref="ExtendedSalePriceBaseAmount" minOccurs="0"/>
					<xsd:element ref="ExtendedSalePriceReportAmount" minOccurs="0"/>
					<xsd:group ref="FreightItemGroup" minOccurs="0"/>

					<xsd:element ref="UserArea" minOccurs="0"/>
					<xsd:element ref="SerializedLot" minOccurs="0" maxOccurs="unbounded"/>

				</xsd:sequence>

			</xsd:extension>

		</xsd:complexContent>

	</xsd:complexType>

	<xsd:complexType name="ProductionReceiverUnitContainerType">

		<xsd:complexContent>

			<xsd:extension base="ContainerBaseType">

				<xsd:sequence>

					<xsd:element ref="ParentContainerID" minOccurs="0">

						<xsd:annotation>

							<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">Is the
								identifier of the container that physically holds other subordinate
								containers.</xsd:documentation>


						</xsd:annotation>

					</xsd:element>

					<xsd:group ref="FreeFormTextGroup" minOccurs="0"/>

					<xsd:element ref="ProductionReceiverUnitItem" minOccurs="0"
						maxOccurs="unbounded"/>

					<xsd:element ref="UserArea" minOccurs="0"/>

				</xsd:sequence>

			</xsd:extension>

		</xsd:complexContent>

	</xsd:complexType>

	<xsd:complexType name="SpecializedLogisticHeaderType">
		<xsd:sequence>
			<xsd:element ref="CustomerStorageLocation" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>location at the customer site, where the goods are stored -
						used by AutoConnect</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="ConsumptionPoint" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>location at the customer site, where the goods are going to
						be assembled (assembly line) - used by AutoConnect</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="Reference" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Miscellaneous reference numbers that are not stored in other
						elements - used by AutoConnect</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="PickUpSheetNumber" minOccurs="0"/>
			<xsd:element ref="NatureOfTransaction" 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="OceanDetails" minOccurs="0"/>
			<xsd:element ref="AirDetails" minOccurs="0"/>
			<xsd:element ref="EquipmentClassificationCode" minOccurs="0"/>
			<xsd:element ref="ShipmentClassificationCode" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:element name="SpecializedLogisticHeader" type="SpecializedLogisticHeaderType"/>

	<xsd:complexType name="SpecializedLogisticItemType">
		<xsd:sequence>
			<xsd:element ref="ItemUsageType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>enumeration for type of item. eg. spare part, test part,
						serial part ... - used by AutoConnect</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="QualityAssuranceIndicator" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						To be used only in PackageLabel
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="SafetyItemIndicator" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						To be used only in PackageLabel
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="Reference" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Miscellaneous reference numbers that are not stored in other
						elements - used by AutoConnect</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="EngineeringLevel" minOccurs="0"/>
			<xsd:element ref="KanbanNumber" minOccurs="0"/>
			<xsd:element ref="ModelYear" minOccurs="0"/>
			<xsd:element ref="ShipToLocation" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						To specify various customer location IDs like consumption point,
						unloading dock ID, line feed location etc
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="ReleaseAuthorizationNumber" minOccurs="0"/>
			<xsd:element ref="ExternalDocumentReference" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="ManufacturingReferenceNumber" minOccurs="0"/>
			<xsd:element ref="VIN" minOccurs="0"/>
			<xsd:element ref="NatureOfTransaction" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						The nature of transaction specifies the characteristics 
						(purchase/sale, work under contract, etc.) that classifies a 
						transaction to determine the scope
						of trade in goods based declarations in EU
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="StatisticalProcedureCode" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:element name="SpecializedLogisticItem" type="SpecializedLogisticItemType"/>

	<xsd:complexType name="SpecializedLogisticUnitType">
		<xsd:sequence>
			<xsd:element ref="ShipmentUnitType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Enumeration for Unit type e.g. outer, inner - used by
						AutoConnect</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="VirtualIndicator" minOccurs="0"/>
			<xsd:element ref="FullyPackedIndicator" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Indicates whetehr the container is fully packed
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="ShipToLocation" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
				To specify various customer location IDs like consumption point,
				unloading dock ID, line feed location etc
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="KanbanNumber" minOccurs="0"/>
			<xsd:element ref="QualityRemark" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="Reference" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Miscellaneous reference numbers that are not stored in other
						elements - used by AutoConnect</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="QualityRemarkType">
		<xsd:sequence>
			<xsd:element ref="TroubleReportNumber" minOccurs="0"/>
			<xsd:element ref="CorrectionReasonCode" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:element name="TroubleReportNumber" type="NormalizedStringType">
		<xsd:annotation>
			<xsd:documentation>
				Specifies the trouble report number sent by the customer
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="CorrectionReasonCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>
				specifies teh code relating to the corrective action
				undertook by the supplier. Check automotive exchange's documentation
				for details on code values and code lists. 
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	
	<xsd:element name="QualityRemark" type="QualityRemarkType">
		<xsd:annotation>
			<xsd:documentation>
				To specify any trouble report numbers and the corresponding
				correction code for labels on the container
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="FullyPackedIndicator" type="IndicatorType"/>
	<xsd:element name="SpecializedLogisticUnit" type="SpecializedLogisticUnitType"/>

 

	<xsd:element name="ProductionReceiverUnit" type="ProductionReceiverUnitType">

		<xsd:annotation>

			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">The
				ProductionReceiverUnit represents a single trackable, uniquely identifiable assembly
				or container containing a specific collection of goods inventory that is packaged
				production for the warehouse. The ProductionReceiverUnit component is typically
				constructed to describe the result of an inventory picking and packing operation. A
				ProductionReceiverUnit is generally the smallest "thing" that can be individually
				moved and tracked throughout a carrier's transportation network. The physical size,
				inventory, content and internal nested container complexity within a
				ProductionReceiverUnit is arbitrary. The ProductionReceiverUnit component was
				specifically designed to be transportation mode independent. It may be used to
				represent any uniquely identifiable and trackable assembly, container or vessel
				including, but not limited to: a parcel express package; a pallet of identical or
				mixed items; a truck trailer, rail car or an ocean cargo container. </xsd:documentation>

		</xsd:annotation>

	</xsd:element>

	<xsd:element name="ProductionReceiverUnitItem" type="ProductionReceiverUnitItemType"/>

	<xsd:element name="ProductionReceiverUnitContainer" type="ProductionReceiverUnitContainerType">
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">The
				ProductionReceiverUnitContainer represents information about an intermediate
				packaging level within the ProductionReceiver unit. A
				ProductionReceiverUnitContainer may or may not have ProductionReceiverUnitItem
				associated with it</xsd:documentation>
		</xsd:annotation>
	</xsd:element>

	<xsd:complexType name="OceanDetailsType">
		<xsd:sequence>
			<xsd:element ref="PortOfLoadingCode" minOccurs="0"/>
			<xsd:element ref="PortOfDischargeCode" minOccurs="0"/>
			<xsd:element ref="TariffServiceCode" minOccurs="0"/>
			<xsd:element ref="OceanServiceLevelCode" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="OceanDetails" type="OceanDetailsType"/>

	<xsd:complexType name="AirDetailsType">
		<xsd:sequence>
			<xsd:element ref="RoutedViaCode" minOccurs="0"/>
			<xsd:element ref="AirServiceLevelCode" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	
	<xsd:complexType name="ExportDeclarationHeaderBaseType">
		<xsd:annotation>
			<xsd:documentation source="http://www.openapplications.org/platform/1">The Warehouse Location identifies the place from where the goods are shipped</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="StatusEnabledHeaderType">
				<xsd:sequence>
					<xsd:element ref="MovementReferenceID" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								Identifier given by Customs office for a decalaration and is used to track 
								the export process, including all changes and results of actions taken. 
								Even when the export process is finished this is the reference on the Proof of Exit.
								Generally called as 'Movement reference number (MRN) in EU. When submitting the declaration
								for the first time, this would not be available.
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					
					<xsd:element ref="InternalReference" minOccurs="0" maxOccurs="unbounded">
						<xsd:annotation>
							<xsd:documentation>
								This element can contain any reference used internally by the creator of the message.
								Customs gives back this number in all the messages - similar to MRN, 
								but from the shipper/declarant for his use to have a track of all the related messages
								This could also contain Local Reference Number - the internal reference number of a trader (exporter)
								who is sending the declaration. Till the declaration is 'Accepted' by the customs office, all 
								communication with customs office will happen with local reference number only.
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="DeclarationType" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								Indicates the declaration type (to specify the type of procedure to be used 
								for declaration - examples - normal declaration, simplified declaration etc).
								This would be a standard code list
								
								When using in EU SAD, this represents box 1.2 
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					
					<xsd:element ref="ExportOffice" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								Export customs office with ID, name and address. The ID is with a schemeAgencyName and schemeName
								to specify external IDs. Export office IDs are not internal IDs within an Infor Application
								
								The customs office designated by the customs authorities where the formalities 
								requiring a customs declaration for goods are to be completed. The goods in general would be 
								goods destined to leave the customs territory for a destination outside of the territory
								
								Typical formalities to be completed at the customs office of export include:
								→ the lodging and acceptance of a customs declaration for export, outward processing or,
								following a customs procedure with economic impact, for re-exportation
								→ the issuing of the MRN to the declarant
								→ the verification of the declaration, supporting documents, and the examination of the goods
								→ taking measures allowing the identification of the goods
								→ controls on whether the goods are subject to prohibitions or restrictions
								→ the release of goods for moving to the customs office of exit
								→ forwarding the "Anticipated Export Record" message to the customs office of exit.
								→ the confirmation of exit to the exporter/declarant
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					
					<xsd:element ref="CustomsExport"  minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								Contains the details of the export operation excluding the party information,
								and shipping/transportation information. All the details in this element 
								must be ideally filled when submitting a complete declaration to the customs
								office
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
							
					<xsd:element ref="CustomsSeals" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								After inspection, office of export (also called as office of dispatch) will
								seal the goods for identification in the consecutive processes. The office of departure 
								can waive the requirement for sealing when the description of goods in
								the declaration data is sufficiently precise to ensure easy
								identification of the goods (e.g. by giving engine and
								chassis number where cars are transported). In all other cases,
								in order to ensure means of identification seals would be affixed
								by the office of dispatch. This element contains details about these seals.
								When lodging the declaration before any inspection by customs office, this element might be left out
								since no 'seal' would be affixed yet. 
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
				
					
					<xsd:element ref="CustomsExit" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								Specifies the details regarding exit office processes and documents.
								Note that the details in this element would be required only when
								a declaration message is being sent to the customs office after the exit of 
								goods - for dealing with scenarios like the customs system was down and
								all the declaration is being done post exit.
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					
					
					<xsd:element ref="PortInformation"  minOccurs="0"/>
					
					<xsd:element ref="CountryItinerary" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								List of countries from the point of origin to ship to party's destination; 
								order sensitive list
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					
					<xsd:element ref="TransportationTerm" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							Inco Terms - delivery terms
						</xsd:documentation>
					</xsd:annotation>
					</xsd:element>
					
					<xsd:element ref="RoutingInformation" minOccurs="0" maxOccurs="unbounded">
						<xsd:annotation>
							<xsd:documentation>
								Specifies details for a logistical segment of a transport process.
								Also includes the details about inland and border means of transport and others
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					
					<xsd:element ref="IntraCompanyTransferIndicator" minOccurs="0"/>
					
					<xsd:element ref="TransactionNatureCode" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								Indicates the nature of the transaction; examples are  
								Final Buy/Sale
								Test delivery or a delivery with sale or return
								Return of goods
								consignment of goods after outward processing etc
								This would be a standard code list
								
								Box 24 in SAD for EU
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					
					<xsd:element ref="TotalAmount" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								Total amount invoiced for all the goods declared in declaration currency
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="TotalBaseAmount" minOccurs="0"/>
					<xsd:element ref="TotalReportAmount" minOccurs="0"/>
					<xsd:element ref="OutwardProcessing" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								Outward Processing allows EU goods to be processed abroad and, when they come back into EU 
								to be put into free circulation, that duty has to be paid only on the value added abroad.
								Without such a system, duty would have to be paid on the goods as produced in the EU 
								as well as on the value added abroad. 
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					
					<xsd:element ref="ShipToParty"  minOccurs="0">
						<xsd:annotation>
							<xsd:documentation source="http://www.openapplications.org/platform/1">Identifies the ShipToParty for the document or the line. In a lot of cases, this is the same as the CustomerParty. In multi-organization purchasing, the CustomerParty may be different from the BuyerParty</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="UltimateRecipientParty" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								Indicates the ultimate recipient party
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="EndUserSpecificationCode" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								Code to specify  the end user detail - following options are possible
								  - Ultimate Recipient is the end user
								  - Ultimate Recipient is not the end user
								  - End user need not be specified
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="SupplierParty" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>Identifies the supplier organization/entity of the items or inventory for the associated transaction.
								
								 Supplier is the exporter 
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="ShipFromParty" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								Identifies the ship from party. This element would only be filled when
								supplier is not the actual ship-from party.
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="DeclarantParty" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								Indicates the declarant of the export declaration
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="RepresentativeDeclarantParty" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								In some cases the declaration could be made by an agent of the declarant.
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	
	<xsd:element name = "CountryItinerary" type="ItineraryType"/>
	<xsd:complexType name="ItineraryType">
		<xsd:sequence>
			<xsd:element ref="Country" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="Country" type="CodeType"/>
	
	<xsd:element name="DeclarantParty" type="DeclarantPartyType"/>
	<xsd:element name="RepresentativeDeclarantParty" type="DeclarantPartyType"/>
	<xsd:complexType name="DeclarantPartyType">
		<xsd:complexContent>
			<xsd:extension base="SemanticPartyType">
				<xsd:sequence>
					<xsd:element ref="IsAuthorizedEconomicOperator" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								AEOs either have easier access to customs simplifications or are be in a more favourable 
								position to comply with the new security requirements. Economic operators would have to apply for AEO
								status with a EU member nation.
								The current element indicates whether the declarant is an AEO. AEOs can submit simplified
								declarations, for more details check
								http://ec.europa.eu/ecip/documents/annex30a_en.pdf 
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="IsIndirectRepresentative" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								Indicates whether the declarant is an indirect representative of the exporter (supplier)
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					
					<xsd:element ref="UsesDirectRepresentative" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								Indicator to specify whether the declarant uses a direct representative.
								When set to true, RepresentativeDeclarantParty will contain the details
								of the direct representative
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="ApprovedExporterApprovalID" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								An approved exporter is an exporter who under certain conditions is allowed to make out proofs of origin. 
								
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	
	<xsd:element name="ApprovedExporterApprovalID" type="IdentifierType"/>
	<xsd:element name="IsAuthorizedEconomicOperator" type="IndicatorType"/>
	<xsd:element name="IsIndirectRepresentative" type="IndicatorType"/>
	<xsd:element name="UsesDirectRepresentative" type="IndicatorType"/>
	
	<xsd:element name="OutwardProcessing" type="OutwardProcessingType"/>
	<xsd:complexType name="OutwardProcessingType">
		<xsd:sequence>
			<xsd:element ref="ApprovalID" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Approval ID allocated by customs to an exporter to do outward processing
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="LocalClearanceApprovalID" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Approval ID for Local Clearance with Outward processing.
						By using the local clearance procedure, an exporter places the goods under a customs 
						procedure without immediately having to file a declaration with Customs. 
						
						At regular intervals, supplementary declarations are filed for the goods
						placed under a customs procedure by using the local clearance procedure. 
						The authorisation will specify the length of these intervals, 
						for instance monthly. 
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="ReImportApprovalID" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Approval ID for re-import.
						
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="ReImportCountryCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Country into which the goods would be re-imported after processing. In some cases, it might be a 
						different EU country other than the country in which the goods are exported
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="ReImportDate" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Expected re-import date
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="ReImportCommodity" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						The commodity that would be the outcome of outward processing
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="StandardExchangeIndicator" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Indicates that the outward processing is for exchange, and not for repair. 
						Goods would get exchanged with outward processing if this is set to true.
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="MeansOfIdentificationCode" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						Means of identifying outward processing
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="MeansOfIdentificationText" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="ApprovalID" type="IdentifierType"/>
	<xsd:element name="LocalClearanceApprovalID" type="IdentifierType"/>
	<xsd:element name="ReImportApprovalID" type="IdentifierType"/>
	<xsd:element name="ReImportCountryCode" type="CodeType"/>
	<xsd:element name="ReImportDate" type="DateType"/>
	<xsd:element name="StandardExchangeIndicator" type="IndicatorType"/>
	<xsd:element name="MeansOfIdentificationCode" type="CodeType"/>
	<xsd:element name="MeansOfIdentificationText" type="TextType"/>
	<xsd:element name="ReImportCommodity" type="CommodityType"/>
	
	<xsd:complexType name="EventType" abstract="false" mixed="false">
		<xsd:sequence minOccurs="1" maxOccurs="1">
			<xsd:element ref="Type" minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">Indicates the type of the object in which assoicated.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="StartDateTime" minOccurs="0" maxOccurs="1"/>
			<xsd:element ref="Duration" minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">Indicates the duration of time as represented by ISO 8601. Where the value space is a six dimensional space where the coordinates designate the Gregorian year, month, day, hour, minute, and second. The number of seconds can include decimal digits to arbitary pecision.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="EndDateTime" minOccurs="0" maxOccurs="1"/>
			<xsd:element ref="Description" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="UserArea" minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">Allows the user of OAGIS to extend the specification in order to provide additional information that is not captured in OAGIS.</xsd:documentation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">This is done by defining the additional information in XML Schema and referencing the new schema in the xml instance document through the use of namespaces. Once this is done the additional information defined there can be carried in the BOD XML instance document.</xsd:documentation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">The Open Applications Group will make best efforts to quickly consider all proposed submissions.The USERAREA is always the last element in all components, except where the component has been extended inline.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
		<xsd:attribute name="type" type="NormalizedStringType" use="optional"/>
	</xsd:complexType>
	<xsd:element name="Event" type="EventType"/>
	
	<xsd:complexType name="RoutingInformationType">
		<xsd:sequence>
			<xsd:element ref="ShippingTrackingID" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Is a unique identifier for the purpose of tracking an individual package or shipment.
						When @routeType = border, this represents the unique consignment reference for the consignment.
						
						This is the ID in the external system - the corresponding internal reference for the consignment (if any)
						must be filled in the element 'InternalReference'
						
						Box 7 in EU SAD
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="PaymentBasisCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">The date and time when the payment terms go into effect. Used in conjunction with NumberOfDays</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="TransportPaymentTypeCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						The payment type code used to pay the transport charges.
						
						The code values are from a standard code list
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="TransportationMethodCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">Identifies the general type of carrier transportation used to deliver goods.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="TransportModeCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Indicates the mode of transport - Sea transport, rail transport etc.
						The code list is a standard code list
						
						This is box 25 in EU SAD when type = border
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="MeansOfTransportCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Means of transport - type of vehicle used for transportation
						Box 18 in SAD when type = Domestic
						Box 21 in SAD when type = Border
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="MeansOfTransportID" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Identification of means of transport
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="MeansOfTransportNationality" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Country code to represent the nationality of means of transport
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="SpecialHandlingNote" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">This describes any special, physical handling needs that the freight might have. For example, the need for a lift gate</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="ForwardingAgentParty" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">Financial institution that receives the payment transaction from the account owner or authorised party and processes the instruction. </xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="CarrierParty" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">Idenitfies the party that serves as the carrier of the goods or services for the transaction.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="UserArea" minOccurs="0"/>			
		</xsd:sequence>
		<xsd:attribute name="routeType">
			<xsd:annotation>
				<xsd:documentation>
					Indicates the type of routing information - Domestic, Border, Transit
				</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
	</xsd:complexType>
	<xsd:element name="TransportPaymentTypeCode" type="CodeType"/>

	<xsd:element name="TransportModeCode" type="CodeType"/>
	<xsd:element name="MeansOfTransportCode" type="CodeType"/>
	<xsd:element name="MeansOfTransportID" type="IdentifierType"/>
	<xsd:element name="MeansOfTransportNationality" type="NormalizedStringType"/>
	
	<xsd:element name="DeclarationType" type="CodeType"/>
	
	<xsd:element name="TransactionNatureCode" type="CodeType"/>
	<xsd:element name="ContainerQuantity" type="QuantityType"/>
	<xsd:element name="SealedContainerIndicator" type="IndicatorType"/>
	<xsd:element name="SealText" type="TextType"/>
	<xsd:element name="SealType" type="CodeType"/>
	
	<xsd:element name="EndUserSpecificationCode" type="CodeType"/>
	
	<xsd:complexType name="ExportDeclarationItemBaseType">
		<xsd:sequence>
			<xsd:element ref="LineNumber" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Line number. Set by the declarant.
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="InternalReference" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						Provision to specify any internal references to the line.
						Could also be used to specify the internal consignment reference number
						if it is different from the one on the header
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="ShippingTrackingID" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						External reference of the consignment when it is different from the header 
						for the line
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="TransactionNatureCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						When the transaction nature code is some thing different than the one on the header
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="ExportLicense" minOccurs="0"/>
			
			<xsd:element ref="TransportationTerm" minOccurs="0"/>
			
			<xsd:element ref="ShipToParty" minOccurs="0"/>
			<xsd:element ref="UltimateRecipientParty" minOccurs="0"/>
			<xsd:element ref="EndUserSpecificationCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						If the line contains a different end user specification than what is specified on the
						header
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="OriginCountryCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Indicates the country of origin for the commodity
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="OriginRegionCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Indicates a region code within the country of origin, needed for some EU countries.
						The code list is a standard code list
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="HarmonizedTariffScheduleCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Harmonized tariff schedule code 
						
						check http://en.wikipedia.org/wiki/Harmonized_System for more details
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="Commodity" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Contains the details of the commodity codes as required by EU. Either this element or the HarmonizedTariffScheduleCode
						could be entered.
						
						This refers to box 33 in EU SAD
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="ContainerDetail" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						Contains the details of the containers used if any.
						Note that there is no direct relation between containers and 
						packages - though packages go ultimately into these containers,
						customs do not require the detail of number of packages within a 
						container etc. Only the identification marks on the containers
						is required. 
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="PackageDetail" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						Contains the marks, numbers, quantity and kind of packages or, in the case of unpackaged goods,
						the number of such goods covered by the declaration together with the particulars
						needed to identify them
						
						Box 31 in EU SAD
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="NetWeightMeasure" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Contains the net weight measure of all the items included in the
						declaration line
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="GrossWeightMeasure" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Contains the weight represented by this line, including the weight of all 
						containers declared in this line
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="StatisticalWeightMeasure" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Net weight in the UoM of the commodity code
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="StatisticalInvoiceAmount" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Statistical value means the value of goods at the time when and place where they leave the territory of the
						exporting Member State.
						The statistical value is based on the value of the goods, i.e.:
						− in the case of sale or purchase, the statistical value is based on the invoiced amount for the goods;
						− in other cases, the statistical value is based on the amount which would have been invoiced in the
						event of sale or purchase.
						More information @ http://ec.europa.eu/taxation_customs/resources/documents/customs/procedural_aspects/general/sad/guide/g46.pdf 
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
		
	<xsd:complexType name="ProducedDocumentType">
		<xsd:complexContent>
			<xsd:extension base="DocumentType">
				<xsd:sequence>
					<xsd:element ref="ExportLicense" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								Contains the details about export licenses for the current commodity or consignment.
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:element name="ProducedDocument" type="ProducedDocumentType"/>
	<xsd:element name="OriginalLineNumber" type="IdentifierType"/>
	<xsd:element name="ProcedureCategory" type="CodeType"/>
	
	<xsd:element name="OriginCountryCode" type="CodeType"/>
	<xsd:element name="OriginRegionCode" type="CodeType"/>
	
	<xsd:complexType name="DocumentType">
		<xsd:sequence>
			<xsd:element ref="Type" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Indicates the type of document.
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
						
			<xsd:element ref="Reference" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						Free-form name value pairs to give any additional text or other details 
						related to a document
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	
	<xsd:complexType name="AdministrativeDocumentType">
		<xsd:complexContent>
			<xsd:extension base="DocumentType">
				<xsd:sequence>
					<xsd:element ref="ProcedureCategory" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								Administrative Procedure category
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	
	<xsd:element name="PriorAdministrativeDocument" type="AdministrativeDocumentType"/>
	
	<xsd:complexType name="CommodityType">
		<xsd:sequence>
			<xsd:element ref="CombinedNomenclatureCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						8 character Combined Nomenclature code. 
						
						Box 33.1 in EU SAD
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="TARICCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Specifies the Taric code (two characters for the application of
						specific EU measures in respect of formalities to be completed at destination).
						
						Box 33.2 in EU SAD
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element> 
			<xsd:element ref="TARICFirstAdditionalCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						To specify the Taric code (first additional code).
						
						Box 33.3 in EU SAD
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="TARICSecondAdditionalCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						To specify the Taric code (second additional code).
						
						Box 33.4 in EU SAD
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="NationalAdditionalCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						EU National additional code
						
						Box 33.5 in EU SAD
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="Description" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Commodity description - needed for some commodities
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="Commodity" type="CommodityType"/>
	
	<xsd:element name="StatisticalWeightMeasure" type="MeasureType"/>
	<xsd:element name="StatisticalInvoiceAmount" type="AmountType"/>
	<xsd:element name="HazardousMaterialCode" type="CodeType"/>
	<xsd:element name="TARICCode" type="CodeType"/>
	<xsd:element name="CombinedNomenclatureCode" type="CodeType"/>
	<xsd:element name="TARICFirstAdditionalCode" type="CodeType"/>
	<xsd:element name="TARICSecondAdditionalCode" type="CodeType"/>
	<xsd:element name="NationalAdditionalCode" type="CodeType"/>
	
	<xsd:complexType name="ContainerDetailType">
		<xsd:sequence>
			<xsd:element ref="ID" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Identification of the container - these are not internal
						IDs
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="ContainerDetail" type="ContainerDetailType"/>
	
	
	<xsd:complexType name="PackageDetailType">
		<xsd:sequence>
			<xsd:element ref="Type" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Indicates the type of packages
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="NumberOfPackages" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Indicates the number of packages of a given type
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="IdentificationText" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						To specify identification texts on packages
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="PackageDetail" type="PackageDetailType"/>
	<xsd:element name="IdentificationText" type="TextType"/>
	<xsd:element name="NumberOfPackages" type="PositiveIntegerNumericType"/>
	
	<xsd:complexType name="CustomsWarehouseType">
		<xsd:sequence>
			<xsd:element ref="ApprovalID" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Approval ID to use customs warehouse
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="LocationReferenceText" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Indicates a text reference to the location where goods are stored in the customs warehouse 
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="WarehousePosition" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						It is possible that the re-exported quantities are from more than one
						customs warehouse position. If all the quantity re-exported comes from
						one position, then only one occurance would exist here. If the quantity re-exported
						is from multiple positions, then this would contain the specification of quantities 
						retrieved from each position
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	
	<xsd:complexType name="WarehousePositionType">
		<xsd:complexContent>
			<xsd:extension base="ReExportPositionType">
				<xsd:sequence>
					<xsd:element ref="UsualFormsOfHandlingIndicator" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								Indicates whether 'usual forms of handling' is applicable for the current goods
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="UsualFormsOfHandling" minOccurs="0" maxOccurs="unbounded">
						<xsd:annotation>
							<xsd:documentation>
								Customs warehouses are for the storage of goods, but some minor handlings - known as ‘usual forms of handling’ - are allowed in order to:
								•ensure goods are preserved
								•improve their presentation or marketable quality
								•prepare them for distribution or resale
								
								Usual forms of handling must be authorised by customs office prior to the 
								handling taking place. 
								Generally this will be at the same time as authorisation to operate the customs warehouse is granted.
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					
					<xsd:element ref="TradedDetail" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								Indicates the traded quantity in transaction's UoM - this is the quantity that is 
								getting re-exported after the customs warehousing process is finished
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="IssuedDetail" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								Quantity issued out of the warehouse for the current line in the warehouse UoM.
								Issued quantity would generally be specified when 'Usual forms of handling' exists.
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:element name="WarehousePosition" type="WarehousePositionType"/>
	
	<xsd:element name="CustomsWarehousing" type="CustomsWarehouseType"/>
	
	<xsd:element name="LocationReferenceText" type="TextType"/>
	<xsd:element name="InboundRegistrationID" type="IdentifierType"/>
	<xsd:element name="UsualFormsOfHandlingIndicator" type="IndicatorType"/>
	<xsd:element name="IssuedDetail" type="QualifiedQuantityType"/>
	<xsd:element name="TradedDetail" type="QualifiedQuantityType"/>
	<xsd:element name="ElectronicPriorProcedureIndicator" type="IndicatorType"/>
	
	<xsd:complexType name="UsualFormsOfHandlingType">
		<xsd:sequence>
			<xsd:element ref="Code" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Code for usual forms of handling
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="AdditionalText" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Additional text for the code
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="UsualFormsOfHandling" type="UsualFormsOfHandlingType"/>

	
	<xsd:complexType name="QualifiedQuantityType">
		<xsd:sequence>
			<xsd:element ref="Quantity" minOccurs="0"/>		
			<xsd:element ref="Qualifier" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								Additional qualifier that could be needed for some commodities
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="Qualifier" type="NormalizedStringType"/>
	
	<xsd:complexType name="InwardProcessingType">
		<xsd:sequence>
			<xsd:element ref="ApprovalID" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Approval ID given by customs for inward processing
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="InwardPosition" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						To specify the re-export details for multiple positions. 
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="InwardProcessing" type="InwardProcessingType"/>
	
	<xsd:complexType name="InwardPositionType">
		<xsd:complexContent>
			<xsd:extension base="ReExportPositionType">
				<xsd:sequence>
				<xsd:element ref="CommodityInformation" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							Text to give all the related information for the commodity 
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:element name="InwardPosition" type="InwardPositionType"/>
	<xsd:element name="CommodityInformation" type="TextType"/>
	
	<xsd:complexType name="ReExportPositionType">
		<xsd:sequence>
			<xsd:element ref="PositionNumber" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Indicates the position number
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="RegistrationID" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Registration ID for the position (either of the inward movement in customs warehouse or 
						the curresponding outward processing registration ID
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="ElectronicPriorProcedureIndicator" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Indicates whether the prior customs warehousing procedure was handled electronically or not
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="PositionNumber" type="IdentifierType"/>
	<xsd:element name="RegistrationID" type="IdentifierType"/>
	
	<xsd:complexType name="ExportLicenseType">
		<xsd:sequence>
			<xsd:element ref="ID" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">Is the Identifiers of the given instance of an entity within the scope of the integration. The schemeAgencyID attribute identifies the party that provided or knows this party by the given identifier.
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="Classification" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">This identifies the classification of an entity. An entity may be classified into mulitple groups for different reasons. Examples of Classification include Commodity Codes, Freight Classifications, Product Line classifications and so on. Suggested Values are COMMODITY, FREIGHT, PRODUCTLINE</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="IssueDateTime" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						DateTime on which the document was issued
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="ExpireDateTime" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Validity expiration date time
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="LicensedQuantity" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						When the produced document is a licence related document, 
						Indicates the quantity of goods that require the export
						licence, authorized by the document
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="LicensedAmount" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Monetary value of the licensed quantity
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="UserArea" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">Allows the user of OAGIS to extend the specification in order to provide additional information that is not captured in OAGIS.</xsd:documentation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">This is done by defining the additional information in XML Schema and referencing the new schema in the xml instance document through the use of namespaces. Once this is done the additional information defined there can be carried in the BOD XML instance document.</xsd:documentation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">The Open Applications Group will make best efforts to quickly consider all proposed submissions.The USERAREA is always the last element in all components, except where the component has been extended inline.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="ExportLicense" type="ExportLicenseType"/>
	<xsd:element name="IssueDateTime" type="DateTimeType"/>
	<xsd:element name="LicensedQuantity" type="QuantityType"/>
	<xsd:element name="LicensedAmount" type="AmountType"/>
	
	<xsd:complexType name="CustomsExportType">
		<xsd:sequence>
			<xsd:element ref="ID" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">Is the Identifiers of the given instance of an entity within the scope of the integration. The schemeAgencyID attribute identifies the party that provided or knows this party by the given identifier.
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="DeclarationDateTime" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Date on which declaration is first submitted to export office
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="SupplementDateTime" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Date time on which the supplementary declaration is submitted
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="DispatchCountryCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">Country in which the Address is in. A possible list of values is as specified in ISO 3166-2.</xsd:documentation>
					<xsd:documentation>
						Country of despatch
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="DispatchCountryDetail" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Contains further details for the country - whether the country is a EU member or EFTA (European Free Trade
						Association) member; or if the country is in transition to become EU member
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="DestinationCountryCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Destination Country code 
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="DestinationCountryDetail" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Contains further details for the country - whether the country is a EU member or EFTA (European Free Trade
						Association) member; or if the country is in transition to become EU member
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="ExpressConsignmentIndicator" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Indicates whether the declaration is made for postal or express consignments.
						These have specific data requirements for customs. For more details check
						http://ec.europa.eu/ecip/documents/annex30a_en.pdf 
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="AircraftSuppliesIndicator" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Indicates whether the declaration is made for Ship and/or Aircraft supplies
						for crew and passengers. These have specific data requirements for customs. For more details check
						http://ec.europa.eu/ecip/documents/annex30a_en.pdf 
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
						
			<xsd:element name="GrossWeightMeasure" type="MeasureType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">Gross weight of the associated entity. 
						The total weight of the entity without reduction of packaging or container and excluding the freight/shipping
						container. I.e 
						The Gross wieght of a pallet of goods includes the weight of the pallet. 
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="ContainerQuantity"  minOccurs="0">
				<xsd:annotation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">A numeric expression of the number of outer containers for product shipping.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="GoodsLocation" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Place where the goods are optionally checked prior to starting the export process. 
						This can be either an address or a code handed out by customs that describes a location.
						Office of Export or any other location.
						Box 30 in EU SAD
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="GoodsAvailableTimePeriod" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Indicates the time period in which the goods would be available for inspection at a pre-approved
						premises. Would be specified by the declarant
						
						This would be used in some cases like local clearance procedures or simplified/supplementary. 
						In all the other cases, this must be left out. 
						
						With a local export clearance procedure, goods need not be presented to a customs office, 
						but rather all the operations are performed	from within the business. 
						There must be prior approval to use local clearance procedures.
						
						The from Date indicates date and time at which the goods are intended 
						to be available for examination at the approved inland premises (also known as the intended date into control).
						
						The toDate is the Date and time at which the goods are expected to be removed from the approved inland premises. 
						If the Entry is on Route 3 or 6, Permission to progress will be automatically granted at this date-time.
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="ReleaseDate" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Actual date of release from office of export to exit office. 
						This element would need to be filled only when submitting the 
						declaration later in the process (in scenarios where the customs system was down)
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="EntryNumberID" minOccurs="0"/>
			<xsd:element ref="UserArea" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">Allows the user of OAGIS to extend the specification in order to provide additional information that is not captured in OAGIS.</xsd:documentation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">This is done by defining the additional information in XML Schema and referencing the new schema in the xml instance document through the use of namespaces. Once this is done the additional information defined there can be carried in the BOD XML instance document.</xsd:documentation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">The Open Applications Group will make best efforts to quickly consider all proposed submissions.The USERAREA is always the last element in all components, except where the component has been extended inline.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	
	<xsd:element name="DispatchCountryCode" type="CodeType"/>
	
	<xsd:complexType name="CountryDetailType">
		<xsd:sequence>
			<xsd:element ref="EUMemberIndicator" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Indicates whether the country is a member of European Union or not
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="EFTAMemberIndicator" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Specifies whether the country is a European Free Trade Association member or not 
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="EUTransitionIndicator" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Indicates whether the country is in the transitional period to become 
						a member of the European Union
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	

	<xsd:element name="DispatchCountryDetail" type="CountryDetailType"/>
	<xsd:element name="DestinationCountryDetail" type="CountryDetailType"/>
	<xsd:element name="EUMemberIndicator" type="IndicatorType"/>
	<xsd:element name="EFTAMemberIndicator" type="IndicatorType"/>
	<xsd:element name="EUTransitionIndicator" type="IndicatorType"/>
	<xsd:element name="ExpressConsignmentIndicator" type="IndicatorType"/>
	<xsd:element name="AircraftSuppliesIndicator" type="IndicatorType"/>
	<xsd:element name="SupplementDateTime" type="DateTimeType"/>
	
	<xsd:complexType name="CustomsSealsType">
		<xsd:sequence>
			<xsd:element ref="SealText" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						Seal/Text on packaged container 
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="SealType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Indicates the type of seal - for example, a package seal or a range seal.
						There are two methods of sealing:
						• seal the space containing the goods;
						• seal the individual package.
						Where sealing the space containing the goods is used,
						the means of transport must be suitable for sealing.
						
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="CustomsSeals" type="CustomsSealsType"/>
	
	<xsd:complexType name="CustomsExitType">
		<xsd:sequence>
			<xsd:element ref="ScheduledExitOffice" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Scheduled office of exit 
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<xsd:element ref="ScheduledExitDate" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Expected exit date
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="ActualExitOffice" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Actual office of exit 
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="ActualExitDate" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Indicates the date on which goods left the border. This would be filled by the declarant
						only if the declaration is being submitted after the goods have left the customs territory
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="ExitType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Type of exit - standard code list. Examples of possible values are 
						Start of export process delayed (no presentation to customs yet), 
						exit delayed (pecentation to customs already finished), 
						exit finished, no proof available, 
						exit finished, proof available
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="ExitTypeText" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Additional text that might be required for an ExitType
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="ProofOfExitNote" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						This element is given by Customs as the Proof of Exit, 
						some special information related to the procedure is added as Watermark to the PDF 
						and also transferred in this element of the message.
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="CustomsExit" type="CustomsExitType"/>

	<xsd:element name="CustomsExport" type="CustomsExportType"/>
	<xsd:element name="MovementReferenceID" type="IdentifierType">
		<xsd:annotation>
			<xsd:documentation>
				Identifier given by Customs office for a decalaration and is used to track 
				the export process, including all changes and results of actions taken. 
				Even when the export process is finished this is the reference on the Proof of Exit.
				Generally called as 'Movement reference number (MRN). 
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="InternalReference" type="PropertyType"/>
	<xsd:element name="GoodsLocation" type="LocationType"/>
	<xsd:element name="PresentationOfGoodsIndicator" type="IndicatorType"/>
	<xsd:element name="DeclarationDateTime" type="DateTimeType"/>
	<xsd:element name="GoodsAvailableTimePeriod" type="TimePeriodType"/>
	<xsd:element name="PlannedCheckDateTime" type="DateTimeType"/>
	<xsd:element name="InspectionTypeCode" type="CodeType"/>
	<xsd:element name="ProofOfExitNote" type="NoteType"/>
	<xsd:element name="QuantityDifferenceIndicator" type="IndicatorType"/>
	<xsd:element name="AlternativeProofIndicator" type="IndicatorType"/>
	<xsd:element name="ActualExitDate" type="DateType"/>
	<xsd:element name="ReleaseDate" type="DateType"/>
	<xsd:element name="ScheduledExitDate" type="DateType"/>
	<xsd:element name="ExitType" type="CodeType"/>
	<xsd:element name="ExitTypeText" type="TextType"/>
	
	<xsd:complexType name="CustomsOfficeType">
		<xsd:sequence>
			<xsd:element ref="ID" minOccurs="0"/>
			<xsd:element ref="Name" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="Address" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="ExportOffice" type="CustomsOfficeType">
		<xsd:annotation>
			<xsd:documentation>
				Office of export - where the declaration is lodged first
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="ScheduledExitOffice" type="CustomsOfficeType"/>
	<xsd:element name="ActualExitOffice" type="CustomsOfficeType">
		<xsd:annotation>
			<xsd:documentation>
				Actual office of exit
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
		
	<xsd:complexType name="PortInformationType" abstract="false" mixed="false">
		<xsd:sequence minOccurs="1" maxOccurs="1">
			<xsd:element ref="ID" minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">Is the Identifiers of the given instance of an entity within the scope of the integration. The schemeAgencyID attribute identifies the party that provided or knows this party by the given identifier.
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="Description" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="PortType" minOccurs="0" maxOccurs="1"/>
			<xsd:element ref="UserArea" minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">Allows the user of OAGIS to extend the specification in order to provide additional information that is not captured in OAGIS.</xsd:documentation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">This is done by defining the additional information in XML Schema and referencing the new schema in the xml instance document through the use of namespaces. Once this is done the additional information defined there can be carried in the BOD XML instance document.</xsd:documentation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">The Open Applications Group will make best efforts to quickly consider all proposed submissions.The USERAREA is always the last element in all components, except where the component has been extended inline.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	
	<xsd:complexType name="ErrorType">
		<xsd:sequence>
			<xsd:element ref="PositionText" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Text element to indicate where the position occured.
						It generally would be an x-path, but could contain other relevant information too.
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="Code" minOccurs="0"/>
			<xsd:element ref="Text" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="PositionText" type="TextType"/>
	
	<xsd:element name="PortInformation" type="PortInformationType"/>
	
	<xsd:element name="AirDetails" type="AirDetailsType"/>
	<xsd:element name="EquipmentClassificationCode" type="CodeType"/>
	<xsd:element name="ItemLineNumberReference" type="IdentifierType"/>

	<xsd:element name="ContainsHazardousMaterialIndicator" type="IdentifierType"/>

	<xsd:element name="RoutingInformation" type="RoutingInformationType"/>
	<xsd:element name="UltimateRecipientParty" type="SemanticPartyType"/>
	<xsd:element name="IntraCompanyTransferIndicator" type="IndicatorType"/>
	<xsd:element name="HarmonizedTariffScheduleCode" type="CodeType"/>
	<xsd:element name="PortType" type="CodeType"/>
	<xsd:element name="EntryNumberID" type="IdentifierType"/>
	
	<xsd:complexType name="ResponseBaseHeaderType">
		<xsd:annotation>
			<xsd:documentation>
				Contains the generic information about response messages from 
				different entities
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="StatusEnabledHeaderType">
				<xsd:sequence>
					<xsd:element ref="OriginalDocumentID" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>
								Contains the details of the original document for which 
								the current response is being sent
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="OriginalReferenceText" minOccurs="0" maxOccurs="unbounded">
						<xsd:annotation>
							<xsd:documentation>
								Contains the original internal references sent 
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="ResponseError" minOccurs="0" maxOccurs="unbounded">
						<xsd:annotation>
							<xsd:documentation>
								Error(s) returned with the response
							</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	 
	<xsd:element name="OriginalReferenceText" type="TextType"/>
	<xsd:element name="ResponseError" type="ResponseErrorType"/>
	
	<xsd:complexType name="ResponseErrorType">
		<xsd:sequence>
			<xsd:element ref="Code" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Error code
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="Text" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Any error text apart from the error code
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	
	<xsd:complexType name="ExcessTransportationType">
		<xsd:sequence>
			<xsd:element ref="ReasonCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Specifies reason for excess transportation.
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="ResponsibilityCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						Specifies  responsibility for excess transportation.
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="CustomerAuthorizationID" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						To identify the authorisation to ship issued by the
						customer.
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="ExcessTransportation" type="ExcessTransportationType">
		<xsd:annotation>
			<xsd:documentation>
				To provide details of use of transportation other than normally
				utilized.
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	
	<xsd:element name="KanbanHandling" type="KanbanHandlingType"/> <!-- BOD-2128 -->
	
	<xsd:complexType name="KanbanHandlingType"> <!-- BOD-2128 -->
		<xsd:sequence>
			<xsd:element ref="HeterogeneousTransportIndicator" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	
	<xsd:element name="HeterogeneousTransportIndicator" type="IndicatorType">  <!-- BOD-2128 -->
		<xsd:annotation>
			<xsd:documentation source="http://schema.infor.com/InforOAGIS/2">when set to true, this would indicate that transport handling treatment would be heterogeneous; 
				when set to false, it would indicate that the treatment would be homogeneous. Heterogenous means, 
				that a given KANBAN number belongs to a single container, not to a pallet. 
				Several KANBAN numbers are allowed to be on one pallet. Homogenous means, 
				that a given KANBAN number belongs to a pallet, so only one KANBAN number is allowed per pallet</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	
	<xsd:element name="ConsignmentType" type="CodeType"/>
	<xsd:element name="QualityAssuranceIndicator" type="IndicatorType"> 
		<xsd:annotation>
			<xsd:documentation>A product or supplier reaches ProductQualityAssurance status when a guaranteed level of quality defined
				in advance (e.g., less than 1000 ppm of non-compliant products) is reached. 
				This concept is used particularly in the French automotive industry. 
				This indicates that the quality check is done by the supplier and must not be done again when goods are received by the customer.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	
	<xsd:element name="IntermediaryShipToParty" type="SemanticPartyType">
		<xsd:annotation>
			<xsd:documentation>
				Generally used in an indirect automotive shipment scenario the goods are deliverd to a logistic service provider (LSP), 
				before it gets delivered from there to the customer
				The intermediary ship to could denote pool points from where the goods 
				would be shipped to the customer or it could be a logistic service provider 
				to whom the goods are shipped to first, and from there, they would reach the end customer.
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="CustomerAuthorizationID" type="IdentifierType"/>
	<xsd:element name="TrackingURL" type="URIType">
		<xsd:annotation>
			<xsd:documentation>
				Full URL with the tracking ID to know the current location of the shipment
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="Substitution" type="SubstitutionType"/>
	<xsd:element name="ShipmentClassificationCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>
				To classify the shipment - for example, Standard, Urgent, etc. 
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	
	<xsd:element name="VirtualIndicator" type="IndicatorType">
		<xsd:annotation>
			<xsd:documentation>
				The virtual level to pack multiple items in one physical box will set this indicator. 
				On the paperwork and in the ASN we need one container serial # for each container 
				which contains items.
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	
	<xsd:element name="StatisticalProcedureCode" type="CodeType">
		<xsd:annotation>
			<xsd:documentation>
				Statistical procedure code is used in Intrastat transactions in EU; statistical procedure specifies the 
				characteristics to distinguish different types of arrivals/dispatches for statistical purposes
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
</xsd:schema>
