<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2012 rel. 2 (http://www.altova.com) by Alin Pop (Zendor GSI Commerce) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
           attributeFormDefault="unqualified">
    <xs:element name="inventoryAdjustment">
        <xs:annotation>
            <xs:documentation>Root element. Radial fulfilment centre will be providing this data to the nominated retail system.
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:all>
                <xs:element name="adjustmentDate" type="xs:dateTime" minOccurs="0">
                    <xs:annotation>
                        <xs:documentation>Date and timestamp when the export is generated. A valid date time would look
                            like: 2012-08-10T13:31:15+00:00
                        </xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="catalogId" type="xs:string" minOccurs="0">
                    <xs:annotation>
                        <xs:documentation>Optional element that holds the store catalogue identifier if known.
                        </xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="adjustments">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="adjustment" minOccurs="0" maxOccurs="unbounded">
                                <xs:complexType>
                                    <xs:all>
                                        <xs:element name="sku" type="xs:string">
                                            <xs:annotation>
                                                <xs:documentation>Unique product identifier that will be used by GSI to
                                                    communicate with the web-store on all feeds. It is not necessarily
                                                    imported into WMS.
                                                </xs:documentation>
                                            </xs:annotation>
                                        </xs:element>
                                        <xs:element name="altSku" type="xs:string">
                                            <xs:annotation>
                                                <xs:documentation>Alternative SKU provided through the item master
                                                    feed.
                                                </xs:documentation>
                                            </xs:annotation>
                                        </xs:element>
                                        <xs:element name="qty" type="xs:integer">
                                            <xs:annotation>
                                                <xs:documentation>Adjustment quantity. A negative or positive number,
                                                    depending on if the stock decreased on increased. Never will have
                                                    value "0"
                                                </xs:documentation>
                                            </xs:annotation>
                                        </xs:element>
                                        <xs:element name="adjustmentReason" type="xs:string">
                                            <xs:annotation>
                                                <xs:documentation>Adjustment reason code. There will be provided by GSI
                                                    at the time of implementation.
                                                </xs:documentation>
                                            </xs:annotation>
                                        </xs:element>
                                        <xs:element name="adjustmentReasonComment" type="xs:string"
                                                    minOccurs="0">
                                            <xs:annotation>
                                                <xs:documentation>Optional comment describing the adjustment code.
                                                </xs:documentation>
                                            </xs:annotation>
                                        </xs:element>
                                        <xs:element name="sourceLocation" type="xs:string"
                                                    minOccurs="0">
                                            <xs:annotation>
                                                <xs:documentation>EE internal stock source location. This flag should be
                                                    always populated as the source of the stock movement. See ADJ spec
                                                    for all available stock locations.
                                                </xs:documentation>
                                            </xs:annotation>
                                        </xs:element>
                                        <xs:element name="wmsReference" type="xs:string"
                                                    minOccurs="0">
                                            <xs:annotation>
                                                <xs:documentation>The warehouse management reference number
                                                    Default value: Blank
                                                    Data type: String
                                                </xs:documentation>
                                            </xs:annotation>
                                        </xs:element>
                                        <xs:element default="EEUK01" minOccurs="0"
                                                    name="distributionCentre">
                                            <xs:annotation>
                                                <xs:documentation>Distribution centre (facility code) the stock has been
                                                    adjusted.
                                                    The exact codes are provided by the implementation manager.
                                                </xs:documentation>
                                            </xs:annotation>
                                            <xs:simpleType>
                                                <xs:restriction base="xs:string">
                                                    <xs:maxLength value="15"/>
                                                </xs:restriction>
                                            </xs:simpleType>
                                        </xs:element>
                                        <xs:element minOccurs="0" name="batchNumber"
                                                    type="xs:string">
                                            <xs:annotation>
                                                <xs:documentation>Optional.
                                                    It provides additional level of tracking/allocation for item
                                                    inventory in the warehouse management system.
                                                </xs:documentation>
                                            </xs:annotation>
                                        </xs:element>
                                        <xs:element name="expireDate" type="xs:dateTime" minOccurs="0">
                                            <xs:annotation>
                                                <xs:documentation>The product expiration date.
                                                    Prerequisite: Enable item master captureExpireDate flag for products
                                                    that require expire date captured by Radial operation during the
                                                    receiving process.
                                                    It's only present if the captured date is in the future, (see item
                                                    master captureExpireDate flag definition)
                                                    E.g. 2025-12-21T01:00:00+01:00
                                                </xs:documentation>
                                            </xs:annotation>
                                        </xs:element>
                                        <xs:element name="manufactureDate" type="xs:dateTime" minOccurs="0">
                                            <xs:annotation>
                                                <xs:documentation>The product Manufactured date and time. E.g. 2024-01-01T01:00:00+01:00</xs:documentation>
                                            </xs:annotation>
                                        </xs:element>
                                        <xs:element minOccurs="0" name="rucItemId" type="xs:string">
                                            <xs:annotation>
                                                <xs:documentation>RUC internal item ID</xs:documentation>
                                            </xs:annotation>
                                        </xs:element>
                                    </xs:all>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <xs:element name="messageId" type="xs:long" minOccurs="0">
                    <xs:annotation>
                        <xs:documentation>Numeric unique Radial RUC outbound message ID.

                            It's recommended to be used on:
                            --------------------------------------
                            1) Avoiding duplicate message processing;
                            2) Debugging if a certain message has been sent/received/acknowledged.

                            Limitation: Radial doesn't guarantee the delivery of messages in the sequence order.
                        </xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element minOccurs="0" name="clientId" type="xs:string">
                    <xs:annotation>
                        <xs:documentation>Client identifier/code. It is provided during the implementation phase.
                        </xs:documentation>
                    </xs:annotation>
                </xs:element>
            </xs:all>
        </xs:complexType>
    </xs:element>
</xs:schema>
