<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://www.mf.gov.pl/SENT/2020/07/21/ZSL_120.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">ZSL120 - Dodanie lub usunięcie urządzeń GPS do usługi ZSL/OBU</xs:documentation>
		<xs:documentation source="doc" xml:lang="pl">Podstawa prawna: ....................................</xs:documentation>
		<xs:documentation source="doc" xml:lang="en">ZSL120 - Add or remove GPS devices from ZSL/OBU service</xs:documentation>
		<xs:documentation source="doc" xml:lang="en">Legal basis: ........................................</xs:documentation>
	</xs:annotation>
	<xs:element name="ZSL_120">
		<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="OBEServiceNumber" type="zp:OBEServiceNumber"  minOccurs="1" maxOccurs="1">
					<xs:annotation>
						<xs:documentation source="doc" xml:lang="pl">Numer usługi ZSL/OBU</xs:documentation>
						<xs:documentation source="doc" xml:lang="en">Number of the ZSL/OBU service</xs:documentation>
					</xs:annotation>
				</xs:element>
				<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:choice>
					<xs:element name="GPSDeviceToAdd" type="zp:GPSDevice" minOccurs="1" maxOccurs="1000">
						<xs:annotation>
							<xs:documentation source="doc" xml:lang="pl">Identyfikator techniczny urządzenia GPS do dodania do usługi ZSL/OBU</xs:documentation>
							<xs:documentation source="doc" xml:lang="en">The technical identifier of GPS device to add to the ZSL/OBU service</xs:documentation>
						</xs:annotation>
					</xs:element>
					<xs:element name="GPSDeviceToRemove" type="zp:GPSDeviceID" minOccurs="1" maxOccurs="1000">
						<xs:annotation>
							<xs:documentation source="doc" xml:lang="pl">Identyfikator techniczny urządzenia GPS do usunięcia z usługi ZSL/OBU</xs:documentation>
							<xs:documentation source="doc" xml:lang="en">The technical identifier of GPS device to remove from the ZSL/OBU service</xs:documentation>
						</xs:annotation>
					</xs:element>
				</xs:choice>
				<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>
