Приложение N 2

к Требованиям к составу и структуре

информации в электронном виде о суммах

косвенных налогов, уплаченных в бюджеты

государств - членов Евразийского

экономического союза

ОПИСАНИЕ XSD СХЕМЫ ФАЙЛА РЕЕСТРА ЗАПРОСОВ

<?xml version="1.0" encoding="UTF-8"?>

<xs:schema

xmlns:xs="http://www.w3.org/2001/XMLSchema"

xmlns="http://ts/doc/declaration-requests-registry"

targetNamespace="http://ts/doc/declaration-requests-registry"

elementFormDefault="qualified"

version="2.0">

<xs:element name="declaration_requests_registry"

type="DeclarationRequestsRegistry"/>

<xs:complexType name="DeclarationRequestsRegistry">

<xs:sequence>

<xs:element name="add_info" type="AddInfo"/>

<xs:element name="request_documents"

type="RequestDocuments"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="AddInfo">

<xs:sequence>

<xs:element name="common_info" type="CommonInfo"/>

<xs:element name="sender_info" type="SenderInfo"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="CommonInfo">

<xs:attribute name="file_id" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:length value="20"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="info_type" use="required" fixed="ТСЗАПРОС"

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="20"/>

</xs:restriction>

<xs:simpleType>

</xs:attribute>

<xs:attribute name="version" use="required" fixed="2.0">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="5"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="registry_docs_count" use="required">

<xs:simpleType>

<xs:restriction base="xs:int">

<xs:totalDigits value="7"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

</xs:complexType>

<xs:complexType name="SenderInfo">

<xs:attribute name="surname" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1">

<xs:maxLength value="60"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="name" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="60"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="patronymic">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:maxLength value="60"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="phone" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="20"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="email">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:maxLength value="45"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

</xs:complexType>

<xs:complexType name="RequestDocuments">

<xs:sequence>

<xs:element name="request_document" type="RequestDocument"

minOccurs="0" maxOccurs="unbounded"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="RequestDocument">

<xs:attribute name="id" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:length value="33"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="date_form" type="xs:date" use="required"/>

<xs:attribute name="request_id" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:length value="36"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="request_type" use="required">

<xs:simpleType>

<xs:restriction base="xs:int">

<xs:totalDigits value="1"/>

<xs:enumeration value="1"/>

<xs:enumeration value="2"/>

<xs:enumeration value="3"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="id_seller">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="50"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="name_seller" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="400=">

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="country_seller" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:length value="3"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="id_buyer" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="8"/>

<xs:maxLength value="14"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="name_buyer" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="400"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="country_buyer" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:length value="3"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="mark_num" use="required"/>

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="18"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="mark_date" type="xs:date" use="required=">

<xs:attribute name="comment">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:maxLength value="4000"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

</xs:complexType>

</xs:schema>