<?xml version="1.0" encoding="utf-8"?>
<xs:schema 
    targetNamespace="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v2_0/PZASResp.xsd"
    xmlns:pzas="http://www.e-clo.pl/ZEFIR2/eZefir2/xsd/v2_0/PZASResp.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 odpowiedzi dla potwierdzenia zapłaty akcyzy za samochód.</xs:documentation>
    </xs:annotation>
    <xs:element name="PZASResp">
        <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">Element główny.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element name="docNo" type="xs:string" minOccurs="0" maxOccurs="1">
                    <xs:annotation>
                        <xs:documentation source="doc" xml:lang="pl">Numer systemowy dokumentu potwierdzenia zapłaty.</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="dateOfIssue" type="xs:dateTime" minOccurs="1" maxOccurs="1">
                    <xs:annotation>
                        <xs:documentation source="doc" xml:lang="pl">Data i czas wystawienia dokumentu potwierdzenia.</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="car" minOccurs="0" maxOccurs="999">
                    <xs:annotation>
                        <xs:documentation source="doc" xml:lang="pl">Lista samochodów.</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="no" type="xs:int" minOccurs="1" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation source="doc" xml:lang="pl">Liczba porządkowa zwracanej pozycji.</xs:documentation>
                                </xs:annotation>
                            </xs:element>
                            <xs:element name="dateOfPayment" type="xs:date" minOccurs="1" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation source="doc" xml:lang="pl">Data zapłaty akcyzy.</xs:documentation>
                                </xs:annotation>
                            </xs:element>
                            <xs:element name="VIN" type="xs:string" minOccurs="1" 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="makeModel" type="xs:string" minOccurs="1" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation source="doc" xml:lang="pl">Marka i model samochodu.</xs:documentation>
                                </xs:annotation>
                            </xs:element>
                            <xs:element name="capacity" type="xs:string" minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation source="doc" xml:lang="pl">Pojemność silnika.</xs:documentation>
                                </xs:annotation>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <xs:element name="message" type="xs:string" minOccurs="0" maxOccurs="999">
                    <xs:annotation>
                        <xs:documentation source="doc" xml:lang="pl">Komunikaty błędu lub informacje dla podatnika.</xs:documentation>
                    </xs:annotation>
                </xs:element>                
                <xs:element name="doc" type="xs:base64Binary" minOccurs="0" maxOccurs="1">
                    <xs:annotation>
                        <xs:documentation source="doc" xml:lang="pl">Metadane dokumentu PDF potwierdzenia zapłaty akcyzy.</xs:documentation>
                    </xs:annotation>
                </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>
