﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:annotation>
        <xs:documentation xml:lang="cs">Centrální evidence účtů - struktura dotazu a odpovědi</xs:documentation>
    </xs:annotation>

    <!-- struktura dotazu -->
    <xs:complexType name="DotazType">
        <xs:sequence>

            <xs:element name="TypDotazu" minOccurs="1">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Typ dotazu :
                        1 - FO s RČ
                        2 - FO s rokem narození	
                        3 - FO bez RČ
                        4 - FO s IČO
                        5 - PO a jiné osoby s identifikací
                        6 - PO a jiné osoby bez identifikace
                        7a- Svěřenský fond nebo jemu svou strukturou nebo funkcemi podobné zařízení řídící se právem jiného státu - fyzická osoba identifikovaná rodným číslem
                        7b- Svěřenský fond nebo jemu svou strukturou nebo funkcemi podobné zařízení řídící se právem jiného státu - fyzická osoba identifikovaná jménem, příjmením, rokem narození a adresou bydliště/pobytu 
                        7c- Svěřenský fond nebo jemu svou strukturou nebo funkcemi podobné zařízení řídící se právem jiného státu - fyzická osoba identifikovaná jménem a příjmením a datem narození
                        7d- Svěřenský fond nebo jemu svou strukturou nebo funkcemi podobné zařízení řídící se právem jiného státu - fyzická osoba podnikatel, identifikovaná IČO 
                        7e- Svěřenský fond nebo jemu svou strukturou nebo funkcemi podobné zařízení řídící se právem jiného státu - právnická osoba identifikovaná identifikačním kódem 
                        7f- Svěřenský fond nebo jemu svou strukturou nebo funkcemi podobné zařízení řídící se právem jiného státu - právnická osoba bez identifikačního kódu
                        8 - Účet - předčíslí a číslo účtu
                        8a- Účet - formát IBAN
                        
                     </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="1|2|3|4|5|6|7a|7b|7c|7d|7e|7f|8|8a"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="NazevZadatele" minOccurs="1">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Informace o žadateli o předání údajů - Název žadatele</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="100"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="JmenoaPrijmeniZamestnance" minOccurs="1">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Informace o žadateli o předání údajů - Jméno a příjmení zaměstnance</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="100"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="InterniIdentifikaceZamestnance" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Informace o žadateli o předání údajů - Interní identifikace zaměstnance</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="100"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="OsobaNaridila" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Informace o osobě, která nařídila předání žádosti</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="100"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="OsobaPrijemce" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Informace o osobě, která je konečným příjemcem předaných dat</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="300"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SpisovaZnackaRizeni" minOccurs="1">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Identifikace žádosti o předání údajů - Spisová značka řízení</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="100"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="OznaceniRizeni" minOccurs="1">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Identifikace žádosti o předání údajů - označení řízení. Orgán, který dle § 7, odst. 1 zákona označení řízení neuvádí, zadá hodnotu „NENÍ“.</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="300"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="DatumCasVytvoreniDotazu" minOccurs="1">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Identifikace žádosti o předání údajů - Datum a čas vytvoření dotazu ve tvaru RRRR-MM-DDTHH:MM:SS</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:dateTime"/>
                </xs:simpleType>
            </xs:element>
            <xs:element name="PozadovanyUdajeoDisponentech" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Identifikace žádosti o předání údajů - Požadovány údaje o disponentech, Ano/Ne</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="A|N"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="FORodneCislo" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Fyzická osoba - Rodné číslo</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="FOJmeno" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Fyzická osoba - Jméno</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="FOPrijmeni" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Fyzická osoba - Příjmení</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="FODatumNarozeni" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Fyzická osoba - Datum narození ve tvaru RRRR-MM-DD</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:date"/>
                </xs:simpleType>
            </xs:element>
            <xs:element name="FORokNarozeni" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Fyzická osoba - Rok narození ve tvaru RRRR</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:gYear"/>
                </xs:simpleType>
            </xs:element>
            <xs:element name="FOAdresaUlice" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Fyzická osoba - Adresa - Ulice</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="FOAdresaCisloPopisne" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Fyzická osoba - Adresa - Číslo popisné</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="FOAdresaCisloOrientacni" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Fyzická osoba - Adresa - Číslo orientační</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="FOAdresaObec" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Fyzická osoba - Adresa - Obec</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="FOAdresaPSC" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Fyzická osoba - Adresa - PSČ</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="FOAdresaZeme" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Fyzická osoba - Adresa - Země</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="2"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="FOIdentifikacniKod" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Fyzická osoba - Identifikační kód</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="30"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="FOTypIdentifikacnihoKodu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Fyzická osoba - Typ identifikačního kódu
                        IC	- IČO
                        LEI	- Legal Entity Identifier
                        ZIC	- Zahraniční IČO
                        NID	- Náhradní identifikace
                        IID	- Interní identifikace
                        DIC	- Daňové identifikační číslo
                        ISF	- Identifikační číslo svěřenského fondu
                    </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="IC|LEI|ZIC|NID|IID|DIC|ISF"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="FONazev" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Fyzická osoba - Název</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="180"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="POIdentifikacniKod" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Právnická a jiná osoba - Identifikační kód</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="30"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="POTypIdentifikacnihoKodu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Právnická a jiná osoba - Typ identifikačního kódu
                        IC	- IČO
                        LEI	- Legal Entity Identifier
                        ZIC	- Zahraniční IČO
                        NID	- Náhradní identifikace
                        IID	- Interní identifikace
                        DIC	- Daňové identifikační číslo
                        ISF	- Identifikační číslo svěřenského fondu
                    </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="IC|LEI|ZIC|NID|IID|DIC|ISF"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="PONazev" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Právnická a jiná osoba - Název</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="180"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="POAdresaUlice" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Právnická a jiná osoba - Adresa - Ulice</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="POAdresaCisloPopisne" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Právnická a jiná osoba - Adresa - Číslo popisné</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="POAdresaCisloOrientacni" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Právnická a jiná osoba - Adresa - Číslo orientační</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="POAdresaObec" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Právnická a jiná osoba - Adresa - Obec</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="POAdresaPSC" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Právnická a jiná osoba - Adresa - PSČ</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="POAdresaZeme" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Právnická a jiná osoba - Adresa - Země</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="2"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SNazev" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Název svěřenského fondu</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="180"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SPOIdentifikacniKod" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Správce svěřenského fondu - právnická osoba - Identifikační kód</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="30"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SPOTypIdentifikacnihoKodu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Správce svěřenského fondu - právnická osoba - Typ identifikačního kódu
                        IC	- IČO
                        LEI	- Legal Entity Identifier
                        ZIC	- Zahraniční IČO
                        NID	- Náhradní identifikace
                        IID	- Interní identifikace
                        DIC	- Daňové identifikační číslo
                        ISF	- Identifikační číslo svěřenského fondu
                    </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="IC|LEI|ZIC|NID|IID|DIC|ISF"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SPONazev" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Správce svěřenského fondu - právnická osoba - Název</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="180"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SPOAdresaUlice" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Správce svěřenského fondu - právnická osoba - Adresa - Ulice</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SPOAdresaCisloPopisne" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Správce svěřenského fondu - právnická osoba - Adresa - Číslo popisné</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SPOAdresaCisloOrientacni" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Správce svěřenského fondu - právnická osoba - Adresa - Číslo orientační</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SPOAdresaObec" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Správce svěřenského fondu - právnická osoba - Adresa - Obec</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SPOAdresaPSC" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Správce svěřenského fondu - právnická osoba - Adresa - PSČ</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SPOAdresaZeme" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Správce svěřenského fondu - právnická osoba - Adresa - Země</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="2"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>

            <xs:element name="SFORodneCislo" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Správce svěřenského fondu - fyzická osoba - Rodné číslo</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SFOJmeno" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Správce svěřenského fondu - fyzická osoba - Jméno</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SFOPrijmeni" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Správce svěřenského fondu - fyzická osoba - Příjmení</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SFODatumNarozeni" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Správce svěřenského fondu - fyzická osoba - Datum narození ve tvaru RRRR-MM-DD</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:date"/>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SFORokNarozeni" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Správce svěřenského fondu - fyzická osoba - Rok narození ve tvaru RRRR</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:gYear"/>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SFOAdresaUlice" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Správce svěřenského fondu - fyzická osoba - Adresa - Ulice</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SFOAdresaCisloPopisne" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Správce svěřenského fondu - fyzická osoba - Adresa - Číslo popisné</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SFOAdresaCisloOrientacni" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Správce svěřenského fondu - fyzická osoba - Adresa - Číslo orientační</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SFOAdresaObec" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Správce svěřenského fondu - fyzická osoba - Adresa - Obec</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SFOAdresaPSC" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Správce svěřenského fondu - fyzická osoba - Adresa - PSČ</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SFOAdresaZeme" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Správce svěřenského fondu - fyzická osoba - Adresa - Země</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="2"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SFOIdentifikacniKod" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Správce svěřenského fondu - fyzická osoba - Identifikační kód</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="30"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SFOTypIdentifikacnihoKodu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Správce svěřenského fondu - fyzická osoba - Typ identifikačního kódu
                        IC	- IČO
                        LEI	- Legal Entity Identifier
                        ZIC	- Zahraniční IČO
                        NID	- Náhradní identifikace
                        IID	- Interní identifikace
                        DIC	- Daňové identifikační číslo
                        ISF	- Identifikační číslo svěřenského fondu
                    </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="IC|LEI|ZIC|NID|IID|DIC|ISF"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SFONazev" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Správce svěřenského fondu - fyzická osoba - Název</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="180"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>

            <xs:element name="PredcisliUctu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Účet - předčíslí účtu</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="[0-9]{6}"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="CisloUctu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Účet - číslo účtu</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="[0-9]{10}"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="Iban" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Účet - identifikace pomocí IBAN</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="24"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="IdentifikacniKodUveroveInstituce" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Účet - Identifikační kód instituce</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="30"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="NazevUveroveInstituce" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Název instituce</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="180"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>

        </xs:sequence>
    </xs:complexType>

    <!-- struktura záznamu v CEU -->
    <xs:complexType name="ZaznamType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">Záznam s údaji o účtu vedeném v Centrální evidenci účtů.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Datum" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Datum aktivity</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:date"/>
                </xs:simpleType>
            </xs:element>
            <xs:element name="Aktivita" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Aktivita ve vztahu k účtu
                        ZA Nový zápis 
                        ZM Změna původního zápisu 
                        ZR Ukončení platnosti původního zápisu 
                    </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="ZA|ZM|ZR"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="IdentifikacniKodUveroveInstituce" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Identifikační kód instituce</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="50"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="NazevUveroveInstituce" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Název instituce</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="180"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="PredcisliUctu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Předčíslí čísla účtu</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="[0-9]{6}"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="CisloUctu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Číslo účtu</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="[0-9]{10}"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="Iban" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Účet - identifikace pomocí IBAN</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="24"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="DruhUctu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Druh účtu
                          10 Běžný účet 
                          20 Vkladový/spořící účet 
                          30 Úvěrový účet 
                          40 Majetkový účet 
                          90 Ostatní účty 
                    </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="10|20|30|40|90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="TypVztahuKUctu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Typ vztahu k účtu
                          D disponent (osoba oprávněná nakládat s účtem) 
                          M majitel 
			  S skutečný majitel
			  P osoba s plnou mocí
                    </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="D|M|S|P"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="TypOsoby" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Typ osoby
                          430 Právnická osoba 
                          440 Fyzická osoba 
                          470 Podnikající fyzická osoba 
                          954 Svěřenský fond nebo jemu svou strukturou nebo funkcemi podobné zařízení řídící se právem jiného státu 
                          958 Jiná osoba bez právní osobnosti 
                    </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="430|440|470|954|958"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="JmenoFyzickeOsoby" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Jméno fyzické osoby</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="PrijmeniFyzickeOsoby" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Příjmení fyzické osoby</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="RodneCisloFyzickeOsoby" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Rodné číslo fyzické osoby</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="[0-9]{9,10}"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="DatumNarozeniFyzickeOsoby" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Datum narození fyzické osoby</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:date"/>
                </xs:simpleType>
            </xs:element>
            <xs:element name="IdentifikacniKodSubjektu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Identifikační kód subjektu</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="30"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="TypIdentifikacnihoKoduSubjektu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Typ identifikačního kódu subjektu
                        IC IČO 
                        IID Interní identifikace 
                        LEI Legal Entity Identifier 
                        NID Náhradní identifikace 
                        ZIC Zahraniční IČO 
                        DIC Daňové identifikační číslo 
                        ISF Identifikační číslo svěřenského fondu
                    </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="IC|IID|LEI|NID|ZIC|DIC|ISF"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="NazevSubjektu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Název subjektu</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="180"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="IdentifikacniKodSpravceSverenskehoFondu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Identifikační kód správce svěřenského fondu</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="30"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="TypIdentifikacnihoKoduSpravceSverenskehoFondu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Typ identifikačního kódu správce svěřenského fondu
                        IC IČO 
                        IID Interní identifikace 
                        LEI Legal Entity Identifier 
                        NID Náhradní identifikace 
                        ZIC Zahraniční IČO 
                        DIC Daňové identifikační číslo 
                        ISF Identifikační číslo svěřenského fondu
                    </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="IC|IID|LEI|NID|ZIC|DIC|ISF"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="NazevSpravceSverenskehoFondu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Název správce svěřenského fondu</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="180"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="JmenoSpravceSverenskehoFondu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Jméno správce svěřenského fondu</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="PrijmeniSPravceSverenskehoFondu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Příjmení správce svěřenského fondu</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="RodneCisloSpravceSverenskehoFondu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Rodné číslo správce svěřenského fondu</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="[0-9]{9,10}"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="DatumNarozeniSpravceSverenskehoFondu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Datum narození správce svěřenského fondu</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:date"/>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaPobytuSidlaUlice" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa pobytu/sídla - ulice</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaPobytuSidlaCisloPopisne" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa pobytu/sídla – číslo popisné</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaPobytuSidlaCisloOrientacni" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa pobytu/sídla – číslo orientační</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaPobytuSidlaObec" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa pobytu/sídla - obec</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaPobytuSidlaPSC" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa pobytu/sídla - PSČ</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaPobytuSidlaZeme" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa pobytu/sídla - země</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="2"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaFOproDorucovaniUlice" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa FO pro doručování - ulice</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaFOproDorucovaniCisloPopisne" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa FO pro doručování – číslo popisné</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaFOproDorucovaniCisloOrientacni" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa FO pro doručování – číslo orientační</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaFOproDorucovaniObec" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa FO pro doručování - obec</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaFOproDorucovaniPSC" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa FO pro doručování - PSČ</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaFOproDorucovaniZeme" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa FO pro doručování - země</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="2"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="DatumCasVytvoreniZaznamuvDB" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Datum a čas vytvoření záznamu v DB</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:dateTime"/>
                </xs:simpleType>
            </xs:element>

        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="ZaznamBSType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">Záznam s údaji o bezpečnostní schránce vedeném v Centrální evidenci účtů.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Datum" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Datum aktivity</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:date"/>
                </xs:simpleType>
            </xs:element>
            <xs:element name="Aktivita" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Aktivita ve vztahu k bezpečnostní schránce
                        ZA Nový zápis 
                        ZM Změna původního zápisu 
                        ZR Ukončení platnosti původního zápisu 
                    </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="ZA|ZM|ZR"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="IdentifikacniKodUveroveInstituce" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Identifikační kód instituce</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="50"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="NazevUveroveInstituce" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Název instituce</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="180"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="CisloBS" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Číslo bezpečnostní schránky</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="40"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="DatumZahajeni" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Datum zahájení pronájmu</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:date"/>
                </xs:simpleType>
            </xs:element>
            <xs:element name="DatumUkonceni" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Datum ukončení pronájmu</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:date"/>
                </xs:simpleType>
            </xs:element>
            <xs:element name="TypVztahuKBS" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Typ vztahu k účtu
                          D disponent (osoba oprávněná nakládat s bezpečnostní schránkou) 
                          M nájemce bezpečnostní schránky
			  S skutečný majitel
			  P osoba s plnou mocí
                    </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="D|M|S|P"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="TypOsoby" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Typ osoby
                          430 Právnická osoba 
                          440 Fyzická osoba 
                          470 Podnikající fyzická osoba 
                          954 Svěřenský fond nebo jemu svou strukturou nebo funkcemi podobné zařízení řídící se právem jiného státu 
                          958 Jiná osoba bez právní osobnosti 
                    </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="430|440|470|954|958"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="JmenoFyzickeOsoby" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Jméno fyzické osoby</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="PrijmeniFyzickeOsoby" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Příjmení fyzické osoby</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="RodneCisloFyzickeOsoby" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Rodné číslo fyzické osoby</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="[0-9]{9,10}"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="DatumNarozeniFyzickeOsoby" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Datum narození fyzické osoby</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:date"/>
                </xs:simpleType>
            </xs:element>
            <xs:element name="IdentifikacniKodSubjektu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Identifikační kód subjektu</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="30"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="TypIdentifikacnihoKoduSubjektu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Typ identifikačního kódu subjektu
                        IC IČO 
                        IID Interní identifikace 
                        LEI Legal Entity Identifier 
                        NID Náhradní identifikace 
                        ZIC Zahraniční IČO 
                        DIC Daňové identifikační číslo 
                        ISF Identifikační číslo svěřenského fondu
                    </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="IC|IID|LEI|NID|ZIC|DIC|ISF"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="NazevSubjektu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Název subjektu</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="180"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="IdentifikacniKodSpravceSverenskehoFondu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Identifikační kód správce svěřenského fondu</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="30"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="TypIdentifikacnihoKoduSpravceSverenskehoFondu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Typ identifikačního kódu správce svěřenského fondu
                        IC IČO 
                        IID Interní identifikace 
                        LEI Legal Entity Identifier 
                        NID Náhradní identifikace 
                        ZIC Zahraniční IČO 
                        DIC Daňové identifikační číslo 
                        ISF Identifikační číslo svěřenského fondu
                    </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="IC|IID|LEI|NID|ZIC|DIC|ISF"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="NazevSpravceSverenskehoFondu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Název správce svěřenského fondu</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="180"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="JmenoSpravceSverenskehoFondu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Jméno správce svěřenského fondu</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="PrijmeniSPravceSverenskehoFondu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Příjmení správce svěřenského fondu</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="RodneCisloSpravceSverenskehoFondu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Rodné číslo správce svěřenského fondu</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:pattern value="[0-9]{9,10}"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="DatumNarozeniSpravceSverenskehoFondu" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Datum narození správce svěřenského fondu</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:date"/>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaPobytuSidlaUlice" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa pobytu/sídla - ulice</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaPobytuSidlaCisloPopisne" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa pobytu/sídla – číslo popisné</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaPobytuSidlaCisloOrientacni" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa pobytu/sídla – číslo orientační</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaPobytuSidlaObec" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa pobytu/sídla - obec</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaPobytuSidlaPSC" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa pobytu/sídla - PSČ</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaPobytuSidlaZeme" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa pobytu/sídla - země</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="2"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaFOproDorucovaniUlice" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa FO pro doručování - ulice</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaFOproDorucovaniCisloPopisne" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa FO pro doručování – číslo popisné</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaFOproDorucovaniCisloOrientacni" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa FO pro doručování – číslo orientační</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaFOproDorucovaniObec" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa FO pro doručování - obec</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="90"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaFOproDorucovaniPSC" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa FO pro doručování - PSČ</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="10"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="AdresaFOproDorucovaniZeme" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa FO pro doručování - země</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="2"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="DatumCasVytvoreniZaznamuvDB" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Datum a čas vytvoření záznamu v DB</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:dateTime"/>
                </xs:simpleType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>


    <!-- Dotaz  -->
    <xs:complexType name="CEU_DotazType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">CEU Dotaz - struktura dotazu zasílaného do CEU</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Dotaz" type="DotazType">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Dotaz - jednotlivé pole struktura dotazu zasílaného do CEU</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>

    <!-- Odpověď  -->
    <xs:complexType name="CEU_OdpovedType">
        <xs:sequence>
            <xs:element name="Odpoved">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="Dotaz" type="DotazType" minOccurs="0">
                            <xs:annotation>
                                <xs:documentation xml:lang="cs">Dotaz - je zde uveden/zopakovaný dotaz zaslaný oprávněnou osobou, podle kterého byly vybrány záznamy z CEU</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="StavZpracovani">
                            <xs:annotation>
                                <xs:documentation xml:lang="cs">Stav zpracování dotazu - informace o výsledku zpracování dotazu</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                                <xs:sequence>

                                    <xs:element name="Stav">
                                        <xs:annotation>
                                            <xs:documentation xml:lang="cs">Stav - výsledku zpracování
                                                OK    - dotaz zpracován bez chyby
                                                CHYBA - dotaz zpracován s chybou, viz KodChyby a PopisChyby
                                            </xs:documentation>
                                        </xs:annotation>
                                        <xs:simpleType>
                                            <xs:restriction base="xs:string">
                                                <xs:pattern value="OK|CHYBA"/>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:element>
                                    <xs:element name="KodChyby" minOccurs="0">
                                        <xs:annotation>
                                            <xs:documentation xml:lang="cs">Kód chyby - kód chyby při zpracování dotazu</xs:documentation>
                                        </xs:annotation>
                                        <xs:simpleType>
                                            <xs:restriction base="xs:string">
                                                <xs:maxLength value="10"/>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:element>
                                    <xs:element name="PopisChyby" minOccurs="0">
                                        <xs:annotation>
                                            <xs:documentation xml:lang="cs">Popis chyby - popis chyby při zpracování dotazu</xs:documentation>
                                        </xs:annotation>
                                        <xs:simpleType>
                                            <xs:restriction base="xs:string">
                                                <xs:maxLength value="4000"/>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:element>
                                    <xs:element name="DatumCasZpracovani">
                                        <xs:annotation>
                                            <xs:documentation xml:lang="cs">Datum a čas zpracování - datum a čas kdy byl zpracován dotaz v Centrální evidenci účtů</xs:documentation>
                                        </xs:annotation>
                                        <xs:simpleType>
                                            <xs:restriction base="xs:dateTime"/>
                                        </xs:simpleType>
                                    </xs:element>
                                    <xs:element name="PocetSouboru">
                                        <xs:annotation>
                                            <xs:documentation xml:lang="cs">Počet souborů - počet všech souborů celkem pro daný dotaz, může se stát, že pro jeden dotaz bude odpověď ve více souborech xml</xs:documentation>
                                        </xs:annotation>
                                        <xs:simpleType>
                                            <xs:restriction base="xs:string">
                                                <xs:maxLength value="10"/>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:element>
                                    <xs:element name="PocetZaznamu">
                                        <xs:annotation>
                                            <xs:documentation xml:lang="cs">Počet záznamů - počet všech záznamů účtů v odpovědi celkem pro daný dotaz, i když záznamy můžou být v odpovědi ve více xml souborech</xs:documentation>
                                        </xs:annotation>
                                        <xs:simpleType>
                                            <xs:restriction base="xs:string">
                                                <xs:maxLength value="10"/>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:element>
                                    <xs:element name="PocetZaznamuBS">
                                        <xs:annotation>
                                            <xs:documentation xml:lang="cs">Počet záznamů - počet všech záznamů bezpečnostních schránek v odpovědi celkem pro daný dotaz, i když záznamy můžou být v odpovědi ve více xml souborech</xs:documentation>
                                        </xs:annotation>
                                        <xs:simpleType>
                                            <xs:restriction base="xs:string">
                                                <xs:maxLength value="10"/>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:element>
                                    <xs:element name="PoradiSouboru">
                                        <xs:annotation>
                                            <xs:documentation xml:lang="cs">Pořadí souboru - pořadí souboru v rámci celkového počtu souborů "PocetSouboru" pro jeden dotaz</xs:documentation>
                                        </xs:annotation>
                                        <xs:simpleType>
                                            <xs:restriction base="xs:string">
                                                <xs:maxLength value="10"/>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:element>
                                    <xs:element name="PocetZaznamuvSouboru">
                                        <xs:annotation>
                                            <xs:documentation xml:lang="cs">Počet záznamů v souboru - počet záznamů účtů v tomto souboru</xs:documentation>
                                        </xs:annotation>
                                        <xs:simpleType>
                                            <xs:restriction base="xs:string">
                                                <xs:maxLength value="10"/>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:element>
                                    <xs:element name="PocetZaznamuBSvSouboru">
                                        <xs:annotation>
                                            <xs:documentation xml:lang="cs">Počet záznamů v souboru - počet záznamů bezpečnostních schránek  v tomto souboru</xs:documentation>
                                        </xs:annotation>
                                        <xs:simpleType>
                                            <xs:restriction base="xs:string">
                                                <xs:maxLength value="10"/>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:element>
                                </xs:sequence>
                            </xs:complexType>
                        </xs:element>

                        <xs:element name="Zaznamy">
                            <xs:annotation>
                                <xs:documentation xml:lang="cs">Záznamy - vybrané záznamy z CEU odpovídající dotazu</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                                <xs:sequence>

                                    <xs:element name="Zaznam" type="ZaznamType" minOccurs="0" maxOccurs="unbounded">
                                        <xs:annotation>
                                            <xs:documentation xml:lang="cs">Záznam - jednotlivé záznamy z CEU, které odpovídají dotazu</xs:documentation>
                                        </xs:annotation>
                                    </xs:element>

                                   <xs:element name="ZaznamBS" type="ZaznamBSType" minOccurs="0" maxOccurs="unbounded">
                                        <xs:annotation>
                                            <xs:documentation xml:lang="cs">Záznam - jednotlivé záznamy z CEU pro bezpečnostní schránky, které odpovídají dotazu</xs:documentation>
                                        </xs:annotation>
                                    </xs:element>

                                </xs:sequence>
                            </xs:complexType>
                        </xs:element>

                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:sequence>

    </xs:complexType>

    <xs:element name="CEU_Dotaz" type="CEU_DotazType"/>
    <xs:element name="CEU_Odpoved" type="CEU_OdpovedType"/>

</xs:schema>
