<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/xsl" href="ProgrammersReference.xslt"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ePocket.no/Handyman62/Api">
  <xs:element name="MessageList">
    <xs:annotation>
      <xs:documentation>Handyman Export: Messages from Import/Export</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Message" minOccurs="0" maxOccurs="unbounded">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Type" type="xs:integer">
                <xs:annotation>
                  <xs:appinfo>1/2</xs:appinfo>
                  <xs:documentation>
                    1 = Error
                    2 = Warning
                  </xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="MessageText" type="xs:string" />
              <xs:element name="HSOrderID" type="xs:integer">
                <xs:annotation>
                  <xs:appinfo>0,>0</xs:appinfo>
                  <xs:documentation>Handymans internal order number. 0 if message is not connected to an order.</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="OrderID" type="xs:string">
                <xs:annotation>
                  <xs:documentation>Backoffice order number. Empty string if no number is avaialable or message not is connected to order.</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="Date" type="xs:dateTime">
                <xs:annotation>
                  <xs:documentation>Date and time when the message was created.</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="Details" type="xs:string">
                <xs:annotation>
                  <xs:documentation>Some messages may have additional information. It can be the XML node that failed, or some other relevant information.</xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>
