<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns="http://schemas.gov.sk/form/URHH.ZiadostIL.PredkladanieUdajovOTechnickychZariadeniach/1.0"
	targetNamespace="http://schemas.gov.sk/form/URHH.ZiadostIL.PredkladanieUdajovOTechnickychZariadeniach/1.0"
	elementFormDefault="qualified">

	<xs:element name="Predkladanie">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="Hlavicka" type="HlavickaTyp"/>
				<xs:element name="TechnickeZariadenie" type="TechnickeZariadenieTyp" maxOccurs="unbounded" />
				<xs:element name="Spolu" type="SpoluTyp"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:complexType name="HlavickaTyp">
		<xs:annotation>
			<xs:documentation>Hlavička</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="Meno" type="String_1023">
				<xs:annotation>
					<xs:documentation>Obchodné meno/Názov</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="ICO" type="ICOTyp">
				<xs:annotation>
					<xs:documentation>Identifikačné číslo organizácie</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="PravnaForma" type="xs:string">
				<xs:annotation>
					<xs:documentation>Právna forma</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="DruhHH" type="xs:int">
				<xs:annotation>
					<xs:documentation>Druh hazardnej hry</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Licencia" type="String_100">
				<xs:annotation>
					<xs:documentation>Licencia číslo</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Dodatok" type="xs:int">
				<xs:annotation>
					<xs:documentation>Dodatok číslo</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="ZaciatocnyPozetTZ" type="NezaporneCeleCisloTyp">
				<xs:annotation>
					<xs:documentation>Začiatočný počet technických zariadení</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="KonecnyPozetTZ" type="NezaporneCeleCisloTyp">
				<xs:annotation>
					<xs:documentation>Konečný počet technických zariadení</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="DatumVypracovania" type="xs:date">
				<xs:annotation>
					<xs:documentation>Dátum vypracovania</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Rozhodnutie" type="NezaporneCeleCisloTyp">
				<xs:annotation>
					<xs:documentation>Príloha k rozhodnutiu č.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TechnickeZariadenieTyp">
		<xs:annotation>
			<xs:documentation>Údaje o technickom zariadeni - VP, VH, ER, ITZ</xs:documentation>
		</xs:annotation>
		<xs:sequence>		
			<xs:element name="PoradoveCislo" type="xs:string">
				<xs:annotation>
					<xs:documentation>Poradové číslo</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Adresa">
				<xs:annotation>
					<xs:documentation>Adresa herne alebo kasina</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:sequence>
						<xs:element name="Obec" type="String_100"/>
						<xs:element name="PSC" type="PSCTyp"/>
						<xs:element name="Ulica" type="String_100"/>
						<xs:element name="Cislo">
							<xs:complexType>
								<xs:sequence>
									<xs:element name="Orientacne" type="OrientacneCisloTyp" minOccurs="0"/>
									<xs:element name="Supisne" type="SupisneCisloTyp"/>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="Nazov" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Názov herne alebo kasína</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="TypTZ" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Typ technického zariadenia</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="VyrobneCislo" type="xs:string">
				<xs:annotation>
					<xs:documentation>Výrobné číslo</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:choice>
				<xs:element name="ZN" type="JednotkaTyp">
					<xs:annotation>
						<xs:documentation>Začínajúci nový</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="KP" type="JednotkaTyp">
					<xs:annotation>
						<xs:documentation>Končiaci premiestňovaný</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="ZP" type="JednotkaTyp">
					<xs:annotation>
						<xs:documentation>Začínajúci premiestnený</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="KV" type="JednotkaTyp">
					<xs:annotation>
						<xs:documentation>Končiaci vymieňaný</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="ZV" type="JednotkaTyp">
					<xs:annotation>
						<xs:documentation>Začínajúci vymenený</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="KD" type="JednotkaTyp">
					<xs:annotation>
						<xs:documentation>Končiaci depo</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="ZD" type="JednotkaTyp">
					<xs:annotation>
						<xs:documentation>Začínajúci z depa</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="KR" type="JednotkaTyp">
					<xs:annotation>
						<xs:documentation>Končiaci v kalendárnom roku</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
			<xs:element name="L" type="JednotkaTyp" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Zariadenie napojené na lokálnu prémiovú hru</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="G" type="JednotkaTyp" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Zariadenie napojené na globálnu prémiovú hru</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:choice>
				<xs:element name="H" type="JednotkaTyp">
					<xs:annotation>
						<xs:documentation>Herňa</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="K" type="JednotkaTyp">
					<xs:annotation>
						<xs:documentation>Kasíno</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="SpoluTyp">
		<xs:annotation>
			<xs:documentation>Celkový počet</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="ZN" type="NezaporneCeleCisloTyp">
				<xs:annotation>
					<xs:documentation>Celkový počet začínajúcich nových</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="KP" type="NezaporneCeleCisloTyp">
				<xs:annotation>
					<xs:documentation>Celkový počet končiacich premiestňovaných</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="ZP" type="NezaporneCeleCisloTyp">
				<xs:annotation>
					<xs:documentation>Celkový počet začínajúcich premiestnených</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="KV" type="NezaporneCeleCisloTyp">
				<xs:annotation>
					<xs:documentation>Celkový počet končiacich vymieňaných</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="ZV" type="NezaporneCeleCisloTyp">
				<xs:annotation>
					<xs:documentation>Celkový počet začínajúcich vymenených</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="KD" type="NezaporneCeleCisloTyp">
				<xs:annotation>
					<xs:documentation>Celkový počet končiacich depo</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="ZD" type="NezaporneCeleCisloTyp">
				<xs:annotation>
					<xs:documentation>Celkový počet začínajúcich z depa</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="KR" type="NezaporneCeleCisloTyp">
				<xs:annotation>
					<xs:documentation>Celkový počet končiacich v kalendárnom roku</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="H" type="NezaporneCeleCisloTyp">
				<xs:annotation>
					<xs:documentation>Celkový počet herní</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="K" type="NezaporneCeleCisloTyp">
				<xs:annotation>
					<xs:documentation>Celkový počet kasín</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="ICOTyp">
		<xs:annotation>
			<xs:documentation>Identifikačné číslo organizácie</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:pattern value="[0-9]{6}|[0-9]{8}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="PSCTyp">
		<xs:annotation>
			<xs:documentation>Poštové smerovacie číslo</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="10"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="OrientacneCisloTyp">
		<xs:annotation>
			<xs:documentation>Orientačné číslo</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="20"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SupisneCisloTyp">
		<xs:annotation>
			<xs:documentation>Súpisné číslo</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="10"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="JednotkaTyp">
		<xs:annotation>
			<xs:documentation>Uvadza sa *1*</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:pattern value="1"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="String_100">
		<xs:restriction base="xs:string">
			<xs:maxLength value="100"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="String_1023">
		<xs:restriction base="xs:string">
			<xs:maxLength value="1023"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="NezaporneCeleCisloTyp">
		<xs:annotation>
			<xs:documentation>Nezáporné celé čislo (0-2147483647)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:int">
			<xs:minInclusive value="0"/>
		</xs:restriction>
	</xs:simpleType>
</xs:schema>