<?xml version="1.0" encoding="UTF-8" ?>
<!-- podľa § 15i zákona č. 359/2015 Z.z. o automatickej výmene informácií o finančných účtoch na účely správy daní a o zmene a doplnení niektorých zákonov v znení neskorších predpisov (ďalej len „zákon č. 359/2015“) 
// pursuant to Article 15(i) of the Act No 359/2015 Coll. on automatic exchange of information on financial accounts for tax administration purposes
and on the amendment and supplement of certain acts, as amended (hereinafter referred to as ‘the Act No 359/2015’) -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    <xsd:annotation>
        <xsd:documentation>REG_DAC8</xsd:documentation>
    </xsd:annotation>
    <xsd:simpleType name="emptyStr">
        <xsd:restriction base="xsd:string">
            <xsd:enumeration value=""/>
        </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="only_0_1">
        <xsd:restriction base="xsd:decimal">
            <xsd:totalDigits value="1"/>
            <xsd:pattern value="[0-1]"/>
        </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="oneFieldDate">
        <xsd:restriction base="xsd:string">
            <xsd:pattern value="\d\d?\.\d\d?\.\d\d\d\d"/>
        </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="optOneFieldDate">
        <xsd:union memberTypes="oneFieldDate emptyStr"/>
    </xsd:simpleType>
    <!-- root element -->
    <xsd:element name="dokument">
        <xsd:complexType>
            <xsd:annotation>
                <xsd:documentation>
                    root element
                </xsd:documentation>
            </xsd:annotation>
            <xsd:sequence>
                <xsd:element name="hlavicka" type="hlavickaType"/>
                <xsd:element name="telo" type="teloType"/>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
    <xsd:complexType name="identifikacneUdajeType">
        <xsd:sequence>
            <xsd:element name="titul" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>Title</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="titulZa" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>Suffix</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="meno" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>First name</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="priezvisko" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>Last name</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="obchodneMeno" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>Business/Company name</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="kontaktneInformacieType">
        <xsd:sequence>
            <xsd:element name="adresa" type="adresaType">
                <xsd:annotation>
                    <xsd:documentation>Address of Residence/Permanent Residence/Head Office/Business</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="email" type="xsd:string"/>
            <xsd:element name="weboveSidla">
                <xsd:annotation>
                    <xsd:documentation>Websites node</xsd:documentation>
                </xsd:annotation>
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element maxOccurs="unbounded" name="weboveSidlo" type="xsd:string">
                            <xsd:annotation>
                                <xsd:documentation>website</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
            <xsd:element name="clenskeStatyRezidencie" type="clenskeStatyRezidencieType">
                <xsd:annotation>
                    <xsd:documentation>Member states of residence for tax purposes pursuant to Article 15i(4)(e) of the Act No 359/2015</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="kvalifikovaneZmluvneStaty" minOccurs="0"
                type="kvalifikovaneZmluvneStatyType">
                <xsd:annotation>
                    <xsd:documentation>Qualifying contracting states pursuant to Article 15h(3 to 7) of the Act No 359/2015</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="vyhlasenie" type="vyhlasenieType"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="kvalifikovaneZmluvneStatyType">
        <xsd:sequence>
            <xsd:element minOccurs="1" name="zoznamKvalStatov">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element maxOccurs="unbounded" name="kvalifikovanyStat"
                            type="kvalifikovanyStatType">
                            <xsd:annotation>
                                <xsd:documentation>Qualified state node</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="par15Type">
        <xsd:sequence>
            <xsd:element name="par15h">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="par15hOds3" type="only_0_1">
                            <xsd:annotation>
                                <xsd:documentation>pursuant to Article 15h(3) of the Act No 359/2015</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="par15hOds4" type="only_0_1">
                            <xsd:annotation>
                                <xsd:documentation>pursuant to Article 15h(4) of the Act No 359/2015</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="par15hOds5" type="only_0_1">
                            <xsd:annotation>
                                <xsd:documentation>pursuant to Article 15h(5) of the Act No 359/2015</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="par15hOds6" type="only_0_1">
                            <xsd:annotation>
                                <xsd:documentation>pursuant to Article 15h(6) of the Act No 359/2015</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="par15hOds7" type="only_0_1">
                            <xsd:annotation>
                                <xsd:documentation>pursuant to Article 15h(7) of the Act No 359/2015</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="kvalifikovanyStatType">
        <xsd:sequence>
            <xsd:element name="stat" type="statType"/>
            <xsd:element name="par15" type="par15Type"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="clenskeStatyRezidencieType">
        <xsd:sequence>
            <xsd:element maxOccurs="unbounded" name="clenskyStat" type="statType">
                <xsd:annotation>
                    <xsd:documentation>Member state node</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="adresaType">
        <xsd:sequence>
            <xsd:element name="ulica" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>Street</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="supisneCislo" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>Property No.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="orientacneCislo" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>Building No.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="psc" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>Postal code</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="mesto" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>City</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="stat" type="statType">
                <xsd:annotation>
                    <xsd:documentation>Country</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="hlavickaType">
        <xsd:sequence>
            <xsd:element name="ziadostORegistraciu" type="only_0_1" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>Request for registration</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="ziadostORegistraciuPodla" type="ziadostORegistraciuType"
                minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>Request for registration based on</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="ziadostoOpatovnuRegistraciu" type="ziadostORegistraciuType"
                minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>Request for re-registration</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="oznamenieZmenyUdajov" type="OznamenieZmenyUdajovType" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>Update of the submitted registration data pursuant to Article 15i(8) of Act No 359/2015</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="ziadostOZrusenie" type="ziadostOZrusenieType" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>Request for deregistration</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="dicSubjektType">
        <xsd:sequence>
            <xsd:element name="DIC" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>TIN</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="statPrideleniaDIC" type="statType">
                <xsd:annotation>
                    <xsd:documentation>Country of issue</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="ICDPHSubjektType">
        <xsd:sequence>
            <xsd:element name="ICDPH" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>VAT REGISTRATION NUMBER</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="statPrideleniaICDPH" type="statType">
                <xsd:annotation>
                    <xsd:documentation>Country of issue</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="vyhlasenieType">
        <xsd:sequence>
            <xsd:element name="vyhlasujem" type="only_0_1">
                <xsd:annotation>
                    <xsd:documentation>I hereby declare that all the information submitted in this form is valid and true.</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="datum" type="optOneFieldDate">
                <xsd:annotation>
                    <xsd:documentation>Date</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="ziadostOZrusenieType">
        <xsd:sequence>
            <xsd:element name="ziadostOZrusenieRegistracie" type="only_0_1">
                <xsd:annotation>
                    <xsd:documentation>Checkbox for request for deregistration</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="datumZmeny" type="optOneFieldDate">
                <xsd:annotation>
                    <xsd:documentation>Date when circumstances changed</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="zrusenieRegistraciePodla" type="zrusenieRegistraciePodlaType">
                <xsd:annotation>
                    <xsd:documentation>Request for deregistration reason</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="zrusenieRegistraciePodlaType">
        <xsd:sequence>
            <xsd:element name="par15iOds13pismA" type="only_0_1">
                <xsd:annotation>
                    <xsd:documentation>pursuant to Article 15i(13)(a) of the Act No 359/2015</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="par15iOds13pismC" type="only_0_1">
                <xsd:annotation>
                    <xsd:documentation>pursuant to Article 15i(13)(c) of the Act No 359/2015</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="zDovoduZmenyStatu" type="zmenaStatuType" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>due to the change of the state of registration pursuant to Article 15i(8) of the Act No 359/2015</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="inyDovod" type="inyDovodNaZrusenieType" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>other reason for deregistration</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="zmenaStatuType">
        <xsd:sequence>
            <xsd:element name="par15iOds8" type="only_0_1">
                <xsd:annotation>
                    <xsd:documentation>Checkbox for due to the change of the state of registration pursuant to Article 15i(8) of the Act No 359/2015</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="novyStat" type="statType">
                <xsd:annotation>
                    <xsd:documentation>New state of registration</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="inyDovodNaZrusenieType">
        <xsd:sequence>
            <xsd:element name="inyDovodNaZrusenieRegistracie" type="only_0_1">
                <xsd:annotation>
                    <xsd:documentation>checkbox for other reason for deregistration</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="uvedenyDovod" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>Reason for deregistration</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="statType">
        <xsd:sequence>
            <xsd:element name="nazov" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>State</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="kodStatu" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>State code</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="OznamenieZmenyUdajovType">
        <xsd:sequence>
            <xsd:element name="oznamenieZmenyUdajovPar15iOds8" type="only_0_1">
                <xsd:annotation>
                    <xsd:documentation>Chechbox for update of the submitted registration data pursuant to Article 15i(8) of Act No 359/2015</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="datumZmeny" type="optOneFieldDate">
                <xsd:annotation>
                    <xsd:documentation>Date when circumstances changed</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="teloType">
        <xsd:sequence>
            <xsd:element name="individualneIdentifikacneCisloDAC8" type="xsd:string" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>Individual identification Number (for the purpose of DAC8)</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="DICSubjekty">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element maxOccurs="unbounded" name="DICSubjekt" type="dicSubjektType">
                            <xsd:annotation>
                                <xsd:documentation>TIN node</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
            <xsd:element name="ICDPHSubjekty" minOccurs="0">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element maxOccurs="unbounded" name="ICDPHSubjekt"
                            type="ICDPHSubjektType">
                            <xsd:annotation>
                                <xsd:documentation>VAT REGISTRATION node</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
            <xsd:element name="identifikacneUdaje" type="identifikacneUdajeType">
                <xsd:annotation>
                    <xsd:documentation>Identification data</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="kontaktneUdaje" type="kontaktneInformacieType"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="ziadostORegistraciuType">
        <xsd:sequence>
            <xsd:element name="par15Ods1" type="par15Ods1Type">
                <xsd:annotation>
                    <xsd:documentation>pursuant to Article 15i(1) of the Act No 359/2015</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="par15Ods2" type="only_0_1">
                <xsd:annotation>
                    <xsd:documentation>pursuant to Article 15h(2) of the Act No 359/2015</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="ziadostORegistraciuPodlaPar15Ods1Type">
        <xsd:sequence>
            <xsd:element name="par15Ods1PismBbod1" type="only_0_1">
                <xsd:annotation>
                    <xsd:documentation>/pursuant to Article 15h(1)(b), point 1, of Act No 359/2015</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="par15Ods1PismBbod2" type="only_0_1">
                <xsd:annotation>
                    <xsd:documentation>pursuant to Article 15h(1)(b), point 2, of Act No 359/2015</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="par15Ods1PismBbod3" type="only_0_1">
                <xsd:annotation>
                    <xsd:documentation>pursuant to Article 15h(1)(b), point 3, of Act No 359/2015</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="par15Ods1PismBbod4" type="only_0_1">
                <xsd:annotation>
                    <xsd:documentation>pursuant to Article 15h(1)(b), point 4, of Act No 359/2015</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="par15Ods1Type">
        <xsd:sequence>
            <xsd:element name="par15Ods1" type="only_0_1">
                <xsd:annotation>
                    <xsd:documentation>checkbox for pursuant to Article 15h(1)(b), point 1, of Act No 359/2015</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="bodPrePar15Ods1" type="ziadostORegistraciuPodlaPar15Ods1Type"/>
        </xsd:sequence>
    </xsd:complexType>
</xsd:schema>
