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

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

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

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

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

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

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

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

<xs:schema

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

xmlns="http://ts/doc/bad-requests" targetNamespace="http://ts/doc/bad-requests"

elementFormDefault="qualified"

version="2.1">

<xs:element name="bad_requests" type="BadRequests=">

<xs:complexType name="BadRequests"/>

<xs:sequence>

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

<xs:element name="bad_request" type="BadRequest"

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

</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.1">

<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="BadRequest">

<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="uv_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="comment" use="required">

<xs:simpleType>

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

<xs:maxLength value="4000"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

</xs:complexType>

</xs:schema>