<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
	xmlns="http://www.posti.com/wms/postiwmsxml/OutItemMaster/2016/1" 
	targetNamespace="http://www.posti.com/wms/postiwmsxml/OutItemMaster/2016/1" 
	elementFormDefault="qualified" attributeFormDefault="unqualified">

	<xs:element name="ItemLists">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="ItemList" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="ItemList">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="MetaData" type="ctMetaDataType" minOccurs="0" maxOccurs="1"/>
				<xs:element name="Item" type="ctItemType" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:complexType name="ctMetaDataType">
		<xs:annotation>
			<xs:documentation>Contains information about message.</xs:documentation>
		</xs:annotation>
		<xs:attribute name="SourceOrganizationId" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Code for the organization that sends the item master message, provided by Posti (principal identifier).</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="Language" type="stStringMaxLength2Type" use="optional">
			<xs:annotation>
				<xs:documentation>Language code of the item master in two-letter ISO 639-1 format, e.g. FI.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="ExternalUserId" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Identifier of the principal in external system (OVT code, EDI ID).</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="DocumentType" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Name of the document. This should be OutItemMaster.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="CreationDateTime" type="xs:dateTime" use="optional">
			<xs:annotation>
				<xs:documentation>Date and time of item master creation.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="MessageIdentifier" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Identifier of the message which is unique at least in the scope of message sender.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>
	<xs:complexType name="ctItemType">
		<xs:annotation>
			<xs:documentation>Item details.</xs:documentation>
		</xs:annotation>
		<xs:all>
			<xs:element name="PrimaryInformation" type="ctPrimaryInformationType" minOccurs="0" maxOccurs="1"/>
			<xs:element name="AlternateUOMList" type="ctAlternateUOMListType" minOccurs="0" maxOccurs="1"/>
		</xs:all>
		<xs:attribute name="UnitOfMeasure" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Unit of measure for Item quantity. Blank is also a valid value for non-service item.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="GlobalItemID" type="stStringMaxLength128Type" use="optional">
			<xs:annotation>
				<xs:documentation>Global Trade Item Number.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="ItemID" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Unique identifier for an item that belongs to a principal's catalog organization.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>
	<xs:complexType name="ctPrimaryInformationType">
		<xs:annotation>
			<xs:documentation>More item details.</xs:documentation>
		</xs:annotation>
		<xs:attribute name="UnitWidthUOM" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Unit of measure in which item width is measured.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="UnitWidth" type="stNonNegDecimal14Dig4FractType" use="optional">
			<xs:annotation>
				<xs:documentation>The width of one unit of item quantity.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="UnitWeightUOM" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Unit of measure in which item weight is measured.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="UnitWeight" type="stNonNegDecimal14Dig4FractType" use="optional">
			<xs:annotation>
				<xs:documentation>The weight of one unit of item quantity.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="UnitLengthUOM" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Unit of measure in which item length is measured.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="UnitLength" type="stNonNegDecimal14Dig4FractType" use="optional">
			<xs:annotation>
				<xs:documentation>The length of one unit of item quantity.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="UnitHeightUOM" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Unit of measure in which item height is measured.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="UnitHeight" type="stNonNegDecimal14Dig4FractType" use="optional">
			<xs:annotation>
				<xs:documentation>The height of one unit of item quantity.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="Description" type="stStringMaxLength500Type" use="optional">
			<xs:annotation>
				<xs:documentation>The description of the item.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>
	<xs:complexType name="ctAlternateUOMListType">
		<xs:annotation>
			<xs:documentation>List of alternate units of measure.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="AlternateUOM" type="ctAlternateUOMType" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="ctAlternateUOMType">
		<xs:annotation>
			<xs:documentation>Alternate unit of measure information.</xs:documentation>
		</xs:annotation>
		<xs:attribute name="UnitOfMeasure" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Alternate UOM applicable for the item.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="WidthUOM" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Unit of measure in which item width is measured.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="Width" type="stNonNegDecimal14Dig4FractType" use="optional">
			<xs:annotation>
				<xs:documentation>Width of an item with alternate UOM.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="WeightUOM" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Unit of measure in which item weight is measured.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="Weight" type="stNonNegDecimal14Dig4FractType" use="optional">
			<xs:annotation>
				<xs:documentation>Weight of an item with alternate UOM.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="Quantity" type="stNonNegDecimal14Dig4FractType" use="optional">
			<xs:annotation>
				<xs:documentation>Conversion quantity to the inventory UOM.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="LengthUOM" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Unit of measure in which item length is measured.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="Length" type="stNonNegDecimal14Dig4FractType" use="optional">
			<xs:annotation>
				<xs:documentation>Length of an item with alternate UOM.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="HeightUOM" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Unit of measure in which item height is measured.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="Height" type="stNonNegDecimal14Dig4FractType" use="optional">
			<xs:annotation>
				<xs:documentation>Height of an item with alternate UOM.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>
	<xs:simpleType name="stStringMaxLength2Type">
		<xs:annotation>
			<xs:documentation>String with maximum length of 2 characters.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="2"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="stStringMaxLength40Type">
		<xs:annotation>
			<xs:documentation>String with maximum length of 40 characters.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="40"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="stStringMaxLength128Type">
		<xs:annotation>
			<xs:documentation>String with maximum length of 128 characters.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="128"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="stStringMaxLength500Type">
		<xs:annotation>
			<xs:documentation>String with maximum length of 500 characters.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="500"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="stNonNegDecimal14Dig4FractType">
		<xs:annotation>
			<xs:documentation>Non-negative decimal with maximum of 14 total digits and 4 fraction digits.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:minInclusive value="0"/>
			<xs:totalDigits value="14"/>
			<xs:fractionDigits value="4"/>
		</xs:restriction>
	</xs:simpleType>
</xs:schema>
