<?xml version="1.0" encoding="utf-8"?>
<xs:schema
    targetNamespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v4_0/POG_P.xsd"
    xmlns:tp4="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v4_0/Types.xsd"
    xmlns:tr="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v4_0/Trader.xsd"
    xmlns:pogp="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v4_0/POG_P.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
    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: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 płatników podatku od gier urządzających turniej gry pokera.
            Podstawa prawna: Art.75 ustawy z dnia 19 listopada 2009 r. o grach hazardowych (Dz.U. Nr 201, poz.1540), zwanej dalej ”ustawą”.
            Składający: Płatnik podatku od gier urządzający turniej gry pokera.
            Termin składania: Do 20 dnia miesiąca następującego po miesiącu, którego dotyczy rozliczenie (art.75 ust.6 ustawy).
            Otrzymuje: 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.).
		</xs:documentation>
	</xs:annotation>
	<xs:element name="POGP">
		<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">
								<xs:annotation>
									<xs:documentation source="doc" xml:lang="pl">PODMIOT</xs:documentation>
									<xs:documentation source="box">B</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:annotation>
										<xs:documentation>Podstawowy zestaw danych o osobie niefizycznej.</xs:documentation>
									</xs:annotation>
									<xs:sequence>
										<xs:element name="Corporate" minOccurs="1" maxOccurs="1">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="TaxpayerData" type="tr:ZIDCorporateReg">
														<xs:annotation>
															<xs:documentation source="doc" xml:lang="pl">Dane identyfikacyjne</xs:documentation>
															<xs:documentation source="box">B.1</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="Residence" type="tr:ZAddress">
														<xs:annotation>
															<xs:documentation source="doc" xml:lang="pl">Adres siedziby</xs:documentation>
															<xs:documentation source="box">B.2</xs:documentation>
														</xs:annotation>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element> 
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="CalculationOfTaxOnGame">
								<xs:annotation>
									<xs:documentation source="doc" xml:lang="pl">OBLICZENIE PODATKU OD GIER</xs:documentation>
									<xs:documentation source="box">C</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:attribute name="taxBase" type="tp4:ZAmountT" use="optional">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Podstawa opodatkowania dla podatku od gier.</xs:documentation>
											<xs:documentation source="box">20</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="taxRatePercentage" type="tp4:ZPercentage" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Stawka podatku wyrażona ułamkiem dziesiętnym z dokładnością do 4 miejsc po przecinku.</xs:documentation>
											<xs:documentation source="box">21</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="amountOfTax" type="tp4:ZAmountT" use="optional">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Kwota pobranego podatku stanowiąca iloczyn podstawy opodatkowania i stawki podatku wyrażonej w procentach.</xs:documentation>
											<xs:documentation source="box">22</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="amountOfDeductionsFromSalary" type="tp4:ZAmountT" use="optional">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Kwota potrąconego wynagrodzenia z tytułu terminowego wpłacenia podatku (zgodnie z art. 28 Ordynacji Podatkowej).</xs:documentation>
											<xs:documentation source="box">23</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 wpłaty stanowiąca kwotę podatku potrąconą o wynagrodzenie.</xs:documentation>
											<xs:documentation source="box">24</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="identifier" type="tp4:ZNIP" use="required">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">Pole na wprowadzenie NIP Podatnika.</xs:documentation>
								<xs:documentation source="box">1</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<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 za jaki została złożona deklaracja.Pole na wprowadzenie NIP Podatnika.</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">Organ, do którego składana jest deklaracja.</xs:documentation>
								<xs:documentation source="box">6, 7</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>
