﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="Record">    
    <xs:complexType>
      <xs:all>
        <xs:element name="Call_Deposit" minOccurs="0">
          <xs:annotation>
            <xs:documentation>
              До востребования
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:simpleContent>
              <xs:extension base="xs:decimal">
                <xs:annotation>
                  <xs:documentation>Ставка (в % годовых)</xs:documentation>
                </xs:annotation>
                <xs:attributeGroup ref="d_type"/>
              </xs:extension>
            </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <xs:element name="overnight" minOccurs="0">
          <xs:annotation>
            <xs:documentation>
              "овернайт"
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:simpleContent>
              <xs:extension base="xs:decimal">
                <xs:annotation>
                  <xs:documentation>Ставка (в % годовых)</xs:documentation>
                </xs:annotation>
                <xs:attributeGroup ref="d_type"/>
              </xs:extension>
            </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <xs:element name="spot_next" minOccurs="0">
          <xs:annotation>
            <xs:documentation>
              "спот-некст"
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:simpleContent>
              <xs:extension base="xs:decimal">
                <xs:annotation>
                  <xs:documentation>Ставка (в % годовых)</xs:documentation>
                </xs:annotation>
                <xs:attributeGroup ref="d_type"/>
              </xs:extension>
            </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <xs:element name="tom-next" minOccurs="0">
          <xs:annotation>
            <xs:documentation>
              "том-некст"
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:simpleContent>
              <xs:extension base="xs:decimal">
                <xs:annotation>
                  <xs:documentation>Ставка (в % годовых)</xs:documentation>
                </xs:annotation>
                <xs:attributeGroup ref="d_type"/>
              </xs:extension>
            </xs:simpleContent>
          </xs:complexType>
        </xs:element>

        <xs:element name="tom_one_month" minOccurs="0">
          <xs:annotation>
            <xs:documentation>
              "том-1 месяц"
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:simpleContent>
              <xs:extension base="xs:decimal">
                <xs:annotation>
                  <xs:documentation>Ставка (в % годовых)</xs:documentation>
                </xs:annotation>
                <xs:attributeGroup ref="d_type"/>
              </xs:extension>
            </xs:simpleContent>
          </xs:complexType>
        </xs:element>


        <xs:element name="three_month" minOccurs="0">
          <xs:annotation>
            <xs:documentation>
              "3 месяца"
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:simpleContent>
              <xs:extension base="xs:decimal">
                <xs:annotation>
                  <xs:documentation>Ставка (в % годовых)</xs:documentation>
                </xs:annotation>
                <xs:attributeGroup ref="d_type"/>
              </xs:extension>
            </xs:simpleContent>
          </xs:complexType>
        </xs:element>

        <xs:element name="reutors">
          <xs:annotation>
            <xs:documentation>
              с использованием Системы "Рейтерс-Дилинг"
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:attributeGroup ref="reuters_attrib"/>
          </xs:complexType>
        </xs:element>
        <xs:element name="mmvb">
          <xs:annotation>
            <xs:documentation>с использованием Cистемы торгов  ОАО Московская Биржа</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:attributeGroup ref="mmvb_atrib"/>
          </xs:complexType>
          <!--- group -->
        </xs:element>


        <xs:element name="dz" minOccurs="0">
          <xs:annotation>
            <xs:documentation>путем оформления Договоров-Заявок</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:attribute name="msk_sum" type="xs:decimal" use="optional">
              <xs:annotation>
                <xs:documentation>для кредитных организаций Московского региона, млн. рублей</xs:documentation>
              </xs:annotation>
            </xs:attribute>

            <xs:attribute name="other_sum" type="xs:decimal" use="optional">
              <xs:annotation>
                <xs:documentation>для кредитных организаций других регионов, млн. рублей</xs:documentation>
              </xs:annotation>
            </xs:attribute>
            <xs:attribute name="tom_one_month" type="xs:string" use="optional" />

          </xs:complexType>
        </xs:element>


        <xs:element name="direct_exange" minOccurs="0">
          <xs:annotation>
            <xs:documentation>Прямые операции (произвольная форма)</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:all>
              <xs:element name="tm">
                <xs:complexType>
                  <xs:attribute name="title" type="xs:string" use="required">
                    <xs:annotation>
                      <xs:documentation>Наименование системы расчетов</xs:documentation>
                    </xs:annotation>
                  </xs:attribute>
                  <xs:attribute name="sum" type="xs:decimal" use="optional">
                    <xs:annotation>
                      <xs:documentation>
                        Минимальная сумма, принимаемая Банком России в депозит, млн. рублей
                      </xs:documentation>
                    </xs:annotation>
                  </xs:attribute>
                  <xs:attribute name="overnight" type="xs:string" use="required">
                    <xs:annotation>
                      <xs:documentation>Время приема обращений, на стандартном условии "овернайт"</xs:documentation>
                    </xs:annotation>
                  </xs:attribute>
                  <xs:attribute name="standart" type="xs:string" use="required">
                    <xs:annotation>
                      <xs:documentation>Время приема обращений, на стандартных условиях "том-некст", "спот-некст", "до востребования", о востребовании депозита "до востребования"</xs:documentation>
                    </xs:annotation>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
            </xs:all>
          </xs:complexType>
          <!--- group -->
        </xs:element>


      </xs:all>
      <xs:attribute name="Date" type="xs:string" use="required">
        <xs:annotation>
          <xs:documentation>Дата приема обращений КО</xs:documentation>
        </xs:annotation>
      </xs:attribute>
    </xs:complexType>   
    
    
  </xs:element>


  <xs:attributeGroup name="d_type">
    <xs:attribute name="dr" type="xs:string" use="optional">
      <xs:annotation>
        <xs:documentation>Дата размещения денежных средств в депозит</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="dv" type="xs:string" use="optional">
      <xs:annotation>
        <xs:documentation>Дата возврата суммы депозита и уплаты процентов</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:attributeGroup>


  <xs:attributeGroup name="reuters_attrib">
    <xs:attribute name="sum" type="xs:decimal" use="required">
      <xs:annotation>
        <xs:documentation>Минимальная сумма, принимаемая Банком России в депозит, сумма, млн. рублей</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="overnight" type="xs:string" use="optional">
      <xs:annotation>
        <xs:documentation>О заключении депозитной сделки на стандартном условии "овернайт"</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="standart" type="xs:string" use="optional">
      <xs:annotation>
        <xs:documentation>О заключении депозитной сделки на стандартных условиях "том-некст", "спот-некст", "до востребования", о востребовании депозита "до востребования"</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="code" type="xs:string" use="optional">
      <xs:annotation>
        <xs:documentation>Дилинг-код Системы "Рейтерс-Дилинг" Банка России, по которому осуществляется прием обращений кредитных организаций</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="tom_one_month" type="xs:string" use="optional">
      <xs:annotation>
        <xs:documentation>О заключении депозитной сделки на стандартном условии "том-1 месяц"</xs:documentation>
      </xs:annotation>      
    </xs:attribute>
  </xs:attributeGroup>
  
  <xs:attributeGroup name="mmvb_atrib">
    <xs:attribute name="sum" type="xs:decimal" use="required">
      <xs:annotation>
        <xs:documentation>Минимальная сумма, принимаемая Банком России в депозит, сумма, млн. рублей</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="overnight_s1" type="xs:string" use="optional">
      <xs:annotation>
        <xs:documentation>О заключении депозитной сделки на стандартном условии "овернайт" (начало)</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="overnight_s2" type="xs:string" use="optional">
      <xs:annotation>
        <xs:documentation>О заключении депозитной сделки на стандартном условии "овернайт" (окончание)</xs:documentation>
      </xs:annotation>
    </xs:attribute>

    <xs:attribute name="standart_s1" type="xs:string" use="optional">
      <xs:annotation>
        <xs:documentation>О заключении депозитной сделки на стандартных условиях "том-некст", "спот-некст", "до востребования", о востребовании депозита "до востребования" (начало)</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="standart_s2" type="xs:string" use="optional">
      <xs:annotation>
        <xs:documentation>О заключении депозитной сделки на стандартных условиях "том-некст", "спот-некст", "до востребования", о востребовании депозита "до востребования" (окончание)</xs:documentation>
      </xs:annotation>
    </xs:attribute>
 
  
    
 
  </xs:attributeGroup>


</xs:schema>