Пример структуры файла экспорта заявления на открытие депозита в формате XML

Пример структуры файла экспорта заявлений на открытие депозита в формате XML:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://bssys.com/sbns/integration" targetNamespace="http://bssys.com/sbns/integration" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
   <xs:element name="com.bssys.sbns.constructor.Ct_depositApplication">
      <xs:complexType>
         <xs:sequence>
            <xs:element name="absAcceptDate" minOccurs="0" type="xs:dateTime">
               <xs:annotation>
                  <xs:documentation>Время принятия электронного документа в АБС банка</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="absExportCode" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Код макета для выгрузки и загрузки через шлюз</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="255"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>

            <xs:element name="agreementName" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="agreementText" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="agreementTextFile" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа ATTACH</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>

            <xs:element name="agreementUrl" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="autoprolongation" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа CHECKBOX</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:boolean">
                     <xs:pattern value="[0-1]{1}"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="bankAcceptDate" minOccurs="0" type="xs:dateTime">
               <xs:annotation>
                  <xs:documentation>Дата принятия электронного документа в банке (поступило в банк плательщика)</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="bankMessage" minOccurs="0" type="xs:string">
               <xs:annotation>
                  <xs:documentation>Сообщение из банка</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="bankMessageAuthor" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Ответственный исполнитель</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="1024"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="branchExtId" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Идентификатор подразделения в АБС</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="255"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>

            <xs:element name="branchId" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Идентификатор подразделения</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="36"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="clientComment" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа MULTILINE</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="contactPerson" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="contactPhone" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="deliveredTime" minOccurs="0" type="xs:dateTime">
               <xs:annotation>
                  <xs:documentation>Дата и время принятия электронного документа в банке (поступило в банк плательщика)</xs:documentation>
               </xs:annotation>
            </xs:element>

            <xs:element name="depositContractId" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа REFERENCE</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="depositDealId" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="depositProductId" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа REFERENCE</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="docDate" minOccurs="0" type="xs:date">
               <xs:annotation>
                  <xs:documentation>Поле типа DATE</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="docId" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Идентификатор документа</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="36"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>

            <xs:element name="docNumber" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="earlyTermination" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа CHECKBOX</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:boolean">
                     <xs:pattern value="[0-1]{1}"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="externalId" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Идентификатор документа во внешней системе</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="36"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="externalUPGId" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Идентификатор документа во внешней системе для UPG</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="64"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="indicateBankOfficial" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа CHECKBOX</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:boolean">
                     <xs:pattern value="[0-1]{1}"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>

            <xs:element name="individualRate" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа CHECKBOX</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:boolean">
                     <xs:pattern value="[0-1]{1}"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="inn" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="interestAccountNumber" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="interestBankBic" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="interestBankName" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>

            <xs:element name="interestBankOrigin" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа RADIOBUTTON</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="interestRate" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа MONEY</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:decimal">
                     <xs:totalDigits value="20"/>
                     <xs:fractionDigits value="2"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="interestForeignAccountNumber" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="interestForeignBankBic" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="interestForeignBankName" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>

            <xs:element name="lastBankMessage" minOccurs="0" type="xs:string">
               <xs:annotation>
                  <xs:documentation>Последнее сообщение из банка</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="lastModifyDate" minOccurs="0" type="xs:dateTime">
               <xs:annotation>
                  <xs:documentation>Дата последней модификации документа</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="messageOnlyForBank" minOccurs="0" type="xs:string">
               <xs:annotation>
                  <xs:documentation>Сообщение от АБС для банка</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="operationDate" minOccurs="0" type="xs:dateTime">
               <xs:annotation>
                  <xs:documentation>Дата исполнения документа. Выставляется при переходе на статус "Исполнен"</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="orgExtId" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Идентификатор организации в АБС</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="255"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="orgId" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Идентификатор организации</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="36"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="orgLegacyId" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Идентификатор организации в ДБО3</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:int">
                     <xs:totalDigits value="18"/>
                     <xs:fractionDigits value="0"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>

            <xs:element name="partialWithdrawal" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа CHECKBOX</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:boolean">
                     <xs:pattern value="[0-1]{1}"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="paymentPeriodicity" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="placementCurCode" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="placementCurrency" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа REFERENCE</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="placementEnd" minOccurs="0" type="xs:date">
               <xs:annotation>
                  <xs:documentation>Поле типа DATE</xs:documentation>
               </xs:annotation>
            </xs:element>
            <xs:element name="placementStart" minOccurs="0" type="xs:date">
               <xs:annotation>
                  <xs:documentation>Поле типа DATE</xs:documentation>
               </xs:annotation>
            </xs:element>

            <xs:element name="placementSum" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа MONEY</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:decimal">
                     <xs:totalDigits value="20"/>
                     <xs:fractionDigits value="2"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="placementTerm" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа INTEGER</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:int">
                     <xs:totalDigits value="18"/>
                     <xs:fractionDigits value="0"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="prolongationByClient" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа CHECKBOX</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:boolean">
                     <xs:pattern value="[0-1]{1}"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="prototypeId" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Идентификатор макета</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="255"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="prototypeVersionId" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Идентификатор версии макета</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="255"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>

            <xs:element name="prototypeVersionNumber" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Номер версии макета</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:int">
                     <xs:totalDigits value="18"/>
                     <xs:fractionDigits value="0"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="refundAccountNumber" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="refundBankOrigin" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа RADIOBUTTON</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="refundBankBic" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="refundBankName" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>

            <xs:element name="refundForeignAccountNumber" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="refundForeignBankBic" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="refundForeignBankName" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="replenishment" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа CHECKBOX</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:boolean">
                     <xs:pattern value="[0-1]{1}"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="sourceAccountNumber" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>

            <xs:element name="sourceAccountOrigin" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа RADIOBUTTON</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="sourceBankBic" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="sourceBankName" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Поле типа STRING</xs:documentation>
               </xs:annotation>
               <xs:simpleType>
                  <xs:restriction base="xs:string">
                     <xs:maxLength value="2000"/>
                  </xs:restriction>
               </xs:simpleType>
            </xs:element>
            <xs:element name="sysCreateTime" minOccurs="0" type="xs:dateTime">
               <xs:annotation>
                  <xs:documentation>Системное время создания</xs:documentation>
               </xs:annotation>
            </xs:element>

            <xs:element name="signCollection" minOccurs="0">
               <xs:annotation>
                  <xs:documentation>Ссылка на коллекцию подписей</xs:documentation>
               </xs:annotation>
               <xs:complexType>
                  <xs:sequence>
                     <xs:element name="SignCollection">
                        <xs:annotation>
                           <xs:documentation>Коллекция подписей. Это такая специальная сущность, чтобы отвязать подписи от подписываемых объектов.</xs:documentation>
                        </xs:annotation>
                        <xs:complexType>
                           <xs:sequence>
                              <xs:element name="bankMessage" minOccurs="0" type="xs:string">
                                 <xs:annotation>
                                    <xs:documentation>Сообщение из банка</xs:documentation>
                                 </xs:annotation>
                              </xs:element>
                              <xs:element name="digestName" minOccurs="0">
                                 <xs:annotation>
                                    <xs:documentation>Название дайджеста, используемого для формирования подписей в данной коллекции. КЧ</xs:documentation>
                                 </xs:annotation>
                                 <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                       <xs:maxLength value="255"/>
                                    </xs:restriction>
                                 </xs:simpleType>
                              </xs:element>
                              <xs:element name="signs" minOccurs="0">
                                 <xs:annotation>
                                    <xs:documentation>Подписи, сформированные для данной коллекции</xs:documentation>
                                 </xs:annotation>

                                 <xs:complexType>
                                    <xs:sequence>
                                       <xs:element name="Sign" maxOccurs="unbounded" type="com.bssys.sbns.entity.SignDbo">
                                          <xs:annotation>
                                             <xs:documentation>Сущность, хранящая бинарную ЭП. Также содержится название и версия дайджеста. <p/> Для каждого типа криптографии формат свой.</xs:documentation>
                                          </xs:annotation>
                                       </xs:element>
                                    </xs:sequence>
                                 </xs:complexType>
                              </xs:element>
                           </xs:sequence>
                        </xs:complexType>
                     </xs:element>
                  </xs:sequence>
               </xs:complexType>
            </xs:element>
         </xs:sequence>
      </xs:complexType>
   </xs:element>

   <xs:complexType name="com.bssys.sbns.entity.SignDbo">
      <xs:sequence>
         <xs:element name="attachHashAlg" minOccurs="0">
            <xs:annotation>
               <xs:documentation>Алгоритм хеширования вложения</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:int">
                  <xs:totalDigits value="18"/>
                  <xs:fractionDigits value="0"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="attachId" minOccurs="0">
            <xs:annotation>
               <xs:documentation>Идентификатор вложения</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:string">
                  <xs:maxLength value="36"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="certificateGuid" minOccurs="0">
            <xs:annotation>
               <xs:documentation>Сертификат, которым была сделана данная подпись (из сертификатов средства подписи). КЧ</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:string">
                  <xs:maxLength value="255"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="content" minOccurs="0">
            <xs:annotation>
               <xs:documentation>Содержимое подписи</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:string">
                  <xs:maxLength value="2000"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="contentLarge" minOccurs="0" type="xs:string">
            <xs:annotation>
               <xs:documentation>Содержимое подписи (для длинных подписей)</xs:documentation>
            </xs:annotation>
         </xs:element>

         <xs:element name="digestScheme" minOccurs="0">
            <xs:annotation>
               <xs:documentation>Название схемы дайджеста. КЧ</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:string">
                  <xs:maxLength value="4000"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="digestSchemeFormat" minOccurs="0">
            <xs:annotation>
               <xs:documentation>Формат дайджеста</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:string">
                  <xs:maxLength value="255"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="digestSchemeVersion" minOccurs="0">
            <xs:annotation>
               <xs:documentation>Версия дайджеста. КЧ</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:int">
                  <xs:totalDigits value="18"/>
                  <xs:fractionDigits value="0"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="dtCheck" minOccurs="0" type="xs:dateTime">
            <xs:annotation>
               <xs:documentation>Время последней проверки подписи. КЧ</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="dtCreate" minOccurs="0" type="xs:dateTime">
            <xs:annotation>
               <xs:documentation>Время создания подписи. КЧ</xs:documentation>
            </xs:annotation>
         </xs:element>
         <xs:element name="isAttachSign" minOccurs="0">
            <xs:annotation>
               <xs:documentation>Признак подписи вложения</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:boolean">
                  <xs:pattern value="[0-1]{1}"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>

         <xs:element name="mobileDeviceId" minOccurs="0">
            <xs:annotation>
               <xs:documentation>Идентификатор мобильного устройства</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:string">
                  <xs:maxLength value="500"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="orgId" minOccurs="0">
            <xs:annotation>
               <xs:documentation>Идентификатор организации, от лица которой была сформирована данная подпись</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:string">
                  <xs:maxLength value="36"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="orgName" minOccurs="0">
            <xs:annotation>
               <xs:documentation>Имя организации, от лица которой была сформирована данная подпись</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:string">
                  <xs:maxLength value="350"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="position" minOccurs="0">
            <xs:annotation>
               <xs:documentation>Должность лица, поставившего подпись. КЧ</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:string">
                  <xs:maxLength value="255"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="safeTouchAutoSign" minOccurs="0">
            <xs:annotation>
               <xs:documentation>Признак автоподписи для считывателя смарт-карт SafeTouch. КЧ</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:boolean">
                  <xs:pattern value="[0-1]{1}"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>

         <xs:element name="safeTouchDigestScheme" minOccurs="0">
            <xs:annotation>
               <xs:documentation>Название схемы дайджеста для считывателя смарт-карт SafeTouch</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:string">
                  <xs:maxLength value="4000"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="safeTouchDigestSchemeVersion" minOccurs="0">
            <xs:annotation>
               <xs:documentation>Версия дайджеста для считывателя смарт-карт SafeTouch</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:int">
                  <xs:totalDigits value="18"/>
                  <xs:fractionDigits value="0"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="signHash" minOccurs="0">
            <xs:annotation>
               <xs:documentation>Хэш подписи для проверки уникальности</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:string">
                  <xs:maxLength value="255"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="signKey" minOccurs="0">
            <xs:annotation>
               <xs:documentation>Значение введенного ключа для подтверждения права подписи</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:string">
                  <xs:maxLength value="255"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="signType" minOccurs="0">
            <xs:annotation>
               <xs:documentation>Тип права подписи. КЧ</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:string">
                  <xs:maxLength value="255"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>

         <xs:element name="signerFullName" minOccurs="0">
            <xs:annotation>
               <xs:documentation>ФИО поставившего подпись. КЧ</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:string">
                  <xs:maxLength value="1000"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="userIP" minOccurs="0">
            <xs:annotation>
               <xs:documentation>IP пользователя, сформировавшего данную подпись. КЧ</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:string">
                  <xs:maxLength value="40"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="userMAC" minOccurs="0">
            <xs:annotation>
               <xs:documentation>MAC пользователя, сформировавшего данную подпись. КЧ</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:string">
                  <xs:maxLength value="4000"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="userName" minOccurs="0">
            <xs:annotation>
               <xs:documentation>Имя пользователя, сформировавшего данную подпись. КЧ</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:string">
                  <xs:maxLength value="1024"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>

         <xs:element name="valid" minOccurs="0">
            <xs:annotation>
               <xs:documentation>Результат последней проверки подписи. КЧ</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
               <xs:restriction base="xs:boolean">
                  <xs:pattern value="[0-1]{1}"/>
               </xs:restriction>
            </xs:simpleType>
         </xs:element>
         <xs:element name="confirmSign" minOccurs="0">
            <xs:annotation>
               <xs:documentation>Подтверждающая подпись</xs:documentation>
            </xs:annotation>
            <xs:complexType>
               <xs:sequence>
                  <xs:element name="Sign" type="com.bssys.sbns.entity.SignDbo">
                     <xs:annotation>
                        <xs:documentation>Сущность, хранящая бинарную ЭП. Также содержится название и версия дайджеста. <p/> Для каждого типа криптографии формат свой.</xs:documentation>
                     </xs:annotation>
                  </xs:element>
               </xs:sequence>
            </xs:complexType>
         </xs:element>

         <xs:element name="userWorkspace" minOccurs="0">
            <xs:annotation>
               <xs:documentation>Ссылка на рабочую среду пользователя</xs:documentation>
            </xs:annotation>
            <xs:complexType>
               <xs:sequence>
                  <xs:element name="UserWorkspace">
                     <xs:annotation>
                        <xs:documentation>Рабочая среда клиента, определяет параметры компьютера пользователя при подписи данных</xs:documentation>
                     </xs:annotation>
                     <xs:complexType>
                        <xs:sequence>
                           <xs:element name="AVPActive" minOccurs="0">
                              <xs:annotation>
                                 <xs:documentation>Наличие и активность антивируса</xs:documentation>
                              </xs:annotation>
                              <xs:simpleType>
                                 <xs:restriction base="xs:boolean">
                                    <xs:pattern value="[0-1]{1}"/>
                                 </xs:restriction>
                              </xs:simpleType>
                           </xs:element>
                           <xs:element name="OSUpdatable" minOccurs="0">
                              <xs:annotation>
                                 <xs:documentation>Активность системы обновления ОС</xs:documentation>
                              </xs:annotation>
                              <xs:simpleType>
                                 <xs:restriction base="xs:boolean">
                                    <xs:pattern value="[0-1]{1}"/>
                                 </xs:restriction>
                              </xs:simpleType>
                           </xs:element>

                           <xs:element name="addInfo" minOccurs="0">
                              <xs:annotation>
                                 <xs:documentation>Дополнительная информация</xs:documentation>
                              </xs:annotation>
                              <xs:simpleType>
                                 <xs:restriction base="xs:string">
                                    <xs:maxLength value="4000"/>
                                 </xs:restriction>
                              </xs:simpleType>
                           </xs:element>
                           <xs:element name="faultPassAttemptCount" minOccurs="0">
                              <xs:annotation>
                                 <xs:documentation>Общее количество неудачных попыток ввода пароля при входе в систему</xs:documentation>
                              </xs:annotation>
                              <xs:simpleType>
                                 <xs:restriction base="xs:int">
                                    <xs:totalDigits value="18"/>
                                    <xs:fractionDigits value="0"/>
                                 </xs:restriction>
                              </xs:simpleType>
                           </xs:element>
                           <xs:element name="hashCode" minOccurs="0">
                              <xs:annotation>
                                 <xs:documentation>Хэш-код (дайджест) рабочего окружения пользователя для быстрого поиска</xs:documentation>
                              </xs:annotation>
                              <xs:simpleType>
                                 <xs:restriction base="xs:string">
                                    <xs:maxLength value="255"/>
                                 </xs:restriction>
                              </xs:simpleType>
                           </xs:element>                     

<xs:element name="notRemoteAccess" minOccurs="0">
                              <xs:annotation>
                                 <xs:documentation>Отсутствие запущенных сессий удаленного доступа</xs:documentation>
                              </xs:annotation>
                              <xs:simpleType>
                                 <xs:restriction base="xs:boolean">
                                    <xs:pattern value="[0-1]{1}"/>
                                 </xs:restriction>
                              </xs:simpleType>
                           </xs:element>
                           <xs:element name="outerKeyStorage" minOccurs="0">
                              <xs:annotation>
                                 <xs:documentation>Использование устройства контроля подписываемых данных (SafeTouch)</xs:documentation>
                              </xs:annotation>
                              <xs:simpleType>
                                 <xs:restriction base="xs:boolean">
                                    <xs:pattern value="[0-1]{1}"/>
                                 </xs:restriction>
                              </xs:simpleType>
                           </xs:element>
                           <xs:element name="passChanged" minOccurs="0">
                              <xs:annotation>
                                 <xs:documentation>Признак смены пароля пользователем за контрольный период до создания платежного поручения. Контрольный период по умолчанию 24 часа</xs:documentation>
                              </xs:annotation>
                              <xs:simpleType>
                                 <xs:restriction base="xs:boolean">
                                    <xs:pattern value="[0-1]{1}"/>
                                 </xs:restriction>
                              </xs:simpleType>
                           </xs:element>

                           <xs:element name="userIP" minOccurs="0">
                              <xs:annotation>
                                 <xs:documentation>IP пользователя</xs:documentation>
                              </xs:annotation>
                              <xs:simpleType>
                                 <xs:restriction base="xs:string">
                                    <xs:maxLength value="4000"/>
                                 </xs:restriction>
                              </xs:simpleType>
                           </xs:element>
                           <xs:element name="userId" minOccurs="0">
                              <xs:annotation>
                                 <xs:documentation>ID пользователя</xs:documentation>
                              </xs:annotation>
                              <xs:simpleType>
                                 <xs:restriction base="xs:string">
                                    <xs:maxLength value="4000"/>
                                 </xs:restriction>
                              </xs:simpleType>
                           </xs:element>
                           <xs:element name="userMAC" minOccurs="0">
                              <xs:annotation>
                                 <xs:documentation>MAC пользователя, сформировавшего данную подпись</xs:documentation>
                              </xs:annotation>
                              <xs:simpleType>
                                 <xs:restriction base="xs:string">
                                    <xs:maxLength value="4000"/>
                                 </xs:restriction>
                              </xs:simpleType>
                           </xs:element>
                        </xs:sequence>
                     </xs:complexType>
                  </xs:element>
               </xs:sequence>
            </xs:complexType>
         </xs:element>
      </xs:sequence>
   </xs:complexType>
</xs:schema>