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

Материал из Фабиус wiki
Перейти к: навигация, поиск
м
м
Строка 1: Строка 1:
 
<?xml version="1.0" encoding="utf-8"?>
 
<?xml version="1.0" encoding="utf-8"?>
  <xs:schema version="1.0"
+
  <xs:schema version   = "1.0"
 
   xmlns:ns            = "http://fsrar.ru/WEGAIS/ClientRef_v2"  
 
   xmlns:ns            = "http://fsrar.ru/WEGAIS/ClientRef_v2"  
 
   targetNamespace      = "http://fsrar.ru/WEGAIS/ClientRef_v2"  
 
   targetNamespace      = "http://fsrar.ru/WEGAIS/ClientRef_v2"  

Версия 11:55, 27 декабря 2019

<?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>