<?xml version="1.0" encoding="utf-8"?>
<xs:schema 
        targetNamespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v3_0/AKC_P.xsd" 
        xmlns:ds="http://www.w3.org/2000/09/xmldsig#" 
        xmlns:xs="http://www.w3.org/2001/XMLSchema" 
        xmlns:akcp="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v3_0/AKC_P.xsd" 
        xmlns:tp3="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v3_0/Types.xsd" 
        xmlns:tr="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v3_0/Trader.xsd" 
        xmlns:auth="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v2_0/Authentication.xsd" 
        elementFormDefault="qualified" 
        attributeFormDefault="unqualified" 
        version="3_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/v3_0/Types.xsd" schemaLocation="Types_Z3.xsd"/>
    <xs:import namespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v3_0/Trader.xsd" schemaLocation="Trader_Z3.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">DEKLARACJA O WYSOKOŚCI AKCYZY POBRANEJ I WPŁACONEJ PRZEZ PŁATNIKA</xs:documentation>
		<!-- 
		<xs:documentation source="doc" xml:lang="pl">
Podstawa prawna:	Art. 103 ust. 2 ustawy z dnia 6 grudnia 2008 r. o podatku akcyzowym (Dz. U.  Nr 3, poz. 11).   
Termin składania: 	Do 7. dnia miesiąca następującego po miesiącu, w którym sprzedano samochód osobowy.
Miejsce składania: 	Urząd skarbowy kierowany przez naczelnika właściwego ze względu na miejsce wykonywania czynności lub wystąpienia stanu faktycznego, podlegających opodatkowaniu akcyzą;
jeżeli czynności podlegające opodatkowaniu akcyzą są wykonywane lub stany faktyczne podlegające opodatkowaniu akcyzą występują na obszarze właściwości miejscowej dwóch lub więcej urzędów skarbowych, to osoby prawne oraz jednostki organizacyjne niemające osobowości prawnej składają deklaracje w urzędzie skarbowymm kierowanym przez naczelnika właściwego ze względu na siedzibę podatnika, a osoby fizyczne – w urzędzie skarbowym kierowanym przez naczelnika właściwego ze względu na adres zamieszkania; 
jeżeli właściwym organem podatkowym jest Naczelnik Pierwszego Urzędu Skarbowego Warszawa-Śródmieście, to miejscem składania jest Pierwszy Urząd Skarbowy Warszawa-Śródmieście.

W przypadku niewpłacenia w obowiązującym terminie kwoty z pola 'toPay' lub wpłacenia jej w niepełnej wysokości, niniejsza deklaracja stanowi podstawę do wystawienia tytułu wykonawczego, zgodnie z przepisami ustawy z dnia 17 czerwca 1966 r. o postępowaniu egzekucyjnym w administracji  (Dz. U. z  2005 r. Nr 229, poz. 1954, z późn. zm.).
       </xs:documentation>
        -->
    </xs:annotation>
    <xs:element name="AKCP">
        <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" 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:complexType>
                                    <xs:sequence>
                                        <xs:element name="Corporate" type="tr:ZCorporate" minOccurs="1" maxOccurs="1"/>
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>
                            <xs:element name="AmountPayable" minOccurs="1" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation source="doc" xml:lang="pl">KWOTA PRZEDPŁATY PODATKU AKCYZOWEGO</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:attribute name="toPay" type="tp3:ZAmountT" use="required">
                                        <xs:annotation>
                                            <xs:documentation source="doc" xml:lang="pl">
                                                Kwota podatku akcyzowego do zapłaty będąca przeniesieniem wyniku obliczenia podatku w polu „Razem kwota podatku”
                                            </xs:documentation>
                                            <xs:documentation source="box">18</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                            <xs:element name="CalcAmountPayable" minOccurs="1" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation source="doc" xml:lang="pl">KWOTA PRZEDPŁATY PODATKU AKCYZOWEGO</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element name="Item" minOccurs="0" maxOccurs="999">
                                            <xs:annotation>
                                                <xs:documentation source="doc" xml:lang="pl">
                                                    OBLICZENIE KWOT PODATKU AKCYZOWEGO OD POSZCZEGÓLNYCH WYROBÓW
                                                </xs:documentation>
                                            </xs:annotation>
                                            <xs:complexType>
                                                <xs:sequence>
                                                    <xs:element name="CarDetails" type="tp3:ZCarDetails" minOccurs="0" maxOccurs="1">
                                                        <xs:annotation>
                                                            <xs:documentation source="doc" xml:lang="pl">
                                                                Dane indentyfikujące samochód
                                                            </xs:documentation>
                                                            <xs:documentation source="box">D.b</xs:documentation>
                                                        </xs:annotation>
                                                    </xs:element>
                                                </xs:sequence>
                                                <xs:attribute name="id" type="tp3: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="dateOfSale" type="xs:date" use="required">
                                                    <xs:annotation>
                                                        <xs:documentation source="doc" xml:lang="pl">
                                                            Data sprzedaży samochodu.
                                                        </xs:documentation>
                                                        <xs:documentation source="box">D.c</xs:documentation>
                                                    </xs:annotation>
                                                </xs:attribute>
                                                <xs:attribute name="codeCN" type="tp3:ZCodeCN" use="required">
                                                    <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="tp3:ZAmountP" use="required">
                                                    <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="taxRatePercentage" type="tp3:ZPercentage" use="required">
                                                    <xs:annotation>
                                                        <xs:documentation source="doc" xml:lang="pl">
                                                            Stawka podatku wyrażona ułamkiem dziesiętnym z dokładnością do 4 miejsc po przecinku.
                                                        </xs:documentation>
                                                        <xs:documentation source="box">D.f</xs:documentation>
                                                    </xs:annotation>
                                                </xs:attribute>
                                                <xs:attribute name="fromIsztar" type="xs:boolean" use="required">
                                                    <xs:annotation>
                                                        <xs:documentation source="doc" xml:lang="pl">Czy stawka podatku akcyzowego jest pobrana z Systemu ISZTAR.</xs:documentation>
                                                        <xs:documentation source="box">-</xs:documentation>
                                                    </xs:annotation>
                                                </xs:attribute>
                                                <xs:attribute name="amountOfTax" type="tp3: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:attribute name="sum" type="tp3:ZAmountT" use="required">
                                        <xs:annotation>
                                            <xs:documentation source="doc" xml:lang="pl">
                                                Kwota obliczonej przedpłaty akcyzy w zł.
                                            </xs:documentation>
                                            <xs:documentation source="box">85</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                            <xs:element name="Statement" type="tp3: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:documentation source="box">E</xs:documentation>
                                </xs:annotation>
                            </xs:element>
                        </xs:sequence>
                        <xs:attribute name="identifier" type="tp3:ZIdentification" use="required">
                            <xs:annotation>
                                <xs:documentation source="doc" xml:lang="pl">Pole na wprowadzenie NIP.</xs:documentation>
                                <xs:documentation source="box">1</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute name="period" type="tp3:ZPeriod" use="required">
                            <xs:annotation>
                                <xs:documentation source="doc" xml:lang="pl">Rok i miesiąc, za jaki została złożona deklaracja.</xs:documentation>
                                <xs:documentation source="box">-</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute name="taxOffice" type="tp3: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">4</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute name="submissionAim" type="tp3:ZSubmissionAim" use="required">
                            <xs:annotation>
                                <xs:documentation source="doc" xml:lang="pl">Informacja czy dokument jest deklaracją czy korektą.</xs:documentation>
                                <xs:documentation source="box">5</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute name="orgDocNo" type="tp3: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="selfRef" type="tp3: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="tp3: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>
