<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v4_0/POG_5.xsd"
           xmlns:ds="http://www.w3.org/2000/09/xmldsig#" 
           xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:pog5="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v4_0/POG_5.xsd" 
           xmlns:tr="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v4_0/Trader.xsd"
           xmlns:tp4="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v4_0/Types.xsd"
           xmlns:pog5a="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v4_0/POG_5A.xsd"
           xmlns:pog5c="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v4_0/POG_5C.xsd"
           xmlns:pog5d="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v4_0/POG_5D.xsd"
           elementFormDefault="qualified"
           attributeFormDefault="unqualified"
           version="4_0"
           xml:lang="pl">

	<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd" />
	<xs:import namespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v4_0/Types.xsd" schemaLocation="Types_Z2.xsd" />
	<xs:import namespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v4_0/Trader.xsd" schemaLocation="Trader_Z2.xsd" />
	<xs:import namespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v4_0/POG_5A.xsd" schemaLocation="pog_5a.xsd" />
	<xs:import namespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v4_0/POG_5C.xsd" schemaLocation="pog_5c.xsd" />
	<xs:import namespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v4_0/POG_5D.xsd" schemaLocation="pog_5d.xsd" />

	<xs:annotation>
		<xs:documentation source="doc" xml:lang="pl">DEKLARACJA	DLA PODATKU OD GIER</xs:documentation>
		<xs:documentation source="doc" xml:lang="pl">Formularz
            przeznaczony jest dla podatników podatku od gier:
            - prowadzących kasyna gry i salony gry bingo pieniężne oraz
            urządzających zakłady wzajemne, loterie pieniężne, grę telebingo i
            loterie audioteksowe,
            - urządzających gry liczbowe,
            - urządzających grę bingo fantowe i loterię fantową.
            Deklarację dla podatku od gier należy składać do 10
            dnia miesiąca następującego po miesiącu, którego dotyczy rozliczenie
            (art.75 ust. 1ustawy).
            Miejscem składania deklaracji jest Naczelnik urzędu skarbowego właściwy
            zgodnie z art.77 ustawy, zwany dalej "organem".
            W przypadku niewpłacenia w obowiązującym terminie kwoty z pola 'toPay'
            lub wpłacenia jej w niepełnej wysokości, niniejsza deklaracja
            stanowi podstawę do wystawienia tytułu wykonawczego, zgodnie z przepisami
            ustawy z dnia 17 czerwca 1966 r. o postępowaniu egzekucyjnym w administracji (Dz. U. z 2005 r. Nr 229, poz. 1954, z
            późn. zm.).
            Podstawą prawną jest art. 75 ust.1 ustawy z dnia 19 listopada 2009 r. o grach hazardowych (Dz. U. Nr 201, poz. 1540) zwanej dalej „ustawą”.
		</xs:documentation>
	</xs:annotation>
	<xs:element name="POG5">
		<xs:annotation>
			<xs:documentation source="doc" xml:lang="pl">ELEMENT GŁÓWNY</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="Header">
					<xs:annotation>
						<xs:documentation source="doc" xml:lang="pl">NAGłÓWEK DEKLARACJI</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="Trader" type="tr:ZTrader">
								<xs:annotation>
									<xs:documentation source="doc" xml:lang="pl">PODMIOT</xs:documentation>
									<xs:documentation source="box">B</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="AmountPayable">
								<xs:annotation>
									<xs:documentation source="doc" xml:lang="pl">ROZLICZENIE KWOT PODATKU</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:attribute name="amountPog5a" type="tp4:ZAmountT" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Kwota
                                                podatku od gier stanowiąca przeniesienie z pola 42
                                                formularza POG-5/A lub stanowiąca sumę z tych pól jeśli
                                                złożono więcej formularzy POG-5/A.
											</xs:documentation>
											<xs:documentation source="box">26</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="amountPog5c" type="tp4:ZAmountT" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Kwota
                                                podatku od gier stanowiąca przeniesienie z pola 42
                                                formularza POG-5/C lub stanowiąca sumę z tych pól jeśli
                                                złożono więcej formularzy POG-5/C.
											</xs:documentation>
											<xs:documentation source="box">27</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="amountPog5d" type="tp4:ZAmountT" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Kwota
                                                podatku od gier stanowiąca przeniesienie z pola 19
                                                formularza POG-5/D lub stanowiąca sumę z tych pól jeśli
                                                złożono więcej formularzy POG-5/D.
											</xs:documentation>
											<xs:documentation source="box">28</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="totalExciseDuties" type="tp4:ZAmountP" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Suma kwot podatku od gier 
                                                z wszystkich załączników (POG-5/A, POG-5/C i POG-5/D).
											</xs:documentation>
											<xs:documentation source="box">29</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="excessContributSettlementOfPrevDecl" type="tp4:ZAmountP" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Nadpłata
                                                wpłat dziennych z ostatnio złożonej deklaracji.
											</xs:documentation>
											<xs:documentation source="box">30</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="amountOfPaymentsDaily" type="tp4:ZAmountP" use="optional">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Wpłaty
                                                dzienne podatku od gier liczbowych (tylko dla załącznika
                                                POG-5C) za okres, którego deklaracja dotyczy.
											</xs:documentation>
											<xs:documentation source="box">31</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="toPay" type="tp4:ZAmountP" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">
                                                Kwota do zapłaty. Jeżeli różnica jest liczbą ujemną, należy wpisać 0.
											</xs:documentation>
											<xs:documentation source="box">32</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="excessContributSettlement" type="tp4:ZAmountP" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Nadpłata
                                                wpłat dziennych do rozliczenia w następnym okresie
                                                rozliczeniowym.
											</xs:documentation>
											<xs:documentation source="box">33</xs:documentation>
										</xs:annotation>
									</xs:attribute>
								</xs:complexType>
							</xs:element>
							<xs:element name="Attachment">
								<xs:annotation>
									<xs:documentation source="doc" xml:lang="pl">INFORMACJE O ZAŁĄCZNIKACH</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element ref="pog5a:POG5A" minOccurs="0" maxOccurs="99" />
										<xs:element ref="pog5c:POG5C" minOccurs="0" maxOccurs="1" />
										<xs:element ref="pog5d:POG5D" minOccurs="0" maxOccurs="99" />
									</xs:sequence>
									<xs:attribute name="totalExciseDuty" type="tp4:ZAmountT" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Ogółem
                                                podatek od gier. Pole odpowiada zestawieniu podatku od gier
                                                dla każdego z grup gier oddzielnie (jedna z pozycji od 26 do
                                                28 formularza papierowego w zależności od wypełnionego załącznika).
											</xs:documentation>
											<xs:documentation source="box">-</xs:documentation>
										</xs:annotation>
									</xs:attribute>
								</xs:complexType>
							</xs:element>
							<xs:element name="Statement" type="tp4:ZExtStatement" minOccurs="1" maxOccurs="1">
								<xs:annotation>
									<xs:documentation source="doc" xml:lang="pl">
                                        Oświadczenie podatnika lub osoby reprezentującej podatnika
									</xs:documentation>
								</xs:annotation>
							</xs:element>
						</xs:sequence>
						<xs:attribute name="period" type="tp4:ZPeriod" use="required">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">Data w
                                    formacie rok i miesiąc (YYYY-MM), gdzie YYYY - oznacza rok, MM - oznacza miesiąc.
								</xs:documentation>
								<xs:documentation source="box">4,5</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="taxOffice" type="tp4:ZTaxOffice" use="required">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">
                                    Urząd skarbowy, do którego adresowana jest deklaracja.
								</xs:documentation>
								<xs:documentation source="box">6,7</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="identifier" type="tp4:ZIdentification" use="required">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">Pole na
                                    wprowadzenie NIP lub PESEL Podatnika.
								</xs:documentation>
								<xs:documentation source="box">1</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="submissionAim" type="tp4:ZSubmissionAim" use="required">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">
                                    Informacja czy dokument jest deklaracją czy korektą.
								</xs:documentation>
								<xs:documentation source="box">8</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="orgDocNo" type="xs:string" use="optional">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">Numer dokumentu pierwotnego, którego dotyczy korekta.</xs:documentation>
								<xs:documentation source="box">-</xs:documentation>
							</xs:annotation>
						</xs:attribute>                           
						<xs:attribute name="justification" use="optional">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">Pole tekstowe pozwalające na wprowadzenie informacji uzasadniającej korektę.</xs:documentation>
								<xs:documentation source="box">-</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:maxLength value="256" />
								</xs:restriction>
							</xs:simpleType>
						</xs:attribute>		
						<xs:attribute name="selfRef" type="tp4:ZSelfRef" use="optional">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">Numer własny komunikatu.</xs:documentation>
							</xs:annotation>
						</xs:attribute>
					</xs:complexType>
				</xs:element>
				<xs:element ref="ds:Signature" minOccurs="0"/>
			</xs:sequence>
			<xs:attribute name="version" type="tp4:ZVersion" use="required">
				<xs:annotation>
					<xs:documentation source="doc" xml:lang="pl">Wersja schematu, z którą zgodny jest komunikat.</xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
</xs:schema>	