<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="DEASDV">
<xs:complexType>
<xs:sequence>
<xs:element name="DOCUMENT">
<xs:complexType>
<xs:sequence>
<!-- RFC 3339 -->
<xs:element name="CREATED" type="xs:dateTime" />
<!-- RFC 3339 -->
<xs:element name="EXPEDITION_DATE" type="xs:dateTime" />
<!-- SHORT NOTE -->
<xs:element name="TEXT" type="xs:string" />
<xs:element name="CURRENCY" type="xs:string" />
<xs:element name="DOCUMENT_NUMBER" type="xs:string" />
<xs:element name="SUPPLIER">
<xs:complexType>
<xs:sequence>
<xs:element name="NAME" type="xs:string" minOccurs="0"/>
<xs:element name="EMAIL" type="xs:string" minOccurs="0"/>
<xs:element name="COMPANY_ID" type="xs:unsignedInt" minOccurs="0"/>
<xs:element name="VAT_ID" type="xs:string" minOccurs="0"/>
<xs:element name="ADDRESS" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="COMPANY" type="xs:string" minOccurs="0"/>
<xs:element name="STREET" type="xs:string" minOccurs="0"/>
<xs:element name="CITY" type="xs:string" minOccurs="0"/>
<xs:element name="COUNTRY_CODE" type="xs:string" minOccurs="0"/>
<xs:element name="ZIP" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
<xs:element name="ITEM" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="SKU" minOccurs="0"/>
<xs:element name="PRODUCT_NAME" minOccurs="0">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<!-- ISO 639-1 -->
<xs:attribute type="xs:string" name="lang"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="DESCRIPTION" type="xs:string" minOccurs="0"/>
<xs:element name="AMOUNT" type="xs:decimal" />
<xs:element name="UNIT" type="xs:string" minOccurs="0"/>
<xs:element name="PRICE_WITHOUT_VAT" type="xs:decimal" />
<xs:element name="PRICE_WITH_VAT" type="xs:decimal" />
<xs:element name="VAT_RATE" type="xs:decimal" />
<xs:element name="SALE_INFO" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="REQUIRE_PRICE_UPDATE">
<xs:simpleType>
<xs:restriction base="xs:unsignedByte">
<xs:enumeration value="0" />
<xs:enumeration value="1" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:choice minOccurs="1" maxOccurs="1">
<!-- SHOULD BE USED ONLY ONE OF -->
<xs:element name="PRICE_WITHOUT_VAT" type="xs:decimal" />
<xs:element name="PRICE_WITH_VAT" type="xs:decimal" />
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="BARCODES">
<xs:complexType>
<xs:sequence>
<xs:element name="BARCODE" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="type" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="PLU" />
<xs:enumeration value="EAN" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="value" type="xs:unsignedLong" use="required" />
<xs:attribute name="multiplier" type="xs:unsignedByte" use="optional" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="IMGURL" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="URL" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<!-- MUST BE UNIQUE -->
<xs:attribute name="id" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
|