ClientRef v2.xsd — различия между версиями

Материал из Фабиус wiki
Перейти к: навигация, поиск
м
м (Смотрите также)
 
(не показано 9 промежуточных версий этого же участника)
Строка 9: Строка 9:
 
   <xs:import namespace = "http://fsrar.ru/WEGAIS/Common" schemaLocation="EGCommon.xsd"/>
 
   <xs:import namespace = "http://fsrar.ru/WEGAIS/Common" schemaLocation="EGCommon.xsd"/>
  
  <xs:complexType name="OrganizationsType">
+
<xs:complexType name="OrganizationsType">
 +
  <xs:annotation>
 +
  <xs:documentation>Организации</xs:documentation>
 +
  </xs:annotation>
 +
  <xs:sequence>
 +
  <xs:element name="Organization" type="ns:OrgInfo_v2" maxOccurs="unbounded">
 +
  </xs:element>
 +
  </xs:sequence>
 +
</xs:complexType>
 +
 
 +
<xs:complexType name ="OrgInfoEx_v2">
 +
  <xs:all>
 +
  <xs:element name="Identity" type="c:IdentityType" nillable="false" minOccurs="0" maxOccurs="1">
 
     <xs:annotation>
 
     <xs:annotation>
      <xs:documentation>Организации</xs:documentation>
+
    <xs:documentation>Идентификатор внутри файла</xs:documentation>
 
     </xs:annotation>
 
     </xs:annotation>
    <xs:sequence>
+
  </xs:element>
      <xs:element name="Organization" type="ns:OrgInfo_v2" maxOccurs="unbounded">
+
  <xs:element name="OrgInfoV2" type="ns:OrgInfoReply_v2"></xs:element>
        </xs:element>
+
  <xs:element name="addresslist" minOccurs="0" maxOccurs="1">
    </xs:sequence>
+
    <xs:annotation>
  </xs:complexType>
+
    <xs:documentation>Список фактических адресов ИП</xs:documentation>
 
+
    </xs:annotation>
  <xs:complexType name ="OrgInfoEx_v2">
+
    <xs:complexType>
    <xs:all>
+
    <xs:sequence>
       <xs:element name="Identity" type="c:IdentityType" nillable="false" minOccurs="0" maxOccurs="1">
+
       <xs:element name="address" type="ns:OrgAddressType" minOccurs="1" maxOccurs="unbounded">
        <xs:annotation>
+
          <xs:documentation>Идентификатор внутри файла</xs:documentation>
+
        </xs:annotation>
+
 
       </xs:element>
 
       </xs:element>
      <xs:element name="OrgInfoV2" type="ns:OrgInfoReply_v2"></xs:element>
+
    </xs:sequence>
      <xs:element name="addresslist" minOccurs="0" maxOccurs="1">
+
    </xs:complexType>
        <xs:annotation>
+
  </xs:element>
          <xs:documentation>Список фактических адресов ИП</xs:documentation>
+
  <xs:element name="State" type="xs:string" minOccurs="0" maxOccurs="1" nillable="true">
        </xs:annotation>
+
        <xs:complexType>
+
          <xs:sequence>
+
            <xs:element name="address" type="ns:OrgAddressType" minOccurs="1" maxOccurs="unbounded">
+
            </xs:element>
+
          </xs:sequence>
+
      </xs:complexType>
+
      </xs:element>
+
      <xs:element name="State" type="xs:string" minOccurs="0" maxOccurs="1" nillable="true">
+
        <xs:annotation>
+
          <xs:documentation>Статус: действующая или удалена</xs:documentation>
+
        </xs:annotation>
+
      </xs:element>
+
      <xs:element name="VersionWB" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1" nillable="true">
+
        <xs:annotation>
+
          <xs:documentation>Версия схемы накладной принимаемая организацией</xs:documentation>
+
        </xs:annotation>
+
      </xs:element>
+
      <xs:element name="isLicense" type="xs:boolean" minOccurs="0" maxOccurs="1" nillable="true">
+
        <xs:annotation>
+
          <xs:documentation>Наличие действующей лицензии</xs:documentation>
+
        </xs:annotation>
+
      </xs:element>
+
    </xs:all>
+
  </xs:complexType>
+
 
+
  <xs:complexType name="OrgItemType">
+
 
     <xs:annotation>
 
     <xs:annotation>
      <xs:documentation>Ссылка на организацию</xs:documentation>
+
    <xs:documentation>Статус: действующая или удалена</xs:documentation>
 
     </xs:annotation>
 
     </xs:annotation>
    <xs:all>
+
  </xs:element>
      <xs:element name="ID" type="c:NoEmptyString50"/>
+
  <xs:element name="VersionWB" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1" nillable="true">
    </xs:all>
+
  </xs:complexType>
+
 
+
  <xs:complexType name="OrgAddressType">
+
 
     <xs:annotation>
 
     <xs:annotation>
      <xs:documentation>Адрес организации</xs:documentation>
+
    <xs:documentation>Версия схемы накладной принимаемая организацией</xs:documentation>
 
     </xs:annotation>
 
     </xs:annotation>
    <xs:sequence>
+
  </xs:element>
      <xs:element name="Country" minOccurs="1" maxOccurs="1">
+
  <xs:element name="isLicense" type="xs:boolean" minOccurs="0" maxOccurs="1" nillable="true">
        <xs:simpleType>
+
    <xs:annotation>
          <xs:restriction base="xs:string">
+
    <xs:documentation>Наличие действующей лицензии</xs:documentation>
            <xs:pattern value="[0-9][0-9][0-9]" />
+
    </xs:annotation>
          </xs:restriction>
+
  </xs:element>
        </xs:simpleType>
+
  </xs:all>
      </xs:element>
+
</xs:complexType>
      <xs:element name="Index" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
+
      </xs:element>
+
      <xs:element name="RegionCode" minOccurs="0" maxOccurs="1">
+
        <xs:simpleType>
+
          <xs:restriction base="xs:string">
+
            <xs:pattern value="[0-9][0-9]" />
+
          </xs:restriction>
+
        </xs:simpleType>
+
      </xs:element>
+
  
      <xs:element name="area" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
+
<xs:complexType name="OrgItemType">
       
+
  <xs:annotation>
      </xs:element>
+
  <xs:documentation>Ссылка на организацию</xs:documentation>
      <xs:element name="city" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
+
  </xs:annotation>
       
+
  <xs:all>
      </xs:element>
+
  <xs:element name="ID" type="c:NoEmptyString50"/>
      <xs:element name="place" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
+
  </xs:all>
       
+
</xs:complexType>
      </xs:element>
+
      <xs:element name="street" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
+
       
+
      </xs:element>
+
      <xs:element name="house" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
+
       
+
      </xs:element>
+
      <xs:element name="building" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
+
       
+
      </xs:element>
+
      <xs:element name="liter" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
+
       
+
      </xs:element>
+
     
+
      <xs:element name="description" nillable="false" minOccurs="1" maxOccurs="1">
+
        <xs:annotation>
+
          <xs:documentation>Фактический адрес произвольной формы</xs:documentation>
+
        </xs:annotation>
+
        <xs:simpleType>
+
          <xs:restriction base="xs:string">
+
            <xs:maxLength value="5000"/>
+
          </xs:restriction>
+
        </xs:simpleType>
+
      </xs:element>
+
 
+
    </xs:sequence>
+
  </xs:complexType>
+
  
 +
<xs:complexType name="OrgAddressType">
 +
  <xs:annotation>
 +
  <xs:documentation>Адрес организации</xs:documentation>
 +
  </xs:annotation>
 +
  <xs:sequence>
 +
  <xs:element name="Country" minOccurs="1" maxOccurs="1">
 +
    <xs:simpleType>
 +
    <xs:restriction base="xs:string">
 +
      <xs:pattern value="[0-9][0-9][0-9]" />
 +
    </xs:restriction>
 +
    </xs:simpleType>
 +
  </xs:element>
 +
  <xs:element name="Index" type="c:NoEmptyString50"  minOccurs="0" maxOccurs="1">
 +
  </xs:element>
 +
  <xs:element name="RegionCode" minOccurs="0" maxOccurs="1">
 +
    <xs:simpleType>
 +
    <xs:restriction base="xs:string">
 +
      <xs:pattern value="[0-9][0-9]" />
 +
    </xs:restriction>
 +
    </xs:simpleType>
 +
  </xs:element>
  
  <xs:simpleType name="INNType">
+
  <xs:element name="area" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
 +
  </xs:element>
 +
  <xs:element name="city" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
 +
  </xs:element>
 +
  <xs:element name="place" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
 +
  </xs:element>
 +
  <xs:element name="street" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
 +
  </xs:element>
 +
  <xs:element name="house" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
 +
  </xs:element>
 +
  <xs:element name="building" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
 +
  </xs:element>
 +
  <xs:element name="liter" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
 +
  </xs:element>
 +
  <xs:element name="description" nillable="false" minOccurs="1" maxOccurs="1">
 
     <xs:annotation>
 
     <xs:annotation>
      <xs:documentation>Идентификационный номер налогоплательщика</xs:documentation>
+
    <xs:documentation>Фактический адрес произвольной формы</xs:documentation>
 
     </xs:annotation>
 
     </xs:annotation>
     <xs:restriction base="xs:string">
+
     <xs:simpleType>
       <xs:pattern value="(\d{10}|\d{12})" />
+
    <xs:restriction base="xs:string">
    </xs:restriction>
+
       <xs:maxLength value="5000"/>
  </xs:simpleType>
+
    </xs:restriction>
 +
    </xs:simpleType>
 +
  </xs:element>
 +
  </xs:sequence>
 +
</xs:complexType>
 +
 
 +
<xs:simpleType name="INNType">
 +
  <xs:annotation>
 +
  <xs:documentation>Идентификационный номер налогоплательщика</xs:documentation>
 +
  </xs:annotation>
 +
  <xs:restriction base="xs:string">
 +
  <xs:pattern value="(\d{10}|\d{12})" />
 +
  </xs:restriction>
 +
</xs:simpleType>
 
    
 
    
  <xs:simpleType name="INN10Type">
+
<xs:simpleType name="INN10Type">
    <xs:annotation>
+
  <xs:annotation>
      <xs:documentation>Идентификационный номер налогоплательщика - юридического лица</xs:documentation>
+
  <xs:documentation>Идентификационный номер налогоплательщика - юридического лица</xs:documentation>
    </xs:annotation>
+
  </xs:annotation>
    <xs:restriction base="xs:string">
+
  <xs:restriction base="xs:string">
      <xs:length value="10" />
+
  <xs:length value="10" />
      <xs:pattern value="[0-9]{10}" />
+
  <xs:pattern value="[0-9]{10}" />
    </xs:restriction>
+
  </xs:restriction>
  </xs:simpleType>
+
</xs:simpleType>
 
    
 
    
  <xs:simpleType name="KPPType">
+
<xs:simpleType name="KPPType">
    <xs:annotation>
+
  <xs:annotation>
      <xs:documentation>Код причины постановки на учет</xs:documentation>
+
  <xs:documentation>Код причины постановки на учет</xs:documentation>
    </xs:annotation>
+
  </xs:annotation>
    <xs:restriction base="xs:string">
+
  <xs:restriction base="xs:string">
      <xs:length value="9" />
+
  <xs:length value="9" />
      <xs:pattern value="[0-9]{9}" />
+
  <xs:pattern value="[0-9]{9}" />
    </xs:restriction>
+
  </xs:restriction>
   </xs:simpleType>
+
</xs:simpleType>
 +
 
 +
<xs:simpleType name="INN12Type">
 +
   <xs:annotation>
 +
  <xs:documentation>Идентификационный номер налогоплательщика - физического лица</xs:documentation>
 +
  </xs:annotation>
 +
  <xs:restriction>
 +
  <xs:simpleType>
 +
    <xs:restriction base="xs:string" />
 +
  </xs:simpleType>
 +
  <xs:length value="12" />
 +
  <xs:pattern value="[0-9]{12}" />
 +
  </xs:restriction>
 +
</xs:simpleType>
  
   <xs:simpleType name="INN12Type">
+
<xs:complexType name="ProductContractType">
 +
   <xs:annotation>
 +
  <xs:documentation>Сведения о контракте на поставку продукции</xs:documentation>
 +
  </xs:annotation>
 +
  <xs:all>
 +
  <xs:element name="number" type="c:NoEmptyString50" minOccurs="1" maxOccurs="1"/>
 +
  <xs:element name="date" type="c:DateNoTime"  minOccurs="1" maxOccurs="1"/>
 +
  <xs:element name="Supplier" type="ns:OrgInfo_v2" minOccurs="1" maxOccurs="1">
 
     <xs:annotation>
 
     <xs:annotation>
      <xs:documentation>Идентификационный номер налогоплательщика - физического лица</xs:documentation>
+
    <xs:documentation>Организация</xs:documentation>
 
     </xs:annotation>
 
     </xs:annotation>
    <xs:restriction>
+
  </xs:element>
      <xs:simpleType>
+
  <xs:element name="Contragent" type="ns:OrgInfo_v2" minOccurs="1" maxOccurs="1">
        <xs:restriction base="xs:string" />
+
      </xs:simpleType>
+
      <xs:length value="12" />
+
      <xs:pattern value="[0-9]{12}" />
+
    </xs:restriction>
+
  </xs:simpleType>
+
 
+
  <xs:complexType name="ProductContractType">
+
 
     <xs:annotation>
 
     <xs:annotation>
      <xs:documentation>Сведения о контракте на поставку продукции</xs:documentation>
+
    <xs:documentation>Контрагент</xs:documentation>
 
     </xs:annotation>
 
     </xs:annotation>
    <xs:all>
+
  </xs:element>
      <xs:element name="number" type="c:NoEmptyString50" minOccurs="1" maxOccurs="1"/>
+
  </xs:all>
      <xs:element name="date" type="c:DateNoTime"  minOccurs="1" maxOccurs="1"/>
+
</xs:complexType>
      <xs:element name="Supplier" type="ns:OrgInfo_v2" minOccurs="1" maxOccurs="1">
+
        <xs:annotation>
+
          <xs:documentation>Организация</xs:documentation>
+
        </xs:annotation>
+
      </xs:element>
+
      <xs:element name="Contragent" type="ns:OrgInfo_v2" minOccurs="1" maxOccurs="1">
+
        <xs:annotation>
+
          <xs:documentation>Контрагент</xs:documentation>
+
        </xs:annotation>
+
      </xs:element>
+
    </xs:all>
+
  </xs:complexType>
+
 
    
 
    
 
   <!--под новые схемы март 2016-->
 
   <!--под новые схемы март 2016-->
Строка 416: Строка 406:
 
         </xs:annotation>
 
         </xs:annotation>
 
       </xs:element>
 
       </xs:element>
    </xs:all>
+
  </xs:all>
  </xs:complexType>
+
</xs:complexType>
  
  <xs:complexType name="FLType">
+
<xs:complexType name="FLType">
 +
  <xs:annotation>
 +
  <xs:documentation>Российские индивидуальные предприниматели</xs:documentation>
 +
  </xs:annotation>
 +
  <xs:all>
 +
  <xs:element name="ClientRegId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
 
     <xs:annotation>
 
     <xs:annotation>
      <xs:documentation>Российские индивидуальные предприниматели</xs:documentation>
+
    <xs:documentation>Код организации</xs:documentation>
 
     </xs:annotation>
 
     </xs:annotation>
    <xs:all>
+
  </xs:element>
      <xs:element name="ClientRegId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
+
  <xs:element name="FullName"  nillable="false" minOccurs="1" maxOccurs="1">
        <xs:annotation>
+
    <xs:annotation>
          <xs:documentation>Код организации</xs:documentation>
+
    <xs:documentation>Наименование организации полное</xs:documentation>
        </xs:annotation>
+
    </xs:annotation>
      </xs:element>
+
    <xs:simpleType>
      <xs:element name="FullName"  nillable="false" minOccurs="1" maxOccurs="1">
+
    <xs:restriction base="xs:string">
        <xs:annotation>
+
      <xs:maxLength value="255"/>
          <xs:documentation>Наименование организации полное</xs:documentation>
+
    </xs:restriction>
        </xs:annotation>
+
    </xs:simpleType>
        <xs:simpleType>
+
  </xs:element>
          <xs:restriction base="xs:string">
+
  <xs:element name="ShortName"  nillable="false" minOccurs="0" maxOccurs="1">
            <xs:maxLength value="255"/>
+
    <xs:annotation>
          </xs:restriction>
+
    <xs:documentation>Наименование организации краткое</xs:documentation>
        </xs:simpleType>
+
    </xs:annotation>
      </xs:element>
+
    <xs:simpleType>
      <xs:element name="ShortName"  nillable="false" minOccurs="0" maxOccurs="1">
+
    <xs:restriction base="xs:string">
        <xs:annotation>
+
      <xs:maxLength value="64"/>
          <xs:documentation>Наименование организации краткое</xs:documentation>
+
    </xs:restriction>
        </xs:annotation>
+
    </xs:simpleType>
        <xs:simpleType>
+
  </xs:element>
          <xs:restriction base="xs:string">
+
  <xs:element name="INN" type="ns:INN12Type" minOccurs="1" maxOccurs="1" nillable="true">
            <xs:maxLength value="64"/>
+
    <xs:annotation>
          </xs:restriction>
+
    <xs:documentation>ИНН</xs:documentation>
        </xs:simpleType>
+
    </xs:annotation>
      </xs:element>
+
  </xs:element>
      <xs:element name="INN" type="ns:INN12Type" minOccurs="1" maxOccurs="1" nillable="true">
+
  <xs:element name="address" type="ns:OrgAddressTypeULFL" minOccurs="1" maxOccurs="1">
        <xs:annotation>
+
    <xs:annotation>
          <xs:documentation>ИНН</xs:documentation>
+
    <xs:documentation>Фактический адрес</xs:documentation>
        </xs:annotation>
+
    </xs:annotation>
      </xs:element>
+
  </xs:element>
      <xs:element name="address" type="ns:OrgAddressTypeULFL" minOccurs="1" maxOccurs="1">
+
  </xs:all>
        <xs:annotation>
+
</xs:complexType>
          <xs:documentation>Фактический адрес</xs:documentation>
+
        </xs:annotation>
+
      </xs:element>
+
    </xs:all>
+
  </xs:complexType>
+
  
  <xs:complexType name="FLReplyType">
+
<xs:complexType name="FLReplyType">
 +
  <xs:annotation>
 +
  <xs:documentation>Российские индивидуальные предприниматели</xs:documentation>
 +
  </xs:annotation>
 +
  <xs:all>
 +
  <xs:element name="ClientRegId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
 
     <xs:annotation>
 
     <xs:annotation>
      <xs:documentation>Российские индивидуальные предприниматели</xs:documentation>
+
    <xs:documentation>Код организации</xs:documentation>
 
     </xs:annotation>
 
     </xs:annotation>
    <xs:all>
+
  </xs:element>
      <xs:element name="ClientRegId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
+
  <xs:element name="FullName"  nillable="false" minOccurs="1" maxOccurs="1">
        <xs:annotation>
+
    <xs:annotation>
          <xs:documentation>Код организации</xs:documentation>
+
    <xs:documentation>Наименование организации полное</xs:documentation>
        </xs:annotation>
+
    </xs:annotation>
      </xs:element>
+
    <xs:simpleType>
      <xs:element name="FullName"  nillable="false" minOccurs="1" maxOccurs="1">
+
    <xs:restriction base="xs:string">
        <xs:annotation>
+
      <xs:maxLength value="255"/>
          <xs:documentation>Наименование организации полное</xs:documentation>
+
    </xs:restriction>
        </xs:annotation>
+
    </xs:simpleType>
        <xs:simpleType>
+
  </xs:element>
          <xs:restriction base="xs:string">
+
  <xs:element name="ShortName"  nillable="false" minOccurs="0" maxOccurs="1">
            <xs:maxLength value="255"/>
+
    <xs:annotation>
          </xs:restriction>
+
    <xs:documentation>Наименование организации краткое</xs:documentation>
        </xs:simpleType>
+
    </xs:annotation>
      </xs:element>
+
    <xs:simpleType>
      <xs:element name="ShortName"  nillable="false" minOccurs="0" maxOccurs="1">
+
    <xs:restriction base="xs:string">
        <xs:annotation>
+
      <xs:maxLength value="64"/>
          <xs:documentation>Наименование организации краткое</xs:documentation>
+
    </xs:restriction>
        </xs:annotation>
+
    </xs:simpleType>
        <xs:simpleType>
+
  </xs:element>
          <xs:restriction base="xs:string">
+
  <xs:element name="INN" type="ns:INN12Type" minOccurs="1" maxOccurs="1" nillable="true">
            <xs:maxLength value="64"/>
+
    <xs:annotation>
          </xs:restriction>
+
    <xs:documentation>ИНН</xs:documentation>
        </xs:simpleType>
+
    </xs:annotation>
      </xs:element>
+
  </xs:element>
      <xs:element name="INN" type="ns:INN12Type" minOccurs="1" maxOccurs="1" nillable="true">
+
  <xs:element name="address" type="ns:OrgAddressTypeULFLReply" minOccurs="1" maxOccurs="1">
        <xs:annotation>
+
    <xs:annotation>
          <xs:documentation>ИНН</xs:documentation>
+
    <xs:documentation>Фактический адрес</xs:documentation>
        </xs:annotation>
+
    </xs:annotation>
      </xs:element>
+
  </xs:element>
      <xs:element name="address" type="ns:OrgAddressTypeULFLReply" minOccurs="1" maxOccurs="1">
+
  </xs:all>
        <xs:annotation>
+
</xs:complexType>
          <xs:documentation>Фактический адрес</xs:documentation>
+
        </xs:annotation>
+
      </xs:element>
+
    </xs:all>
+
  </xs:complexType>
+
  
  <xs:complexType name="FOType">
+
<xs:complexType name="FOType">
 +
  <xs:annotation>
 +
  <xs:documentation>Иностраная организация</xs:documentation>
 +
  </xs:annotation>
 +
  <xs:all>
 +
  <xs:element name="ClientRegId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
 
     <xs:annotation>
 
     <xs:annotation>
      <xs:documentation>Иностраная организация</xs:documentation>
+
    <xs:documentation>Код организации</xs:documentation>
 
     </xs:annotation>
 
     </xs:annotation>
    <xs:all>
+
  </xs:element>
      <xs:element name="ClientRegId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
+
  <xs:element name="FullName"  nillable="false" minOccurs="1" maxOccurs="1">
        <xs:annotation>
+
    <xs:annotation>
          <xs:documentation>Код организации</xs:documentation>
+
    <xs:documentation>Наименование организации полное</xs:documentation>
        </xs:annotation>
+
    </xs:annotation>
      </xs:element>
+
    <xs:simpleType>
      <xs:element name="FullName"  nillable="false" minOccurs="1" maxOccurs="1">
+
    <xs:restriction base="xs:string">
        <xs:annotation>
+
      <xs:maxLength value="255"/>
          <xs:documentation>Наименование организации полное</xs:documentation>
+
    </xs:restriction>
        </xs:annotation>
+
    </xs:simpleType>
        <xs:simpleType>
+
  </xs:element>
          <xs:restriction base="xs:string">
+
  <xs:element name="ShortName"  nillable="false" minOccurs="0" maxOccurs="1">
            <xs:maxLength value="255"/>
+
    <xs:annotation>
          </xs:restriction>
+
    <xs:documentation>Наименование организации краткое</xs:documentation>
        </xs:simpleType>
+
    </xs:annotation>
      </xs:element>
+
    <xs:simpleType>
      <xs:element name="ShortName"  nillable="false" minOccurs="0" maxOccurs="1">
+
    <xs:restriction base="xs:string">
        <xs:annotation>
+
      <xs:maxLength value="64"/>
          <xs:documentation>Наименование организации краткое</xs:documentation>
+
    </xs:restriction>
        </xs:annotation>
+
    </xs:simpleType>
        <xs:simpleType>
+
  </xs:element>
          <xs:restriction base="xs:string">
+
  <xs:element name="address" type="ns:OrgAddressTypeFOTS" minOccurs="1" maxOccurs="1">
            <xs:maxLength value="64"/>
+
    <xs:annotation>
          </xs:restriction>
+
    <xs:documentation>Фактический адрес</xs:documentation>
        </xs:simpleType>
+
    </xs:annotation>
      </xs:element>
+
  </xs:element>
      <xs:element name="address" type="ns:OrgAddressTypeFOTS" minOccurs="1" maxOccurs="1">
+
  </xs:all>
        <xs:annotation>
+
</xs:complexType>
          <xs:documentation>Фактический адрес</xs:documentation>
+
        </xs:annotation>
+
      </xs:element>
+
    </xs:all>
+
  </xs:complexType>
+
  
  <xs:complexType name="TSType">
+
<xs:complexType name="TSType">
 +
  <xs:annotation>
 +
  <xs:documentation>Организация из таможенного союза</xs:documentation>
 +
  </xs:annotation>
 +
  <xs:all>
 +
  <xs:element name="ClientRegId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
 
     <xs:annotation>
 
     <xs:annotation>
      <xs:documentation>Организация из таможенного союза</xs:documentation>
+
    <xs:documentation>Код организации</xs:documentation>
 
     </xs:annotation>
 
     </xs:annotation>
    <xs:all>
+
  </xs:element>
      <xs:element name="ClientRegId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
+
  <xs:element name="FullName"  nillable="false" minOccurs="1" maxOccurs="1">
        <xs:annotation>
+
    <xs:annotation>
          <xs:documentation>Код организации</xs:documentation>
+
    <xs:documentation>Наименование организации полное</xs:documentation>
        </xs:annotation>
+
    </xs:annotation>
      </xs:element>
+
    <xs:simpleType>
      <xs:element name="FullName"  nillable="false" minOccurs="1" maxOccurs="1">
+
    <xs:restriction base="xs:string">
        <xs:annotation>
+
      <xs:maxLength value="255"/>
          <xs:documentation>Наименование организации полное</xs:documentation>
+
    </xs:restriction>
        </xs:annotation>
+
    </xs:simpleType>
        <xs:simpleType>
+
  </xs:element>
          <xs:restriction base="xs:string">
+
  <xs:element name="ShortName"  nillable="false" minOccurs="0" maxOccurs="1">
            <xs:maxLength value="255"/>
+
    <xs:annotation>
          </xs:restriction>
+
    <xs:documentation>Наименование организации краткое</xs:documentation>
        </xs:simpleType>
+
    </xs:annotation>
      </xs:element>
+
    <xs:simpleType>
      <xs:element name="ShortName"  nillable="false" minOccurs="0" maxOccurs="1">
+
    <xs:restriction base="xs:string">
        <xs:annotation>
+
      <xs:maxLength value="64"/>
          <xs:documentation>Наименование организации краткое</xs:documentation>
+
    </xs:restriction>
        </xs:annotation>
+
    </xs:simpleType>
        <xs:simpleType>
+
  </xs:element>
          <xs:restriction base="xs:string">
+
  <xs:element name="TSNUM" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1" nillable="true">
            <xs:maxLength value="64"/>
+
    <xs:annotation>
          </xs:restriction>
+
    <xs:documentation>ИНН</xs:documentation>
        </xs:simpleType>
+
    </xs:annotation>
      </xs:element>
+
  </xs:element>
      <xs:element name="TSNUM" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1" nillable="true">
+
  <xs:element name="address" type="ns:OrgAddressTypeFOTS" minOccurs="1" maxOccurs="1">
        <xs:annotation>
+
    <xs:annotation>
          <xs:documentation>ИНН</xs:documentation>
+
    <xs:documentation>Фактический адрес</xs:documentation>
        </xs:annotation>
+
    </xs:annotation>
      </xs:element>
+
  </xs:element>
      <xs:element name="address" type="ns:OrgAddressTypeFOTS" minOccurs="1" maxOccurs="1">
+
  </xs:all>
        <xs:annotation>
+
</xs:complexType>
          <xs:documentation>Фактический адрес</xs:documentation>
+
        </xs:annotation>
+
      </xs:element>
+
    </xs:all>
+
  </xs:complexType>
+
  
  <xs:complexType name="TRType">
+
<xs:complexType name="TRType">
 +
  <xs:annotation>
 +
  <xs:documentation>Организация из таможенного союза</xs:documentation>
 +
  </xs:annotation>
 +
  <xs:all>
 +
  <xs:element name="ClientRegId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
 
     <xs:annotation>
 
     <xs:annotation>
      <xs:documentation>Организация из таможенного союза</xs:documentation>
+
    <xs:documentation>Код организации</xs:documentation>
 
     </xs:annotation>
 
     </xs:annotation>
    <xs:all>
+
  </xs:element>
      <xs:element name="ClientRegId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
+
  <xs:element name="address" type="ns:OrgAddressTypeTR" minOccurs="1" maxOccurs="1">
        <xs:annotation>
+
    <xs:annotation>
          <xs:documentation>Код организации</xs:documentation>
+
    <xs:documentation>Фактический адрес</xs:documentation>
        </xs:annotation>
+
    </xs:annotation>
      </xs:element>
+
  </xs:element>
      <xs:element name="address" type="ns:OrgAddressTypeTR" minOccurs="1" maxOccurs="1">
+
  </xs:all>
        <xs:annotation>
+
</xs:complexType>
          <xs:documentation>Фактический адрес</xs:documentation>
+
        </xs:annotation>
+
      </xs:element>
+
    </xs:all>
+
  </xs:complexType>
+
  
  <xs:complexType name="TSReplyType">
+
<xs:complexType name="TSReplyType">
 +
  <xs:annotation>
 +
  <xs:documentation>Организация из таможенного союза</xs:documentation>
 +
  </xs:annotation>
 +
  <xs:all>
 +
  <xs:element name="ClientRegId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
 
     <xs:annotation>
 
     <xs:annotation>
      <xs:documentation>Организация из таможенного союза</xs:documentation>
+
    <xs:documentation>Код организации</xs:documentation>
 
     </xs:annotation>
 
     </xs:annotation>
    <xs:all>
+
  </xs:element>
      <xs:element name="ClientRegId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
+
  <xs:element name="FullName"  nillable="false" minOccurs="1" maxOccurs="1">
        <xs:annotation>
+
    <xs:annotation>
          <xs:documentation>Код организации</xs:documentation>
+
    <xs:documentation>Наименование организации полное</xs:documentation>
        </xs:annotation>
+
    </xs:annotation>
      </xs:element>
+
    <xs:simpleType>
      <xs:element name="FullName"  nillable="false" minOccurs="1" maxOccurs="1">
+
    <xs:restriction base="xs:string">
        <xs:annotation>
+
      <xs:maxLength value="255"/>
          <xs:documentation>Наименование организации полное</xs:documentation>
+
    </xs:restriction>
        </xs:annotation>
+
    </xs:simpleType>
        <xs:simpleType>
+
  </xs:element>
          <xs:restriction base="xs:string">
+
  <xs:element name="ShortName"  nillable="false" minOccurs="0" maxOccurs="1">
            <xs:maxLength value="255"/>
+
    <xs:annotation>
          </xs:restriction>
+
    <xs:documentation>Наименование организации краткое</xs:documentation>
        </xs:simpleType>
+
    </xs:annotation>
      </xs:element>
+
    <xs:simpleType>
      <xs:element name="ShortName"  nillable="false" minOccurs="0" maxOccurs="1">
+
    <xs:restriction base="xs:string">
        <xs:annotation>
+
      <xs:maxLength value="64"/>
          <xs:documentation>Наименование организации краткое</xs:documentation>
+
    </xs:restriction>
        </xs:annotation>
+
    </xs:simpleType>
        <xs:simpleType>
+
  </xs:element>
          <xs:restriction base="xs:string">
+
  <xs:element name="TSNUM" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1" nillable="true">
            <xs:maxLength value="64"/>
+
    <xs:annotation>
          </xs:restriction>
+
    <xs:documentation>ИНН</xs:documentation>
        </xs:simpleType>
+
    </xs:annotation>
      </xs:element>
+
  </xs:element>
      <xs:element name="TSNUM" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1" nillable="true">
+
  <xs:element name="address" type="ns:OrgAddressTypeFOTS" minOccurs="1" maxOccurs="1">
        <xs:annotation>
+
    <xs:annotation>
          <xs:documentation>ИНН</xs:documentation>
+
    <xs:documentation>Фактический адрес</xs:documentation>
        </xs:annotation>
+
    </xs:annotation>
      </xs:element>
+
  </xs:element>
      <xs:element name="address" type="ns:OrgAddressTypeFOTS" minOccurs="1" maxOccurs="1">
+
  </xs:all>
        <xs:annotation>
+
</xs:complexType>
          <xs:documentation>Фактический адрес</xs:documentation>
+
        </xs:annotation>
+
      </xs:element>
+
    </xs:all>
+
  </xs:complexType>
+
  
  <xs:complexType name="OrgAddressTypeULFL">
+
<xs:complexType name="OrgAddressTypeULFL">
 +
  <xs:annotation>
 +
  <xs:documentation>Адрес организации (для российских)</xs:documentation>
 +
  </xs:annotation>
 +
  <xs:sequence>
 +
  <xs:element name="Country" minOccurs="1" maxOccurs="1">
 +
    <xs:simpleType>
 +
    <xs:restriction base="xs:string">
 +
      <xs:pattern value="[0-9][0-9][0-9]" />
 +
    </xs:restriction>
 +
    </xs:simpleType>
 +
  </xs:element>
 +
  <xs:element name="RegionCode" minOccurs="1" maxOccurs="1">
 +
    <xs:simpleType>
 +
    <xs:restriction base="xs:string">
 +
      <xs:pattern value="[0-9][0-9]" />
 +
    </xs:restriction>
 +
    </xs:simpleType>
 +
  </xs:element>
 +
  <xs:element name="description" nillable="false" minOccurs="1" maxOccurs="1">
 
     <xs:annotation>
 
     <xs:annotation>
      <xs:documentation>Адрес организации (для российских)</xs:documentation>
+
    <xs:documentation>Фактический адрес произвольной формы</xs:documentation>
 
     </xs:annotation>
 
     </xs:annotation>
     <xs:sequence>
+
     <xs:simpleType>
      <xs:element name="Country" minOccurs="1" maxOccurs="1">
+
    <xs:restriction base="xs:string">
        <xs:simpleType>
+
       <xs:maxLength value="5000"/>
          <xs:restriction base="xs:string">
+
    </xs:restriction>
            <xs:pattern value="[0-9][0-9][0-9]" />
+
    </xs:simpleType>
          </xs:restriction>
+
  </xs:element>
        </xs:simpleType>
+
  </xs:sequence>
       </xs:element>
+
</xs:complexType>
      <xs:element name="RegionCode" minOccurs="1" maxOccurs="1">
+
        <xs:simpleType>
+
          <xs:restriction base="xs:string">
+
            <xs:pattern value="[0-9][0-9]" />
+
          </xs:restriction>
+
        </xs:simpleType>
+
      </xs:element>
+
      <xs:element name="description" nillable="false" minOccurs="1" maxOccurs="1">
+
        <xs:annotation>
+
          <xs:documentation>Фактический адрес произвольной формы</xs:documentation>
+
        </xs:annotation>
+
        <xs:simpleType>
+
          <xs:restriction base="xs:string">
+
            <xs:maxLength value="5000"/>
+
          </xs:restriction>
+
        </xs:simpleType>
+
      </xs:element>
+
    </xs:sequence>
+
  </xs:complexType>
+
  
  <xs:complexType name="OrgAddressTypeULFLReply">
+
<xs:complexType name="OrgAddressTypeULFLReply">
 +
  <xs:annotation>
 +
  <xs:documentation>Адрес организации (для российских)</xs:documentation>
 +
  </xs:annotation>
 +
  <xs:sequence>
 +
  <xs:element name="Country" minOccurs="1" maxOccurs="1">
 +
    <xs:simpleType>
 +
    <xs:restriction base="xs:string">
 +
      <xs:pattern value="[0-9][0-9][0-9]" />
 +
    </xs:restriction>
 +
    </xs:simpleType>
 +
  </xs:element>
 +
  <xs:element name="RegionCode" minOccurs="1" maxOccurs="1">
 +
    <xs:simpleType>
 +
    <xs:restriction base="xs:string">
 +
      <xs:pattern value="[0-9][0-9]" />
 +
    </xs:restriction>
 +
    </xs:simpleType>
 +
  </xs:element>
 +
  <xs:element name="description" nillable="false" minOccurs="1" maxOccurs="1">
 
     <xs:annotation>
 
     <xs:annotation>
      <xs:documentation>Адрес организации (для российских)</xs:documentation>
+
    <xs:documentation>Фактический адрес произвольной формы</xs:documentation>
 
     </xs:annotation>
 
     </xs:annotation>
     <xs:sequence>
+
     <xs:simpleType>
      <xs:element name="Country" minOccurs="1" maxOccurs="1">
+
    <xs:restriction base="xs:string">
        <xs:simpleType>
+
       <xs:maxLength value="5000"/>
          <xs:restriction base="xs:string">
+
    </xs:restriction>
            <xs:pattern value="[0-9][0-9][0-9]" />
+
    </xs:simpleType>
          </xs:restriction>
+
  </xs:element>
        </xs:simpleType>
+
  </xs:sequence>
       </xs:element>
+
</xs:complexType>
      <xs:element name="RegionCode" minOccurs="1" maxOccurs="1">
+
        <xs:simpleType>
+
          <xs:restriction base="xs:string">
+
            <xs:pattern value="[0-9][0-9]" />
+
          </xs:restriction>
+
        </xs:simpleType>
+
      </xs:element>
+
      <xs:element name="description" nillable="false" minOccurs="1" maxOccurs="1">
+
        <xs:annotation>
+
          <xs:documentation>Фактический адрес произвольной формы</xs:documentation>
+
        </xs:annotation>
+
        <xs:simpleType>
+
          <xs:restriction base="xs:string">
+
            <xs:maxLength value="5000"/>
+
          </xs:restriction>
+
        </xs:simpleType>
+
      </xs:element>
+
    </xs:sequence>
+
  </xs:complexType>
+
  
  <xs:complexType name="OrgAddressTypeFOTS">
+
<xs:complexType name="OrgAddressTypeFOTS">
 +
  <xs:annotation>
 +
  <xs:documentation>Адрес организации (для иностранных и таможенного союза)</xs:documentation>
 +
  </xs:annotation>
 +
  <xs:sequence>
 +
  <xs:element name="Country" minOccurs="1" maxOccurs="1">
 +
    <xs:simpleType>
 +
    <xs:restriction base="xs:string">
 +
      <xs:pattern value="[0-9][0-9][0-9]" />
 +
    </xs:restriction>
 +
    </xs:simpleType>
 +
  </xs:element>
 +
  <xs:element name="description" nillable="false" minOccurs="1" maxOccurs="1">
 
     <xs:annotation>
 
     <xs:annotation>
      <xs:documentation>Адрес организации (для иностранных и таможенного союза)</xs:documentation>
+
    <xs:documentation>Фактический адрес произвольной формы</xs:documentation>
 
     </xs:annotation>
 
     </xs:annotation>
     <xs:sequence>
+
     <xs:simpleType>
      <xs:element name="Country" minOccurs="1" maxOccurs="1">
+
    <xs:restriction base="xs:string">
        <xs:simpleType>
+
       <xs:maxLength value="5000"/>
          <xs:restriction base="xs:string">
+
    </xs:restriction>
            <xs:pattern value="[0-9][0-9][0-9]" />
+
    </xs:simpleType>
          </xs:restriction>
+
  </xs:element>
        </xs:simpleType>
+
  </xs:sequence>
       </xs:element>
+
</xs:complexType>
      <xs:element name="description" nillable="false" minOccurs="1" maxOccurs="1">
+
        <xs:annotation>
+
          <xs:documentation>Фактический адрес произвольной формы</xs:documentation>
+
        </xs:annotation>
+
        <xs:simpleType>
+
          <xs:restriction base="xs:string">
+
            <xs:maxLength value="5000"/>
+
          </xs:restriction>
+
        </xs:simpleType>
+
      </xs:element>
+
    </xs:sequence>
+
  </xs:complexType>
+
  
  <xs:complexType name="OrgAddressTypeTR">
+
<xs:complexType name="OrgAddressTypeTR">
 +
  <xs:annotation>
 +
  <xs:documentation>Адрес организации (транспорта)</xs:documentation>
 +
  </xs:annotation>
 +
  <xs:sequence>
 +
  <xs:element name="description" nillable="false" minOccurs="1" maxOccurs="1">
 
     <xs:annotation>
 
     <xs:annotation>
      <xs:documentation>Адрес организации (транспорта)</xs:documentation>
+
    <xs:documentation>Регистрационный номер транспортного средства</xs:documentation>
 
     </xs:annotation>
 
     </xs:annotation>
     <xs:sequence>
+
     <xs:simpleType>
      <xs:element name="description" nillable="false" minOccurs="1" maxOccurs="1">
+
    <xs:restriction base="xs:string">
        <xs:annotation>
+
      <xs:maxLength value="5000"/>
          <xs:documentation>Регистрационный номер транспортного средства</xs:documentation>
+
    </xs:restriction>
        </xs:annotation>
+
    </xs:simpleType>
        <xs:simpleType>
+
  </xs:element>
          <xs:restriction base="xs:string">
+
  </xs:sequence>
            <xs:maxLength value="5000"/>
+
</xs:complexType>
          </xs:restriction>
+
</xs:schema>
        </xs:simpleType>
+
= Смотрите также =
      </xs:element>
+
[[ClientRef_v2.xml]]
    </xs:sequence>
+
  </xs:complexType>
+
  
</xs:schema>
+
[[XML схемы]]

Текущая версия на 16:07, 20 августа 2021

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

<xs:schema version    = "1.0"
 xmlns:ns             = "http://fsrar.ru/WEGAIS/ClientRef_v2" 
 targetNamespace      = "http://fsrar.ru/WEGAIS/ClientRef_v2" 
 xmlns:xs             = "http://www.w3.org/2001/XMLSchema" 
 xmlns:c              = "http://fsrar.ru/WEGAIS/Common" 
 elementFormDefault   = "qualified" 
 attributeFormDefault = "unqualified">
 <xs:import namespace = "http://fsrar.ru/WEGAIS/Common" schemaLocation="EGCommon.xsd"/>
<xs:complexType name="OrganizationsType">
 <xs:annotation>
  <xs:documentation>Организации</xs:documentation>
 </xs:annotation>
 <xs:sequence>
  <xs:element name="Organization" type="ns:OrgInfo_v2" maxOccurs="unbounded">
  </xs:element>
 </xs:sequence>
</xs:complexType>
<xs:complexType name ="OrgInfoEx_v2">
 <xs:all>
  <xs:element name="Identity" type="c:IdentityType" nillable="false" minOccurs="0" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Идентификатор внутри файла</xs:documentation>
   </xs:annotation>
  </xs:element>
  <xs:element name="OrgInfoV2" type="ns:OrgInfoReply_v2"></xs:element>
  <xs:element name="addresslist" minOccurs="0" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Список фактических адресов ИП</xs:documentation>
   </xs:annotation>
   <xs:complexType>
    <xs:sequence>
     <xs:element name="address" type="ns:OrgAddressType" minOccurs="1" maxOccurs="unbounded">
     </xs:element>
    </xs:sequence>
   </xs:complexType>
  </xs:element>
  <xs:element name="State" type="xs:string" minOccurs="0" maxOccurs="1" nillable="true">
   <xs:annotation>
    <xs:documentation>Статус: действующая или удалена</xs:documentation>
   </xs:annotation>
  </xs:element>
  <xs:element name="VersionWB" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1" nillable="true">
   <xs:annotation>
    <xs:documentation>Версия схемы накладной принимаемая организацией</xs:documentation>
   </xs:annotation>
  </xs:element>
  <xs:element name="isLicense" type="xs:boolean" minOccurs="0" maxOccurs="1" nillable="true">
   <xs:annotation>
    <xs:documentation>Наличие действующей лицензии</xs:documentation>
   </xs:annotation>
  </xs:element>
 </xs:all>
</xs:complexType>
<xs:complexType name="OrgItemType">
 <xs:annotation>
  <xs:documentation>Ссылка на организацию</xs:documentation>
 </xs:annotation>
 <xs:all>
  <xs:element name="ID" type="c:NoEmptyString50"/>
 </xs:all>
</xs:complexType>
<xs:complexType name="OrgAddressType">
 <xs:annotation>
  <xs:documentation>Адрес организации</xs:documentation>
 </xs:annotation>
 <xs:sequence>
  <xs:element name="Country" minOccurs="1" maxOccurs="1">
   <xs:simpleType>
    <xs:restriction base="xs:string">
     <xs:pattern value="[0-9][0-9][0-9]" />
    </xs:restriction>
   </xs:simpleType>
  </xs:element>
  <xs:element name="Index" type="c:NoEmptyString50"  minOccurs="0" maxOccurs="1">
  </xs:element>
  <xs:element name="RegionCode" minOccurs="0" maxOccurs="1">
   <xs:simpleType>
    <xs:restriction base="xs:string">
     <xs:pattern value="[0-9][0-9]" />
    </xs:restriction>
   </xs:simpleType>
  </xs:element>
  <xs:element name="area" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
  </xs:element>
  <xs:element name="city" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
  </xs:element>
  <xs:element name="place" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
  </xs:element>
  <xs:element name="street" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
  </xs:element>
  <xs:element name="house" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
  </xs:element>
  <xs:element name="building" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
  </xs:element>
  <xs:element name="liter" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1">
  </xs:element>
  <xs:element name="description" nillable="false" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Фактический адрес произвольной формы</xs:documentation>
   </xs:annotation>
   <xs:simpleType>
    <xs:restriction base="xs:string">
     <xs:maxLength value="5000"/>
    </xs:restriction>
   </xs:simpleType>
  </xs:element>
 </xs:sequence>
</xs:complexType>
<xs:simpleType name="INNType">
 <xs:annotation>
  <xs:documentation>Идентификационный номер налогоплательщика</xs:documentation>
 </xs:annotation>
 <xs:restriction base="xs:string">
  <xs:pattern value="(\d{10}|\d{12})" />
 </xs:restriction>
</xs:simpleType>
 
<xs:simpleType name="INN10Type">
 <xs:annotation>
  <xs:documentation>Идентификационный номер налогоплательщика - юридического лица</xs:documentation>
 </xs:annotation>
 <xs:restriction base="xs:string">
  <xs:length value="10" />
  <xs:pattern value="[0-9]{10}" />
 </xs:restriction>
</xs:simpleType>
 
<xs:simpleType name="KPPType">
 <xs:annotation>
  <xs:documentation>Код причины постановки на учет</xs:documentation>
 </xs:annotation>
 <xs:restriction base="xs:string">
  <xs:length value="9" />
  <xs:pattern value="[0-9]{9}" />
 </xs:restriction>
</xs:simpleType>
<xs:simpleType name="INN12Type">
 <xs:annotation>
  <xs:documentation>Идентификационный номер налогоплательщика - физического лица</xs:documentation>
 </xs:annotation>
 <xs:restriction>
  <xs:simpleType>
   <xs:restriction base="xs:string" />
  </xs:simpleType>
  <xs:length value="12" />
  <xs:pattern value="[0-9]{12}" />
 </xs:restriction>
</xs:simpleType>
<xs:complexType name="ProductContractType">
 <xs:annotation>
  <xs:documentation>Сведения о контракте на поставку продукции</xs:documentation>
 </xs:annotation>
 <xs:all>
  <xs:element name="number" type="c:NoEmptyString50" minOccurs="1" maxOccurs="1"/>
  <xs:element name="date" type="c:DateNoTime"  minOccurs="1" maxOccurs="1"/>
  <xs:element name="Supplier" type="ns:OrgInfo_v2" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Организация</xs:documentation>
   </xs:annotation>
  </xs:element>
  <xs:element name="Contragent" type="ns:OrgInfo_v2" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Контрагент</xs:documentation>
   </xs:annotation>
  </xs:element>
 </xs:all>
</xs:complexType>
 
 <xs:complexType name ="OrgInfo_v2">
   <xs:annotation>
     <xs:documentation>Разделение организаций на UL, FL, FO, TS, TR(транспорт)</xs:documentation>
   </xs:annotation>
   <xs:choice>
     <xs:element name="UL" type="ns:ULType" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Юридическое лицо</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="FL" type="ns:FLType" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Индивидуальный предприниматель</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="FO" type="ns:FOType" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Иностранец (исключая таможенный союз)</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="TS" type="ns:TSType" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Таможенный союз</xs:documentation>
       </xs:annotation>
     </xs:element>
   </xs:choice>
 </xs:complexType>
 <xs:complexType name ="OrgInfoReply_v2">
   <xs:annotation>
     <xs:documentation>Разделение организаций на UL, FL, FO, TS</xs:documentation>
   </xs:annotation>
   <xs:choice>
     <xs:element name="UL" type="ns:ULReplyType" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Юридическое лицо</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="FL" type="ns:FLReplyType" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Индивидуальный предприниматель</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="FO" type="ns:FOType" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Иностранец (исключая таможенный союз)</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="TS" type="ns:TSReplyType" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Таможенный союз</xs:documentation>
       </xs:annotation>
     </xs:element>
   </xs:choice>
 </xs:complexType>
 <xs:complexType name ="OrgInfoRus_v2">
   <xs:annotation>
     <xs:documentation>Российские организации</xs:documentation>
   </xs:annotation>
   <xs:choice>
     <xs:element name="UL" type="ns:ULType" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Юридическое лицо</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="FL" type="ns:FLType" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Индивидуальный предприниматель</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="TR" type="ns:TRType" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Транспортное средство</xs:documentation>
       </xs:annotation>
     </xs:element>
   </xs:choice>
 </xs:complexType>
 <xs:complexType name ="OrgInfoRusReply_v2">
   <xs:annotation>
     <xs:documentation>Российские организации</xs:documentation>
   </xs:annotation>
   <xs:choice>
     <xs:element name="UL" type="ns:ULReplyType" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Юридическое лицо</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="FL" type="ns:FLReplyType" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Индивидуальный предприниматель</xs:documentation>
       </xs:annotation>
     </xs:element>
   </xs:choice>
 </xs:complexType>
 <xs:complexType name ="OrgInfoForeign_v2">
   <xs:annotation>
     <xs:documentation>Иностранные организации</xs:documentation>
   </xs:annotation>
   <xs:choice>
     <xs:element name="FO" type="ns:FOType" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Иностранец (исключая таможенный союз)</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="TS" type="ns:TSType" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Таможенный союз</xs:documentation>
       </xs:annotation>
     </xs:element>
   </xs:choice>
 </xs:complexType>
 <xs:complexType name ="OrgInfoForeignReply_v2">
   <xs:annotation>
     <xs:documentation>Иностранные организации</xs:documentation>
   </xs:annotation>
   <xs:choice>
     <xs:element name="FO" type="ns:FOType" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Иностранец (исключая таможенный союз)</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="TS" type="ns:TSReplyType" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Таможенный союз</xs:documentation>
       </xs:annotation>
     </xs:element>
   </xs:choice>
 </xs:complexType>
 <xs:complexType name="ULType">
   <xs:annotation>
     <xs:documentation>Российские юридические лица</xs:documentation>
   </xs:annotation>
   <xs:all>
    <xs:element name="ClientRegId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
     <xs:annotation>
      <xs:documentation>Код организации</xs:documentation>
     </xs:annotation>
    </xs:element>
   <xs:element name="FullName"  nillable="false" minOccurs="1" maxOccurs="1">
     <xs:annotation>
       <xs:documentation>Наименование организации полное</xs:documentation>
     </xs:annotation>
     <xs:simpleType>
       <xs:restriction base="xs:string">
         <xs:maxLength value="255"/>
       </xs:restriction>
     </xs:simpleType>
   </xs:element>
   <xs:element name="ShortName"  nillable="false" minOccurs="0" maxOccurs="1">
     <xs:annotation>
       <xs:documentation>Наименование организации краткое</xs:documentation>
     </xs:annotation>
     <xs:simpleType>
       <xs:restriction base="xs:string">
         <xs:maxLength value="64"/>
       </xs:restriction>
     </xs:simpleType>
   </xs:element>
   <xs:element name="INN" type="ns:INN10Type" minOccurs="1" maxOccurs="1" nillable="true">
     <xs:annotation>
       <xs:documentation>ИНН</xs:documentation>
     </xs:annotation>
   </xs:element>
   <xs:element name="KPP" type="ns:KPPType" minOccurs="1" maxOccurs="1">
     <xs:annotation>
       <xs:documentation>КПП</xs:documentation>
     </xs:annotation>
   </xs:element>
   <xs:element name="address" type="ns:OrgAddressTypeULFL" minOccurs="1" maxOccurs="1">
     <xs:annotation>
       <xs:documentation>Фактический адрес</xs:documentation>
     </xs:annotation>
   </xs:element>
   </xs:all>
 </xs:complexType>
 <xs:complexType name="ULReplyType">
   <xs:annotation>
     <xs:documentation>Российские юридические лица</xs:documentation>
   </xs:annotation>
   <xs:all>
     <xs:element name="ClientRegId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Код организации</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="FullName"  nillable="false" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Наименование организации полное</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="xs:string">
           <xs:maxLength value="255"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
     <xs:element name="ShortName"  nillable="false" minOccurs="0" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Наименование организации краткое</xs:documentation>
       </xs:annotation>
       <xs:simpleType>
         <xs:restriction base="xs:string">
           <xs:maxLength value="64"/>
         </xs:restriction>
       </xs:simpleType>
     </xs:element>
     <xs:element name="INN" type="ns:INN10Type" minOccurs="1" maxOccurs="1" nillable="true">
       <xs:annotation>
         <xs:documentation>ИНН</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="KPP" type="ns:KPPType" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>КПП</xs:documentation>
       </xs:annotation>
     </xs:element>
     <xs:element name="address" type="ns:OrgAddressTypeULFLReply" minOccurs="1" maxOccurs="1">
       <xs:annotation>
         <xs:documentation>Фактический адрес</xs:documentation>
       </xs:annotation>
     </xs:element>
 </xs:all>
</xs:complexType>
<xs:complexType name="FLType">
 <xs:annotation>
  <xs:documentation>Российские индивидуальные предприниматели</xs:documentation>
 </xs:annotation>
 <xs:all>
  <xs:element name="ClientRegId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Код организации</xs:documentation>
   </xs:annotation>
  </xs:element>
  <xs:element name="FullName"  nillable="false" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Наименование организации полное</xs:documentation>
   </xs:annotation>
   <xs:simpleType>
    <xs:restriction base="xs:string">
     <xs:maxLength value="255"/>
    </xs:restriction>
   </xs:simpleType>
  </xs:element>
  <xs:element name="ShortName"  nillable="false" minOccurs="0" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Наименование организации краткое</xs:documentation>
   </xs:annotation>
   <xs:simpleType>
    <xs:restriction base="xs:string">
     <xs:maxLength value="64"/>
    </xs:restriction>
   </xs:simpleType>
  </xs:element>
  <xs:element name="INN" type="ns:INN12Type" minOccurs="1" maxOccurs="1" nillable="true">
   <xs:annotation>
    <xs:documentation>ИНН</xs:documentation>
   </xs:annotation>
  </xs:element>
  <xs:element name="address" type="ns:OrgAddressTypeULFL" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Фактический адрес</xs:documentation>
   </xs:annotation>
  </xs:element>
 </xs:all>
</xs:complexType>
<xs:complexType name="FLReplyType">
 <xs:annotation>
  <xs:documentation>Российские индивидуальные предприниматели</xs:documentation>
 </xs:annotation>
 <xs:all>
  <xs:element name="ClientRegId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Код организации</xs:documentation>
   </xs:annotation>
  </xs:element>
  <xs:element name="FullName"  nillable="false" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Наименование организации полное</xs:documentation>
   </xs:annotation>
   <xs:simpleType>
    <xs:restriction base="xs:string">
     <xs:maxLength value="255"/>
    </xs:restriction>
   </xs:simpleType>
  </xs:element>
  <xs:element name="ShortName"  nillable="false" minOccurs="0" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Наименование организации краткое</xs:documentation>
   </xs:annotation>
   <xs:simpleType>
    <xs:restriction base="xs:string">
     <xs:maxLength value="64"/>
    </xs:restriction>
   </xs:simpleType>
  </xs:element>
  <xs:element name="INN" type="ns:INN12Type" minOccurs="1" maxOccurs="1" nillable="true">
   <xs:annotation>
    <xs:documentation>ИНН</xs:documentation>
   </xs:annotation>
  </xs:element>
  <xs:element name="address" type="ns:OrgAddressTypeULFLReply" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Фактический адрес</xs:documentation>
   </xs:annotation>
  </xs:element>
 </xs:all>
</xs:complexType>
<xs:complexType name="FOType">
 <xs:annotation>
  <xs:documentation>Иностраная организация</xs:documentation>
 </xs:annotation>
 <xs:all>
  <xs:element name="ClientRegId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Код организации</xs:documentation>
   </xs:annotation>
  </xs:element>
  <xs:element name="FullName"  nillable="false" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Наименование организации полное</xs:documentation>
   </xs:annotation>
   <xs:simpleType>
    <xs:restriction base="xs:string">
     <xs:maxLength value="255"/>
    </xs:restriction>
   </xs:simpleType>
  </xs:element>
  <xs:element name="ShortName"  nillable="false" minOccurs="0" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Наименование организации краткое</xs:documentation>
   </xs:annotation>
   <xs:simpleType>
    <xs:restriction base="xs:string">
     <xs:maxLength value="64"/>
    </xs:restriction>
   </xs:simpleType>
  </xs:element>
  <xs:element name="address" type="ns:OrgAddressTypeFOTS" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Фактический адрес</xs:documentation>
   </xs:annotation>
  </xs:element>
 </xs:all>
</xs:complexType>
<xs:complexType name="TSType">
 <xs:annotation>
  <xs:documentation>Организация из таможенного союза</xs:documentation>
 </xs:annotation>
 <xs:all>
  <xs:element name="ClientRegId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Код организации</xs:documentation>
   </xs:annotation>
  </xs:element>
  <xs:element name="FullName"  nillable="false" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Наименование организации полное</xs:documentation>
   </xs:annotation>
   <xs:simpleType>
    <xs:restriction base="xs:string">
     <xs:maxLength value="255"/>
    </xs:restriction>
   </xs:simpleType>
  </xs:element>
  <xs:element name="ShortName"  nillable="false" minOccurs="0" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Наименование организации краткое</xs:documentation>
   </xs:annotation>
   <xs:simpleType>
    <xs:restriction base="xs:string">
     <xs:maxLength value="64"/>
    </xs:restriction>
   </xs:simpleType>
  </xs:element>
  <xs:element name="TSNUM" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1" nillable="true">
   <xs:annotation>
    <xs:documentation>ИНН</xs:documentation>
   </xs:annotation>
  </xs:element>
  <xs:element name="address" type="ns:OrgAddressTypeFOTS" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Фактический адрес</xs:documentation>
   </xs:annotation>
  </xs:element>
 </xs:all>
</xs:complexType>
<xs:complexType name="TRType">
 <xs:annotation>
  <xs:documentation>Организация из таможенного союза</xs:documentation>
 </xs:annotation>
 <xs:all>
  <xs:element name="ClientRegId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Код организации</xs:documentation>
   </xs:annotation>
  </xs:element>
  <xs:element name="address" type="ns:OrgAddressTypeTR" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Фактический адрес</xs:documentation>
   </xs:annotation>
  </xs:element>
 </xs:all>
</xs:complexType>
<xs:complexType name="TSReplyType">
 <xs:annotation>
  <xs:documentation>Организация из таможенного союза</xs:documentation>
 </xs:annotation>
 <xs:all>
  <xs:element name="ClientRegId" type="c:NoEmptyString50" nillable="false" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Код организации</xs:documentation>
   </xs:annotation>
  </xs:element>
  <xs:element name="FullName"  nillable="false" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Наименование организации полное</xs:documentation>
   </xs:annotation>
   <xs:simpleType>
    <xs:restriction base="xs:string">
     <xs:maxLength value="255"/>
    </xs:restriction>
   </xs:simpleType>
  </xs:element>
  <xs:element name="ShortName"  nillable="false" minOccurs="0" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Наименование организации краткое</xs:documentation>
   </xs:annotation>
   <xs:simpleType>
    <xs:restriction base="xs:string">
     <xs:maxLength value="64"/>
    </xs:restriction>
   </xs:simpleType>
  </xs:element>
  <xs:element name="TSNUM" type="c:NoEmptyString50" minOccurs="0" maxOccurs="1" nillable="true">
   <xs:annotation>
    <xs:documentation>ИНН</xs:documentation>
   </xs:annotation>
  </xs:element>
  <xs:element name="address" type="ns:OrgAddressTypeFOTS" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Фактический адрес</xs:documentation>
   </xs:annotation>
  </xs:element>
 </xs:all>
</xs:complexType>
<xs:complexType name="OrgAddressTypeULFL">
 <xs:annotation>
  <xs:documentation>Адрес организации (для российских)</xs:documentation>
 </xs:annotation>
 <xs:sequence>
  <xs:element name="Country" minOccurs="1" maxOccurs="1">
   <xs:simpleType>
    <xs:restriction base="xs:string">
     <xs:pattern value="[0-9][0-9][0-9]" />
    </xs:restriction>
   </xs:simpleType>
  </xs:element>
  <xs:element name="RegionCode" minOccurs="1" maxOccurs="1">
   <xs:simpleType>
    <xs:restriction base="xs:string">
     <xs:pattern value="[0-9][0-9]" />
    </xs:restriction>
   </xs:simpleType>
  </xs:element>
  <xs:element name="description" nillable="false" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Фактический адрес произвольной формы</xs:documentation>
   </xs:annotation>
   <xs:simpleType>
    <xs:restriction base="xs:string">
     <xs:maxLength value="5000"/>
    </xs:restriction>
   </xs:simpleType>
  </xs:element>
 </xs:sequence>
</xs:complexType>
<xs:complexType name="OrgAddressTypeULFLReply">
 <xs:annotation>
  <xs:documentation>Адрес организации (для российских)</xs:documentation>
 </xs:annotation>
 <xs:sequence>
  <xs:element name="Country" minOccurs="1" maxOccurs="1">
   <xs:simpleType>
    <xs:restriction base="xs:string">
     <xs:pattern value="[0-9][0-9][0-9]" />
    </xs:restriction>
   </xs:simpleType>
  </xs:element>
  <xs:element name="RegionCode" minOccurs="1" maxOccurs="1">
   <xs:simpleType>
    <xs:restriction base="xs:string">
     <xs:pattern value="[0-9][0-9]" />
    </xs:restriction>
   </xs:simpleType>
  </xs:element>
  <xs:element name="description" nillable="false" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Фактический адрес произвольной формы</xs:documentation>
   </xs:annotation>
   <xs:simpleType>
    <xs:restriction base="xs:string">
     <xs:maxLength value="5000"/>
    </xs:restriction>
   </xs:simpleType>
  </xs:element>
 </xs:sequence>
</xs:complexType>
<xs:complexType name="OrgAddressTypeFOTS">
 <xs:annotation>
  <xs:documentation>Адрес организации (для иностранных и таможенного союза)</xs:documentation>
 </xs:annotation>
 <xs:sequence>
  <xs:element name="Country" minOccurs="1" maxOccurs="1">
   <xs:simpleType>
    <xs:restriction base="xs:string">
     <xs:pattern value="[0-9][0-9][0-9]" />
    </xs:restriction>
   </xs:simpleType>
  </xs:element>
  <xs:element name="description" nillable="false" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Фактический адрес произвольной формы</xs:documentation>
   </xs:annotation>
   <xs:simpleType>
    <xs:restriction base="xs:string">
     <xs:maxLength value="5000"/>
    </xs:restriction>
   </xs:simpleType>
  </xs:element>
 </xs:sequence>
</xs:complexType>
<xs:complexType name="OrgAddressTypeTR">
 <xs:annotation>
  <xs:documentation>Адрес организации (транспорта)</xs:documentation>
 </xs:annotation>
 <xs:sequence>
  <xs:element name="description" nillable="false" minOccurs="1" maxOccurs="1">
   <xs:annotation>
    <xs:documentation>Регистрационный номер транспортного средства</xs:documentation>
   </xs:annotation>
   <xs:simpleType>
    <xs:restriction base="xs:string">
     <xs:maxLength value="5000"/>
    </xs:restriction>
   </xs:simpleType>
  </xs:element>
 </xs:sequence>
</xs:complexType>

</xs:schema>

Смотрите также

ClientRef_v2.xml

XML схемы