<?xml version="1.0" encoding="windows-1251"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="LogisticsWaybillConsigneeTitle">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="DocumentCreatorBase" type="DocumentRequisitesLogisticsType">
          <xs:annotation>
            <xs:documentation>
							ОснДоверОргСост - Основание, по которому экономический субъект является составителем файла обмена информации грузоотправителя
						</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="ConsigneeInfo">
          <xs:annotation>
            <xs:documentation>
							СодИнфГП - Содержание транспортной накладной, информация грузополучателя
						</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element minOccurs="0" name="CargoAcceptance" type="CargoAcceptanceInfo">
                <xs:annotation>
                  <xs:documentation>ПриемГрузГП - Сведения о приеме груза грузополучателем от перевозчика</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element minOccurs="0" name="ConsigneeMarks">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element maxOccurs="unbounded" name="ConsigneeMark" type="Marks">
                      <xs:annotation>
                        <xs:documentation>ОтметГП - Сведения об отметках грузополучателя</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element minOccurs="0" name="InfoFields" type="InfoField">
                <xs:annotation>
                  <xs:documentation>ИнфПол - Информационное поле</xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="ReceivingOperation" use="required">
              <xs:annotation>
                <xs:documentation>При значении 0 содержание операции: прием груза</xs:documentation>
                <xs:documentation>При значении 1 содержание операции: отказ в приеме груза</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:integer">
                  <xs:enumeration value="0" />
                  <xs:enumeration value="1" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="RejectionReason" type="string2000">
              <xs:annotation>
                <xs:documentation>ПричОтк - Причина отказа в приеме груза</xs:documentation>
              </xs:annotation>
            </xs:attribute>
            <xs:attribute name="RevisionNumber">
              <xs:annotation>
                <xs:documentation>НомИспр - Номер исправления</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:integer">
                  <xs:totalDigits value="3" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="RevisionDate" type="date">
              <xs:annotation>
                <xs:documentation>ДатаИспр - Дата исправления</xs:documentation>
              </xs:annotation>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:choice>
          <xs:element name="Signers" type="LogisticsSigners" />
          <xs:sequence>
            <xs:element minOccurs="0" name="WarrantInfo" type="DigitalWarrantInfoType" />
            <xs:element name="Signer">
              <xs:complexType>
                <xs:choice>
                  <xs:element name="SignerReference" type="SignerReference" />
                  <xs:element name="SignerDetails" type="SignerDetails" />
                </xs:choice>
                <xs:attribute name="SignerType">
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:length value="1" />
                      <xs:enumeration value="1" />
                      <xs:enumeration value="2" />
                      <xs:enumeration value="3" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:choice>
      </xs:sequence>
      <xs:attribute name="DocumentCreator" type="string1000" use="required">
        <xs:annotation>
          <xs:documentation>НаимЭконСубСост - Наименование экономического субъекта, составляющего файл обмена информации грузоотправителя</xs:documentation>
        </xs:annotation>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:complexType name="Marks">
    <xs:sequence>
      <xs:element minOccurs="0" name="CommercialActInfos">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" name="CommercialActInfo" type="DocumentRequisitesLogisticsType">
              <xs:annotation>
                <xs:documentation>СвАкт - Сведения о коммерческих и иных актах, в том числе о погрузке груза</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="FineInfos">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" name="FineInfo">
              <xs:annotation>
                <xs:documentation>РазмШтр - Расчет и размер штрафа</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:attribute name="Quantity" type="string255">
                  <xs:annotation>
                    <xs:documentation>ФактКолЕдИзм - Фактическое количество единиц измерения для расчета штрафа (фактическая база для расчета штрафа)</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute name="AmountRu" type="decimal19f2">
                  <xs:annotation>
                    <xs:documentation>ИтогРазмШтрРФ - Итоговый размер штрафа в валюте Российской Федерации</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute name="CurrencyCode" type="okv">
                  <xs:annotation>
                    <xs:documentation>КодОКВ - Валюта штрафа по условиям договора: Код</xs:documentation>
                    <xs:documentation>НаимОКВ - Заполнится автоматически при генерации файла</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute name="AmountForeign" type="decimal19f2">
                  <xs:annotation>
                    <xs:documentation>ИтогРазмШтрИн - Итоговый размер штрафа в валюте, отличной от рублей</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute name="ExchangeRateDate" type="date">
                  <xs:annotation>
                    <xs:documentation>ДатаКурсВал - Дата, на которую определяется курс валюты</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute name="ExchangeRate">
                  <xs:annotation>
                    <xs:documentation>КурсВал - Курс валюты на дату расчета размера штрафа</xs:documentation>
                  </xs:annotation>
                  <xs:simpleType>
                    <xs:restriction base="xs:decimal">
                      <xs:totalDigits value="10" />
                      <xs:fractionDigits value="4" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
                <xs:attribute name="FineCountMethod" type="string1000">
                  <xs:annotation>
                    <xs:documentation>РасчШтр - Расчет штрафа</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="WeightCalculationActs">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" name="WeightCalculationAct" type="DocumentRequisitesLogisticsType">
              <xs:annotation>
                <xs:documentation>СвАктВзв - Сведения об актах взвешивания</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="InfoFields" type="InfoField">
        <xs:annotation>
          <xs:documentation>ИнфПол - Информационное поле</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="DateTimeOffset" type="datetimeutc" use="required">
      <xs:annotation>
        <xs:documentation>ДатВрОтмет - Дата и время отметки</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="DateTimeOffsetEnablingTimeZone" type="TimeZonePresence" use="required">
      <xs:annotation>
        <xs:documentation>НалКоорТочВрОтм - Применение координации точного времени (UTC) в типовом элементе ДатаВремяВЗТип</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Circumstances" type="string2000" use="required">
      <xs:annotation>
        <xs:documentation>ОбстОтмет - Описание обстоятельств, послуживших основанием для отметки</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="CustomAddressLogisticsWaybill">
    <xs:all>
      <xs:element minOccurs="0" name="Coordinate">
        <xs:annotation>
          <xs:documentation>Коорд - Координаты места</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="Latitude" use="required">
            <xs:annotation>
              <xs:documentation>Широта - Широта</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:minLength value="15" />
                <xs:maxLength value="17" />
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="Longitude" use="required">
            <xs:annotation>
              <xs:documentation>Долгота - Долгота</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:minLength value="15" />
                <xs:maxLength value="18" />
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
      <xs:element name="AddressLogisticsWaybill" type="AddressLogisticsWaybill" />
    </xs:all>
    <xs:attribute name="Gln" type="string13f">
      <xs:annotation>
        <xs:documentation>ГЛН - Глобальный номер места нахождения (GLN места)</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Comment" type="string2000">
      <xs:annotation>
        <xs:documentation>АдрКоммент - Комментарии к адресу</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="AddressLogisticsWaybill">
    <xs:choice>
      <xs:element name="RussianAddress" type="RussianAddressLogisticsWaybill" />
      <xs:element name="ForeignAddress" type="ForeignAddressUtd970" />
      <xs:element name="AddressCode" type="string36" />
    </xs:choice>
  </xs:complexType>
  <xs:complexType name="RussianAddressLogisticsWaybill">
    <xs:attribute name="ZipCode" use="required">
      <xs:annotation>
        <xs:documentation>Почтовый индекс</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="6" />
          <xs:pattern value="[0-9]{6}" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Region" use="required">
      <xs:annotation>
        <xs:documentation>Код субъекта Российской Федерации</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2" />
          <xs:pattern value="[0-9]{2}" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Territory" type="string50">
      <xs:annotation>
        <xs:documentation>Район</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="City" type="string50">
      <xs:annotation>
        <xs:documentation>Город</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Locality" type="string50">
      <xs:annotation>
        <xs:documentation>Населенный пункт</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Street" type="string50">
      <xs:annotation>
        <xs:documentation>Улица</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Building" type="string20">
      <xs:annotation>
        <xs:documentation>Дом</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Block" type="string20">
      <xs:annotation>
        <xs:documentation>Корпус</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Apartment" type="string20">
      <xs:annotation>
        <xs:documentation>Квартира</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="CargoAcceptanceInfo">
    <xs:sequence>
      <xs:element name="DeliveryAddress" type="CustomAddressLogisticsWaybill">
        <xs:annotation>
          <xs:documentation>АдрВыгруз - Адрес места выгрузки</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="CargoInformations">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" name="CargoInformation">
              <xs:annotation>
                <xs:documentation>СвПринПоНаим - Сведения о принятом грузе по отгрузочным наименованиям</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element minOccurs="0" name="ListMarking">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element maxOccurs="unbounded" name="Marking" type="string1000">
                          <xs:annotation>
                            <xs:documentation>ПерМарк - Перечень маркировок</xs:documentation>
                          </xs:annotation>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
                <xs:attribute name="CargoName" type="string1000" use="required">
                  <xs:annotation>
                    <xs:documentation>НаимГруз - Отгрузочное наименование принятого груза</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute name="CargoCondition" type="string1000" use="required">
                  <xs:annotation>
                    <xs:documentation>СостГруз - Состояние груза</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute name="CargoDensity" type="decimal5f2">
                  <xs:annotation>
                    <xs:documentation>Плотн - Плотность груза в соответствии с документацией на груз</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute name="CargoVolume" type="decimal17f3">
                  <xs:annotation>
                    <xs:documentation>Объем - Объем груза, в кубических метрах</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute name="CargoSpaceQuantity" type="integer4" use="required">
                  <xs:annotation>
                    <xs:documentation>КолМест - Количество грузовых мест</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute name="NetWeight" type="decimal17f3">
                  <xs:annotation>
                    <xs:documentation>МасНетЗнач - Масса нетто груза в килограммах</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute name="GrossWeight" type="decimal17f3">
                  <xs:annotation>
                    <xs:documentation>МасБрутЗнач - Масса брутто груза в килограммах</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute name="PalletsCount" type="integer4">
                  <xs:annotation>
                    <xs:documentation>КолПалл - Количество паллет</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="InfoFields" type="InfoField">
        <xs:annotation>
          <xs:documentation>ИнфПол - Информационное поле</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="ActualArrivalDateTime" type="datetimeutc" use="required">
      <xs:annotation>
        <xs:documentation>ФДатВрПриб - Фактические дата и время прибытия транспортного средства под выгрузку</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="ActualArrivalDateTimeEnablingTimeZone" type="TimeZonePresence" use="required">
      <xs:annotation>
        <xs:documentation>НалКоорТочВрФПр - Применение координации точного времени (UTC) в типовом элементе ДатаВремяВЗТип</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="ActualDepartureDateTime" type="datetimeutc" use="required">
      <xs:annotation>
        <xs:documentation>ФДатВрУбыт - Фактические даты и время убытия</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="ActualDepartureDateTimeEnablingTimeZone" type="TimeZonePresence" use="required">
      <xs:annotation>
        <xs:documentation>НалКоорТочВрФУб - Применение координации точного времени (UTC) в типовом элементе ДатаВремяВЗТип</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="StatedArrivalDateTime" type="datetimeutc" use="required">
      <xs:annotation>
        <xs:documentation>ЗаявДатВрПриб - Заявленные дата и время прибытия транспортного средства под выгрузку</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="StatedArrivalDateTimeEnablingTimeZone" type="TimeZonePresence" use="required">
      <xs:annotation>
        <xs:documentation>НалКоорТочВрЗПр - Применение координации точного времени (UTC) в типовом элементе ДатаВремяВЗТип</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="WeighingMethod">
      <xs:annotation>
        <xs:documentation>МетОпрМасс - Метод определения массы грузовых мест</xs:documentation>
        <xs:documentation>01 - Взвешивание по общей массе</xs:documentation>
        <xs:documentation>02 - Взвешивание поосно</xs:documentation>
        <xs:documentation>03 - Расчетная масса груза</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2" />
          <xs:enumeration value="01" />
          <xs:enumeration value="02" />
          <xs:enumeration value="03" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="PlaceCount" type="integer4" use="required">
      <xs:annotation>
        <xs:documentation>КолМестПриемЧ - Общее количество принятых грузовых мест (число)</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="CargoActualStatus" type="string10000" use="required">
      <xs:annotation>
        <xs:documentation>ОбщСвСост - Общие сведения о фактическом состоянии груза, тары, упаковки, маркировки и опломбирования</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="GrossWeightReceived" type="decimal17f3" use="required">
      <xs:annotation>
        <xs:documentation>МасБрутЗначПрием - Масса брутто принятого груза в килограммах</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="NetWeightReceived" type="decimal17f3">
      <xs:annotation>
        <xs:documentation>МасНетЗначПрием - Масса нетто принятого груза в килограммах</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="CargoVolume" type="decimal17f3">
      <xs:annotation>
        <xs:documentation>Объем - Объем грузовых мест в кубических метрах</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="InfoField">
    <xs:sequence>
      <xs:element maxOccurs="unbounded" name="InfoField" type="AdditionalInfoId" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="DigitalWarrantInfoType">
    <xs:attribute name="WarrantDate" type="date" use="required" />
    <xs:attribute name="WarrantNumber" type="string100" />
    <xs:attribute name="WarrantId" type="string255" use="required">
      <xs:annotation>
        <xs:documentation>Идентификатор файла доверенности</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="WarrantSystemInfo" type="string500">
      <xs:annotation>
        <xs:documentation>Идентифицирующие сведения об информационной системе, которая предоставляет техническую возможность получения информации о досрочном прекращении действия доверенности, в том числе в силу ее отмены доверителем</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:simpleType name="TimeZonePresence">
    <xs:restriction base="xs:string">
      <xs:enumeration value="0" />
      <xs:enumeration value="1" />
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="AddressInfo">
    <xs:choice>
      <xs:element name="RussianAddress" type="RussianAddressLogistics">
        <xs:annotation>
          <xs:documentation>
						АдрРФ - Адрес, указанный в Едином государственном реестре юридических лиц/почтовый адрес/адрес места жительства индивидуального предпринимателя (реквизиты адреса на территории Российской Федерации)
					</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GarAddress" type="GarAddressLogistics">
        <xs:annotation>
          <xs:documentation>
						АдрФИАС - Адрес, указанный в Едином государственном реестре юридических лиц/почтовый адрес/адрес места жительства индивидуального предпринимателя (реквизиты адреса на территории Российской Федерации)
					</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ForeignAddress" type="ForeignAddressUtd970">
        <xs:annotation>
          <xs:documentation>
						АдрИнф - Адрес, указанный в Едином государственном реестре юридических лиц/почтовый адрес/адрес места жительства индивидуального предпринимателя (информация об адресе, в том числе об адресе за пределами территории Российской Федерации)
					</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:choice>
  </xs:complexType>
  <xs:complexType name="GarAddressLogistics">
    <xs:all>
      <xs:element minOccurs="0" name="MunicipalTerritory" type="AddressTypeElement">
        <xs:annotation>
          <xs:documentation>МуниципРайон - Муниципальный район/городской округ/внутригородская территория города федерального значения/муниципальный округ/федеральная территория</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="UrbanSettlement" type="AddressTypeElement">
        <xs:annotation>
          <xs:documentation>ГородСелПоселен - Городское поселение/сельское поселение/межселенная территория в составе муниципального района/внутригородской район городского округа</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Locality" type="AddressElement">
        <xs:annotation>
          <xs:documentation>НаселенПункт - Населенный пункт (город, деревня, село и прочее)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="ElementPlanningStructure" type="AddressElement">
        <xs:annotation>
          <xs:documentation>ЭлПланСтруктур - Элемент планировочной структуры</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="ElementRoadNetwork" type="AddressElement">
        <xs:annotation>
          <xs:documentation>ЭлУлДорСети - Элемент улично-дорожной сети</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="LandPlot" type="string50">
        <xs:annotation>
          <xs:documentation>Земельный участок (номер)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Buildings">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="3" name="Building" type="AddressElement">
              <xs:annotation>
                <xs:documentation>Здание - Здание (строение), сооружение/ объект незавершенного строительства</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="RoomBuilding" type="AddressElement">
        <xs:annotation>
          <xs:documentation>ПомещЗдания - Помещение в пределах здания (строения), сооружения/ машино-место</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="RoomApartment" type="AddressElement">
        <xs:annotation>
          <xs:documentation>ПомещКвартиры - Помещение в пределах квартиры</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:all>
    <xs:attribute name="AddressCode" type="string36">
      <xs:annotation>
        <xs:documentation>ИдНом - Уникальный номер адреса объекта адресации в государственном адресном реестре</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="ZipCode">
      <xs:annotation>
        <xs:documentation>Почтовый индекс</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="6" />
          <xs:pattern value="[0-9]{6}" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Region" use="required">
      <xs:annotation>
        <xs:documentation>КодРегион - Код субъекта Российской Федерации</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2" />
          <xs:pattern value="[0-9]{2}" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="RussianAddressLogistics">
    <xs:attribute name="ZipCode" use="required">
      <xs:annotation>
        <xs:documentation>Почтовый индекс</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="6" />
          <xs:pattern value="[0-9]{6}" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Region" use="required">
      <xs:annotation>
        <xs:documentation>Код субъекта Российской Федерации</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2" />
          <xs:pattern value="[0-9]{2}" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Territory" type="string255">
      <xs:annotation>
        <xs:documentation>Район</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="City" type="string255">
      <xs:annotation>
        <xs:documentation>Город</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Locality" type="string255">
      <xs:annotation>
        <xs:documentation>Населенный пункт</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Street" type="string255">
      <xs:annotation>
        <xs:documentation>Улица</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Building" type="string20">
      <xs:annotation>
        <xs:documentation>Дом</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Block" type="string20">
      <xs:annotation>
        <xs:documentation>Корпус</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Apartment" type="string20">
      <xs:annotation>
        <xs:documentation>Квартира</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="OtherInfo" type="string1000">
      <xs:annotation>
        <xs:documentation>Иные сведения об адресе в Российской Федерации</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="AddressTypeElement">
    <xs:annotation>
      <xs:documentation>Сведения о виде (код) и наименовании адресного элемента</xs:documentation>
    </xs:annotation>
    <xs:attribute name="Type" use="required">
      <xs:annotation>
        <xs:documentation>Вид (код) элемента</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="NameOrNumber" type="string255" use="required">
      <xs:annotation>
        <xs:documentation>Наименование элемента</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="DocumentRequisitesLogisticsType">
    <xs:sequence>
      <xs:element name="PartiesRequisites">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" name="PartiesRequisite" type="PartiesRequisite">
              <xs:annotation>
                <xs:documentation>ИдРекСост - Идентифицирующие реквизиты сторон, составивших документ</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="DocumentName" type="string255">
      <xs:annotation>
        <xs:documentation>НаимДок - Наименование документа</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="DocumentNumber" type="string255">
      <xs:annotation>
        <xs:documentation>НомерДок - Номер документа</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="DocumentDate" type="date">
      <xs:annotation>
        <xs:documentation>ДатаДок - Дата документа</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Id" type="string255">
      <xs:annotation>
        <xs:documentation>ИдДок - Идентификатор документа</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="AdditionalInfo" type="string2000">
      <xs:annotation>
        <xs:documentation>ДопСведДок - Дополнительные сведения</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PartiesRequisite">
    <xs:annotation>
      <xs:documentation>Если заполнен Inn - пытается сформировать ИННЮЛ (ИННФЛ)</xs:documentation>
      <xs:documentation>Если не заполнен Inn, но заполнен ShortNameExecutiveAuthority - пытается сформировать НаимОИВ</xs:documentation>
      <xs:documentation>Если не заполнены Inn и ShortNameExecutiveAuthority - пытается сформировать ДаннИно</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element minOccurs="0" name="ForeignPersonDetails" type="DocumentDetails">
        <xs:annotation>
          <xs:documentation>УдЛичнИГ - Данные документа, удостоверяющего личность иностранного гражданина</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="Inn" type="inn">
      <xs:annotation>
        <xs:documentation>ИННЮЛ (ИННФЛ)</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="ShortNameExecutiveAuthority" type="string255">
      <xs:annotation>
        <xs:documentation>НаимОИВ - Краткое наименование органа исполнительной власти (специализированной уполномоченной организации), выдавшего документ</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="StatusId">
      <xs:annotation>
        <xs:documentation>ИдСтат - Идентификация статуса</xs:documentation>
        <xs:documentation>При значении 'LegalEntity' в конечный файл значение 'ИО'</xs:documentation>
        <xs:documentation>При значении 'PhysicalPerson' в конечный файл значение 'ИГ'</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="LegalEntity" />
          <xs:enumeration value="PhysicalPerson" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Country">
      <xs:annotation>
        <xs:documentation>КодСтр - Код страны</xs:documentation>
        <xs:documentation>Стран - будет заполнен автоматически</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="3" />
          <xs:pattern value="[0-9]{3}" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="OrgName" type="string1000">
      <xs:annotation>
        <xs:documentation>Наим - Наименование иностранной организации полное/Фамилия, имя, отчество (при наличии) иностранного гражданина</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="LegalEntityId" type="string255">
      <xs:annotation>
        <xs:documentation>Идентиф - Идентификатор иностранной организации (иностранного гражданина)</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="OrganizationOrPersonInfo" type="string255">
      <xs:annotation>
        <xs:documentation>ИныеСвед - Иные сведения для однозначной идентификации иностранной организации (иностранного гражданина)</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationInfoLogistics">
    <xs:choice>
      <xs:element name="OrganizationDetails" type="ExtendedOrganizationDetailsLogistics" />
      <xs:element name="OrganizationReference" type="ExtendedOrganizationReferenceLogistics" />
    </xs:choice>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationReferenceLogistics">
    <xs:complexContent mixed="false">
      <xs:extension base="ExtendedOrganizationDetails_ManualFilling_Logistics">
        <xs:attribute name="BoxId" type="guid" use="required">
          <xs:annotation>
            <xs:documentation>Идентификатор ящика организации</xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationDetailsLogistics">
    <xs:complexContent mixed="false">
      <xs:extension base="ExtendedOrganizationDetails_ManualFilling_Logistics">
        <xs:sequence>
          <xs:element minOccurs="0" name="Address" type="AddressInfo">
            <xs:annotation>
              <xs:documentation>Адрес</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
        <xs:attribute name="OrgName" type="string1000">
          <xs:annotation>
            <xs:documentation>НаимОрг/Наим - название организации/Наименование иностранной организации полное/Фамилия, имя, отчество (при наличии) иностранного гражданина</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="Inn" type="inn">
          <xs:annotation>
            <xs:documentation>ИНН ФЛ-ИНН - ИНН</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="Kpp" type="kpp">
          <xs:annotation>
            <xs:documentation>КПП</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="FnsParticipantId" type="string1000">
          <xs:annotation>
            <xs:documentation>Идентификатор участника ЭДО</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="OrgType" type="OrganizationType_DatabaseOrder" use="required">
          <xs:annotation>
            <xs:documentation>СвИП - СвЮЛУч - СвФЛУч - СвИнНеУч</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="StatusId">
          <xs:annotation>
            <xs:documentation>ИдСтат - Идентификация статуса</xs:documentation>
            <xs:documentation>При значении 'LegalEntity' в конечный файл значение 'ИО'</xs:documentation>
            <xs:documentation>При значении 'PhysicalPerson' в конечный файл значение 'ИГ'</xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:enumeration value="LegalEntity" />
              <xs:enumeration value="PhysicalPerson" />
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="LegalEntityId" type="string255">
          <xs:annotation>
            <xs:documentation>Идентиф - Идентификатор иностранной организации</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="Country" type="string255">
          <xs:annotation>
            <xs:documentation>Стран - Страна</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="OrganizationOrPersonInfo" type="string255">
          <xs:annotation>
            <xs:documentation>ИныеСвед - Иные сведения, идентифицирующие ФЛ или ЮЛ</xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="DocumentDetails">
    <xs:attribute name="Type" type="string1000" use="required">
      <xs:annotation>
        <xs:documentation>ВидДок - Вид документа</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="DocumentNumber" type="string100" use="required">
      <xs:annotation>
        <xs:documentation>НомДок - Номер документа</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="DocumentDate" type="date" use="required">
      <xs:annotation>
        <xs:documentation>ДатаДок - Дата выдачи документа</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationDetails_ManualFilling_Logistics">
    <xs:sequence>
      <xs:element name="Phones">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" name="Phone" type="string255">
              <xs:annotation>
                <xs:documentation>Тлф - Номер контактного телефона/факс</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="Emails">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" name="Email" type="string255">
              <xs:annotation>
                <xs:documentation>ЭлПочта - Адрес электронной почты</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="OrganizationAdditionalInfos">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" name="OrganizationAdditionalInfo">
              <xs:annotation>
                <xs:documentation>ИнфДляУчаст - Информация для участника документооборота</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:attribute name="ParticipantInn" type="inn" use="required">
                  <xs:annotation>
                    <xs:documentation>ИННУчаст - ИНН участника</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute name="ParticipantInfo" type="string255" use="required">
                  <xs:annotation>
                    <xs:documentation>ИнфУчаст - Информация для участника</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="ForeignPersonDetails" type="DocumentDetails">
        <xs:annotation>
          <xs:documentation>УдЛичнИГ - Данные документа, удостоверяющего личность иностранного гражданина</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="Ogrn" type="ogrn">
      <xs:annotation>
        <xs:documentation>ОГРН - ОГРНИП</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="OtherContactInfo" type="string255">
      <xs:annotation>
        <xs:documentation>ИнКонт - Иные контактные данные</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationInfo">
    <xs:choice>
      <xs:element name="OrganizationDetails" type="ExtendedOrganizationDetails" />
      <xs:element name="OrganizationReference" type="ExtendedOrganizationReference" />
    </xs:choice>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationInfo_ForeignAddress1000">
    <xs:choice>
      <xs:element name="OrganizationDetails" type="ExtendedOrganizationDetails_ForeignAddress1000" />
      <xs:element name="OrganizationReference" type="ExtendedOrganizationReference" />
    </xs:choice>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationInfo_Torg2">
    <xs:choice>
      <xs:element name="OrganizationDetails" type="ExtendedOrganizationDetails_Torg2" />
      <xs:element name="OrganizationReference" type="ExtendedOrganizationReference" />
    </xs:choice>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationInfoWithHyphens">
    <xs:choice>
      <xs:element name="OrganizationDetails" type="ExtendedOrganizationDetailsWithHyphens" />
      <xs:element name="OrganizationReference" type="ExtendedOrganizationReference" />
    </xs:choice>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationInfo_ReconciliationAct">
    <xs:choice>
      <xs:element name="OrganizationDetails" type="ExtendedOrganizationDetails_ReconciliationAct" />
      <xs:element name="OrganizationReference" type="ExtendedOrganizationReference_ReconciliationAct" />
    </xs:choice>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationReference_ReconciliationAct">
    <xs:complexContent mixed="false">
      <xs:extension base="ExtendedOrganizationDetails_ManualFilling_ReconciliationAct">
        <xs:attribute name="BoxId" type="guid" use="required">
          <xs:annotation>
            <xs:documentation>Идентификатор ящика организации</xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationInfoXmlProformaInvoice29">
    <xs:choice>
      <xs:element name="OrganizationDetails" type="ExtendedOrganizationDetailsXmlProformaInvoice29" />
      <xs:element name="OrganizationReference" type="ExtendedOrganizationReferenceXmlProformaInvoice29" />
    </xs:choice>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationReferenceXmlProformaInvoice29">
    <xs:complexContent mixed="false">
      <xs:extension base="ExtendedOrganizationDetails_ManualFilling_XmlProformaInvoice29">
        <xs:attribute name="BoxId" type="guid" use="required">
          <xs:annotation>
            <xs:documentation>Идентификатор ящика организации</xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationInfoUtd970">
    <xs:choice>
      <xs:element name="OrganizationDetails" type="ExtendedOrganizationDetailsUtd970" />
      <xs:element name="OrganizationReference" type="ExtendedOrganizationReferenceUtd970" />
    </xs:choice>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationReferenceUtd970">
    <xs:complexContent mixed="false">
      <xs:extension base="ExtendedOrganizationDetails_ManualFilling_Utd970">
        <xs:attribute name="BoxId" type="guid" use="required">
          <xs:annotation>
            <xs:documentation>Идентификатор ящика организации</xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationDetails">
    <xs:complexContent mixed="false">
      <xs:extension base="ExtendedOrganizationDetails_ManualFilling">
        <xs:sequence>
          <xs:element minOccurs="0" name="Address" type="Address">
            <xs:annotation>
              <xs:documentation>Адрес</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
        <xs:attribute name="OrgName" type="string1000" use="required">
          <xs:annotation>
            <xs:documentation>НаимОрг - название организации</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="Inn" type="string60" use="optional">
          <xs:annotation>
            <xs:documentation>ИНН ФЛ-ИНН - ИНН</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="Kpp" type="string1000" use="optional">
          <xs:annotation>
            <xs:documentation>КПП</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="FnsParticipantId" type="string1000" use="optional">
          <xs:annotation>
            <xs:documentation>идентификатор участника ЭДО</xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationDetails_ForeignAddress1000">
    <xs:complexContent mixed="false">
      <xs:extension base="ExtendedOrganizationDetails_ManualFilling">
        <xs:sequence>
          <xs:element minOccurs="0" name="Address" type="Address_ForeignAddress1000">
            <xs:annotation>
              <xs:documentation>Адрес</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
        <xs:attribute name="OrgName" type="string1000" use="required">
          <xs:annotation>
            <xs:documentation>НаимОрг - название организации</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="Inn" type="string60" use="optional">
          <xs:annotation>
            <xs:documentation>ИНН ФЛ-ИНН - ИНН</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="Kpp" type="string1000" use="optional">
          <xs:annotation>
            <xs:documentation>КПП</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="FnsParticipantId" type="string1000" use="optional">
          <xs:annotation>
            <xs:documentation>идентификатор участника ЭДО</xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationDetails_Torg2">
    <xs:complexContent mixed="false">
      <xs:extension base="ExtendedOrganizationDetails_ManualFilling_Torg2">
        <xs:sequence>
          <xs:element minOccurs="0" name="Address" type="Address">
            <xs:annotation>
              <xs:documentation>Адрес</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
        <xs:attribute name="OrgName" type="string1000" use="required">
          <xs:annotation>
            <xs:documentation>НаимОрг - название организации</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="Inn" type="string60" use="optional">
          <xs:annotation>
            <xs:documentation>ИНН ФЛ-ИНН - ИНН</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="Kpp" type="string1000" use="optional">
          <xs:annotation>
            <xs:documentation>КПП</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="FnsParticipantId" type="string1000" use="optional">
          <xs:annotation>
            <xs:documentation>идентификатор участника ЭДО</xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationReference">
    <xs:complexContent mixed="false">
      <xs:extension base="ExtendedOrganizationDetails_ManualFilling">
        <xs:attribute name="BoxId" type="string100" use="required" />
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationDetails_ManualFilling">
    <xs:attribute name="OrgType" type="OrganizationType" use="required">
      <xs:annotation>
        <xs:documentation>СвИП - СвЮЛУч - СвИнНеУч</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Okopf" use="optional">
      <xs:annotation>
        <xs:documentation>ОКОПФ - Код организационно-правовой формы по ОКОПФ</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Okpo" use="optional">
      <xs:annotation>
        <xs:documentation>ОКПО - код в общероссийском классификаторе предприятий и организаций</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="1" />
          <xs:maxLength value="10" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Okdp" use="optional">
      <xs:annotation>
        <xs:documentation>ОКДП - код основного вида деятельности по ОКДП</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="1" />
          <xs:maxLength value="7" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Phone" type="string255" use="optional">
      <xs:annotation>
        <xs:documentation>Тлф - Номер контактного телефона/факс</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Email" type="string255" use="optional">
      <xs:annotation>
        <xs:documentation>ЭлПочта - Адрес электронной почты</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="CorrespondentAccount" type="string20" use="optional">
      <xs:annotation>
        <xs:documentation>КорСчет - Корреспондентский счёт</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="BankAccountNumber" type="string20" use="optional">
      <xs:annotation>
        <xs:documentation>НомерСчета - номер банковского счета</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="BankName" type="string1000" use="optional">
      <xs:annotation>
        <xs:documentation>НаимБанк - название банка</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="BankId" use="optional">
      <xs:annotation>
        <xs:documentation>БИК</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="9" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Department" type="string1000" use="optional">
      <xs:annotation>
        <xs:documentation>СтруктПодр - структурное подразделение</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="OrganizationAdditionalInfo" type="string255" use="optional">
      <xs:annotation>
        <xs:documentation>ИнфДляУчаст - Информация для участника</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="OrganizationOrPersonInfo" type="string255" use="optional">
      <xs:annotation>
        <xs:documentation>ИныеСвед - Иные сведения, идентифицирующие ФЛ или ЮЛ</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="IndividualEntityRegistrationCertificate" type="string100" use="optional">
      <xs:annotation>
        <xs:documentation>СвГосРегИп - Реквизиты свидетельства о государственной регистрации ИП</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="LegalEntityId" type="string255" use="optional">
      <xs:annotation>
        <xs:documentation>Идентиф - Идентификатор ЮЛ, нужен для автоматизированной обработки</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="ShortOrgName" type="string255" use="optional">
      <xs:annotation>
        <xs:documentation>КраткНазв - Краткое название </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Country" type="string255" use="optional">
      <xs:annotation>
        <xs:documentation>Страна</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationDetails_ManualFilling_Torg2">
    <xs:attribute name="OrgType" type="OrganizationType" use="required">
      <xs:annotation>
        <xs:documentation>СвИП - СвЮЛУч - СвИнНеУч</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Okpo" use="optional">
      <xs:annotation>
        <xs:documentation>ОКПО - код в общероссийском классификаторе предприятий и организаций</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="1" />
          <xs:maxLength value="10" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Phone" type="string255" use="optional">
      <xs:annotation>
        <xs:documentation>Тлф - Номер контактного телефона/факс</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Email" type="string255" use="optional">
      <xs:annotation>
        <xs:documentation>ЭлПочта - Адрес электронной почты</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="CorrespondentAccount" type="string20" use="optional">
      <xs:annotation>
        <xs:documentation>КорСчет - Корреспондентский счёт</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="BankAccountNumber" type="string20" use="optional">
      <xs:annotation>
        <xs:documentation>НомерСчета - номер банковского счета</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="BankName" type="string1000" use="optional">
      <xs:annotation>
        <xs:documentation>НаимБанк - название банка</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="BankId" use="optional">
      <xs:annotation>
        <xs:documentation>БИК</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="9" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Department" type="string1000" use="optional">
      <xs:annotation>
        <xs:documentation>СтруктПодр - структурное подразделение</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="OrganizationAdditionalInfo" type="string255" use="optional">
      <xs:annotation>
        <xs:documentation>ИнфДляУчаст - Информация для участника</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="OrganizationOrPersonInfo" type="string255" use="optional">
      <xs:annotation>
        <xs:documentation>ИныеСвед - Иные сведения, идентифицирующие ФЛ или ЮЛ</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="IndividualEntityRegistrationCertificate" type="string100" use="optional">
      <xs:annotation>
        <xs:documentation>СвГосРегИп - Реквизиты свидетельства о государственной регистрации ИП</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="LegalEntityId" type="string255" use="optional">
      <xs:annotation>
        <xs:documentation>Идентиф - Идентификатор ЮЛ, нужен для автоматизированной обработки</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="ShortOrgName" type="string255" use="optional">
      <xs:annotation>
        <xs:documentation>КраткНазв - Краткое название </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Country" type="string255" use="optional">
      <xs:annotation>
        <xs:documentation>Страна</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationDetails_ReconciliationAct">
    <xs:complexContent mixed="false">
      <xs:extension base="ExtendedOrganizationDetails_ManualFilling_ReconciliationAct">
        <xs:attribute name="OrgName" type="string1000" use="required">
          <xs:annotation>
            <xs:documentation>НаимОрг - название организации</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="Inn" type="string60">
          <xs:annotation>
            <xs:documentation>ИННЮЛ - ИННФЛ</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="Kpp" type="string1000">
          <xs:annotation>
            <xs:documentation>КПП</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="FnsParticipantId" type="string1000">
          <xs:annotation>
            <xs:documentation>Идентификатор участника ЭДО</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="OrgType" type="OrganizationType_DatabaseOrder" use="required">
          <xs:annotation>
            <xs:documentation>СвИП - СвЮЛУч - СвФЛ - СвИнНеУч</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="Ogrn">
          <xs:simpleType>
            <xs:annotation>
              <xs:documentation>ОГРН - ОГРНИП</xs:documentation>
            </xs:annotation>
            <xs:restriction base="xs:string">
              <xs:minLength value="13" />
              <xs:maxLength value="15" />
              <xs:pattern value="[0-9]{13,15}" />
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationDetails_ManualFilling_ReconciliationAct">
    <xs:attribute name="Okpo" type="string10">
      <xs:annotation>
        <xs:documentation>ОКПО - Код в общероссийском классификаторе предприятий и организаций</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="ShortOrgName" type="string255">
      <xs:annotation>
        <xs:documentation>КраткНазв - Краткое название </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Department" type="string1000">
      <xs:annotation>
        <xs:documentation>СтруктПодр - Структурное подразделение</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="LegalEntityId" type="string255">
      <xs:annotation>
        <xs:documentation>Идентиф - Идентификатор иностранной организации</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="OrganizationOrPersonInfo" type="string255">
      <xs:annotation>
        <xs:documentation>ИныеСвед - Иные сведения, идентифицирующие ФЛ или ЮЛ</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="OrganizationAdditionalInfo" type="string255">
      <xs:annotation>
        <xs:documentation>ИнфДляУчаст - Информация для участника</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Phone" type="string255">
      <xs:annotation>
        <xs:documentation>Тлф - Номер контактного телефона/факс</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Email" type="string255">
      <xs:annotation>
        <xs:documentation>ЭлПочта - Адрес электронной почты</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="OtherContactInfo" type="string255">
      <xs:annotation>
        <xs:documentation>ИнКонт - Иные контактные данные</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationDetailsUtd970">
    <xs:complexContent mixed="false">
      <xs:extension base="ExtendedOrganizationDetails_ManualFilling_Utd970">
        <xs:sequence>
          <xs:element minOccurs="0" name="Address" type="AddressUtd970">
            <xs:annotation>
              <xs:documentation>Адрес</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
        <xs:attribute name="OrgName" type="string1000" use="required">
          <xs:annotation>
            <xs:documentation>НаимОрг/Наим - название организации/Наименование иностранной организации полное/Фамилия, имя, отчество (при наличии) иностранного гражданина</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="Inn" type="inn">
          <xs:annotation>
            <xs:documentation>ИНН ФЛ-ИНН - ИНН</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="Kpp" type="kpp">
          <xs:annotation>
            <xs:documentation>КПП</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="FnsParticipantId" type="string1000">
          <xs:annotation>
            <xs:documentation>идентификатор участника ЭДО</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="OrgType" type="OrganizationType_DatabaseOrder" use="required">
          <xs:annotation>
            <xs:documentation>СвИП - СвЮЛУч - СвФЛУч - СвИнНеУч</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="StatusId">
          <xs:annotation>
            <xs:documentation>ИдСтат - Идентификация статуса</xs:documentation>
            <xs:documentation>При значении 'LegalEntity' в конечный файл значение 'ИО'</xs:documentation>
            <xs:documentation>При значении 'PhysicalPerson' в конечный файл значение 'ИГ'</xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:enumeration value="LegalEntity" />
              <xs:enumeration value="PhysicalPerson" />
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="LegalEntityId" type="string255">
          <xs:annotation>
            <xs:documentation>Идентиф - Идентификатор иностранной организации</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="Country">
          <xs:annotation>
            <xs:documentation>КодСтр - Код страны</xs:documentation>
            <xs:documentation>НаимСтран будет заполнен автоматически</xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:length value="3" />
              <xs:pattern value="[0-9]{3}" />
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="OrganizationOrPersonInfo" type="string255">
          <xs:annotation>
            <xs:documentation>ИныеСвед - Иные сведения, идентифицирующие ФЛ или ЮЛ</xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationDetails_ManualFilling_Utd970">
    <xs:sequence>
      <xs:element minOccurs="0" name="Phones">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" name="Phone" type="string255">
              <xs:annotation>
                <xs:documentation>Тлф - Номер контактного телефона/факс</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="Emails">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" name="Email" type="string255">
              <xs:annotation>
                <xs:documentation>ЭлПочта - Адрес электронной почты</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="Okpo" type="string10">
      <xs:annotation>
        <xs:documentation>ОКПО - Код в общероссийском классификаторе предприятий и организаций</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Okopf">
      <xs:annotation>
        <xs:documentation>КодОПФ - Код по Общероссийскому классификатору организационно-правовых форм об организационно-правовой форме</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="2" />
          <xs:maxLength value="5" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="FullNameOkopf">
      <xs:annotation>
        <xs:documentation>ПолнНаимОПФ - Полное наименование организационно-правовой формы</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="4" />
          <xs:maxLength value="255" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Department" type="string500">
      <xs:annotation>
        <xs:documentation>СтруктПодр - Структурное подразделение</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="OrganizationAdditionalInfo" type="string255">
      <xs:annotation>
        <xs:documentation>ИнфДляУчаст - Информация для участника</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="ShortOrgName" type="string510">
      <xs:annotation>
        <xs:documentation>СокрНаим - Сокращенное наименование</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Ogrn" type="ogrn">
      <xs:annotation>
        <xs:documentation>ОГРН - ОГРНИП</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="OgrnDate" type="date">
      <xs:annotation>
        <xs:documentation>ДатаОГРНИП - Дата присвоения основного государственного регистрационного номера индивидуального предпринимателя</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="IndividualEntityRegistrationCertificate" type="string100">
      <xs:annotation>
        <xs:documentation>СвГосРегИп - Реквизиты свидетельства о государственной регистрации ИП</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="PersonStatusId">
      <xs:annotation>
        <xs:documentation>
					ИдСтатЛ - Идентификация статуса лица
					0 - лицо, являющееся покупателем при розничной продаже
					1 - иное
				</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1" />
          <xs:enumeration value="0" />
          <xs:enumeration value="1" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="OtherContactInfo" type="string255">
      <xs:annotation>
        <xs:documentation>ИнКонт - Иные контактные данные</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="CorrespondentAccount" type="string34">
      <xs:annotation>
        <xs:documentation>КорСчет - Корреспондентский счёт</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="BankAccountNumber" type="string34">
      <xs:annotation>
        <xs:documentation>НомерСчета - номер банковского счета</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="BankName" type="string1000">
      <xs:annotation>
        <xs:documentation>НаимБанк - название банка</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="BankId" type="string9f">
      <xs:annotation>
        <xs:documentation>БИК</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationDetailsXmlProformaInvoice29">
    <xs:complexContent mixed="false">
      <xs:extension base="ExtendedOrganizationDetails_ManualFilling_XmlProformaInvoice29">
        <xs:sequence>
          <xs:element minOccurs="0" name="Address" type="AddressXmlProformaInvoice29">
            <xs:annotation>
              <xs:documentation>Адрес</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
        <xs:attribute name="OrgName" type="string1000" use="required">
          <xs:annotation>
            <xs:documentation>НаимОрг/Наим - название организации/Наименование иностранной организации полное/Фамилия, имя, отчество (при наличии) иностранного гражданина</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="Inn" type="inn">
          <xs:annotation>
            <xs:documentation>ИНН ФЛ-ИНН - ИНН</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="Kpp" type="kpp">
          <xs:annotation>
            <xs:documentation>КПП</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="FnsParticipantId" type="string1000">
          <xs:annotation>
            <xs:documentation>идентификатор участника ЭДО</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="OrgType" type="OrganizationType_DatabaseOrder" use="required">
          <xs:annotation>
            <xs:documentation>СвИП - СвЮЛУч - СвФЛУч - СвИнНеУч</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="StatusId">
          <xs:annotation>
            <xs:documentation>ИдСтат - Идентификация статуса</xs:documentation>
            <xs:documentation>При значении 'LegalEntity' в конечный файл значение 'ИО'</xs:documentation>
            <xs:documentation>При значении 'PhysicalPerson' в конечный файл значение 'ИГ'</xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:enumeration value="LegalEntity" />
              <xs:enumeration value="PhysicalPerson" />
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="LegalEntityId" type="string255">
          <xs:annotation>
            <xs:documentation>Идентиф - Идентификатор иностранной организации</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="Country">
          <xs:annotation>
            <xs:documentation>КодСтр - Код страны</xs:documentation>
            <xs:documentation>НаимСтран будет заполнен автоматически</xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:length value="3" />
              <xs:pattern value="[0-9]{3}" />
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="OrganizationOrPersonInfo" type="string255">
          <xs:annotation>
            <xs:documentation>ИныеСвед - Иные сведения, идентифицирующие ФЛ или ЮЛ</xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="ExtendedOrganizationDetails_ManualFilling_XmlProformaInvoice29">
    <xs:sequence>
      <xs:element minOccurs="0" name="Phones">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" name="Phone" type="string255">
              <xs:annotation>
                <xs:documentation>Тлф - Номер контактного телефона/факс</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="Emails">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" name="Email" type="string255">
              <xs:annotation>
                <xs:documentation>ЭлПочта - Адрес электронной почты</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="Okpo">
      <xs:annotation>
        <xs:documentation>ОКПО - Код в общероссийском классификаторе предприятий и организаций</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="1" />
          <xs:maxLength value="10" />
          <xs:pattern value="[0-9]{8}" />
          <xs:pattern value="[0-9]{10}" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Okopf">
      <xs:annotation>
        <xs:documentation>КодОПФ - Код по Общероссийскому классификатору организационно-правовых форм об организационно-правовой форме</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="2" />
          <xs:maxLength value="5" />
          <xs:pattern value="[0-9]{2}" />
          <xs:pattern value="[0-9]{5}" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="FullNameOkopf">
      <xs:annotation>
        <xs:documentation>ПолнНаимОПФ - Полное наименование организационно-правовой формы</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="4" />
          <xs:maxLength value="255" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Department" type="string500">
      <xs:annotation>
        <xs:documentation>СтруктПодр - Структурное подразделение</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="OrganizationAdditionalInfo" type="string255">
      <xs:annotation>
        <xs:documentation>ИнфДляУчаст - Информация для участника</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="ShortOrgName" type="string510">
      <xs:annotation>
        <xs:documentation>СокрНаим - Сокращенное наименование</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Ogrn" type="ogrn">
      <xs:annotation>
        <xs:documentation>ОГРН - ОГРНИП</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="OgrnDate" type="date">
      <xs:annotation>
        <xs:documentation>ДатаОГРНИП - Дата присвоения основного государственного регистрационного номера индивидуального предпринимателя</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Snils" type="snils">
      <xs:annotation>
        <xs:documentation>СНИЛС - Страховой номер индивидуального лицевого счета</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="IndividualEntityRegistrationCertificate" type="string100">
      <xs:annotation>
        <xs:documentation>СвГосРегИп - Реквизиты свидетельства о государственной регистрации ИП</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="PersonStatusId">
      <xs:annotation>
        <xs:documentation>
					ИдСтатЛ - Идентификация статуса лица
					0 - лицо, являющееся покупателем при розничной продаже
					1 - иное
				</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1" />
          <xs:enumeration value="0" />
          <xs:enumeration value="1" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="OtherContactInfo" type="string255">
      <xs:annotation>
        <xs:documentation>ИнКонт - Иные контактные данные</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="CorrespondentAccount" type="string20">
      <xs:annotation>
        <xs:documentation>КорСчет - Корреспондентский счёт</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="BankAccountNumber" type="string20">
      <xs:annotation>
        <xs:documentation>НомерСчета - номер банковского счета</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="BankName" type="string1000">
      <xs:annotation>
        <xs:documentation>НаимБанк - название банка</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="BankId" type="string9f">
      <xs:annotation>
        <xs:documentation>БИК</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="BankInn" type="innlegalentity">
      <xs:annotation>
        <xs:documentation>ИННЮЛ банка получателя</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="BankKpp" type="kpp">
      <xs:annotation>
        <xs:documentation>КПП банка получателя</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="SwiftCode" type="swiftcode">
      <xs:annotation>
        <xs:documentation>SWIFT-Код</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:simpleType name="OrganizationType">
    <xs:annotation>
      <xs:documentation>
				1 - Сведения о юридическом лице, состоящем на учете в налоговых органах // СвЮЛУч
				2 - Сведения об индивидуальном предпринимателе// СвИП
				3 - Сведения об иностранном лице, не состоящем на учете в налоговых органах // СвЮлНеУч, СвИнНеУч
				4 - Сведения о физическом лице // СвФл
			</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="1" />
      <xs:enumeration value="2" />
      <xs:enumeration value="3" />
      <xs:enumeration value="4" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="OrganizationType_DatabaseOrder">
    <xs:annotation>
      <xs:documentation>
				1 - Сведения об индивидуальном предпринимателе// СвИП
				2 - Сведения о юридическом лице, состоящем на учете в налоговых органах // СвЮЛУч
				3 - Сведения о физическом лице // СвФл
				4 - Сведения об иностранном лице, не состоящем на учете в налоговых органах // СвИнНеУч
			</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="1" />
      <xs:enumeration value="2" />
      <xs:enumeration value="3" />
      <xs:enumeration value="4" />
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="ExtendedOrganizationDetailsWithHyphens">
    <xs:complexContent mixed="false">
      <xs:extension base="ExtendedOrganizationDetails">
        <xs:attribute default="false" name="HyphenInn" use="optional">
          <xs:annotation>
            <xs:documentation>ДефИННФЛ, ДефИННЮЛ</xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:enumeration value="true" />
              <xs:enumeration value="false" />
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="Address">
    <xs:choice>
      <xs:element name="RussianAddress" type="RussianAddress" />
      <xs:element name="ForeignAddress" type="ForeignAddress" />
      <xs:element name="AddressCode" type="string36" />
    </xs:choice>
  </xs:complexType>
  <xs:complexType name="Address_ForeignAddress1000">
    <xs:choice>
      <xs:element name="RussianAddress" type="RussianAddress" />
      <xs:element name="ForeignAddress" type="ForeignAddress1000" />
      <xs:element name="AddressCode" type="string36" />
    </xs:choice>
  </xs:complexType>
  <xs:complexType name="AddressUtd970">
    <xs:choice>
      <xs:element name="RussianAddress" type="RussianAddressUtd970" />
      <xs:element name="GarAddress" type="GarAddress" />
      <xs:element name="ForeignAddress" type="ForeignAddressUtd970" />
    </xs:choice>
    <xs:attribute name="Gln" type="string13f">
      <xs:annotation>
        <xs:documentation>ГЛНМеста - Глобальный номер места нахождения (GLN места)</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="AddressXmlProformaInvoice29">
    <xs:choice>
      <xs:element name="RussianAddress" type="RussianAddressUtd970" />
      <xs:element name="GarAddress" type="GarAddress" />
      <xs:element name="ForeignAddress" type="ForeignAddressUtd970" />
    </xs:choice>
    <xs:attribute name="Gln" type="string13f">
      <xs:annotation>
        <xs:documentation>ГЛНМеста - Глобальный номер места нахождения (GLN места)</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="RussianAddress">
    <xs:attribute name="ZipCode" use="optional">
      <xs:annotation>
        <xs:documentation>индекс</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="6" />
          <xs:pattern value="[0-9]{6}" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Region" type="string50" use="required">
      <xs:annotation>
        <xs:documentation>регион (код)</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Territory" type="string50" use="optional">
      <xs:annotation>
        <xs:documentation>район</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="City" type="string50" use="optional">
      <xs:annotation>
        <xs:documentation>город</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Locality" type="string50" use="optional">
      <xs:annotation>
        <xs:documentation>населенный пункт</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Street" type="string50" use="optional">
      <xs:annotation>
        <xs:documentation>улица</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Building" type="string20" use="optional">
      <xs:annotation>
        <xs:documentation>дом</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Block" type="string20" use="optional">
      <xs:annotation>
        <xs:documentation>корпус</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Apartment" type="string20" use="optional">
      <xs:annotation>
        <xs:documentation>квартира</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="RussianAddressUtd970">
    <xs:attribute name="ZipCode">
      <xs:annotation>
        <xs:documentation>Индекс</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="6" />
          <xs:pattern value="[0-9]{6}" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Region" use="required">
      <xs:annotation>
        <xs:documentation>КодРегион - Код субъекта Российской Федерации</xs:documentation>
        <xs:documentation>НаимРегион будет заполнен автоматически</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2" />
          <xs:pattern value="[0-9]{2}" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Territory" type="string255">
      <xs:annotation>
        <xs:documentation>Район</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="City" type="string255">
      <xs:annotation>
        <xs:documentation>Город</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Locality" type="string255">
      <xs:annotation>
        <xs:documentation>Населенный пункт</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Street" type="string255">
      <xs:annotation>
        <xs:documentation>Улица</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Building" type="string50">
      <xs:annotation>
        <xs:documentation>Дом</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Block" type="string50">
      <xs:annotation>
        <xs:documentation>Корпус</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Apartment" type="string50">
      <xs:annotation>
        <xs:documentation>Квартира</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="OtherInfo" type="string1000">
      <xs:annotation>
        <xs:documentation>Иные сведения об адресе в Российской Федерации</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ForeignAddress">
    <xs:attribute name="Country" type="string60" use="required">
      <xs:annotation>
        <xs:documentation>страна (код)</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Address" type="string255" use="required">
      <xs:annotation>
        <xs:documentation>текст адреса</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ForeignAddressUtd970">
    <xs:attribute name="Country" use="required">
      <xs:annotation>
        <xs:documentation>КодСтр - Код страны</xs:documentation>
        <xs:documentation>НаимСтран будет заполнен автоматически</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="3" />
          <xs:pattern value="[0-9]{3}" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Address" type="string1000" use="required">
      <xs:annotation>
        <xs:documentation>текст адреса</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ForeignAddress1000">
    <xs:attribute name="Country" type="string60" use="required">
      <xs:annotation>
        <xs:documentation>страна (код)</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Address" type="string1000" use="required">
      <xs:annotation>
        <xs:documentation>текст адреса</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="GarAddress">
    <xs:all>
      <xs:element minOccurs="0" name="MunicipalTerritory" type="AddressElement">
        <xs:annotation>
          <xs:documentation>МуниципРайон - Муниципальный район/городской округ/внутригородская территория города федерального значения/муниципальный округ/федеральная территория</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="UrbanSettlement" type="AddressElement">
        <xs:annotation>
          <xs:documentation>ГородСелПоселен - Городское поселение/сельское поселение/межселенная территория в составе муниципального района/внутригородской район городского округа</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Locality" type="AddressElement">
        <xs:annotation>
          <xs:documentation>НаселенПункт - Населенный пункт (город, деревня, село и прочее)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="ElementPlanningStructure" type="AddressElement">
        <xs:annotation>
          <xs:documentation>ЭлПланСтруктур - Элемент планировочной структуры</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="ElementRoadNetwork" type="AddressElement">
        <xs:annotation>
          <xs:documentation>ЭлУлДорСети - Элемент улично-дорожной сети</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Buildings">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" name="Building" type="AddressElement">
              <xs:annotation>
                <xs:documentation>Здание - Здание (строение), сооружение/ объект незавершенного строительства</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" name="RoomBuilding" type="AddressElement">
        <xs:annotation>
          <xs:documentation>ПомещЗдания - Помещение в пределах здания (строения), сооружения/ машино-место</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="RoomApartment" type="AddressElement">
        <xs:annotation>
          <xs:documentation>ПомещКвартиры - Помещение в пределах квартиры</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:all>
    <xs:attribute name="AddressCode" type="string36" use="required">
      <xs:annotation>
        <xs:documentation>ИдНом - Уникальный номер адреса объекта адресации в государственном адресном реестре</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="ZipCode">
      <xs:annotation>
        <xs:documentation>Индекс</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="6" />
          <xs:pattern value="[0-9]{6}" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Region" use="required">
      <xs:annotation>
        <xs:documentation>КодРегион - Код субъекта Российской Федерации</xs:documentation>
        <xs:documentation>НаимРегион будет заполнен автоматически</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="2" />
          <xs:pattern value="[0-9]{2}" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="LandPlot" type="string50">
      <xs:annotation>
        <xs:documentation>Земельный участок (номер)</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="AddressElement">
    <xs:annotation>
      <xs:documentation>Сведения об адресном элементе</xs:documentation>
    </xs:annotation>
    <xs:attribute name="Type" type="string50" use="required">
      <xs:annotation>
        <xs:documentation>Вид(код)/Тип</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="NameOrNumber" type="string255" use="required">
      <xs:annotation>
        <xs:documentation>Наим/Номер</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:simpleType name="string1f">
    <xs:restriction base="xs:string">
      <xs:length value="1" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string2f">
    <xs:restriction base="xs:string">
      <xs:length value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string2">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string3f">
    <xs:restriction base="xs:string">
      <xs:length value="3" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string3">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="3" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string4f">
    <xs:restriction base="xs:string">
      <xs:length value="4" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string4">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="4" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string5f">
    <xs:restriction base="xs:string">
      <xs:length value="5" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string8">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="8" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string9f">
    <xs:restriction base="xs:string">
      <xs:length value="9" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string9">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="9" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string10">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string11f">
    <xs:restriction base="xs:string">
      <xs:length value="11" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string13f">
    <xs:restriction base="xs:string">
      <xs:length value="13" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string13z">
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="13" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string14f">
    <xs:restriction base="xs:string">
      <xs:length value="14" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string15z">
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="15" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string16">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="16" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string17">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="17" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string20">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string20f">
    <xs:restriction base="xs:string">
      <xs:length value="20" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string24">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="24" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string25">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="25" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string27f">
    <xs:restriction base="xs:string">
      <xs:length value="27" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string29">
    <xs:restriction base="xs:string">
      <xs:maxLength value="29" />
      <xs:minLength value="1" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string30">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="30" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string34">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="34" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string35">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="35" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string36">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="36" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string40">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="40" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string50">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="50" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string55">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="55" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string60">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="60" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string100">
    <xs:restriction base="xs:string">
      <xs:maxLength value="100" />
      <xs:minLength value="1" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string100z">
    <xs:restriction base="xs:string">
      <xs:maxLength value="100" />
      <xs:minLength value="0" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string120">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="120" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string128">
    <xs:restriction base="xs:string">
      <xs:maxLength value="128" />
      <xs:minLength value="1" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string140z">
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="140" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string128z">
    <xs:restriction base="xs:string">
      <xs:maxLength value="128" />
      <xs:minLength value="0" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string200">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="200" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string210">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="210" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string255z">
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="255" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string255">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="255" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string256">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="256" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string275z">
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="275" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string500">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="500" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string510">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="510" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string1000">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="1000" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string1000z">
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="1000" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string2000">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="2000" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string2000z">
    <xs:restriction base="xs:string">
      <xs:minLength value="0" />
      <xs:maxLength value="2000" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="string10000">
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="10000" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="inn">
    <xs:restriction base="xs:string">
      <xs:minLength value="10" />
      <xs:maxLength value="12" />
      <xs:pattern value="([0-9]{1}[1-9]{1}|[1-9]{1}[0-9]{1})([0-9]{10}|[0-9]{8})" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="guid">
    <xs:restriction base="xs:string">
      <xs:pattern value="([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})|(\{[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\})" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="okei">
    <xs:annotation>
      <xs:documentation>Код из Общероссийского классификатора единиц измерения</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="3" />
      <xs:maxLength value="4" />
      <xs:pattern value="[0-9]{3}" />
      <xs:pattern value="[0-9]{4}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="okv">
    <xs:annotation>
      <xs:documentation>Код из Общероссийского классификатора валют</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="3" />
      <xs:pattern value="[0-9]{3}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="okpd">
    <xs:annotation>
      <xs:documentation>Код товара по ОКДП 2</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="2" />
      <xs:maxLength value="12" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ogrn">
    <xs:annotation>
      <xs:documentation>ОГРН - ОГРНИП</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="13" />
      <xs:maxLength value="15" />
      <xs:pattern value="[0-9]{13,15}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="kpp">
    <xs:annotation>
      <xs:documentation>Код причины постановки на учет (КПП) - 5 и 6 знаки от 0-9 и A-Z</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="9" />
      <xs:pattern value="([0-9]{1}[1-9]{1}|[1-9]{1}[0-9]{1})([0-9]{2})([0-9A-Z]{2})([0-9]{3})" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="date">
    <xs:annotation>
      <xs:documentation>Дата в формате ДД.ММ.ГГГГ (01.01.1800 - 31.12.2099)</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="10" />
      <xs:pattern value="(((0[1-9]{1}|[1-2]{1}[0-9]{1})\.(0[1-9]{1}|1[0-2]{1}))|((30)\.(01|0[3-9]{1}|1[0-2]{1}))|((31)\.(01|03|05|07|08|10|12)))\.(18[0-9]{2}|19[0-9]{2}|20[0-9]{2})" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="time">
    <xs:annotation>
      <xs:documentation>Время в формате ЧЧ.ММ.СС</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="8" />
      <xs:pattern value="([0-1]{1}[0-9]{1}|2[0-3]{1})\.([0-5]{1}[0-9]{1})\.([0-5]{1}[0-9]{1})" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="timeWithColon">
    <xs:annotation>
      <xs:documentation>Время в формате ЧЧ:ММ:CC</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="8" />
      <xs:pattern value="([0-1]{1}[0-9]{1}|2[0-3]{1}):([0-5]{1}[0-9]{1}):([0-5]{1}[0-9]{1})" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="datetime">
    <xs:annotation>
      <xs:documentation>Дата и время в формате ДД.ММ.ГГГГ ЧЧ.ММ.СС (01.01.1800 - 31.12.2099)</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="19" />
      <xs:pattern value="(((0[1-9]{1}|[1-2]{1}[0-9]{1})\.(0[1-9]{1}|1[0-2]{1}))|((30)\.(01|0[3-9]{1}|1[0-2]{1}))|((31)\.(01|03|05|07|08|10|12)))\.(18[0-9]{2}|19[0-9]{2}|20[0-9]{2})\s([0-1]{1}[0-9]{1}|2[0-3]{1})\.([0-5]{1}[0-9]{1})\.([0-5]{1}[0-9]{1})" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="datetimeutc">
    <xs:annotation>
      <xs:documentation>Дата и время в формате ДД.ММ.ГГГГTЧЧ:ММ:CC+-ЧЧ:ММ</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="25" />
      <xs:pattern value="(((((0[1-9]{1}|1[0-9]{1}|2[0-8]{1})\.(0[1-9]{1}|1[0-2]{1}))|((29|30)\.(01|0[3-9]{1}|1[0-2]{1}))|(31\.(01|03|05|07|08|10|12)))\.((19|20)[0-9]{2}))|(29\.02\.((19|20)(((0|2|4|6|8)(0|4|8))|((1|3|5|7|9)(2|6))))))([T]([0-1]{1}[0-9]{1}|2[0-3]{1}):([0-5]{1}[0-9]{1}):([0-5]{1}[0-9]{1})([+|-]([01][0-9])[:]([0-5][0-9])))" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="timeutc">
    <xs:annotation>
      <xs:documentation>Время в формате ЧЧ:ММ:CC+-ЧЧ:ММ</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="14" />
      <xs:pattern value="([0-1]{1}[0-9]{1}|2[0-3]{1}):([0-5]{1}[0-9]{1}):([0-5]{1}[0-9]{1})([+|-]([01][0-9])[:]([0-5][0-9]))" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="innindividual">
    <xs:annotation>
      <xs:documentation>Идентификационный номер налогоплательщика - физического лица</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="12" />
      <xs:pattern value="([0-9]{1}[1-9]{1}|[1-9]{1}[0-9]{1})[0-9]{10}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="innlegalentity">
    <xs:annotation>
      <xs:documentation>Идентификационный номер налогоплательщика - юридического лица</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="10" />
      <xs:pattern value="([0-9]{1}[1-9]{1}|[1-9]{1}[0-9]{1})[0-9]{8}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="swiftcode">
    <xs:restriction base="xs:string">
      <xs:minLength value="8" />
      <xs:maxLength value="11" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="snils">
    <xs:annotation>
      <xs:documentation>Страховой номер индивидуального лицевого счета</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="14" />
      <xs:pattern value="[0-9]{3}\-[0-9]{3}\-[0-9]{3}\-[0-9]{2}" />
      <xs:pattern value="[0-9]{3}\-[0-9]{3}\-[0-9]{3} [0-9]{2}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ogrnip">
    <xs:annotation>
      <xs:documentation>Основной государственный регистрационный номер индивидуального предпринимателя</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="15" />
      <xs:pattern value="[0-9]{15}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="integer10">
    <xs:restriction base="xs:integer">
      <xs:totalDigits value="10" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="integer4">
    <xs:restriction base="xs:integer">
      <xs:totalDigits value="4" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="integer6">
    <xs:restriction base="xs:integer">
      <xs:totalDigits value="6" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="integer12">
    <xs:restriction base="xs:integer">
      <xs:totalDigits value="12" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="integer12z">
    <xs:restriction base="xs:integer">
      <xs:totalDigits value="12" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="CommonRevisionNumber">
    <xs:restriction base="xs:integer">
      <xs:totalDigits value="3" />
      <xs:minInclusive value="1" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="decimal5f2">
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="5" />
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="decimal17f3">
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="17" />
      <xs:fractionDigits value="3" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="decimal19f2">
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="19" />
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="AdditionalInfoId">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="AdditionalInfo" type="AdditionalInfo">
        <xs:annotation>
          <xs:documentation>ТекстИнф - текстовая информация</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="InfoFileId" use="optional">
      <xs:annotation>
        <xs:documentation>ИдФайлИнфПол (GUID) - идентификатор файла информационного поля</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="36" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="AdditionalInfoId736">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="20" name="AdditionalInfo" type="AdditionalInfo">
        <xs:annotation>
          <xs:documentation>ТекстИнф - текстовая информация</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="InfoFileId" use="optional">
      <xs:annotation>
        <xs:documentation>ИдФайлИнфПол (GUID) - идентификатор файла информационного поля</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="36" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="AdditionalInfo">
    <xs:attribute name="Id" type="string50" use="required">
      <xs:annotation>
        <xs:documentation>Идентиф - идентификатор (наименование)</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Value" type="string2000" use="required">
      <xs:annotation>
        <xs:documentation>Значен - значение</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="AdditionalInfo100">
    <xs:attribute name="Id" type="string100" use="required">
      <xs:annotation>
        <xs:documentation>Идентиф - идентификатор</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Value" type="string2000" use="required">
      <xs:annotation>
        <xs:documentation>Значен - значение</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="CustomsDeclaration">
    <xs:attribute name="Country" type="string1000" use="required">
      <xs:annotation>
        <xs:documentation>
					КодПроисх - Код страны происхождения товара по Общероссийскому классификатору стран мира (ОКСМ) или
					980 - Евросоюз,
					981 - ЕАЭС
				</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="DeclarationNumber" type="string1000" use="required">
      <xs:annotation>
        <xs:documentation>Номер таможенной декларации</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="CustomsDeclarationWithHyphens">
    <xs:attribute name="Country" type="string1000" use="optional">
      <xs:annotation>
        <xs:documentation>
					КодПроисх - Код страны происхождения товара по Общероссийскому классификатору стран мира (ОКСМ) или
					980 - Евросоюз,
					981 - ЕАЭС
				</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute default="false" name="HyphenCountry" use="optional">
      <xs:annotation>
        <xs:documentation>ДефКодПроисх - обязателен, если отсутствует КодПроисх
				</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="true" />
          <xs:enumeration value="false" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="DeclarationNumber" type="string1000" use="optional">
      <xs:annotation>
        <xs:documentation>Номер таможенной декларации</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="InvoiceTotalsDiff">
    <xs:attribute name="TotalWithVatExcluded" type="xs:decimal" use="optional">
      <xs:annotation>
        <xs:documentation>сумма без учета налога</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Vat" type="xs:decimal" use="optional">
      <xs:annotation>
        <xs:documentation>сумма налога</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Total" type="xs:decimal" use="required">
      <xs:annotation>
        <xs:documentation>сумма всего</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="InvoiceTotalsDiff736">
    <xs:attribute name="TotalWithVatExcluded" type="xs:decimal" use="required">
      <xs:annotation>
        <xs:documentation>сумма без учета налога</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Vat" type="xs:decimal" use="optional">
      <xs:annotation>
        <xs:documentation>сумма налога</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="WithoutVat" use="optional">
      <xs:annotation>
        <xs:documentation>Если заполнено - формирует для суммы налога элемент БезНДС</xs:documentation>
        <xs:documentation>Игнорирует заполненное значение в элементе Vat</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="true" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Total" type="xs:decimal" use="optional">
      <xs:annotation>
        <xs:documentation>сумма всего</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="InvoiceItemAmountsDiff">
    <xs:attribute name="Excise" type="xs:decimal" use="optional">
      <xs:annotation>
        <xs:documentation>акциз</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="SubtotalWithVatExcluded" type="xs:decimal" use="optional">
      <xs:annotation>
        <xs:documentation>сумма без учета налога</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Vat" type="xs:decimal" use="optional">
      <xs:annotation>
        <xs:documentation>сумма налога</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Subtotal" type="xs:decimal" use="optional">
      <xs:annotation>
        <xs:documentation>сумма с учетом налога</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="CorrectableInvoiceItemFields_WithoutTaxRate">
    <xs:attribute name="Unit" type="xs:string" use="optional">
      <xs:annotation>
        <xs:documentation>единицы измерения товара (код)</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Quantity" type="xs:decimal" use="optional">
      <xs:annotation>
        <xs:documentation>количество единиц товара</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Price" type="xs:decimal" use="optional">
      <xs:annotation>
        <xs:documentation>цена за единицу товара</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Excise" type="xs:decimal" use="optional">
      <xs:annotation>
        <xs:documentation>акциз</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="SubtotalWithVatExcluded" type="xs:decimal" use="optional">
      <xs:annotation>
        <xs:documentation>сумма без учета налога</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Vat" type="xs:decimal" use="optional">
      <xs:annotation>
        <xs:documentation>сумма налога</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Subtotal" type="xs:decimal" use="required">
      <xs:annotation>
        <xs:documentation>сумма с учетом налога</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="CorrectableInvoiceItemFields">
    <xs:complexContent mixed="false">
      <xs:extension base="CorrectableInvoiceItemFields_WithoutTaxRate">
        <xs:attribute name="TaxRate" type="TaxRate" use="required">
          <xs:annotation>
            <xs:documentation>ставка налога</xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="CorrectableInvoiceItemFields_WithTwentyPercent">
    <xs:complexContent mixed="false">
      <xs:extension base="CorrectableInvoiceItemFields_WithoutTaxRate">
        <xs:attribute name="TaxRate" type="TaxRateWithTwentyPercent" use="required">
          <xs:annotation>
            <xs:documentation>ставка налога</xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="CorrectableInvoiceItemFields_WithTaxedByAgent">
    <xs:complexContent mixed="false">
      <xs:extension base="CorrectableInvoiceItemFields_WithoutTaxRate">
        <xs:attribute name="TaxRate" type="TaxRateWithTaxedByAgent" use="required">
          <xs:annotation>
            <xs:documentation>ставка налога</xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="CorrectableInvoiceItemFields_WithTwentyPercentAndTaxedByAgent">
    <xs:complexContent mixed="false">
      <xs:extension base="CorrectableInvoiceItemFields_WithoutTaxRate">
        <xs:attribute name="TaxRate" type="TaxRateWithTwentyPercentAndTaxedByAgent" use="required">
          <xs:annotation>
            <xs:documentation>ставка налога</xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:simpleType name="TaxRate">
    <xs:restriction base="xs:string">
      <xs:enumeration value="без НДС" />
      <xs:enumeration value="0%" />
      <xs:enumeration value="10%" />
      <xs:enumeration value="18%" />
      <xs:enumeration value="10/110" />
      <xs:enumeration value="18/118" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="TaxRate_Torg2">
    <xs:restriction base="xs:string">
      <xs:enumeration value="NoVat" />
      <xs:enumeration value="ZeroPercent" />
      <xs:enumeration value="FivePercent" />
      <xs:enumeration value="SevenPercent" />
      <xs:enumeration value="NinePointZeroNinePercent" />
      <xs:enumeration value="TenPercent" />
      <xs:enumeration value="SixteenPointSixtySevenPercent" />
      <xs:enumeration value="EighteenPercent" />
      <xs:enumeration value="EighteenPointZeroThreePercent" />
      <xs:enumeration value="TwentyPercent" />
      <xs:enumeration value="TwentyTwoPercent" />
      <xs:enumeration value="FiveFraction" />
      <xs:enumeration value="SevenFraction" />
      <xs:enumeration value="TenFraction" />
      <xs:enumeration value="EighteenFraction" />
      <xs:enumeration value="TwentyFraction" />
      <xs:enumeration value="TwentyTwoFraction" />
      <xs:enumeration value="TaxedByAgent" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="TaxRateWithTaxedByAgent">
    <xs:restriction base="xs:string">
      <xs:enumeration value="без НДС" />
      <xs:enumeration value="0%" />
      <xs:enumeration value="10%" />
      <xs:enumeration value="18%" />
      <xs:enumeration value="10/110" />
      <xs:enumeration value="18/118" />
      <xs:enumeration value="НДС исчисляется налоговым агентом" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="TaxRateWithTwentyPercentAndTaxedByAgent">
    <xs:restriction base="xs:string">
      <xs:enumeration value="без НДС" />
      <xs:enumeration value="0%" />
      <xs:enumeration value="10%" />
      <xs:enumeration value="18%" />
      <xs:enumeration value="20%" />
      <xs:enumeration value="10/110" />
      <xs:enumeration value="18/118" />
      <xs:enumeration value="20/120" />
      <xs:enumeration value="НДС исчисляется налоговым агентом" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="TaxRateUcd736AndUtd820">
    <xs:restriction base="xs:string">
      <xs:enumeration value="0%" />
      <xs:enumeration value="5%" />
      <xs:enumeration value="7%" />
      <xs:enumeration value="9,09%" />
      <xs:enumeration value="10%" />
      <xs:enumeration value="16,67%" />
      <xs:enumeration value="18%" />
      <xs:enumeration value="20%" />
      <xs:enumeration value="5/105" />
      <xs:enumeration value="7/107" />
      <xs:enumeration value="10/110" />
      <xs:enumeration value="18/118" />
      <xs:enumeration value="20/120" />
      <xs:enumeration value="без НДС" />
      <xs:enumeration value="НДС исчисляется налоговым агентом" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="TaxRateUcd736WithTwentyTwoPercent">
    <xs:restriction base="xs:string">
      <xs:enumeration value="0%" />
      <xs:enumeration value="5%" />
      <xs:enumeration value="7%" />
      <xs:enumeration value="9,09%" />
      <xs:enumeration value="10%" />
      <xs:enumeration value="16,67%" />
      <xs:enumeration value="18%" />
      <xs:enumeration value="18,03%" />
      <xs:enumeration value="20%" />
      <xs:enumeration value="22%" />
      <xs:enumeration value="5/105" />
      <xs:enumeration value="7/107" />
      <xs:enumeration value="10/110" />
      <xs:enumeration value="18/118" />
      <xs:enumeration value="20/120" />
      <xs:enumeration value="22/122" />
      <xs:enumeration value="без НДС" />
      <xs:enumeration value="НДС исчисляется налоговым агентом" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="TaxRateTovTorg551AndRezRu552">
    <xs:restriction base="xs:string">
      <xs:maxLength value="35" />
      <xs:minLength value="1" />
      <xs:enumeration value="0%" />
      <xs:enumeration value="5%" />
      <xs:enumeration value="7%" />
      <xs:enumeration value="9.09%" />
      <xs:enumeration value="10%" />
      <xs:enumeration value="16.67%" />
      <xs:enumeration value="18%" />
      <xs:enumeration value="20%" />
      <xs:enumeration value="5/105" />
      <xs:enumeration value="7/107" />
      <xs:enumeration value="10/110" />
      <xs:enumeration value="18/118" />
      <xs:enumeration value="20/120" />
      <xs:enumeration value="без НДС" />
      <xs:enumeration value="НДС исчисляется налоговым агентом" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="TaxRateWithTwentyPercent">
    <xs:restriction base="xs:string">
      <xs:enumeration value="без НДС" />
      <xs:enumeration value="0%" />
      <xs:enumeration value="10%" />
      <xs:enumeration value="18%" />
      <xs:enumeration value="20%" />
      <xs:enumeration value="10/110" />
      <xs:enumeration value="18/118" />
      <xs:enumeration value="20/120" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="TaxRateUtd970">
    <xs:restriction base="xs:string">
      <xs:enumeration value="NoVat" />
      <xs:enumeration value="ZeroPercent" />
      <xs:enumeration value="FivePercent" />
      <xs:enumeration value="SevenPercent" />
      <xs:enumeration value="NinePointZeroNinePercent" />
      <xs:enumeration value="TenPercent" />
      <xs:enumeration value="SixteenPointSixtySevenPercent" />
      <xs:enumeration value="TwentyPercent" />
      <xs:enumeration value="FiveFraction" />
      <xs:enumeration value="SevenFraction" />
      <xs:enumeration value="TenFraction" />
      <xs:enumeration value="TwentyFraction" />
      <xs:enumeration value="TaxedByAgent" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="TaxRateWithTwentyTwoPercent">
    <xs:restriction base="xs:string">
      <xs:enumeration value="NoVat" />
      <xs:enumeration value="ZeroPercent" />
      <xs:enumeration value="FivePercent" />
      <xs:enumeration value="SevenPercent" />
      <xs:enumeration value="NinePointZeroNinePercent" />
      <xs:enumeration value="TenPercent" />
      <xs:enumeration value="SixteenPointSixtySevenPercent" />
      <xs:enumeration value="EighteenPercent" />
      <xs:enumeration value="EighteenPointZeroThreePercent" />
      <xs:enumeration value="TwentyPercent" />
      <xs:enumeration value="TwentyTwoPercent" />
      <xs:enumeration value="FiveFraction" />
      <xs:enumeration value="SevenFraction" />
      <xs:enumeration value="TenFraction" />
      <xs:enumeration value="EighteenFraction" />
      <xs:enumeration value="TwentyFraction" />
      <xs:enumeration value="TwentyTwoFraction" />
      <xs:enumeration value="TaxedByAgent" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="TaxRateWithTwentyTwoPercentInvoice29">
    <xs:restriction base="xs:string">
      <xs:enumeration value="NoVat" />
      <xs:enumeration value="ZeroPercent" />
      <xs:enumeration value="FivePercent" />
      <xs:enumeration value="SevenPercent" />
      <xs:enumeration value="NinePointZeroNinePercent" />
      <xs:enumeration value="TenPercent" />
      <xs:enumeration value="SixteenPointSixtySevenPercent" />
      <xs:enumeration value="EighteenPointZeroThreePercent" />
      <xs:enumeration value="TwentyPercent" />
      <xs:enumeration value="TwentyTwoPercent" />
      <xs:enumeration value="FiveFraction" />
      <xs:enumeration value="SevenFraction" />
      <xs:enumeration value="TenFraction" />
      <xs:enumeration value="TwentyFraction" />
      <xs:enumeration value="TwentyTwoFraction" />
      <xs:enumeration value="TaxedByAgent" />
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="Attorney">
    <xs:all>
      <xs:element minOccurs="0" name="IssuerPerson" type="Official">
        <xs:annotation>
          <xs:documentation>Лицо, выдавшее доверенность</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="RecipientPerson" type="Official">
        <xs:annotation>
          <xs:documentation>Лицо, получившее доверенность</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:all>
    <xs:attribute name="Date" type="date" use="optional">
      <xs:annotation>
        <xs:documentation>Дата выдачи доверенности</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Number" type="string255" use="optional">
      <xs:annotation>
        <xs:documentation>Номер доверенности</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="IssuerOrganizationName" type="string1000" use="optional">
      <xs:annotation>
        <xs:documentation>Организация, представитель которой выдал доверенность</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="IssuerAdditionalInfo" type="string1000" use="optional">
      <xs:annotation>
        <xs:documentation>Дополнительная информация о выдавшем доверенность</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="RecipientAdditionalInfo" type="string1000" use="optional">
      <xs:annotation>
        <xs:documentation>Дополнительная информация о получившем доверенность</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="Official">
    <xs:attribute name="LastName" type="string60" use="required" />
    <xs:attribute name="FirstName" type="string60" use="required" />
    <xs:attribute name="MiddleName" type="string60" use="optional" />
    <xs:attribute name="Position" type="string128z" use="optional" />
  </xs:complexType>
  <xs:complexType name="AcceptanceCertificateSignatureInfo">
    <xs:sequence>
      <xs:element minOccurs="0" name="Official" type="Official">
        <xs:annotation>
          <xs:documentation>лицо, подписывающее со стороны исполнителя / заказчика</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Attorney" type="Attorney">
        <xs:annotation>
          <xs:documentation>сведения о доверенности подписывающего со стороны исполнителя / заказчика</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="SignatureDate" type="date" use="optional">
      <xs:annotation>
        <xs:documentation>дата подписи акта исполнителем / заказчиком</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PaymentDocumentInfo">
    <xs:attribute name="Date" type="date" use="required">
      <xs:annotation>
        <xs:documentation>ДатаПРД - Дата составления платежно-расчетного документа</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Number" type="string30" use="required">
      <xs:annotation>
        <xs:documentation>НомерПРД - Номер платежно-расчетного документа</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Total" use="optional">
      <xs:annotation>
        <xs:documentation>СуммаПРД - Сумма платежно-расчетного документа</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:decimal">
          <xs:totalDigits value="19" />
          <xs:fractionDigits value="2" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="PaymentDocumentInfoUtd970">
    <xs:attribute name="Date" type="date">
      <xs:annotation>
        <xs:documentation>ДатаПРД - Дата составления платежно-расчетного документа</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Number" type="string30">
      <xs:annotation>
        <xs:documentation>НомерПРД - Номер платежно-расчетного документа</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Total">
      <xs:annotation>
        <xs:documentation>СуммаПРД - Сумма платежно-расчетного документа</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:decimal">
          <xs:totalDigits value="19" />
          <xs:fractionDigits value="2" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="GroundInfo">
    <xs:attribute name="Name" type="string255" use="required">
      <xs:annotation>
        <xs:documentation>НаимОсн - Наименование документа-основания</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Number" type="string255" use="optional">
      <xs:annotation>
        <xs:documentation>НомОсн - Номер документа-основания</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Date" type="date" use="optional">
      <xs:annotation>
        <xs:documentation>ДатаОсн - Дата документа-основания</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Info" type="string1000" use="optional">
      <xs:annotation>
        <xs:documentation>ДопСвОсн - Дополнительные сведения документа-основания</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:element name="Signers" type="LogisticsSigners" />
  <xs:complexType name="LogisticsSigners">
    <xs:sequence>
      <xs:element name="Signer" type="LogisticsSigner" />
    </xs:sequence>
    <xs:attribute name="BoxId" type="guid">
      <xs:annotation>
        <xs:documentation>Идентификатор ящика организации</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="LogisticsSigner">
    <xs:choice>
      <xs:sequence>
        <xs:element minOccurs="0" name="Certificate" type="Certificate" />
        <xs:element minOccurs="0" name="Fio" type="Fio" />
        <xs:element minOccurs="0" name="Position" type="Position" />
        <xs:element minOccurs="0" name="SignerAdditionalInfo" type="SignerAdditionalInfo" />
        <xs:element minOccurs="0" name="PowerOfAttorney" type="PowerOfAttorney" />
      </xs:sequence>
      <xs:element name="SignerDetails" type="SignerDetails" />
      <xs:element name="SignerReference" type="SignerReference" />
    </xs:choice>
    <xs:attribute name="SignerStatus" type="SignerStatus" />
    <xs:attribute name="SignatureType" type="SignatureType" />
    <xs:attribute name="SigningDate" type="date" />
    <xs:attribute name="SignerPowersConfirmationMethod" type="SignerPowersConfirmationMethod" />
  </xs:complexType>
  <xs:simpleType name="SignerStatus">
    <xs:annotation>
      <xs:documentation>Используется для типов @405 и @691 форматов, а также для LogisticsWaybill. Для остальных -
                игнорируется
            </xs:documentation>
      <xs:documentation>СтатПодп - Статус подписанта</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="1" />
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Лицо, имеющее полномочия на подписание документа без доверенности
                    </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Лицо, имеющее полномочия на подписание документа на основании доверенности в
                        электронной форме
                    </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation>Лицо, имеющее полномочия на подписание документа на основании доверенности в
                        бумажном виде
                    </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:documentation>Используется для типа LogisticsWaybill. Лицо, осуществляющее погрузку и имеющее
                        полномочия на подписание документа без доверенности
                    </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="5">
        <xs:annotation>
          <xs:documentation>Используется для типа LogisticsWaybill. Лицо, осуществляющее погрузку и имеющее
                        полномочия на подписание документа на основании доверенности в электронной форме
                    </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="6">
        <xs:annotation>
          <xs:documentation>Используется для типа LogisticsWaybill. Лицо, осуществляющее погрузку и имеющее
                        полномочия на подписание документа на основании доверенности в бумажном виде
                    </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="SignerDetails">
    <xs:attribute name="LastName" 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="FirstName" 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="MiddleName">
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="1" />
          <xs:maxLength value="60" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Position">
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="0" />
          <xs:maxLength value="128" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="RegistrationCertificate">
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="1" />
          <xs:maxLength value="100" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Inn">
      <xs:simpleType>
        <xs:restriction base="xs:string" />
      </xs:simpleType>
    </xs:attribute>
    <xs:anyAttribute namespace="##any" processContents="skip" />
  </xs:complexType>
  <xs:complexType name="SignerReference">
    <xs:attribute name="BoxId" use="required">
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="0" />
          <xs:maxLength value="128" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="CertificateThumbprint">
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="0" />
          <xs:maxLength value="128" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="CertificateBytes" type="xs:base64Binary" />
  </xs:complexType>
  <xs:complexType name="Signers">
    <xs:sequence>
      <xs:element maxOccurs="unbounded" name="Signer" type="Signer" />
    </xs:sequence>
    <xs:attribute name="BoxId" type="guid">
      <xs:annotation>
        <xs:documentation>Идентификатор ящика организации</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="Signer">
    <xs:sequence>
      <xs:element minOccurs="0" name="Certificate" type="Certificate" />
      <xs:element minOccurs="0" name="Fio" type="Fio" />
      <xs:element minOccurs="0" name="Position" type="Position" />
      <xs:element minOccurs="0" name="SignerAdditionalInfo" type="SignerAdditionalInfo" />
      <xs:element minOccurs="0" name="PowerOfAttorney" type="PowerOfAttorney" />
    </xs:sequence>
    <xs:attribute name="SignerStatus">
      <xs:annotation>
        <xs:documentation>
          <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            <xs:documentation>Используется для типов @405 и @691 форматов. Для остальных - игнорируется</xs:documentation>
            <xs:documentation>СтатПодп - Статус подписанта</xs:documentation>
          </xs:annotation>
        </xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1" />
          <xs:enumeration value="1">
            <xs:annotation>
              <xs:documentation>Лицо, имеющее полномочия на подписание документа без доверенности</xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="2">
            <xs:annotation>
              <xs:documentation>Лицо, имеющее полномочия на подписание документа на основании доверенности в электронной форме</xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="3">
            <xs:annotation>
              <xs:documentation>Лицо, имеющее полномочия на подписание документа на основании доверенности в бумажном виде</xs:documentation>
            </xs:annotation>
          </xs:enumeration>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="SignatureType" type="SignatureType" />
    <xs:attribute name="SigningDate" type="date">
      <xs:annotation>
        <xs:documentation>
          <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            <xs:documentation>Используется для типов @970 формата. Для остальных - игнорируется</xs:documentation>
            <xs:documentation>ДатаПодДок - Дата подписания документа</xs:documentation>
          </xs:annotation>
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="SignerPowersConfirmationMethod" type="SignerPowersConfirmationMethod" />
  </xs:complexType>
  <xs:complexType name="Certificate">
    <xs:attribute name="CertificateThumbprint" type="string100" />
    <xs:attribute name="CertificateBytes" type="xs:base64Binary" />
  </xs:complexType>
  <xs:complexType name="PowerOfAttorney">
    <xs:sequence>
      <xs:element minOccurs="0" name="Electronic" type="Electronic">
        <xs:annotation>
          <xs:documentation>Электронная доверенность</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Paper" type="Paper">
        <xs:annotation>
          <xs:documentation>Бумажная доверенности</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="Electronic">
    <xs:sequence>
      <xs:choice>
        <xs:element name="Storage" type="Storage">
          <xs:annotation>
            <xs:documentation>Автоматическое заполнение информации по доверенности на основе номера и ИНН</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="Manual" type="Manual">
          <xs:annotation>
            <xs:documentation>Ручное заполнение данных доверенности</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="Storage">
    <xs:sequence>
      <xs:element minOccurs="0" name="FullId">
        <xs:complexType>
          <xs:attribute name="RegistrationNumber" type="guid" use="required">
            <xs:annotation>
              <xs:documentation>Номер доверенности</xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute name="IssuerInn" type="inn" use="required">
            <xs:annotation>
              <xs:documentation>ИНН организации, выдавшей доверенность</xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute name="RepresentativeInn" type="inn">
            <xs:annotation>
              <xs:documentation>ИНН доверенного лица</xs:documentation>
            </xs:annotation>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="UseDefault" use="required">
      <xs:annotation>
        <xs:documentation>Автоматическое заполнение информации на основе доверенности, используемой сотрудником по умолчанию</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="true" />
          <xs:enumeration value="false" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="Manual">
    <xs:attribute name="RegistrationNumber" type="guid">
      <xs:annotation>
        <xs:documentation>Номер доверенности</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="RegistrationDate" type="date">
      <xs:annotation>
        <xs:documentation>Дата совершения (выдачи) доверенности</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="InternalNumber" type="string50">
      <xs:annotation>
        <xs:documentation>Внутренний регистрационный номер доверенности</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="InternalDate" type="date">
      <xs:annotation>
        <xs:documentation>Дата внутренней регистрации доверенности</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="SystemId" type="string500">
      <xs:annotation>
        <xs:documentation>Идентифицирующая информация об информационной системе, в которой осуществляется хранение доверенности</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="SystemUrl" type="string500">
      <xs:annotation>
        <xs:documentation>
          <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
            <xs:documentation>Используется для типов @970 формата. Для остальных - игнорируется</xs:documentation>
            <xs:documentation>Сведения в формате URL об информационной системе, которая предоставляет техническую возможность получения информации о доверенности</xs:documentation>
          </xs:annotation>
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="Paper">
    <xs:annotation>
      <xs:documentation>Сведения о доверенности, используемой для подтверждения полномочий на бумажном носителе</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element minOccurs="0" name="Person" type="Fio">
        <xs:annotation>
          <xs:documentation>Фамилия, имя, отчество (при наличии) лица, подписавшего доверенность</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="InternalNumber" type="string50">
      <xs:annotation>
        <xs:documentation>Внутренний регистрационный номер доверенности</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="RegistrationDate" type="date">
      <xs:annotation>
        <xs:documentation>Дата совершения (выдачи) доверенности</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="IssuerInfo" type="string1000">
      <xs:annotation>
        <xs:documentation>Сведения о доверителе</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="Fio">
    <xs:attribute name="LastName" type="string60" use="required">
      <xs:annotation>
        <xs:documentation>Фамилия</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="FirstName" type="string60" use="required">
      <xs:annotation>
        <xs:documentation>Имя</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="MiddleName" type="string60">
      <xs:annotation>
        <xs:documentation>Отчество</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="Position">
    <xs:annotation>
      <xs:documentation>Должность</xs:documentation>
      <xs:documentation>Один из элементов является обязательным</xs:documentation>
    </xs:annotation>
    <xs:simpleContent>
      <xs:extension base="string255z">
        <xs:attribute name="PositionSource" use="required">
          <xs:annotation>
            <xs:documentation>Автоматическое заполнение должности из настроек сотрудника указанных в
							сервисе
						</xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:enumeration value="Employee">
                <xs:annotation>
                  <xs:documentation>
                    <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
                      <xs:documentation>Первым шагом пытается сформировать должность из данных по
												сотруднику в сервисе
											</xs:documentation>
                      <xs:documentation>Если данные в сервисе не найдены, то значение будет взято
												из значения в элементе Position
											</xs:documentation>
                      <xs:documentation>Если данные в сервисе не найдены и в элементе Position
												пустое значение, то атрибут в конечном файле не сформируется
											</xs:documentation>
                      <xs:documentation>Для LogisticsWaybill игнорируется</xs:documentation>
                    </xs:annotation>
                  </xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="Certificate">
                <xs:annotation>
                  <xs:documentation>
                    <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
                      <xs:documentation>Первым шагом пытается сформировать должность из данных по
												сотруднику из сертификата
											</xs:documentation>
                      <xs:documentation>Если данные в сертификате не найдены, то значение будет
												взято из значения в элементе Position
											</xs:documentation>
                      <xs:documentation>Если данные в сертификате не найдены и в элементе Position
												пустое значение, то атрибут в конечном файле не сформируется
											</xs:documentation>
                    </xs:annotation>
                  </xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="StorageByTitleTypeId">
                <xs:annotation>
                  <xs:documentation>
                    <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
                      <xs:documentation>Используется для типов @970 формата. Для остальных -
												игнорируется
											</xs:documentation>
                      <xs:documentation>Для использования данного варианта формирования должности
												необходимо заполнить элемент Certificate
											</xs:documentation>
                      <xs:documentation>Первым шагом пытается сформировать должность из данных,
												сохраненных с помощью метода ExtendedSignerDetails для указанного
												сертификата и documentTitleType
											</xs:documentation>
                      <xs:documentation>Если данные в сервисе не найдены, то значение будет взято
												из значения в элементе Position
											</xs:documentation>
                      <xs:documentation>Если данные в сервисе не найдены и в элементе Position
												пустое значение, то атрибут в конечном файле не сформируется
											</xs:documentation>
                      <xs:documentation>Для LogisticsWaybill игнорируется</xs:documentation>
                    </xs:annotation>
                  </xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="Manual">
                <xs:annotation>
                  <xs:documentation>Используется для ручного заполнения должности</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <xs:complexType name="SignerAdditionalInfo">
    <xs:annotation>
      <xs:documentation>Используется для типов @970 и @405 форматов. Для остальных - игнорируется
			</xs:documentation>
      <xs:documentation>ДопСведПодп - Дополнительные сведения о подписанте</xs:documentation>
      <xs:documentation>Для LogisticsWaybill версии 5.01 игнорируется</xs:documentation>
    </xs:annotation>
    <xs:simpleContent>
      <xs:extension base="string255z">
        <xs:attribute name="SignerAdditionalInfoSource" use="required">
          <xs:annotation>
            <xs:documentation>Автоматическое заполнение дополнительных сведений из настроек указанных в
							сервисе
						</xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:string">
              <xs:enumeration value="StorageByTitleTypeId">
                <xs:annotation>
                  <xs:documentation>
                    <xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema">
                      <xs:documentation>Используется для типов @970 формата. Для остальных -
												игнорируется
											</xs:documentation>
                      <xs:documentation>Для использования данного варианта формирования
												дополнительных сведений необходимо заполнить элемент Certificate
											</xs:documentation>
                      <xs:documentation>Первым шагом пытается сформировать дополнительные сведения
												из данных, сохраненных с помощью метода ExtendedSignerDetails для
												указанного сертификата и documentTitleType
											</xs:documentation>
                      <xs:documentation>Если данные в сервисе не найдены, то значение будет взято
												из значения в элементе SignerAdditionalInfo
											</xs:documentation>
                      <xs:documentation>Если данные в сервисе не найдены и в элементе пустое
												значение SignerAdditionalInfo, то атрибут в конечном файле не
												сформируется
											</xs:documentation>
                    </xs:annotation>
                  </xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="Manual">
                <xs:annotation>
                  <xs:documentation>Используется для ручного заполнения дополнительных сведений
									</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <xs:simpleType name="SignatureType">
    <xs:annotation>
      <xs:documentation>ТипПодпис - Тип подписи. Для LogisticsWaybill игнорируется</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="1" />
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Усиленная квалифицированная электронная подпись</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Простая электронная подпись</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation>Усиленная неквалифицированная электронная подпись</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="SignerPowersConfirmationMethod">
    <xs:annotation>
      <xs:documentation>
				СпосПодтПолном - Способ подтверждения полномочий представителя на подписание документа.
				Используется для типов @970 и @405 форматов. Для остальных - игнорируется.
			</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="1" />
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>В соответствии с данными, содержащимися в электронной подписи. Для
						LogisticsWaybill игнорируется
					</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>
						В соответствии с доверенностью в электронной форме в машиночитаемом виде, если
						представление доверенности осуществляется посредством включения в каждый пакет
						электронных документов, подписываемых представителем
					</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation>
						В соответствии с доверенностью в электронной форме в машиночитаемом виде, если
						представление доверенности осуществляется из информационной системы. При этом
						необходимая информация для запроса доверенности из информационной системы указана
						в электронном документе
					</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:documentation>
						В соответствии с доверенностью в электронной форме в машиночитаемом виде, если
						представление доверенности осуществляется из информационной системы. При этом
						необходимая информация для запроса доверенности из информационной системы
						представляется способом, отличным от указания в электронном документе
					</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="5">
        <xs:annotation>
          <xs:documentation>В соответствии с доверенностью в форме документа на бумажном носителе
					</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="6">
        <xs:annotation>
          <xs:documentation>Иное</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:schema>