<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema version="1.0" targetNamespace="http://svnspb.epam.com/kaz-pnk/sono/business/entity/notifications" xmlns:ns2="http://svnspb.epam.com/kaz-pnk/sono/business/utility" xmlns:ns1="http://svnspb.epam.com/kaz-pnk/sono/business/entity/reference" xmlns:ns3="http://svnspb.epam.com/kaz-pnk/sono/entity/wrapper" xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:import schemaLocation="schema7.xsd"/>

  <xs:import namespace="http://svnspb.epam.com/kaz-pnk/sono/business/entity/reference" schemaLocation="schema4.xsd"/>

  <xs:import namespace="http://svnspb.epam.com/kaz-pnk/sono/business/utility" schemaLocation="schema2.xsd"/>

  <xs:import namespace="http://svnspb.epam.com/kaz-pnk/sono/entity/wrapper" schemaLocation="schema1.xsd"/>

  <xs:complexType name="notificationType" abstract="true">
    <xs:sequence>
      <xs:element name="notificationType" type="xs:string" minOccurs="0"/>
      <xs:element name="name" type="xs:string" minOccurs="0"/>
      <xs:element name="fnoName" type="xs:string" nillable="true" minOccurs="0"/>
      <xs:element name="fnoNameKk" type="xs:string" nillable="true" minOccurs="0"/>
      <xs:element name="fnoRegNumber" type="xs:string" minOccurs="0"/>
      <xs:element name="fnoType" type="xs:string" nillable="true" minOccurs="0"/>
      <xs:element name="fnoTypeKk" type="xs:string" nillable="true" minOccurs="0"/>
      <xs:element name="fnoStatus" type="xs:string" nillable="true" minOccurs="0"/>
      <xs:element name="fnoDocPeriod" type="ns1:tabDocPeriodType" nillable="true" minOccurs="0"/>
      <xs:element name="fnoMediaType" type="ns1:tabMediaType" nillable="true" minOccurs="0"/>
      <xs:element name="nameNk" type="xs:string" nillable="true" minOccurs="0"/>
      <xs:element name="npType" type="ns2:abstractEnumWrapperType" minOccurs="0"/>
      <xs:element name="np-jur-name" type="xs:string" nillable="true" minOccurs="0"/>
      <xs:element name="nkleaderName" type="xs:string" nillable="true" minOccurs="0"/>
      <xs:element name="nkleaderSurname" type="xs:string" nillable="true" minOccurs="0"/>
      <xs:element name="nkleaderMiddleName" type="xs:string" nillable="true" minOccurs="0"/>
      <xs:element name="userConfirmation" type="xs:string" nillable="true" minOccurs="0"/>
    </xs:sequence>
    <xs:attribute name="id" type="xs:ID"/>
    <xs:attribute name="class-name" type="xs:string" use="required"/>
    <xs:attribute name="entity-id" type="xs:long" use="required"/>
    <xs:attribute name="fno-doc-id" type="xs:long"/>
    <xs:attribute name="create-date" type="xs:dateTime" use="required"/>
    <xs:attribute name="fno-code" type="xs:string" use="required"/>
    <xs:attribute name="fnoVersion" type="xs:string" use="required"/>
    <xs:attribute name="fno-report-year" type="xs:int"/>
    <xs:attribute name="fno-submit-date" type="xs:dateTime"/>
    <xs:attribute name="fno-accept-date" type="xs:dateTime"/>
    <xs:attribute name="code-nk" type="xs:string" use="required"/>
    <xs:attribute name="np-rnn" type="xs:string" use="required"/>
    <xs:attribute name="np-inn-bin" type="xs:string"/>
    <xs:attribute name="np-id" type="xs:long"/>
    <xs:attribute name="server-enc" type="xs:boolean" use="required"/>
    <xs:attribute name="sonoChangeDate" type="xs:long" use="required"/>
    <xs:attribute name="completedPresent" type="xs:boolean" use="required"/>
  </xs:complexType>

  <xs:complexType name="fnoHistoryElementType">
    <xs:sequence>
      <xs:element name="description" type="xs:string" minOccurs="0"/>
      <xs:element name="descriptionKk" type="xs:string" minOccurs="0"/>
      <xs:element name="system" type="xs:string" minOccurs="0"/>
      <xs:element name="systemKk" type="xs:string" minOccurs="0"/>
      <xs:element name="status" type="ns3:reflectionWrapperType" minOccurs="0"/>
      <xs:element name="statusDesc" type="xs:string" nillable="true" minOccurs="0"/>
      <xs:element name="statusDescKk" type="xs:string" nillable="true" minOccurs="0"/>
      <xs:element name="statusDateStr" type="xs:string" nillable="true" minOccurs="0"/>
    </xs:sequence>
    <xs:attribute name="entity-id" type="xs:long" use="required"/>
    <xs:attribute name="notification-id" type="xs:IDREF" use="required"/>
    <xs:attribute name="status-date" type="xs:dateTime" use="required"/>
  </xs:complexType>

  <xs:complexType name="fnoRaznoskaElementType">
    <xs:sequence>
      <xs:element name="kbk" type="xs:string" minOccurs="0"/>
      <xs:element name="payAmmount" type="xs:string" minOccurs="0"/>
      <xs:element name="currencyTypeSymbol" type="xs:string" nillable="true" minOccurs="0"/>
    </xs:sequence>
    <xs:attribute name="entity-id" type="xs:long" use="required"/>
    <xs:attribute name="notification-id" type="xs:IDREF" use="required"/>
    <xs:attribute name="pay-time" type="xs:dateTime" use="required"/>
  </xs:complexType>

  <xs:complexType name="ndsReturnErrorType">
    <xs:sequence>
      <xs:element name="errorDescr" type="xs:string" nillable="true" minOccurs="0"/>
    </xs:sequence>
    <xs:attribute name="entity-id" type="xs:long"/>
    <xs:attribute name="notification-id" type="xs:IDREF"/>
  </xs:complexType>
</xs:schema>

