<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.mf.gov.pl/SENT/2017/12/08/SENT_472.xsd" xmlns:tp="http://www.mf.gov.pl/SENT/2017/12/08/STypes.xsd" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.mf.gov.pl/SENT/2017/12/08/SENT_472.xsd">
  <xs:import namespace="http://www.mf.gov.pl/SENT/2017/12/08/STypes.xsd" schemaLocation="STypes.xsd"/>
  <xs:annotation>
    <xs:appinfo>
      SENT
    </xs:appinfo>
    <xs:documentation source="doc" xml:lang="pl">
      SENT472 - Komunikat pobrania danych rejestracyjnych urządzeń GPS korzystających z usługi ZSL
    </xs:documentation>
    <xs:documentation source="doc" xml:lang="pl">
      Podstawa prawna: Ustawa z dnia 9 marca 2017r. o systemie monitorowania drogowego i kolejowego przewozu towarów (Dz. U. poz. 708, z późn. zm.)
    </xs:documentation>
    <xs:documentation source="doc" xml:lang="en">
      SENT472 - A message to download the registration data of GPS devices using the ZSL service
    </xs:documentation>
    <xs:documentation source="doc" xml:lang="en">
      Legal basis: Act of 9 March 2017 on the road and rail transport monitoring system (Journal of Laws, item 708, with subsequest amendments)
    </xs:documentation>
  </xs:annotation>
  <xs:element name="SENT_472">
    <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 maxOccurs="1" minOccurs="1" name="TypeOfOperation">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Typ operacji dla przewoźnika w ramach usługi ZSL
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Operation type for the carrier related to the ZSL service
            </xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:integer">
              <xs:enumeration value="1">
                <xs:annotation>
                  <xs:documentation source="doc" xml:lang="pl">
                    1-pobranie listy zarejestrowanych i aktywnych urządzeń GPS wraz z ich ostatnimi lokalizacjami zapisanymi w SENT-GEO
                  </xs:documentation>
                  <xs:documentation source="doc" xml:lang="en">
                    1-download a list of active GPS devices including last registered GPS position in SENT-GEO
                  </xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="2">
                <xs:annotation>
                  <xs:documentation source="doc" xml:lang="pl">
                    2-Podgląd danych rejestracyjnych przewoźnika i urządzeń GPS
                  </xs:documentation>
                  <xs:documentation source="doc" xml:lang="en">
                    2-preview data of the carrier and GPS devices
                  </xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="3">
                <xs:annotation>
                  <xs:documentation source="doc" xml:lang="pl">
                    3-zmiana hasła autoryzacyjnego do zarządzania urządzeniami GPS
                  </xs:documentation>
                  <xs:documentation source="doc" xml:lang="en">
                    3-change the authorisation password to the manage GPS devices
                  </xs:documentation>
                  <xs:documentation/>
                </xs:annotation>
              </xs:enumeration>
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element maxOccurs="1" minOccurs="1" name="ZSLServiceNumber" type="tp:ZSLServiceNumber">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Numer usługi ZSL
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Number of the ZSL service
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="1" minOccurs="1" name="CurrentZSLCarrierPassword" type="xs:string">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Aktualne hasło autoryzacyjne przypisane dla operacji wykonywanych przez zarządzającego urządzeniami GPS
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Current authorization password assigned for operations performed by the management of GPS devices
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="1" minOccurs="0" name="NewZSLCarrierPassword" type="tp:NewPassword">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Nowe hasło autoryzacyjne przypisane dla operacji wykonywanych przez zarządzającego urządzeniami GPS
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              New authorization password assigned for operations performed by the management of GPS devices
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="1" minOccurs="0" name="RetypeNewZSLCarrierPassword" type="tp:NewPassword">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Powtórzone nowe hasło autoryzacyjne przypisane dla operacji wykonywanych przez zarządzającego urządzeniami GPS
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Repeated new authorization password assigned for operations performed by the managing GPS devices
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="1" minOccurs="0" name="Comments" type="tp:Comments">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacje dodatkowe
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Additional information
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="1" minOccurs="0" name="DocumentId" type="tp:DocumentSelfNumber">
          <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 maxOccurs="1" minOccurs="0" name="ResponseAddress" type="tp:ResponseAddress">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Kanały komunikacji zwrotnej - adresy email lub Webservice, na które system SENT odeśle komunikat zwrotny (np. potwierdzenie, odpowiedź)
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Feedback communication channel - e-mail address or Webservice to which the SENT system returns the message (e.g. confirmation, answer)
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="1" minOccurs="1" name="Statements" type="tp:Statements">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Oświadczenie o posiadaniu upoważnienia do działania w imieniu podmiotu zobowiązanego do wypełnienia i przesłania zgłoszenia
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Declaration on having the authorization to act on behalf of the entity obliged to fill and send the notification
            </xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>