<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:plk="http://www.giif.mofnet.gov.pl/xsd/rest/pliki20171017" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.giif.mofnet.gov.pl/xsd/rest/pliki20171017" elementFormDefault="qualified">
   <xsd:complexType name="StatusyPlikowT">
      <xsd:sequence>
         <xsd:element name="plik" type="plk:StatusPlikuT" minOccurs="0" maxOccurs="unbounded"/>
      </xsd:sequence>
      <xsd:attribute name="ilosc" type="xsd:int"/>
   </xsd:complexType>
   <xsd:complexType name="ZawiadomieniaT">
      <xsd:sequence>
         <xsd:element name="zawiadomienie" type="plk:StatusZawiadomieniaT" minOccurs="0" maxOccurs="unbounded"/>
      </xsd:sequence>
      <xsd:attribute name="ilosc" type="xsd:int"/>
   </xsd:complexType>
   <xsd:complexType name="StatusPlikuT">
      <xsd:simpleContent>
         <xsd:extension base="xsd:string">
            <xsd:attribute name="id" type="xsd:long" use="required"/>
            <xsd:attribute name="nazwa" type="xsd:string" use="required"/>
            <xsd:attribute name="hashZaszyfrowany" type="xsd:string"/>
            <xsd:attribute name="hashJawny" type="xsd:string"/>
            <xsd:attribute name="status" type="plk:TypStatusuT" use="required"/>
            <xsd:attribute name="dataOtrzymania" type="xsd:dateTime" use="required"/>
         </xsd:extension>
      </xsd:simpleContent>
   </xsd:complexType>
   <xsd:complexType name="StatusZawiadomieniaT">
      <xsd:sequence>
         <xsd:element name="komunikat" minOccurs="0">
            <xsd:simpleType>
               <xsd:restriction base="xsd:string">
                  <xsd:maxLength value="4000"/>
               </xsd:restriction>
            </xsd:simpleType>
         </xsd:element>
         <xsd:element name="zalacznik" type="plk:ZalacznikZawiadomieniaT" minOccurs="0" maxOccurs="unbounded"/>
      </xsd:sequence>
      <xsd:attribute name="id" type="xsd:long"/>
      <xsd:attribute name="numerRef" type="xsd:string"/>
      <xsd:attribute name="nazwa" type="xsd:string"/>
      <xsd:attribute name="hashZaszyfrowany" type="xsd:string"/>
      <xsd:attribute name="hashJawny" type="xsd:string"/>
      <xsd:attribute name="typZawiadomienia" type="xsd:long" use="required"/>
      <xsd:attribute name="dataOtrzymania" type="xsd:dateTime"/>
      <xsd:attribute name="status" type="plk:TypStatusuT" use="required"/>
   </xsd:complexType>
   <xsd:complexType name="ZalacznikZawiadomieniaT">
      <xsd:sequence/>
      <xsd:attribute name="zziId" type="xsd:long"/>
      <xsd:attribute name="nazwa" type="xsd:string" use="required"/>
      <xsd:attribute name="hashZaszyfrowany" type="xsd:string"/>
      <xsd:attribute name="hashJawny" type="xsd:string"/>
      <xsd:attribute name="dataOtrzymania" type="xsd:dateTime" use="required"/>
   </xsd:complexType>
   <xsd:element name="pliki" type="plk:StatusyPlikowT"/>
   <xsd:element name="zawiadomienia" type="plk:ZawiadomieniaT"/>
   <xsd:element name="plik" type="plk:StatusPlikuT"/>
   <xsd:element name="zawiadomienie" type="plk:StatusZawiadomieniaT"/>
   <xsd:element name="zalacznik" type="plk:ZalacznikZawiadomieniaT"/>
   <xsd:simpleType name="TypStatusuT">
      <xsd:restriction base="xsd:string">
         <xsd:enumeration value="Z"/>
         <xsd:enumeration value="O"/>
         <xsd:enumeration value="P"/>
         <xsd:enumeration value="R"/>
         <xsd:enumeration value="X"/>
         <xsd:enumeration value="W"/>
      </xsd:restriction>
   </xsd:simpleType>
</xsd:schema>
