<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
		   xmlns:zpnwza="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v2_0/ZPNW_ZA.xsd"
		   xmlns:tr6="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v6_0/Trader.xsd"
		   xmlns:ftr4="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v4_0/ForeignTrader.xsd" 
		   xmlns:tp6="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v6_0/Types.xsd" 
		   xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
		   xmlns:auth="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v2_0/Authentication.xsd"
		   targetNamespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v2_0/ZPNW_ZA.xsd"
		   elementFormDefault="qualified" 
		   attributeFormDefault="unqualified" 
		   version="2_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/v6_0/Types.xsd" schemaLocation="Types_Z6.xsd"/>
	<xs:import namespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v6_0/Trader.xsd" schemaLocation="Trader_Z6.xsd"/>
	<xs:import namespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v4_0/ForeignTrader.xsd" schemaLocation="ForeignTrader_Z4.xsd"/>
	<xs:import namespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v2_0/Authentication.xsd" schemaLocation="auth.xsd"/>
	<xs:annotation>
		<xs:documentation source="doc" xml:lang="pl">
			ZGŁOSZENIE O PLANOWANYM NABYCIU WEWNĄTRZWSPÓLNOTOWYM WYROBÓW AKCYZOWYCH
			INNYCH NIŻ OKREŚLONE W ZAŁĄCZNIKU NR 2 DO USTAWY Z DNIA 6 GRUDNIA 2008 R. O PODATKU AKCYZOWYM,
			OBJĘTYCH STAWKĄ AKCYZY INNĄ NIŻ STAWKA ZEROWA, PRZEMIESZCZANYCH NA TERYTORIUM KRAJU
			W RAMACH NABYCIA WEWNĄTRZWSPÓLNOTOWEGO W CELU WPROWADZENIA ICH DO SKŁADU PODATKOWEGO
        </xs:documentation>
	</xs:annotation>
	<xs:element name="ZPNWZA">
		<xs:annotation>
			<xs:documentation source="doc" xml:lang="pl">ELEMENT GŁÓWNY</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="Header" minOccurs="1" maxOccurs="1">
					<xs:annotation>
						<xs:documentation source="doc" xml:lang="pl">NAGłÓWEK ZGŁOSZENIA</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="deliveryPlace" minOccurs="1" maxOccurs="1">
								<xs:annotation>
									<xs:documentation source="doc" xml:lang="pl">Miejsce dostawy</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:attribute name="address" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Adres miejsca dostawy.</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:maxLength value="256"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:attribute>
									<xs:attribute name="operatorNo" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Nr składu podatkowego</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:maxLength value="13"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:attribute>
								</xs:complexType>
							</xs:element>
							<xs:element name="deliveryDates" minOccurs="1" maxOccurs="8">
								<xs:annotation>
									<xs:documentation source="doc" xml:lang="pl">Daty dostaw</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:attribute name="deliveryDate" type="xs:date" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Data dostawy (rok-miesiąc-dzień)
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
								</xs:complexType>
							</xs:element>
							<xs:element name="Declarant" minOccurs="1" maxOccurs="1">
								<xs:annotation>
									<xs:documentation source="doc" xml:lang="pl">ZGŁASZAJĄCY
                                    </xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:complexContent>
										<xs:extension base="tr6:ZTrader"/>
									</xs:complexContent>
								</xs:complexType>
							</xs:element>
							<xs:element name="Consignor" minOccurs="1" maxOccurs="1">
								<xs:annotation>
									<xs:documentation source="doc" xml:lang="pl">NADAWCA
                                    </xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:complexContent>
										<xs:extension base="ftr4:ZForeignTrader">
											<xs:attribute name="consignorId">
												<xs:annotation>
													<xs:documentation source="doc" xml:lang="pl">Identyfikator nadawcy</xs:documentation>
												</xs:annotation>
												<xs:simpleType>
													<xs:restriction base="xs:string">
														<xs:maxLength value="50"/>
													</xs:restriction>
												</xs:simpleType>
											</xs:attribute>
										</xs:extension>
									</xs:complexContent>
								</xs:complexType>
							</xs:element>
							<xs:element name="Collaterals" minOccurs="1" maxOccurs="1">
								<xs:annotation>
									<xs:documentation source="doc" xml:lang="pl">Dane zabezpieczeń</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="Collateral" minOccurs="1" maxOccurs="99">
											<xs:annotation>
												<xs:documentation source="doc" xml:lang="pl">Dane zabezpieczenia</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:attribute name="type" use="optional">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Rodzaj zabezpieczenia akcyzowego</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:enumeration value="GEN">
																<xs:annotation>
																	<xs:documentation>Generalne</xs:documentation>
																</xs:annotation>
															</xs:enumeration>
															<xs:enumeration value="RYCZ">
																<xs:annotation>
																	<xs:documentation>Ryczałtowe</xs:documentation>
																</xs:annotation>
															</xs:enumeration>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="number" use="optional">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Numer zabezpieczenia</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="25"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="amountOfUse" type="tp6:ZAmountT" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Kwota użycia</xs:documentation>
													</xs:annotation>
												</xs:attribute>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
 							<xs:element name="DocumentsAttached" minOccurs="0" maxOccurs="1">
								<xs:annotation>
									<xs:documentation source="doc" xml:lang="pl">Załączone dokumenty
									</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:attribute name="documentAttached" use="optional">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Załączone dokumenty
											</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:maxLength value="256" />
											</xs:restriction>
										</xs:simpleType>
									</xs:attribute>
								</xs:complexType>
							</xs:element>
							<xs:element name="Items" minOccurs="1" maxOccurs="1">
								<xs:annotation>
									<xs:documentation source="doc" xml:lang="pl">Dane dotyczące wyrobów akcyzowych przewidywanych do nabycia</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="Item" maxOccurs="999">
											<xs:annotation>
												<xs:documentation source="doc" xml:lang="pl">
													OBLICZENIE KWOT PODATKU AKCYZOWEGO OD POSZCZEGÓLNYCH WYROBÓW
                                                </xs:documentation>
												<xs:documentation source="doc" xml:lang="pl">Dla
                                                    stawki procentowo-kwotowej przy opodatkowaniu papierosów
                                                    należy podać oddzielnie wyrób ze stawką procentową i
                                                    oddzielnie ze stawką kwotową.
                                                </xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:attribute name="id" type="tp6:ZNumeric" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Liczba porządkowa.</xs:documentation>
														<xs:documentation source="box">D.a</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="groupOfGoodsName" type="tp6:ZGroupOfGoodsNameZPNWEnum" use="optional">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Grupa wyrobów, dla których ustalono odrębne stawki podatkowe.</xs:documentation>
														<xs:documentation source="box">D.b</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="goodsName" type="tp6:ZCharacter" use="optional">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Opis wyrobu</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="codeCN" type="tp6:ZCodeCN" use="optional">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Kod CN</xs:documentation>
														<xs:documentation source="box">D.d</xs:documentation>
														<xs:documentation source="list">1</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="maximumRetailPriceValue" type="tp6:ZAmountT" use="optional">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Wartość wg maksymalnej ceny detalicznej (dotyczy papierosów i tytoniu do palenia)</xs:documentation>
														<xs:documentation source="box">-</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="unitOfMeasure" use="optional">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Jednostka miary, w jakiej podane są ilości wyrobów.</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:whiteSpace value="collapse"/>
															<xs:enumeration value="hL.st.Pl">
																<xs:annotation>
																	<xs:documentation>hektolitry x stopień Plato
                                                                    </xs:documentation>
																</xs:annotation>
															</xs:enumeration>
															<xs:enumeration value="hL">
																<xs:annotation>
																	<xs:documentation>hektolitry</xs:documentation>
																</xs:annotation>
															</xs:enumeration>
															<xs:enumeration value="kg">
																<xs:annotation>
																	<xs:documentation>kilogramy</xs:documentation>
																</xs:annotation>
															</xs:enumeration>
															<xs:enumeration value="tys.kg">
																<xs:annotation>
																	<xs:documentation>tysiące kilogramów</xs:documentation>
																</xs:annotation>
															</xs:enumeration>
															<xs:enumeration value="tys.L">
																<xs:annotation>
																	<xs:documentation>tysiące litrów</xs:documentation>
																</xs:annotation>
															</xs:enumeration>
															<xs:enumeration value="tys.sztuk">
																<xs:annotation>
																	<xs:documentation>tysiące sztuk</xs:documentation>
																</xs:annotation>
															</xs:enumeration>
															<xs:enumeration value="GJ">
																<xs:annotation>
																	<xs:documentation>gigadżule</xs:documentation>
																</xs:annotation>
															</xs:enumeration>
															<xs:enumeration value="kg.3.miejsca">
																<xs:annotation>
																	<xs:documentation>kilogramy z dokładnością do 3 miejsc po przecinku</xs:documentation>
																</xs:annotation>
															</xs:enumeration>
															<xs:enumeration value="ml">
																<xs:annotation>
																	<xs:documentation>mililitry</xs:documentation>
																</xs:annotation>
															</xs:enumeration>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="numberOfGoods" type="tp6:ZAmountE" use="optional">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Szacowana ilość</xs:documentation>
														<xs:documentation source="box">D.e</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="weightedAverageRetailPrice" type="tp6:ZAmountC" use="optional">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
															Średnia ważona detaliczna cena sprzedaży tytoniu do palenia obowiązująca w danym roku kalendarzowym (dotyczy wyrobów nowatorskich).
														</xs:documentation>
														<xs:documentation source="box">-</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="taxMin" use="optional">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Stawka podatkowa minimalna dla wyrobów tytoniowych.</xs:documentation>
														<xs:documentation source="box">-
                                                        </xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:decimal">
															<xs:totalDigits value="6"/>
															<xs:fractionDigits value="2"/>
															<xs:whiteSpace value="collapse"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="taxMinFromIsztar" type="xs:boolean" use="optional">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Czy stawka podatku akcyzowego w polu taxMin jest pobrana z Systemu ISZTAR.</xs:documentation>
														<xs:documentation source="box">-</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="taxRate" type="tp6:ZAmountC" use="optional">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Stawka podatku.</xs:documentation>
														<xs:documentation source="box">D.f</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="taxRateFromIsztar" type="xs:boolean" use="optional">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Czy stawka podatku akcyzowego w polu taxRate jest pobrana z Systemu ISZTAR.</xs:documentation>
														<xs:documentation source="box">-</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="taxRatePercentage" type="tp6:ZPercentage" use="optional">
													<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">D.f</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="taxRatePercentageFromIsztar" type="xs:boolean" use="optional">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Czy stawka podatku akcyzowego w polu taxRatePercentage jest pobrana z Systemu ISZTAR.</xs:documentation>
														<xs:documentation source="box">-</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="amountOfExciseSuspension" type="tp6:ZAmountT" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Kwota akcyzy podlegającej zawieszeniu w zł.</xs:documentation>
														<xs:documentation source="box">D.g</xs:documentation>
													</xs:annotation>
												</xs:attribute>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
									<xs:attribute name="totalNumberOfGoods" type="tp6:ZAmountE" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Łącznie szacowana ilość</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="totalAmountOfExciseSuspension" type="tp6:ZAmountT" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">Łącznie kwota akcyzy podlegającej zawieszeniu w zł.</xs:documentation>
										</xs:annotation>
									</xs:attribute>
								</xs:complexType>

							</xs:element>
							<xs:element name="Statement" type="tp6:ZStatement" minOccurs="1" maxOccurs="1"/>
						</xs:sequence>
						<xs:attribute name="identifier" type="tp6:ZIdentification" use="required">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">Pole na
                                    wprowadzenie NIP lub PESEL Podatnika.
                                </xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="taxOffice" type="tp6:ZTaxOffice" use="required">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">Naczelnik urzędu skarbowego w
                                </xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="submissionAim" type="tp6:ZSubmissionAim" use="required">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">Informacja
                                    czy dokument jest deklaracją czy korektą.
                                </xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="orgDocNo" type="tp6:ZDocNo" use="optional">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">Numer
                                    dokumentu pierwotnego, którego dotyczy korekta.
                                </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:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:maxLength value="256"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:attribute>
						<xs:attribute name="selfRef" type="tp6:ZSelfRef" use="required">
							<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="auth:Authentication" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="ds:Signature" minOccurs="0" maxOccurs="1"/>
			</xs:sequence>
			<xs:attribute name="version" type="tp6: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>
