<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.mf.gov.pl/SENT/2017/12/08/SENT_462.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_462.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">
      SENT462 - Pobranie danych rejestracyjnego usług ZSL lub zmiana hasła operatora
    </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">
      SENT462 - Download of the registration data of ZSL services or operator's password change
    </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_462">
    <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 operatora ZSL
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Operation type for the ZSL operator
            </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 usług operatora ZSL
                  </xs:documentation>
                  <xs:documentation source="doc" xml:lang="en">
                    1-download a list of registered ZSL services
                  </xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="2">
                <xs:annotation>
                  <xs:documentation source="doc" xml:lang="pl">
                    2-podgląd danych pojedynczej usługi ZSL
                  </xs:documentation>
                  <xs:documentation source="doc" xml:lang="en">
                    2-preview a single ZSL service data
                  </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 usługi ZSL
                  </xs:documentation>
                  <xs:documentation source="doc" xml:lang="en">
                    3-change the authorisation password to the ZSL service
                  </xs:documentation>
                </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="4">
                <xs:annotation>
                  <xs:documentation source="doc" xml:lang="pl">
                    4-pobranie listy zarejestrowanych urządzeń GPS korzystających z usługi operatora ZSL
                  </xs:documentation>
                  <xs:documentation source="doc" xml:lang="en">
                    4-download a list of registered GPS devices related to the ZSL operator service
                  </xs:documentation>
                </xs:annotation>
              </xs:enumeration>
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element maxOccurs="1" minOccurs="0" 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="CurrentZSLOperatorPassword" type="xs:string">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Hasło autoryzacyjne operatora do usługi ZSL
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Authorisation password assigned to the operator of the ZSL service
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="1" minOccurs="0" name="NewZSLOperatorPassword" type="tp:NewPassword">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Nowe hasło autoryzacyjne operatora do usługi ZSL
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Pole występuje wyłacznie gdy element TypeOfOperation = '3'
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              New authorisation password to the ZSL service assigned to the operator
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Element required only when element TypeOfOperation = '3'
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="1" minOccurs="0" name="RetypeNewZSLOperatorPassword" type="tp:NewPassword">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Powtórzone nowe hasło autoryzacyjne operatora do usługi ZSL
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Pole występuje wyłącznie gdy element TypeOfOperation = '3'
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Retype new authorization password to the ZSL service assigned to the operator
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Element required only when element TypeOfOperation = '3'
            </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">
              Uwagi
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Comments
            </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>