<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tr9="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v9_0/Trader.xsd" xmlns:tp9="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v9_0/Types.xsd" xmlns:WZBPL="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v2_0/WZBPL.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/v2_0/WZBPL.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/v9_0/Types.xsd" schemaLocation="Types_Z9.xsd"/>
	<xs:import namespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v9_0/Trader.xsd" schemaLocation="Trader_Z9.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">
            WSTĘPNE ZAPOTRZEBOWANIE NA BANDEROLE  PODATKOWE I LEGALIZACYJNE 
        </xs:documentation>
		<xs:documentation source="doc" xml:lang="pl">
			Podstawa prawna: 
			ROZPORZĄDZENIE MINISTRA FINANSÓW z dnia 7 czerwca 2019 r.w sprawie oznaczania wyrobów akcyzowych znakami akcyzy.
        </xs:documentation>
	</xs:annotation>
	<xs:element name="WZBPL">
		<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="tr9:ZTrader">
								<xs:annotation>
									<xs:documentation>
                                        Dane podmiotu składającego WZBPL
                                    </xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="stamps">
								<xs:complexType>
									<xs:annotation>
										<xs:documentation>
                                            Lista banderol
                                        </xs:documentation>
									</xs:annotation>
									<xs:sequence>
										<xs:element name="stamp" minOccurs="1" maxOccurs="99">
											<xs:complexType>
												<xs:annotation>
													<xs:documentation>
                                                        Banderola.
                                                    </xs:documentation>
												</xs:annotation>
												<xs:attribute name="stampSymbol" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
                                                            Symbol banderoli (kod 3 znakowy).
                                                        </xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:length value="3"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="stampSymbolName" type="xs:string" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
															Symbol banderoli (nazwa własna).
														</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="format" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
                                                            Format (kod 3 znakowy).
                                                        </xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:length value="3"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="formatName" type="xs:string" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
															Format (nazwa własna).
														</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="character" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
															Wartość wskazująca na postać banderoli dla danego formatu.
															Wartość „samoprzylepnej”, gdy Format przyjmuje wartość „NaRoliPion” lub „NaRoliPoz”. 
															W pozostałych przypadkach przekazywana jest wartość „bez_warstwy_samoprzylepnej”.
														</xs:documentation>
														<xs:documentation source="box">
															-
														</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:enumeration value="samoprzylepnej"/>
															<xs:enumeration value="bez_warstwy_samoprzylepnej"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="dimension" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
                                                            Wymiar (kod 3 znakowy).
                                                        </xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:length value="3"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="dimensionName" type="xs:string" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
															Wymiar (nazwa własna).
														</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="villageUseBands" type="xs:string" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
															Miejscowość stosowania banderol.
														</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="typeOrder" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
															Typ zamówienia.
														</xs:documentation>
														<xs:documentation source="box">
															-
														</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:enumeration value="Jednorazowo"/>
															<xs:enumeration value="Miesiecznie"/>
															<xs:enumeration value="Rocznie"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="again" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
                                                            Razem liczba sztuk banderoli, będąca sumą wyliczaną, wartości wprowadzonych przez podatnika w kolumnach od Styczeń do Grudzień (atrybuty styczeń-grudzień).
                                                        </xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:decimal">
															<xs:minInclusive value="0"/>
															<xs:totalDigits value="9"/>
															<xs:fractionDigits value="0"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="january" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
                                                            Liczba sztuk banderoli, zadeklarowana przez podatniku w miesiącu - styczeń.
                                                        </xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:decimal">
															<xs:minInclusive value="0"/>
															<xs:totalDigits value="9"/>
															<xs:fractionDigits value="0"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="february" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
                                                            Liczba sztuk banderoli, zadeklarowana przez podatnika w miesiącu - luty.
                                                        </xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:decimal">
															<xs:minInclusive value="0"/>
															<xs:totalDigits value="9"/>
															<xs:fractionDigits value="0"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="march" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
                                                            Liczba sztuk banderoli, zadeklarowana przez podatniku w miesiącu - marzec.
                                                        </xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:decimal">
															<xs:minInclusive value="0"/>
															<xs:totalDigits value="9"/>
															<xs:fractionDigits value="0"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="april" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
                                                            Liczba sztuk banderoli, zadeklarowana przez podatniku w miesiącu - kwiecień.
                                                        </xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:decimal">
															<xs:minInclusive value="0"/>
															<xs:totalDigits value="9"/>
															<xs:fractionDigits value="0"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="may" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
                                                            Liczba sztuk banderoli, zadeklarowana przez podatniku w miesiącu - maj.
                                                        </xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:decimal">
															<xs:minInclusive value="0"/>
															<xs:totalDigits value="9"/>
															<xs:fractionDigits value="0"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="june" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
                                                            Liczba sztuk banderoli, zadeklarowana przez podatniku w miesiącu - czerwiec.
                                                        </xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:decimal">
															<xs:minInclusive value="0"/>
															<xs:totalDigits value="9"/>
															<xs:fractionDigits value="0"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="july" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
                                                            Liczba sztuk banderoli, zadeklarowana przez podatniku w miesiącu - lipiec.
                                                        </xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:decimal">
															<xs:minInclusive value="0"/>
															<xs:totalDigits value="9"/>
															<xs:fractionDigits value="0"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="august" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
                                                            Liczba sztuk banderoli, zadeklarowana przez podatniku w miesiącu - sierpień.
                                                        </xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:decimal">
															<xs:minInclusive value="0"/>
															<xs:totalDigits value="9"/>
															<xs:fractionDigits value="0"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="september" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
                                                            Liczba sztuk banderoli, zadeklarowana przez podatniku w miesiącu - wrzesień.
                                                        </xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:decimal">
															<xs:minInclusive value="0"/>
															<xs:totalDigits value="9"/>
															<xs:fractionDigits value="0"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="october" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
                                                            Liczba sztuk banderoli, zadeklarowana przez podatniku w miesiącu - październik.
                                                        </xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:decimal">
															<xs:minInclusive value="0"/>
															<xs:totalDigits value="9"/>
															<xs:fractionDigits value="0"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="november" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
                                                            Liczba sztuk banderoli, zadeklarowana przez podatniku w miesiącu - listopad.
                                                        </xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:decimal">
															<xs:minInclusive value="0"/>
															<xs:totalDigits value="9"/>
															<xs:fractionDigits value="0"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="december" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
                                                            Liczba sztuk banderoli, zadeklarowana przez podatniku w miesiącu - grudzień.
                                                        </xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:decimal">
															<xs:minInclusive value="0"/>
															<xs:totalDigits value="9"/>
															<xs:fractionDigits value="0"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="kod" use="required">
													<xs:annotation>
														<xs:documentation source="doc" xml:lang="pl">
															Suma kontrolna (kod 24 znakowy). 
															Struktura kodu WZBPL: "typeOfStamp"+"onGoods"+"goods"+"stampSymbol"+"format"+"dimension"+"000"+"000".
															Na pierwszych 18 znakach wymagana zgodność z pozycją słownika 3020. Ostanie 6 znaków w kodzie dla WZBPL uzupełniane są zerami np. 001003005007019008000000
														</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:length value="24"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
									<xs:attribute name="typeOfStamp" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">
                                                Rodzaj banderoli (kod 3 znakowy).
                                            </xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:length value="3"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:attribute>
									<xs:attribute name="typeOfStampName" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">
												Rodzaj banderoli (nazwa własna).
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="onGoods" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">
                                                Nanoszone na wyroby (kod 3 znakowy).
                                            </xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:length value="3"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:attribute>
									<xs:attribute name="onGoodsName" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">
												Nanoszone na wyroby (nazwa własna).
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="goods" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">
                                                Wyroby (kod 3 znakowy).
                                            </xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:length value="3"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:attribute>
									<xs:attribute name="goodsName" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation source="doc" xml:lang="pl">
												Wyroby (nazwa własna).
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
						<xs:attribute name="identifier" type="tp9:ZNIP" use="required">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">
                                    Numer NIP Podatnika.
                                </xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="formKind" use="required">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">
									Pole na wprowadzenie grupy WZBPL. Wprowadzenie jednej z grup, stanowi kod dokumentu.
									Oznaczenie i nazwa grupy WZBPL:
									WZBPL-S Spirytusowe
									WZBPL-W Winiarskie
									WZBPL-TP Tytoniowe-papierosy
									WZBPL-TT Tytoniowe-tytoń
									WZBPL-ST Susz-tytoniowy
									WZBPL-PN Płyn do papierosow elektronicznych
									WZBPL-WN Nowatorskie
								</xs:documentation>
								<xs:documentation source="box">
									-
								</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:enumeration value="WZBPL-S"/>
									<xs:enumeration value="WZBPL-W"/>
									<xs:enumeration value="WZBPL-TP"/>
									<xs:enumeration value="WZBPL-TT"/>
									<xs:enumeration value="WZBPL-ST"/>
									<xs:enumeration value="WZBPL-PN"/>
									<xs:enumeration value="WZBPL-WN"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:attribute>
						<xs:attribute name="appDate" type="xs:date" use="required">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">
                                    Data WZBPL (data wpisana przez Podatnika na WZBPL jako data nadania).
                                </xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="period" type="xs:gYear" use="required">
							<xs:annotation>
								<xs:documentation> Rok zapotrzebowania np. RRRR.</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="taxOffice" type="tp9:ZTaxOffice" use="required">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">
                                    Właściwy Naczelnik US w zakresie spraw dotyczących znaków akcyzy (kod 4 znakowy).
                                </xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="exciseIdentifier" use="optional">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">
                                    Numer akcyzowy podatnika
                                </xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:length value="13"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:attribute>
						<xs:attribute name="taxOfficeName" type="xs:string" use="optional">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">
                                    Naczelnik urzędu skarbowego, do którego adresowana jest deklaracja (nazwa własna).
                                </xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="taxOfficeStreet" use="optional">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">
                                    Adres urzędu skarbowego - ulica.
                                </xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:maxLength value="250"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:attribute>
						<xs:attribute name="taxOfficePostalCode" use="optional">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">
                                    Adres urzędu skarbowego - kod pocztowy.
                                </xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:length value="6"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:attribute>
						<xs:attribute name="taxOfficeCity" use="optional">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">
                                    Adres urzędu skarbowego - miasto.
                                </xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:maxLength value="50"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:attribute>
						<xs:attribute name="submissionAim" type="tp9:ZSubmissionAim" use="required">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">
									Cel złożenia formularza (złożenie WZBPL/korekta WZBPL).
								</xs:documentation>
								<xs:documentation source="box">
									7
								</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="typeCorrection" use="optional">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">
									Typ korekty (zmniejszająca/zwiększająca)
								</xs:documentation>
								<xs:documentation source="box">
									-
								</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:enumeration value="zmniejszajaca"/>
									<xs:enumeration value="zwiekszajaca"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:attribute>
						<xs:attribute name="orgDocNo" type="tp9:ZDocNo" 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="phoneNumber" use="optional">
							<xs:annotation>
								<xs:documentation source="doc" xml:lang="pl">
									Pole tekstowe pozwalające na wprowadzenie Numeru telefonu podatnika.
								</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="tp9: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"/>
				<xs:element ref="ds:Signature" minOccurs="0"/>
			</xs:sequence>
			<xs:attribute name="version" type="tp9: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>
