<?xml version="1.0" encoding="UTF-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" 
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns="http://www.posti.com/wms/postiwmsxml/InSalesOrder/2016/1"
    targetNamespace="http://www.posti.com/wms/postiwmsxml/InSalesOrder/2016/1">
           
	<xs:element name="Order">
		<xs:complexType>
			<xs:all>
				<xs:element name="MetaData" type="ctMetaDataType" minOccurs="1" maxOccurs="1"/>
				<xs:element name="OrderLines" type="ctOrderLinesType" minOccurs="1" maxOccurs="1"/>
				<xs:element name="Instructions" type="ctInstructionsType" minOccurs="0" maxOccurs="1"/>
				<xs:element name="PersonInfoShipTo" type="ctPersonInfoShipToType" minOccurs="1" maxOccurs="1"/>
				<xs:element name="PersonInfoBillTo" type="ctPersonInfoBillToType" minOccurs="0" maxOccurs="1"/>
				<xs:element name="AdditionalAddresses" type="ctAdditionalAddressesType" minOccurs="0" maxOccurs="1"/>
				<xs:element name="References" type="ctReferencesType" minOccurs="0" maxOccurs="1"/>
				<xs:element name="SpecialServices" type="ctSpecialServicesType" minOccurs="0" maxOccurs="1"/>
				<xs:element name="Extn" type="ctExtnType" minOccurs="0" maxOccurs="1"/>
			</xs:all>
			<xs:attribute name="IsShipComplete" type="stStringMaxLength1YNType" use="optional">
				<xs:annotation>
					<xs:documentation>Ship node from which the order line will be fulfilled.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="ShipNode" type="stStringMaxLength24Type" use="optional">
				<xs:annotation>
					<xs:documentation>Ship node from which the order line will be fulfilled.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="ReqShipDate" type="xs:dateTime" use="optional">
				<xs:annotation>
					<xs:documentation>The date the customer has requested the order to be shipped on.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="CustomerOrderDate" type="xs:dateTime" use="optional">
				<xs:annotation>
					<xs:documentation>The date the customer has placed the order on.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="ReqDeliveryDate" type="xs:dateTime" use="optional">
				<xs:annotation>
					<xs:documentation>The date the customer has requested the order to be delivered.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="OrderType" type="stStringMaxLength20Type" use="optional">
				<xs:annotation>
					<xs:documentation>The order classification attribute. This field can be used for reporting purposes or to build conditions for modeling your business process.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="TermsCode" type="stStringMaxLength20Type" use="optional">
				<xs:annotation>
					<xs:documentation>The terms code is used for order processing in warehouse.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="AllocationRuleID" type="stStringMaxLength10Type" use="optional">
				<xs:annotation>
					<xs:documentation>Identifies the scheduling rule used by the Schedule API or time-triggered transaction. For Posti internal use only.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="FreightTerms" type="stStringMaxLength40Type" use="optional">
				<xs:annotation>
					<xs:documentation>Freight term of the order.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
            <xs:attribute name="FreightTermsLocation" type="stStringMaxLength40Type" use="optional">
				<xs:annotation>
					<xs:documentation>Freight term location of the order.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="DoNotConsolidate" type="stStringMaxLength1YNType" use="optional">
				<xs:annotation>
					<xs:documentation>This flag indicates whether shipment constraints and routing based constraints should be used during release creation.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="CarrierAccountNo" type="stStringMaxLength40Type" use="optional">
				<xs:annotation>
					<xs:documentation>The account number of the customer with the carrier.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="CarrierServiceCode" type="stStringMaxLength40Type" use="optional">
				<xs:annotation>
					<xs:documentation>The carrier service used to ship for the order.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="SCAC" type="stStringMaxLength40Type" use="optional">
				<xs:annotation>
					<xs:documentation>The carrier assigned to the order.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="ScacAndService" type="stStringMaxLength40Type" use="optional">
				<xs:annotation>
					<xs:documentation>Value of SCAC and Service code.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="CustCustPONo" type="stStringMaxLength100Type" use="optional">
				<xs:annotation>
					<xs:documentation>The PO number of the Participant's customer.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="OrderNo" type="stStringMaxLength100Type" use="optional">
				<xs:annotation>
					<xs:documentation>Principal’s sales order number.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="ParentOrderNo" type="stStringMaxLength100Type" use="optional">
				<xs:annotation>
					<xs:documentation>Principal’s sales Parent order number.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="CustomerPONo" type="stStringMaxLength100Type" use="optional">
				<xs:annotation>
					<xs:documentation>Principal’s sales order number. - Please move to use OrderNo field. This field will have another use in the future</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="SellerSoId" type="stStringMaxLength100Type" use="optional">
				<xs:annotation>
					<xs:documentation>Principal’s sales order number, if created by Dropshipping feature.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="BuyerOrganizationCode" type="stStringMaxLength24Type" use="optional">
				<xs:annotation>
					<xs:documentation>Identifies the buying organization. The value must be a valid organization defined in the system.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="GoodsNature" type="stStringMaxLength40Type" use="optional">
				<xs:annotation>
					<xs:documentation>Nature of goods. Used only with international postal services.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="ReturnCode" type="stStringMaxLength40Type" use="optional">
				<xs:annotation>
					<xs:documentation>Return code in case of non-delivery. Only used with international postal services.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="InvoiceNumber" type="stStringMaxLength254Type" use="optional">
				<xs:annotation>
					<xs:documentation>Invoice number. Used with international postal services to countries outside of the EU. Invoice or pro-forma invoice number that the recipient will use for import customs.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="SearchCriteria1" type="stStringMaxLength100Type" use="optional">
				<xs:annotation>
					<xs:documentation>SearchCriteria 1</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="SearchCriteria2" type="stStringMaxLength100Type" use="optional">
				<xs:annotation>
					<xs:documentation>SearchCriteria 2</xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</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="required">
			<xs:annotation>
				<xs:documentation>Code for the organization that sends the sales order 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 sales order 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 sender ID).</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="DocumentType" type="stStringMaxLength40Type" use="required">
			<xs:annotation>
				<xs:documentation>Name of the document. This should be InSalesOrder.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="CreationDateTime" type="xs:dateTime" use="required">
			<xs:annotation>
				<xs:documentation>Date and time of sales order 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="ctOrderLinesType">
		<xs:annotation>
			<xs:documentation>List of order lines.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="OrderLine" type="ctOrderLineType" minOccurs="1" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="ctOrderLineType">
		<xs:annotation>
			<xs:documentation>Contains information about the order line.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Dependency" type="ctDependencyType" minOccurs="0" maxOccurs="1"/>
			<xs:element name="Item" type="ctItemType" minOccurs="1" maxOccurs="unbounded"/>
			<xs:element name="Extn" type="ctOrderLine_ExtnType" minOccurs="0" maxOccurs="1"/>
			<xs:element name="Instructions" type="ctInstructionsType" minOccurs="0" maxOccurs="1"/>
			<xs:element name="LinePriceInfo" type="ctLinePriceInfoType" minOccurs="0" maxOccurs="1"/>
			<xs:element name="LineTaxes" type="ctLineTaxesType" minOccurs="0" maxOccurs="1"/>
			<xs:element name="References" type="ctReferencesType" minOccurs="0" maxOccurs="1"/>
			<xs:element name="KitLines" type="ctKitLinesType" minOccurs="0" maxOccurs="1"/>
			<xs:element name="OrderLineInvAttRequest" type="ctOrderLineInvAttRequestType" minOccurs="0" maxOccurs="1"/>
		</xs:sequence>
		<xs:attribute name="ShipNode" type="stStringMaxLength24Type" use="optional">
			<xs:annotation>
				<xs:documentation>Ship node from which the order line will be fulfilled.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="LineNo" type="stStringMaxLength10Type" use="optional">
			<xs:annotation>
				<xs:documentation>Principal’s sales order line number.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="CustomerLinePONo" type="stStringMaxLength10Type" use="optional">
			<xs:annotation>
				<xs:documentation>Principal’s sales order line number. - Old line number field. Use LineNo instead of this. This field will have another use in the future.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="KitCode" type="stStringMaxLength10Type" use="optional">
				<xs:annotation>
				<xs:documentation>Specifies a collection of items that form a unit. For example, a home theater system is a unit, or kit, consisting of components such as a VCR, a TV, a stereo, and other components. LK = Logical Kit.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="SerialNo" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Requested serial number of the item.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="SegmentType" type="stStringMaxLength10Type" use="optional">
			<xs:annotation>
				<xs:documentation>Indicates SegmentType for the order line.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="Segment" type="stStringMaxLength100Type" use="optional">
			<xs:annotation>
				<xs:documentation>Indicates Segment for the order line.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="OrderedQty" type="stNonNegDecimal14Dig4FractType" use="required">
			<xs:annotation>
				<xs:documentation>The quantity of the line item that is being ordered. This quantity is in inventory unit of measure. If Quantity needs to be passed in a different UnitOfMeasure (only allowed for a Product line), then it should be passed in OrderLineTranQuantity node. For a service line item which is used as a standalone service, OrderedQty is treated in the same manner as product lines and must be a non-zero positive number. The OrderedQty value passed on the service line is ignored, if ordered quantity computation is not based on entered quantity.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="ReqShipDate" type="xs:dateTime" use="optional">
			<xs:annotation>
				<xs:documentation>The date the customer has requested the order line to be shipped on.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="ReqDeliveryDate" type="xs:dateTime" use="optional">
			<xs:annotation>
				<xs:documentation>The date the customer has requested the order line to be delivered.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="MinShipByDate" type="xs:dateTime" use="optional">
			<xs:annotation>
				<xs:documentation>The preferred minimum ship by date of the available supply that order line can allocate against. Available supply with ship by date earlier than the minimum ship by date will not be considered. This applies to the order line with a valid time-sensitive item.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="DependencyShippingRule" type="stStringMaxLength2Type" use="optional">
			<xs:annotation>
				<xs:documentation>Field is used in case of bundle lines. This value is 01 and used only in parent row.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="TransactionalLineId" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Field is used in case of bundle lines. This value is the same as CustomerLinePONo and used only in parent row.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="OrderLineType" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Order line type.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>

	<xs:complexType name="ctOrderLine_ExtnType">
		<xs:annotation>
			<xs:documentation>More information about the order line.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="ExtnOlineSpecialServiceList" type="ctExtnOlineSpecialServiceListType" minOccurs="0" maxOccurs="1"/>
		</xs:sequence>
		<xs:attribute name="ExtnCustomerSalesUOM" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Customer sales unit of measure.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="ExtnCustomerSalesUOMConversion" type="stNonNegDecimal14Dig4FractType" use="optional">
			<xs:annotation>
				<xs:documentation>Multiplier that can be used together with base unit quantity to gain quantity in sales unit.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
    <xs:attribute name="ExtnIsCriticalItem" type="stStringMaxLength1YNType" use="optional">
			<xs:annotation>
				<xs:documentation>Indicator of whether back orders are allowed or not, in case there are insufficient supplies to fulfill the ordered quantity</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	    <xs:attribute name="ExtnIsProductLabelReq" type="stStringMaxLength1YNType" use="optional">
			<xs:annotation>
				<xs:documentation>Indicator of whether back orders are allowed or not, in case there are insufficient supplies to fulfill the ordered quantity</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>

	<xs:complexType name="ctExtnOlineSpecialServiceListType">
		<xs:annotation>
			<xs:documentation>List of special services.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="ExtnOlineSpecialService" type="ctSpecialServiceType" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="ctDependencyType">
		<xs:annotation>
			<xs:documentation>Information about dependency between order lines.</xs:documentation>
		</xs:annotation>
		<xs:attribute name="DependentOnTransactionalLineId" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Field is used in case of bundle lines. This line has reference to the parent row. This value is the same as CustomerLinePONo in parent row.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>

	<xs:complexType name="ctItemType">
		<xs:annotation>
			<xs:documentation>Contains information about item.</xs:documentation>
		</xs:annotation>
		<xs:attribute name="UnitOfMeasure" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>The unit of measure.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="ProductClass" type="stStringMaxLength10Type" use="optional">
			<xs:annotation>
				<xs:documentation>The product class. This field is used as an inventory identifier. Default 0001</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="ItemID" type="stStringMaxLength40Type" use="required">
			<xs:annotation>
				<xs:documentation>The identifier for the item. The ItemID, UOM, and Product class form the unique inventory identifier for an order line.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="ItemDesc" type="stStringMaxLength500Type" use="optional">
			<xs:annotation>
				<xs:documentation>Description for the item.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="CustomerItem" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>The item ID for the Principal. No functionality in WMS.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>

	<xs:complexType name="ctInstructionsType">
		<xs:annotation>
			<xs:documentation>List of instructions.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Instruction" type="ctInstructionType" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="ctInstructionType">
		<xs:annotation>
			<xs:documentation>Instruction text and type.</xs:documentation>
		</xs:annotation>
		<xs:attribute name="InstructionType" type="stStringMaxLength20Type" use="optional">
			<xs:annotation>
				<xs:documentation>Name of the pre-defined instruction type.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="InstructionText" type="stStringMaxLength4000Type" use="required">
			<xs:annotation>
				<xs:documentation>Free-form text indicating any additional information related to the instruction type.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>

	<xs:complexType name="ctLinePriceInfoType">
		<xs:annotation>
			<xs:documentation>Contains information about line price.</xs:documentation>
		</xs:annotation>
		<xs:attribute name="Currency" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>The currency code in which this order is being processed. All price fields are assumed to be in this currency.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="UnitPrice" type="stNonNegDecimal19Dig6FractType" use="optional">
			<xs:annotation>
				<xs:documentation>The unit price for the order line.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="ListPrice" type="stNonNegDecimal19Dig6FractType" use="optional">
			<xs:annotation>
				<xs:documentation>The list price of the item. This is an informational field.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="DiscountPercentage" type="stNonNegDecimal5Dig2FractType" use="optional">
			<xs:annotation>
        <xs:documentation>The discount percentage is the percentage decrease in price between the list and unit price for a given buyer. This value is calculated by subtracting the difference between the list price and unit price and divided by the list price.
        </xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>

	<xs:complexType name="ctLineTaxesType">
		<xs:annotation>
			<xs:documentation>List of line taxes.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="LineTax" type="ctLineTaxType" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="ctLineTaxType">
		<xs:annotation>
			<xs:documentation>Line tax.</xs:documentation>
		</xs:annotation>
		<xs:attribute name="TaxPercentage" type="stNonNegDecimal8Dig5FractType" use="optional">
			<xs:annotation>
				<xs:documentation>Percentage amount for tax calculation.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="Tax" type="stNonNegDecimal5Dig2FractType" use="optional">
			<xs:annotation>
				<xs:documentation>The tax amount. Tax cannot be less than zero.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="TaxName" type="stStringMaxLength40Type" use="required">
			<xs:annotation>
				<xs:documentation>The tax name.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>

	<xs:complexType name="ctKitLinesType">
		<xs:annotation>
			<xs:documentation>Collection of kit lines.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="KitLine" type="ctKitLineType" minOccurs="1" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="ctKitLineType">
		<xs:annotation>
			<xs:documentation>Kit line.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Extn" type="ctKitLine_ExtnType" minOccurs="0" maxOccurs="1"/>
		</xs:sequence>
		<xs:attribute name="ItemDesc" type="stStringMaxLength500Type" use="optional">
			<xs:annotation>
				<xs:documentation>Description of the item.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="ItemID" type="stStringMaxLength40Type" use="required">
			<xs:annotation>
				<xs:documentation>The unique identifier for the component item.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="KitQty" type="stNonNegDecimal14Dig4FractType" use="required">
			<xs:annotation>
				<xs:documentation>The number of components required to one kit.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="ProductClass" type="stStringMaxLength10Type" use="optional">
			<xs:annotation>
				<xs:documentation>Component product class</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="UnitOfMeasure" type="stStringMaxLength40Type" use="required">
			<xs:annotation>
				<xs:documentation>Component unit of measure.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="CustomerItem" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>The item ID for the Principal. No functionality in WMS.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>
	<xs:complexType name="ctKitLine_ExtnType">
		<xs:annotation>
			<xs:documentation>More information for Kitlines.</xs:documentation>
		</xs:annotation>
		<xs:attribute name="ExtnAttr1" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>ExtnAttr1.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="ExtnAttr2" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>ExtnAttr2.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="ExtnAttr3" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>ExtnAttr3.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="ExtnAttr4" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>ExtnAttr4.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="ExtnAttr5" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>ExtnAttr5.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>
	<xs:complexType name="ctOrderLineInvAttRequestType">
		<xs:annotation>
			<xs:documentation>OrderLineInvAttRequest</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Extn" type="ctOrderLineIAR_ExtnType" minOccurs="0" maxOccurs="1"/>
		</xs:sequence>
		<xs:attribute name="LotNumber" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>The lot number that has been specified in the order line.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>

	<xs:complexType name="ctOrderLineIAR_ExtnType">
		<xs:annotation>
			<xs:documentation>More information for OrderLineInvAttRequest.</xs:documentation>
		</xs:annotation>
		<xs:attribute name="ExtnBestBeforeDate" type="xs:date" use="optional">
			<xs:annotation>
				<xs:documentation>Best before date.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>

	<xs:complexType name="ctPersonInfoShipToType">
		<xs:annotation>
			<xs:documentation>ShipTo address details.</xs:documentation>
		</xs:annotation>
		<xs:complexContent>
			<xs:extension base="ctPersonInfoType">
				<xs:attribute name="Country" type="stStringMaxLength40Type" use="required">
					<xs:annotation>
						<xs:documentation>The country in the address. We recommend usage of 2 byte ISO Country Codes.</xs:documentation>
					</xs:annotation>
				</xs:attribute>
				<xs:attribute name="City" type="stStringMaxLength35Type" use="required">
					<xs:annotation>
						<xs:documentation>The city in the address.</xs:documentation>
					</xs:annotation>
				</xs:attribute>
			</xs:extension>
		</xs:complexContent>
	</xs:complexType>

	<xs:complexType name="ctPersonInfoBillToType">
		<xs:annotation>
			<xs:documentation>ShipTo address details.</xs:documentation>
		</xs:annotation>
		<xs:complexContent>
			<xs:extension base="ctPersonInfoType">
				<xs:attribute name="Country" type="stStringMaxLength40Type" use="optional">
					<xs:annotation>
						<xs:documentation>The country in the address. We recommend usage of 2 byte ISO Country Codes.</xs:documentation>
					</xs:annotation>
				</xs:attribute>
				<xs:attribute name="City" type="stStringMaxLength35Type" use="optional">
					<xs:annotation>
						<xs:documentation>The city in the address.</xs:documentation>
					</xs:annotation>
				</xs:attribute>
			</xs:extension>
		</xs:complexContent>
	</xs:complexType>

	<xs:complexType name="ctPersonInfoType">
		<xs:annotation>
			<xs:documentation>Party details.</xs:documentation>
		</xs:annotation>
		<xs:attribute name="FirstName" type="stStringMaxLength64Type" use="optional">
			<xs:annotation>
				<xs:documentation>The first name of the person. If last name and first name are not used in separate fields, then both names are written in the FirstName field.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="LastName" type="stStringMaxLength64Type" use="optional">
			<xs:annotation>
				<xs:documentation>The last name of the person. This is used only if person’s first name and last name are used separately.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="Company" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>The company this person is associated with. In case of company name is known it is written here.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="ZipCode" type="stStringMaxLength35Type" use="optional">
			<xs:annotation>
				<xs:documentation>The zip code in the address.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="AddressLine1" type="stStringMaxLength70Type" use="optional">
			<xs:annotation>
				<xs:documentation>The address line 1 field.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="AddressLine2" type="stStringMaxLength70Type" use="optional">
			<xs:annotation>
				<xs:documentation>The address line 2 field.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="AddressLine3" type="stStringMaxLength70Type" use="optional">
			<xs:annotation>
				<xs:documentation>The address line 3 field.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="AddressLine5" type="stStringMaxLength70Type" use="optional">
			<xs:annotation>
				<xs:documentation>The address line 5 field.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="AddressLine6" type="stStringMaxLength70Type" use="optional">
			<xs:annotation>
				<xs:documentation>The address line 6 field.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="DayPhone" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>The day time phone at which the person or organization referred to in the address can be called.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="OtherPhone" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>The alternate phone number at which the person or a predesignated employee of the organization referred to in the address can be called.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="EmailId" type="stStringMaxLength150Type" use="optional">
			<xs:annotation>
				<xs:documentation>The email address at which the person or a predesignated employee of the organization referred to in the address can be contacted.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="PersonId" type="stStringMaxLength140Type" use="optional">
			<xs:annotation>
				<xs:documentation>PersonId.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>

	<xs:complexType name="ctAdditionalAddressesType">
		<xs:annotation>
			<xs:documentation>List of additional addresses.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="AdditionalAddress" type="ctAdditionalAddressType" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="ctAdditionalAddressType">
		<xs:annotation>
			<xs:documentation>Additional address.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="PersonInfo" type="ctAdditAdd_PersonInfoType" minOccurs="1" maxOccurs="1"/>
		</xs:sequence>
		<xs:attribute name="AddressType" type="stStringMaxLength40Type" use="required">
			<xs:annotation>
				<xs:documentation>Identifies the type of address. Part of unique key.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>

	<xs:complexType name="ctAdditAdd_PersonInfoType">
		<xs:annotation>
			<xs:documentation>Address information for additional address.</xs:documentation>
		</xs:annotation>
		<xs:complexContent>
			<xs:extension base="ctPersonInfoType">
				<xs:attribute name="Country" type="stStringMaxLength40Type" use="optional">
					<xs:annotation>
						<xs:documentation>The country in the address. We recommend usage of 2 byte ISO Country Codes.</xs:documentation>
					</xs:annotation>
				</xs:attribute>
				<xs:attribute name="City" type="stStringMaxLength35Type" use="optional">
					<xs:annotation>
						<xs:documentation>The city in the address.</xs:documentation>
					</xs:annotation>
				</xs:attribute>
			</xs:extension>
		</xs:complexContent>
	</xs:complexType>

	<xs:complexType name="ctReferencesType">
		<xs:annotation>
			<xs:documentation>List of references.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Reference" type="ctReferenceType" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="ctReferenceType">
		<xs:annotation>
			<xs:documentation>Reference.</xs:documentation>
		</xs:annotation>
		<xs:attribute name="Name" type="stStringMaxLength40Type" use="required">
			<xs:annotation>
				<xs:documentation>The name of the reference.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="Value" type="stStringMaxLength254Type" use="optional">
			<xs:annotation>
				<xs:documentation>Free-form text associated with the Reference Name.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>

	<xs:complexType name="ctSpecialServicesType">
		<xs:annotation>
			<xs:documentation>List of additional services.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="SpecialService" type="ctSpecialServiceType" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="ctSpecialServiceType">
		<xs:all>
			<xs:element name="Attributes" type="ctSpecialServiceAttributesType" minOccurs="0" maxOccurs="1"/>
		</xs:all>
		<xs:attribute name="SpecialServicesCode" type="stStringMaxLength20Type" use="optional">
			<xs:annotation>
				<xs:documentation>The code identifying the Special Service to be performed.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>
	
	<xs:complexType name="ctSpecialServiceAttributesType">
		<xs:sequence>
			<xs:element name="Attribute" type="ctSpecialServiceAttributeType" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	
	<xs:complexType name="ctSpecialServiceAttributeType">
		<xs:attribute name="Name" type="stStringMaxLength40Type" use="required">
			<xs:annotation>
				<xs:documentation>Name of the attribute relating to the special service (additional service) code.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="Value" type="stStringMaxLength254Type" use="optional">
			<xs:annotation>
				<xs:documentation>Value of the attribute relating to the special service (additional service) code.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>
	
	<xs:complexType name="ctExtnType">
		<xs:annotation>
			<xs:documentation>Contains information about message.</xs:documentation>
		</xs:annotation>
		<xs:attribute name="ExtnRoutingType" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Routing type. For Posti internal use only.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="ExtnDeliveryNoteLanguage" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Delivery note language.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="ExtnDeliveryNoteTemplate" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Delivery note type.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="ExtnDeliveryNotePricing" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Delivery note pricing.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="ExtnPrincipalLogo" type="stStringMaxLength40Type" use="optional">
			<xs:annotation>
				<xs:documentation>Principal logo.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="ExtnEmailConfirmationReq" type="stStringMaxLength1YNType" use="optional">
			<xs:annotation>
				<xs:documentation>Flag to tell if email notification is required when order is handled at warehouse</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="ExtnCustEmailConfirmationReq" type="stStringMaxLength1YNType" use="optional">
			<xs:annotation>
				<xs:documentation>Flag to tell if ExtnCustEmailConfirmationReq  notification is required when order is handled at warehouse</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="stStringMaxLength10Type">
		<xs:annotation>
			<xs:documentation>String with maximum length of 10 characters.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="10"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="stStringMaxLength20Type">
		<xs:annotation>
			<xs:documentation>String with maximum length of 20 characters.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="20"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="stStringMaxLength24Type">
		<xs:annotation>
			<xs:documentation>String with maximum length of 24 characters.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="24"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="stStringMaxLength35Type">
		<xs:annotation>
			<xs:documentation>String with maximum length of 35 characters.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="35"/>
		</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="stStringMaxLength64Type">
		<xs:annotation>
			<xs:documentation>String with maximum length of 64 characters.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="64"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="stStringMaxLength70Type">
		<xs:annotation>
			<xs:documentation>String with maximum length of 70 characters.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="70"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="stStringMaxLength100Type">
		<xs:annotation>
			<xs:documentation>String with maximum length of 100 characters.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="100"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="stStringMaxLength150Type">
		<xs:annotation>
			<xs:documentation>String with maximum length of 150 characters.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="150"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="stStringMaxLength140Type">
		<xs:annotation>
			<xs:documentation>String with maximum length of 140 characters.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="140"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="stStringMaxLength254Type">
		<xs:annotation>
			<xs:documentation>String with maximum length of 254 characters.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="254"/>
		</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="stStringMaxLength4000Type">
		<xs:annotation>
			<xs:documentation>String with maximum length of 4000 characters.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="4000"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="stStringMaxLength1YNType">
		<xs:annotation>
			<xs:documentation>String with maximun length of 1 character and possible values Y or N.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="1"/>
			<xs:pattern value="[YN]"/>
		</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:simpleType name="stNonNegDecimal8Dig5FractType">
		<xs:annotation>
			<xs:documentation>Non-negative decimal with maximum of 8 total digits and 5 fraction digits.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:minInclusive value="0"/>
			<xs:totalDigits value="8"/>
			<xs:fractionDigits value="5"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="stNonNegDecimal5Dig2FractType">
		<xs:annotation>
			<xs:documentation>Non-negative decimal with maximum of 5 total digits and 2 fraction digits.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:minInclusive value="0"/>
			<xs:totalDigits value="15"/>
			<xs:fractionDigits value="2"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="stNonNegDecimal19Dig6FractType">
		<xs:annotation>
			<xs:documentation>Non-negative decimal with maximum of 19 total digits and 6 fraction digits.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:minInclusive value="0"/>
			<xs:totalDigits value="19"/>
			<xs:fractionDigits value="6"/>
		</xs:restriction>
	</xs:simpleType>
</xs:schema>
