<?xml version="1.0" encoding="utf-8"?>
<xs:schema 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:zpnw="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v4_0/ZPNW.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" 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/v4_0/ZPNW.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/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 ZNAJDUJĄCYCH SIĘ POZA PROCEDURĄ ZAWIESZENIA POBORU AKCYZY NA POTRZEBY WYKONYWANEJ NA TERYTORIUM KRAJU DZIAŁALNOŚCI GOSPODARCZEJ
        </xs:documentation>
		<xs:documentation source="doc" xml:lang="pl">
        </xs:documentation>
	</xs:annotation>
	<xs:element name="ZPNW">
		<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="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
                                                        </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="JEDN">
																<xs:annotation>
																	<xs:documentation>
                                                                        Jednorazowe
                                                                    </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="amountOfExciseGuarantee" type="tp6:ZAmountT" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Kwota zabezpieczenia.
                                                        </xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="date" type="xs:date" use="optional">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
                                                            Data
                                                            złożenia
                                                            zabezpieczenia.
                                                        </xs:documentation>
													</xs:annotation>
												</xs:attribute>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="Items" minOccurs="1" maxOccurs="1">
								<xs:annotation>
									<xs:documentation source="doc" xml:lang="pl">Dane
                                        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">Nazwa
                                                            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">Ośmiocyfrowy
                                                            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="valueOfGoods" type="tp6:ZAmountP" use="optional">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Podstawa obliczenia podatku (wyrażona wartościowo w zł).</xs:documentation>
														<xs:documentation source="box">D.e</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">Podstawa
                                                            obliczenia podatku (wyrażona ilościowo).
                                                        </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="amountOfTax" type="tp6:ZAmountT" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">Kwota
                                                            podatku w zł.
                                                        </xs:documentation>
														<xs:documentation source="box">D.g
                                                        </xs:documentation>
													</xs:annotation>
												</xs:attribute>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</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">Urząd
                                    skarbowy przyjmujący zgłoszenie
                                </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="expectedDateOfArrival" type="xs:date" use="required">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">Przewidywana data dostawy (Rok-miesiąc-dzień)
                                </xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="expectedDeliveryPlace" use="optional">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">Przewidywane miejsce dostawy
                                </xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:maxLength value="100"/>
								</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>
