<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v2_0/OPAL.xsd"
           xmlns:tr="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v5_0/Trader.xsd" xmlns:tp5="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v5_0/Types.xsd"
           xmlns:opal="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v2_0/OPAL.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:auth="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v2_0/Authentication.xsd"
           xmlns:ds="http://www.w3.org/2000/09/xmldsig#" 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/v5_0/Types_Z5.xsd"
               schemaLocation="Types_Z2.xsd" />
    <xs:import namespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v5_0/Trader_Z5.xsd"
               schemaLocation="Trader_Z2.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">
            INFORMACJA W SPRAWIE OPŁATY PALIWOWEJ
        </xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">
             Podstawa
            prawna w sprawie opłaty paliwowej: Art. 37o ust. 1 ustawy z dnia 27 października 1994 r. o autostradach płatnych oraz o Krajowym Funduszu Drogowym (Dz. U. z 2017 r. poz. 1057). 
            Termin składania:
            a)  do 25. dnia miesiąca następującego po miesiącu, w którym powstał obowiązek zapłaty – w przypadku producenta paliw silnikowych lub gazu, podmiotu dokonującego nabycia wewnątrzwspólnotowego w rozumieniu przepisów o podatku akcyzowym paliw silnikowych lub gazu oraz innego podmiotu podlegającego na podstawie przepisów o podatku akcyzowym obowiązkowi podatkowemu w zakresie podatku akcyzowego od paliw silnikowych lub gazu, b)  określony dla należności celnych – w przypadku importera paliw silnikowych lub gazu. 
 
            Miejsce składania: 
            Urząd skarbowy, przy pomocy którego wykonuje swoje zadania naczelnik urzędu skarbowego właściwy miejscowo w sprawach podatku akcyzowego – w przypadku producenta paliw silnikowych lub gazu, podmiotu dokonującego nabycia wewnątrzwspólnotowego w rozumieniu przepisów o podatku akcyzowym paliw silnikowych lub gazu oraz innego podmiotu podlegającego na podstawie przepisów o podatku akcyzowym obowiązkowi podatkowemu w zakresie podatku akcyzowego od paliw silnikowych lub gazu, urząd celno-skarbowy, przy pomocy którego wykonuje swoje zadania naczelnik urzędu celno-skarbowego właściwy ze względu na miejsce powstania długu celnego – w przypadku importera paliw silnikowych lub gazu. 
 
           Pouczenie:
		   W przypadku niewpłacenia w obowiązującym terminie kwoty z poz. 21 lub wpłacenia jej w niepełnej wysokości niniejsza informacja 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 2017 r. poz. 1201, z późn. zm.). 

        </xs:documentation>
    </xs:annotation>
    <xs:element name="OPAL">
        <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
                            DEKLARACJI
                        </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="Trader" type="tr:ZTrader" minOccurs="1" maxOccurs="1">
                                <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="Application" minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation source="doc" xml:lang="pl">Zgłoszenie
                                        celne
                                    </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element name="Positions" minOccurs="1" maxOccurs="99">
                                            <xs:annotation>
                                                <xs:documentation source="doc" xml:lang="pl">Pozycje
                                                </xs:documentation>
                                            </xs:annotation>
                                            <xs:complexType>
                                                <xs:attribute name="position" use="required">
                                                    <xs:annotation>
                                                        <xs:documentation source="doc" xml:lang="pl">Pozycja.
                                                        </xs:documentation>
                                                    </xs:annotation>
                                                    <xs:simpleType>
                                                        <xs:restriction base="xs:string">
                                                            <xs:maxLength value="2" />
                                                        </xs:restriction>
                                                    </xs:simpleType>
                                                </xs:attribute>
                                                <xs:attribute name="correction" use="optional">
                                                    <xs:annotation>
                                                        <xs:documentation source="doc" xml:lang="pl">Sprostowanie.
                                                        </xs:documentation>
                                                    </xs:annotation>
                                                    <xs:simpleType>
                                                        <xs:restriction base="xs:string">
                                                            <xs:maxLength value="500" />
                                                        </xs:restriction>
                                                    </xs:simpleType>
                                                </xs:attribute>
                                            </xs:complexType>
                                        </xs:element>
                                    </xs:sequence>
                                    <xs:attribute name="nrSAD" use="required">
                                        <xs:annotation>
                                            <xs:documentation source="doc" xml:lang="pl">Numer
                                                zgłoszenia celnego.
                                            </xs:documentation>
                                        </xs:annotation>
                                        <xs:simpleType>
                                            <xs:restriction base="xs:string">
                                                <xs:maxLength value="30" />
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:attribute>
                                    <xs:attribute name="dateApplication" type="xs:date" use="required">
                                        <xs:annotation>
                                            <xs:documentation source="doc" xml:lang="pl">
                                                Data zgłoszenia celnego.
                                            </xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                            <xs:element name="Collaterals" minOccurs="0" 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="0"
                                                    maxOccurs="99">
                                            <xs:annotation>
                                                <xs:documentation source="doc" xml:lang="pl">
                                                    Dane zabezpieczenia
                                                </xs:documentation>
                                            </xs:annotation>
                                            <xs:complexType>
                                                <xs:attribute name="type" use="required">
                                                    <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="24" />
                                                        </xs:restriction>
                                                    </xs:simpleType>
                                                </xs:attribute>
                                                <xs:attribute name="value" type="tp5:ZAmountC" use="optional">
                                                    <xs:annotation>
                                                        <xs:documentation source="doc" xml:lang="pl">
                                                            Kwota zabezpieczenia.
                                                        </xs:documentation>
                                                    </xs:annotation>
                                                </xs:attribute>
                                                <xs:attribute name="dateCollateral" 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="CalcFeulFee" minOccurs="1" maxOccurs="1">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element name="Item" minOccurs="0" maxOccurs="99">
                                            <xs:annotation>
                                                <xs:documentation source="doc" xml:lang="pl">
                                                    POZYCJE OPŁATY PALIWOWEJ
                                                </xs:documentation>
                                            </xs:annotation>
                                            <xs:complexType>
                                                <xs:attribute name="id" type="tp5: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="tp5:ZGroupOfGoodsName" use="required">
                                                    <xs:annotation>
                                                        <xs:documentation source="doc" xml:lang="pl">
                                                            Nazwa grupy wyrobów podlegających opłacie paliwowej.
                                                        </xs:documentation>
                                                        <xs:documentation source="box">D.b
                                                        </xs:documentation>
                                                    </xs:annotation>
                                                </xs:attribute>
                                                <xs:attribute name="codeCN" type="tp5:ZCodeCN" use="required">
                                                    <xs:annotation>
                                                        <xs:documentation source="doc" xml:lang="pl">
                                                            Ośmiocyfrowy kod CN.
                                                        </xs:documentation>
                                                        <xs:documentation source="box">D.c
                                                        </xs:documentation>
                                                    </xs:annotation>
                                                </xs:attribute>
                                                <xs:attribute name="numberOfGoods" type="tp5:ZAmountE" use="required">
                                                    <xs:annotation>
                                                        <xs:documentation source="doc" xml:lang="pl">Podstawa obliczenia wysokości opłaty paliwowej.
                                                        </xs:documentation>
                                                        <xs:documentation source="box">D.d.
                                                        </xs:documentation>
                                                    </xs:annotation>
                                                </xs:attribute>
                                                <xs:attribute name="taxRate" type="tp5:ZAmountC" use="required">
                                                    <xs:annotation>
                                                        <xs:documentation source="doc" xml:lang="pl">
                                                            Stawka opłaty.
                                                        </xs:documentation>
                                                        <xs:documentation source="box">D.e.
														</xs:documentation>
                                                    </xs:annotation>
                                                </xs:attribute>
                                                <xs:attribute name="amountOfFee" type="tp5:ZAmountP" use="required">
                                                    <xs:annotation>
                                                        <xs:documentation source="doc" xml:lang="pl">
                                                            Kwota opłaty w zł.
                                                        </xs:documentation>
                                                        <xs:documentation source="box">D.f
                                                        </xs:documentation>
                                                    </xs:annotation>
                                                </xs:attribute>
                                            </xs:complexType>
                                        </xs:element>
                                    </xs:sequence>
                                    <xs:attribute name="sum" type="tp5:ZAmountP" use="required">
                                        <xs:annotation>
                                            <xs:documentation source="doc" xml:lang="pl">
                                                Kwota ogółem opłaty paliwowej do zapłaty w zł.
                                            </xs:documentation>
											<xs:documentation source="box">117</xs:documentation>
                                       </xs:annotation>
                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                            <xs:element name="Statement" type="tp5: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="tp5:ZIdentification" use="required">
                            <xs:annotation>
                                <xs:documentation source="doc" xml:lang="pl">
                                    Identyfikator podatnika (NIP lub PESEL).
                                </xs:documentation>
								<xs:documentation source="box">1</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute name="typeOfTrader" use="required">
                            <xs:annotation>
                                <xs:documentation source="doc" xml:lang="pl">
                                    Typ podmiotu.
                                </xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:enumeration value="IMP">
                                        <xs:annotation>
                                            <xs:documentation>Importer.</xs:documentation>
                                        </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="PRNAB">
                                        <xs:annotation>
                                            <xs:documentation>Producent/Nabywca.</xs:documentation>
                                        </xs:annotation>
                                    </xs:enumeration>
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:attribute>
                        <xs:attribute name="period" type="tp5:ZPeriod" use="optional">
                            <xs:annotation>
                                <xs:documentation source="doc" xml:lang="pl">
                                    Data w formacie rok i miesiąc (RRRR-MM),
                                    gdzie RRRR - 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="tp5: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</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute name="submissionAim" type="tp5:ZSubmissionAim" use="required">
                            <xs:annotation>
                                <xs:documentation source="doc" xml:lang="pl">
                                    Cel złożenia formularza. Informacja czy dokument jest deklaracją czy korektą.
                                </xs:documentation>
								<xs:documentation source="box">7</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute name="orgDocNo" type="tp5: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:annotation>
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:maxLength value="256" />
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:attribute>
                        <xs:attribute name="selfRef" type="tp5: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="auth:Authentication" minOccurs="0" maxOccurs="1" />
                <xs:element ref="ds:Signature" minOccurs="0" maxOccurs="1" />
            </xs:sequence>
            <xs:attribute name="version" type="tp5: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>
