<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.mf.gov.pl/SENT/2017/12/08/SENT_470.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_470.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">
      SENT470 - Rejestracja urządzeń GPS przewoźnika powiązanych z usługą 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">
      SENT470 - Registration of the carrier's GPS devices related to 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_470">
    <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="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="ZSLCarrierPassword" type="xs:string">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Hasło autoryzacyjne przewoźnika do usługi ZSL
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Authorisation password to ZSL service assigned to the carrier
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="1" minOccurs="1" name="ZSLCarrier" type="tp:Trader">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacje o przewoźniku rejestrującym urządzenia GPS
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Information about the carrier registering GPS devices
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="200" minOccurs="0" name="GPSDeviceToAdd" type="tp:GPSDevice">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Identyfikator techniczny urządzenia GPS do dodania do usługi ZSL
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              The technical identifier of GPS device to add to the ZSL service
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="1" minOccurs="1" name="AdministratorServices" type="tp:AdministratorServices">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Informacje kontaktowe do administratora przewoźnika rejestrującego urządzenia GPS
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Contact details to the administrator of the carrier that registers a GPS device
            </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 number of the document
            </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, odpowiedz)
            </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 complete and send the notification
            </xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>