<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://mcsfulfilment.nl/2011/01/feedback" xmlns:ff="http://mcsfulfilment.nl/2011/01/fulfillment" targetNamespace="http://mcsfulfilment.nl/2011/01/feedback" elementFormDefault="qualified">
	<xsd:annotation>
		<xsd:documentation>Feedback information. The data that is fed back to the shop as a result of product stock or order processing.</xsd:documentation>
	</xsd:annotation>
	<xsd:import namespace="http://mcsfulfilment.nl/2011/01/fulfillment" schemaLocation="https://www.motsutoys.com/mcsfconnection/soap/xsd/file/fulfillment"/>
	<xsd:element name="Stock">
	<xsd:complexType>
		<xsd:annotation>
			<xsd:documentation>Stock information. Is the base element used to communicate stock data
				from MCSF to the web shop(s).</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element ref="tns:Product" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
		<xsd:attribute name="timestamp" type="xsd:dateTime">
			<xsd:annotation>
				<xsd:documentation>The timestamp at which the stock snapshot was taken. This is not necessarily the
					same time at which the request for stock was made or the stock information was
					delivered.</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
	</xsd:complexType>
	</xsd:element>
	<xsd:element name="Product">
	<xsd:annotation>
		<xsd:documentation>Product information and quantity. Since the quantity must be a value larger than
			zero, products that are in the catalog but are not on stock are not reported.</xsd:documentation>
	</xsd:annotation>
	<xsd:complexType>
		<xsd:sequence>
			<xsd:element ref="ff:ProductCode"/>
			<xsd:element ref="ff:Quantity" minOccurs="0"/>
			<xsd:element name="StockQuantity" type="xsd:double">
			<xsd:annotation>
				<xsd:documentation>The virtual stock quantity. This is the quantity that is virtually in stock, meaning the total quantity in stock minus the "in order" quantity.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	</xsd:element>
	<xsd:element name="OrderInformation">
	<xsd:annotation>
		<xsd:documentation>Order information, consisting of individual statuses for pending orders.</xsd:documentation>
	</xsd:annotation>
	<xsd:complexType>
		<xsd:sequence>
			<xsd:element ref="tns:OrderStatus" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
		<xsd:attribute name="timestamp" type="xsd:dateTime">
			<xsd:annotation>
				<xsd:documentation>The time stamp at which the order status information was actual. This is
					not necessarily the time at which the information is sent to the shop
					or picked-up by the shop.</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
	</xsd:complexType>
	</xsd:element>
	<xsd:element name="OrderStatus">
	<xsd:complexType>
		<xsd:annotation>
			<xsd:documentation> Status of an order. </xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element ref="ff:ID">
				<xsd:annotation>
					<xsd:documentation>References the ID from the original order.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Status" type="xsd:normalizedString">
				<xsd:annotation>
					<xsd:documentation>The status of the order as a string. The possible states are unknown
						at the time of this writing.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="tns:Shipping" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	</xsd:element>
	<xsd:element name="Shipping">
	<xsd:annotation>
		<xsd:documentation>In case the order is shipped to the customer, this information contains
			the details about the shipping.</xsd:documentation>
	</xsd:annotation>
	<xsd:complexType>
		<xsd:sequence>
			<xsd:element ref="ff:ShippingMethod"/>
			<xsd:element ref="tns:AnnouncementCode"/>
		</xsd:sequence>
	</xsd:complexType>
	</xsd:element>
	<xsd:element name="AnnouncementCode">
		<xsd:annotation>
			<xsd:documentation>Announcement or track-and-trace number from the freight forwarder. Can be used
				for tracking the products.</xsd:documentation>
		</xsd:annotation>
		<xsd:simpleType>
			<xsd:restriction base="xsd:string">
				<xsd:minLength value="1"/>
			</xsd:restriction>
		</xsd:simpleType>
	</xsd:element>
	<xsd:element name="StockRequest"/>
	<xsd:element name="OrderInformationRequest"/>
</xsd:schema>
