<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://www.mf.gov.pl/SENT/2020/07/21/ZSL_122.xsd"
           xmlns:zp="http://www.mf.gov.pl/SENT/2020/07/21/ZTypes.xsd"
           xmlns:xs="http://www.w3.org/2001/XMLSchema"
           elementFormDefault="qualified" attributeFormDefault="unqualified">

    <xs:import namespace="http://www.mf.gov.pl/SENT/2020/07/21/ZTypes.xsd" schemaLocation="ZTypes.xsd"/>

    <xs:annotation>
        <xs:appinfo>eTOLL ZSL</xs:appinfo>
        <xs:documentation source="doc" xml:lang="pl">ZSL_122 - Pobranie listy urządzeń GPS powiązanych z usługą ZSL/OBU</xs:documentation>
        <xs:documentation source="doc" xml:lang="pl">Podstawa prawna: .................................................................</xs:documentation>
        <xs:documentation source="doc" xml:lang="en">ZSL_122 - Download the list of GPS devices related to the ZSL/OBU service</xs:documentation>
        <xs:documentation source="doc" xml:lang="en">Legal basis: .....................................................................</xs:documentation>
    </xs:annotation>

    <xs:element name="ZSL_122">
        <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">Element główny komunikatu</xs:documentation>
            <xs:documentation source="doc" xml:lang="en">Main element of the message</xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element name="OBEOperatorIdentityType" type="zp:TraderIdentityType" minOccurs="1" maxOccurs="1">
                    <xs:annotation>
                        <xs:documentation source="doc" xml:lang="pl">Typ identyfikatora operatora ZSL/OBU</xs:documentation>
                        <xs:documentation source="doc" xml:lang="en">Operator identification type</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="OBEOperatorIdentityNumber" type="zp:TraderIdentityNumber" minOccurs="1" maxOccurs="1">
                    <xs:annotation>
                        <xs:documentation source="doc" xml:lang="pl">Numer identyfikatora operatora ZSL/OBU</xs:documentation>
                        <xs:documentation source="doc" xml:lang="en">Operator identification number</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="OBEDevicesSearchAttributes" type="zp:OBEDevicesSearchAttributes" minOccurs="1" maxOccurs="1">
                    <xs:annotation>
                        <xs:documentation source="doc" xml:lang="pl">Wartości pól wyszukiwania urządzeń</xs:documentation>
                        <xs:documentation source="doc" xml:lang="en">Devices search attributes</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="OBEDevicesLimitValues" type="zp:OBEDevicesLimitValues" minOccurs="1" maxOccurs="1">
                    <xs:annotation>
                        <xs:documentation source="doc" xml:lang="pl">Atrybuty limitu danych w rejestrze</xs:documentation>
                        <xs:documentation source="doc" xml:lang="en">Data limit attributes in the registry</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="OBEDevicesSortAttributes" type="zp:OBEDevicesSortAttributes" minOccurs="1" maxOccurs="1">
                    <xs:annotation>
                        <xs:documentation source="doc" xml:lang="pl">Atrybuty sortowania</xs:documentation>
                        <xs:documentation source="doc" xml:lang="en">Sorting attributes</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="DocumentId" type="zp:DocumentId" minOccurs="0" maxOccurs="1">
                    <xs:annotation>
                        <xs:documentation source="doc" xml:lang="pl">Numer własny dokumentu</xs:documentation>
                        <xs:documentation source="doc" xml:lang="en">Own document number</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="ResponseEmail" type="zp:Email" minOccurs="0" maxOccurs="1">
                    <xs:annotation>
                        <xs:documentation source="doc" xml:lang="pl">Email zwrotny, na który system odeśle komunikat zwrotny (np. potwierdzenie, odpowiedź)</xs:documentation>
                        <xs:documentation source="doc" xml:lang="en">Feedback email address to which the system returns the message (e.g. confirmation, answer)</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="ResponseWebService" type="zp:OBEResponseChannel" minOccurs="0" maxOccurs="1">
                    <xs:annotation>
                        <xs:documentation source="doc" xml:lang="pl">Webservice zwrotny SOAP, na który system odeśle komunikat zwrotny (np. potwierdzenie, odpowiedź)</xs:documentation>
                        <xs:documentation source="doc" xml:lang="en">Feedback SOAP webservice to which the system returns the message (e.g. confirmation, answer)</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="OBEOperatorPassword" type="xs:string"  minOccurs="0" maxOccurs="1">
                    <xs:annotation>
                        <xs:documentation source="doc" xml:lang="pl">Hasło autoryzacyjne operatora do usługi ZSL/OBU. Dotyczy wyłącznie środowiska testowego !!!!!</xs:documentation>
                        <xs:documentation source="doc" xml:lang="en">Authorisation password to the ZSL/OBU test service assigned to the operator. Use only in test environment !!!!!</xs:documentation>
                    </xs:annotation>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>