<?xml version="1.0" encoding="utf-8"?>
  
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:elk="urn:cbr-ru:elk:v2024.1.0"
           xmlns:lt="urn:cbr-ru:elk:leaftypes:v2024.1.0"
           targetNamespace="urn:cbr-ru:elk:v2024.1.0" elementFormDefault="qualified" version="2024.1.0">
  
  <xs:import namespace="urn:cbr-ru:elk:leaftypes:v2024.1.0" schemaLocation="cbr_ed_leaftypes_v2024.1.0.xsd"/>
  <xs:include schemaLocation="cbr_ed_objects_v2024.1.0.xsd"/>
  
  <xs:element name="ED278" type="elk:ED278">
    <xs:annotation>
      <xs:documentation>
        Извещение о предоставлении кредита Банка России (по специализированным инструментам рефинансирования, 
        за исключением кредитов АО «МСП Банк», обеспеченных залогом прав требования по кредитным договорам)
      </xs:documentation>
    </xs:annotation>
  </xs:element>
  
  <xs:complexType name="ED278">
    <xs:annotation>
      <xs:documentation>
        Извещение о предоставлении кредита Банка России (по специализированным инструментам рефинансирования, 
        за исключением кредитов АО «МСП Банк», обеспеченных залогом прав требования по кредитным договорам)
      </xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="elk:ESWithMandatoryEDReceiver">
        <xs:sequence>
          <xs:element name="NotificationInfo" type="elk:ED278_NotificationInfo">
            <xs:annotation>
              <xs:documentation>Реквизиты извещения</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="OrgInfo" type="elk:ED278_OrgInfo">
            <xs:annotation>
              <xs:documentation>Реквизиты кредитной организации</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="CreditTerms" type="elk:ED278_CreditTerms">
            <xs:annotation>
              <xs:documentation>Сведения о предоставленном кредите</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
        <xs:attribute name="EDDateTime" type="lt:DateTimeType" use="required">
          <xs:annotation>
            <xs:documentation>Дата и время составления ЭС</xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  
  <xs:complexType name="ED278_NotificationInfo">
    <xs:annotation>
      <xs:documentation>Реквизиты извещения</xs:documentation>
    </xs:annotation>
    <xs:attribute name="NotificationDate" type="lt:DateType" use="required">
      <xs:annotation>
        <xs:documentation>Дата извещения</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="NotificationNum" type="lt:Max11TextType" use="required">
      <xs:annotation>
        <xs:documentation>Номер извещения</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  
  <xs:complexType name="ED278_OrgInfo">
    <xs:annotation>
      <xs:documentation>Реквизиты кредитной организации</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="OrgName" type="lt:Max160TextType">
        <xs:annotation>
          <xs:documentation>Наименование кредитной организации</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="OrgRegNum" type="lt:BankDKOIDType">
      <xs:annotation>
        <xs:documentation>Рег.№</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="AgreementDate" type="lt:DateType" use="required">
      <xs:annotation>
        <xs:documentation>Дата Договора</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="AgreementNum" type="lt:Max11TextType" use="required">
      <xs:annotation>
        <xs:documentation>Номер Договора</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  
  <xs:complexType name="ED278_CreditTerms">
    <xs:annotation>
      <xs:documentation>Сведения о предоставленном кредите</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Active" type="elk:ED278_Active" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Залог активов</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="CreditNum" type="lt:Max10TextType" use="required">
      <xs:annotation>
        <xs:documentation>Номер кредита</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="CreditDealDate" type="lt:DateType" use="required">
      <xs:annotation>
        <xs:documentation>Дата кредита</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="ReqRegDate" type="lt:DateType" use="required">
      <xs:annotation>
        <xs:documentation>Дата заявления</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="ReqRegNo" type="lt:Max10TextType" use="required">
      <xs:annotation>
        <xs:documentation>Номер заявления</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="CreditDate" type="lt:DateType" use="required">
      <xs:annotation>
        <xs:documentation>Дата предоставления</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="CurCode" type="lt:EnuCurCode" use="required">
      <xs:annotation>
        <xs:documentation>Валюта, в которой выдан кредит Банка России</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="CreditSum" type="lt:KopeckAmountType" use="required">
      <xs:annotation>
        <xs:documentation>Сумма кредита (цифрами)</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="CreditSumInWords" type="lt:TextType" use="required">
      <xs:annotation>
        <xs:documentation>Сумма кредита (прописью)</xs:documentation>
        <xs:appinfo>TextArea</xs:appinfo>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="CreditTermClaimed" type="lt:Max4DayQuantityType" use="required">
      <xs:annotation>
        <xs:documentation>Срок</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="CreditRate" type="lt:PercentNumberType" use="required">
      <xs:annotation>
        <xs:documentation>Ставка</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Acc" type="lt:AccountNumberRUIDType" use="required">
      <xs:annotation>
        <xs:documentation>Корреспондентский счет</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="AccBIC" type="lt:BICRUIDType" use="required">
      <xs:annotation>
        <xs:documentation>БИК ПБР</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="PBRName" type="lt:Max200TextType" use="required">
      <xs:annotation>
        <xs:documentation>Наименование ПБР</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="DateAOFKRMSP" type="lt:DateType">
      <xs:annotation>
        <xs:documentation>Дата договора АО ФКРМСП</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="NumAOFKRMSP" type="lt:Max10TextType">
      <xs:annotation>
        <xs:documentation>Номер договора АО ФКРМСП</xs:documentation>
      </xs:annotation>
    </xs:attribute>	
    <xs:attribute name="DateGuarantee" type="lt:DateType">
      <xs:annotation>
        <xs:documentation>Дата договора поручительства</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="NumGuarantee" type="lt:Max30TextType">
      <xs:annotation>
        <xs:documentation>Номер договора поручительства</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="RepaymentDate" type="lt:DateType" use="required">
      <xs:annotation>
        <xs:documentation>Дата погашения</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  
  <xs:complexType name="ED278_Active">
    <xs:annotation>
      <xs:documentation>Залог активов</xs:documentation>
    </xs:annotation>
    <xs:attribute name="AssetUniqueNumber" type="lt:AssetIDTextType" use="required">
      <xs:annotation>
        <xs:documentation>Уникальный номер актива, присвоенный Банком России</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="DepositAmount" type="lt:KopeckAmountType" use="required">
      <xs:annotation>
        <xs:documentation>Оценка предмета залога</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  
</xs:schema>
