<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://ebp-rskp/xsd/rskp_mir">
    <xs:element name="generalDataMir">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="rskpNm" type="xs:string" minOccurs="0" maxOccurs="1" />
                <xs:element name="rskpName" type="xs:string" minOccurs="1" maxOccurs="1" />
                <xs:element name="GUIDExSys" type="xs:string" minOccurs="0" maxOccurs="1" />
                <xs:element name="rskpDate" type="xs:date" minOccurs="0" maxOccurs="1" />
                <xs:element name="rskpStatus" minOccurs="0" maxOccurs="1">
                    <xs:annotation>
                        <xs:documentation>Статус РСКП. Служебное поле, присваивается после получения РСКП.</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                        <xs:restriction base="xs:string">
                            <xs:minLength value="1" />
                            <xs:maxLength value="20" />
                        </xs:restriction>
                    </xs:simpleType>
                </xs:element>
                <xs:element name="rskpRjctnRsn" type="xs:string" minOccurs="0" maxOccurs="1" />
                <xs:element name="rskpExecutionDate" type="xs:date" minOccurs="0" maxOccurs="1" />
                <xs:element name="tofkInform" minOccurs="0" maxOccurs="1">
                    <xs:annotation>
                        <xs:documentation>Место представления распоряжения</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="tofkName" minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Наименование места представления распоряжения
                                        (ТОФК)</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:minLength value="1" />
                                        <xs:maxLength value="2000" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="tofkCode" minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Код места представления распоряжения (ТОФК)</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:length value="4" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <xs:element name="maxExecutionDate" type="xs:date" minOccurs="0" maxOccurs="1" />
                <xs:element name="AmntKBK">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="AmntKBKItem" minOccurs="1" maxOccurs="unbounded">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element name="KBK" minOccurs="1" maxOccurs="1">
                                            <xs:annotation>
                                                <xs:documentation>Код бюджетной классификации</xs:documentation>
                                            </xs:annotation>
                                            <xs:simpleType>
                                                <xs:restriction base="xs:string">
                                                    <xs:length value="20" />
                                                </xs:restriction>
                                            </xs:simpleType>
                                        </xs:element>
                                        <xs:element name="amount" type="xs:decimal" minOccurs="1"
                                            maxOccurs="1" />
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <xs:element name="PaymentAmount" type="xs:decimal" minOccurs="0" maxOccurs="1" />
                <xs:element name="payerInform">

                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="payerName" minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Наименование плательщика</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:minLength value="1" />
                                        <xs:maxLength value="2000" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="payerSVRCode" minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Код по СВР плательщика</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:length value="8" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="payerOKTMO" minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Код ОКТМО плательщика</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:minLength value="1" />
                                        <xs:maxLength value="11" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="payerPersAccountNum" minOccurs="1" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Номер лицевого счета плательщика</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:length value="11" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="foName" minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Наименование ФО</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:minLength value="1" />
                                        <xs:maxLength value="2000" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="foSVRCode" minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Код ФО по СВР</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:length value="8" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="founderDepCode" minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Код главы вышестоящего участника БП </xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:length value="3" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="founderName" minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Наименование вышестоящего участника БП </xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:minLength value="1" />
                                        <xs:maxLength value="2000" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="budgetName" minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Наименование бюджета</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:minLength value="1" />
                                        <xs:maxLength value="512" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="currencyCode" minOccurs="1" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Код валюты платежа по ОКВ</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:length value="3" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <xs:element name="decodingRSKP" minOccurs="0" maxOccurs="unbounded">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="position" minOccurs="1" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Номер записи</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:minLength value="1" />
                                        <xs:maxLength value="4" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="cardNum" minOccurs="1" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Номер платежной карты</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:minLength value="16" />
                                        <xs:maxLength value="19" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="dateBirth" type="xs:date" minOccurs="0" maxOccurs="1" />
                            <xs:element name="paymentTypCd" minOccurs="1" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Код вида выплаты</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:length value="4" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="amountPnlt" minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Сумма взыскания по исполнительному документу</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:minLength value="1" />
                                        <xs:maxLength value="200" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="amount" type="xs:decimal" minOccurs="0" maxOccurs="1" />
                            <xs:element name="incomeTypeCode" minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Код вида дохода</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:length value="1" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="traceabilityCode" minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Аналитический код (код прослеживаемости)</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:minLength value="1" />
                                        <xs:maxLength value="25" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="payerKBK" minOccurs="1" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>КБК плательщика</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:length value="20" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="payerIncomeCode" minOccurs="1" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Код поступления плательщика</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:length value="2" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="subsidyCode" minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Код целевой субсидии плательщика
                                        (аналитический код)</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:minLength value="1" />
                                        <xs:maxLength value="25" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <xs:element name="basicDocuments" minOccurs="0" maxOccurs="unbounded">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="documentType" minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Вид документа-основания</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:minLength value="1" />
                                        <xs:maxLength value="50" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="documentNm" minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Номер документа-основания</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:minLength value="1" />
                                        <xs:maxLength value="100" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="documentDate" type="xs:date" minOccurs="0"
                                maxOccurs="1" />
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <xs:element name="managerInform" minOccurs="0" maxOccurs="1">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="mngrName" minOccurs="1" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>ФИО</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:minLength value="1" />
                                        <xs:maxLength value="50" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="mngrPosition" minOccurs="1" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Должность</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:minLength value="1" />
                                        <xs:maxLength value="100" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <xs:element name="chiefAccountantInform" minOccurs="0" maxOccurs="1">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="chfAccName" minOccurs="1" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>ФИО</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:minLength value="1" />
                                        <xs:maxLength value="50" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="chfAccPosition" minOccurs="1" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Должность</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:minLength value="1" />
                                        <xs:maxLength value="100" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <xs:element name="rspnsblExecutorInform" minOccurs="0" maxOccurs="1">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="rspnsExctrName" minOccurs="1" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>ФИО</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:minLength value="1" />
                                        <xs:maxLength value="50" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                            <xs:element name="rspnsExctrPhone" minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Номер телефона</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                        <xs:minLength value="1" />
                                        <xs:maxLength value="50" />
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <xs:element name="Signature" minOccurs="0" maxOccurs="unbounded" />
            </xs:sequence>
            <xs:attribute name="versionID" type="xs:string" use="required" />
        </xs:complexType>
    </xs:element>
</xs:schema>