<?xml version="1.0" encoding="utf-8"?>
<xs:schema 
    targetNamespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v2_0/PZASReq.xsd"
    xmlns:pzas="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v2_0/PZASReq.xsd"
    xmlns:tp="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v2_0/Types.xsd" 
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified"
    version="2_0"
    xml:lang="pl">
    
    <xs:import namespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v2_0/Types.xsd"
               schemaLocation="Types_Z2.xsd" />
    
    <xs:annotation>
        <xs:documentation source="doc" xml:lang="pl">Definicja zapytania dla potwierdzenia zapłaty akcyzy za samochód.</xs:documentation>
    </xs:annotation>
    <xs:element name="PZASReq">
        <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">Element główny.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element name="collective" type="xs:boolean" minOccurs="1" maxOccurs="1">
                    <xs:annotation>
                        <xs:documentation source="doc" xml:lang="pl">Znacznik, który gdy jest ustawiony na True oznacza, że w odpowiedzi należy zwrócić wszystkie VIN powiązane jednym dokumentem. Domyślnie false.</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="VIN" type="xs:string" minOccurs="0" maxOccurs="1">
                    <xs:annotation>
                        <xs:documentation source="doc" xml:lang="pl">Numer identyfikacyjny pojazdu VIN albo numer nadwozia, podwozia lub ramy.</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="UPONumber" type="xs:string" minOccurs="0" maxOccurs="1">
                    <xs:annotation>
                        <xs:documentation source="doc" xml:lang="pl">Numer Urzędowego Potwierdzenia Odbioru dla dokumentu akcyzy, na którym znajdują się pojazdy, dla których ma być wydane potwierdzenie.</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="docAmount" minOccurs="0" maxOccurs="1">
                    <xs:annotation>
                        <xs:documentation source="doc" xml:lang="pl">Kwota dokumentu weryfikująca czy użytkownik ma uprawnienia do pobrania potwierdzenia zbiorczego.</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                        <xs:restriction base="xs:decimal">
                            <xs:fractionDigits value="0"/>
                            <xs:totalDigits value="12"/>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:element>
            </xs:sequence>
            <xs:attribute name="version" type="tp: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:attribute name="selfRef" type="tp: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:schema>
