<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:zwi="http://www.giif.mofnet.gov.pl/xsd/zawiadomienia20171017" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.giif.mofnet.gov.pl/xsd/zawiadomienia20171017" elementFormDefault="qualified">
   <xsd:complexType name="RejestracjaZawiadomieniaT">
      <xsd:sequence>
         <xsd:element name="numerPisma">
            <xsd:simpleType>
               <xsd:restriction base="xsd:string">
                  <xsd:maxLength value="32"/>
               </xsd:restriction>
            </xsd:simpleType>
         </xsd:element>
         <xsd:element name="uzasadnienie" minOccurs="0">
            <xsd:simpleType>
               <xsd:restriction base="xsd:string">
                  <xsd:maxLength value="4096"/>
               </xsd:restriction>
            </xsd:simpleType>
         </xsd:element>
         <xsd:element name="podmiot" type="zwi:PodmiotZawiadomieniaT" minOccurs="0" maxOccurs="unbounded"/>
         <xsd:element name="plik" type="zwi:PlikZalacznikaT" minOccurs="0" maxOccurs="unbounded"/>
      </xsd:sequence>
      <xsd:attribute name="nipIO" type="xsd:string" use="required"/>
      <xsd:attribute name="rodzajZawiadomienia" type="xsd:long"/>
      <xsd:attribute name="date" type="xsd:date" use="required"/>
      <xsd:attribute name="podjeteDzialanie" type="xsd:long"/>
   </xsd:complexType>
   <xsd:complexType name="PodmiotZawiadomieniaT">
      <xsd:sequence>
         <xsd:element name="dokument" type="zwi:DokumentT" minOccurs="0"/>
         <xsd:element name="imie" minOccurs="0">
            <xsd:simpleType>
               <xsd:restriction base="xsd:string">
                  <xsd:maxLength value="32"/>
               </xsd:restriction>
            </xsd:simpleType>
         </xsd:element>
         <xsd:element name="nazwisko" minOccurs="0">
            <xsd:simpleType>
               <xsd:restriction base="xsd:string">
                  <xsd:maxLength value="32"/>
               </xsd:restriction>
            </xsd:simpleType>
         </xsd:element>
         <xsd:element name="nazwa" minOccurs="0">
            <xsd:simpleType>
               <xsd:restriction base="xsd:string">
                  <xsd:maxLength value="140"/>
               </xsd:restriction>
            </xsd:simpleType>
         </xsd:element>
         <xsd:element name="kraj" minOccurs="0">
            <xsd:simpleType>
               <xsd:restriction base="xsd:string">
                  <xsd:maxLength value="2"/>
               </xsd:restriction>
            </xsd:simpleType>
         </xsd:element>
      </xsd:sequence>
      <xsd:attribute name="typPodmiotu" type="zwi:TypPodmiotuZawiadomieniaT" use="required"/>
      <xsd:attribute name="PESEL" type="xsd:string"/>
      <xsd:attribute name="dataUrodzenia" type="xsd:date"/>
      <xsd:attribute name="plec" type="zwi:PlecPodmiotuZawiadomieniaT"/>
      <xsd:attribute name="NIP" type="xsd:string"/>
      <xsd:attribute name="REGON" type="xsd:string"/>
   </xsd:complexType>
   <xsd:complexType name="DokumentT">
      <xsd:simpleContent>
         <xsd:extension base="xsd:string">
            <xsd:attribute name="rodzaj" type="xsd:string" use="required"/>
         </xsd:extension>
      </xsd:simpleContent>
   </xsd:complexType>
   <xsd:complexType name="PlikZalacznikaT">
      <xsd:simpleContent>
         <xsd:extension base="xsd:string">
            <xsd:attribute name="sumaKontrolna" type="xsd:string" use="required"/>
         </xsd:extension>
      </xsd:simpleContent>
   </xsd:complexType>
   <xsd:element name="rejestracjaZawiadomienia" type="zwi:RejestracjaZawiadomieniaT"/>
   <xsd:simpleType name="TypPodmiotuZawiadomieniaT">
      <xsd:restriction base="xsd:string">
         <xsd:enumeration value="1"/>
         <xsd:enumeration value="2"/>
      </xsd:restriction>
   </xsd:simpleType>
   <xsd:simpleType name="PlecPodmiotuZawiadomieniaT">
      <xsd:restriction base="xsd:string">
         <xsd:enumeration value="K"/>
         <xsd:enumeration value="M"/>
      </xsd:restriction>
   </xsd:simpleType>
</xsd:schema>
