<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 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/STypes.xsd">
  <xs:simpleType name="City">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Nazwa miejscowości
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        A message of verification of keys and downloading the notification of the carriage of goods
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Locality name
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Legal basis: Act on monitoring road and rail carriage of goods
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:maxLength value="60">
      </xs:maxLength>
      <xs:minLength value="1">
      </xs:minLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="CityPL">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Nazwa miejscowości wg podziału terytorialnego SIMC - słownik PDR 502A
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        Element Krajowego rejestru urzędowego podziału terytorialnego kraju (SIMC)
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Polish village name of territorial division (SIMC)- PDR glossary 502A
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Element of the National Register of Official Territorial Division of the Country (SIMC)
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:maxLength value="60">
      </xs:maxLength>
      <xs:minLength value="1">
      </xs:minLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="Street">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Nazwa ulicy
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Street name
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="1">
      </xs:minLength>
      <xs:maxLength value="80">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="Country">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Kod kraju - słownik PDR 007A
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Country code - PDR glossary 007A
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse"/>
      <xs:length value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="CountryPL">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Kod kraju - wyłącznie PL
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Country code - only PL
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="2" />
      <xs:whiteSpace value="collapse"/>
      <xs:enumeration value="PL"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="HouseNumber">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Numer budynku
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Building number
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="1">
      </xs:minLength>
      <xs:maxLength value="10">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="FlatNumber">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Numer lokalu
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Premises number
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="1">
      </xs:minLength>
      <xs:maxLength value="10">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="PostalCode">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Kod pocztowy
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Zip code
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:minLength value="1">
      </xs:minLength>
      <xs:maxLength value="9">
      </xs:maxLength>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="Pesel">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Numer PESEL
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        PESEL number
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:normalizedString">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:length value="11">
      </xs:length>
      <xs:pattern value="\d{11}">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="Nip">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Numer NIP podmiotu pisany bez myślników
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Entity NIP number, written without dashes
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:normalizedString">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:length value="10">
      </xs:length>
      <xs:pattern value="\d{10}">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="FirstName">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Imię
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        First name
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="1">
      </xs:minLength>
      <xs:maxLength value="80">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="LastName">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Nazwisko
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Surname
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="1">
      </xs:minLength>
      <xs:maxLength value="80">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="Address">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Adres pocztowy
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Postal address
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Street" type="tp:Street" minOccurs="1" maxOccurs="1"/>
      <xs:element name="HouseNumber" type="tp:HouseNumber" minOccurs="1" maxOccurs="1"/>
      <xs:element name="FlatNumber" type="tp:FlatNumber" minOccurs="0" maxOccurs="1"/>
      <xs:element name="City" type="tp:City" minOccurs="1" maxOccurs="1"/>
      <xs:element name="Country" type="tp:Country" minOccurs="1" maxOccurs="1"/>
      <xs:element name="PostalCode" type="tp:PostalCode" minOccurs="1" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AddressPL">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Adres pocztowy polski
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Polish postal address
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Street" type="tp:Street" minOccurs="1" maxOccurs="1"/>
      <xs:element name="HouseNumber" type="tp:HouseNumber" minOccurs="1" maxOccurs="1"/>
      <xs:element name="FlatNumber" type="tp:FlatNumber" minOccurs="0" maxOccurs="1"/>
      <xs:element name="City" type="tp:City" minOccurs="1" maxOccurs="1"/>
      <xs:element name="Country" type="tp:CountryPL" minOccurs="1" maxOccurs="1" fixed="PL"/>
      <xs:element name="PostalCode" type="tp:PostalCode" minOccurs="1" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="GeoAddressPL">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Adres pocztowy polski
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Polish postal address
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Street" type="tp:Street" minOccurs="1" maxOccurs="1"/>
      <xs:element name="HouseNumber" type="tp:HouseNumber" minOccurs="1" maxOccurs="1"/>
      <xs:element name="FlatNumber" type="tp:FlatNumber" minOccurs="0" maxOccurs="1"/>
      <xs:element name="City" type="tp:CityPL" minOccurs="1" maxOccurs="1"/>
      <xs:element name="Country" type="tp:CountryPL" minOccurs="1" maxOccurs="1" fixed="PL"/>
      <xs:element name="PostalCode" type="tp:PostalCode" minOccurs="1" maxOccurs="1"/>
      <xs:element name="CodeTERC" type="tp:CodeTERC" minOccurs="1" maxOccurs="1"/>
      <xs:element name="CodeSIMC" type="tp:CodeSIMC" minOccurs="0" maxOccurs="1"/>
      <xs:element name="CodeULIC" type="tp:CodeULIC" minOccurs="0" maxOccurs="1"/>
      <xs:element name="Latitude" type="tp:Latitude" minOccurs="1" maxOccurs="1"/>
      <xs:element name="Longitude" type="tp:Longitude" minOccurs="1" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="IdSisc">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Numer identyfikacyjny podmiotu lub osoby w Systemie Informacyjnym Skarbowo-Celnym
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Identification number of an entity or a person in the Tax and Customs Information System
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="17">
      </xs:length>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="IdSeap">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Numer identyfikacyjny użytkownika w systemie SEAP
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Identification number of a user in the SEAP system
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="1">
      </xs:minLength>
      <xs:maxLength value="36">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="Nationality">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Kod obywatelstwa osoby fizycznej - słownik PDR 007A
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Natural person citizenship code - PDR glossary 007A
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="2">
      </xs:length>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="Date">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Data dzienna
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Daily date
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:date">
      <xs:minInclusive value="2017-01-01" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="DateTime">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Data i czas
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Date and time
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:dateTime">
      <xs:minInclusive value="2017-01-01T00:00:00" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="PersonIdentityType">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Typ dokumentu tożsamości osoby fizycznej - Słownik PDR 1323
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Identity type of natural person - PDR Dictionary 1323
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="PersonIdentityNumber">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Numer dokumentu tożsamości
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Identification document number
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="2">
      </xs:minLength>
      <xs:maxLength value="32">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="TraderIdentityTypeIDNull">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Rodzaj identyfikacji podatkowej
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Tax identification type
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="2">
      </xs:minLength>
      <xs:maxLength value="10">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:enumeration value="BRAK">
      </xs:enumeration>
      <xs:enumeration value="NIP">
      </xs:enumeration>
      <xs:enumeration value="PESEL">
      </xs:enumeration>
      <xs:enumeration value="VAT UE">
      </xs:enumeration>
      <xs:enumeration value="INNY">
      </xs:enumeration>
      <xs:enumeration value="DO">
      </xs:enumeration>
      <xs:enumeration value="KS">
      </xs:enumeration>
      <xs:enumeration value="PJ">
      </xs:enumeration>
      <xs:enumeration value="PS">
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="TraderIdentityNumber">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Numer identyfikacji podatkowej
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Tax Identification Number
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="4">
      </xs:minLength>
      <xs:maxLength value="32">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="TraderName">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Imię i nazwisko albo Nazwa podmiotu
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Name of entity
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:minLength value="2">
      </xs:minLength>
      <xs:maxLength value="300">
      </xs:maxLength>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="Weight">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Pole aktualnie nieużywane
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Currently unused field
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:minExclusive value="0">
      </xs:minExclusive>
      <xs:maxExclusive value="1500000">
      </xs:maxExclusive>
      <xs:totalDigits value="9" />
      <xs:fractionDigits value="2" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="Email">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Adres email
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Email address
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="5">
      </xs:minLength>
      <xs:maxLength value="255">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="[A-Za-z0-9]+((\.|-|_)[A-Za-z0-9]+)*(@[A-Za-z0-9]+((\.|-|_)[A-Za-z0-9]+)*){1}">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="Url">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Adres url webservice
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Url webservice address
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:anyURI">
      <xs:minLength value="1">
      </xs:minLength>
      <xs:maxLength value="255">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="UserName">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Nazwa użytkownika
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        User name
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="2">
      </xs:minLength>
      <xs:maxLength value="255">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="UserPassword">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Hasło użytkownika
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        User password
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="2">
      </xs:minLength>
      <xs:maxLength value="255">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AuthenticationKey">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Odcisk palca certyfikatu użytkownika
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Fingerprint of user’s certificate
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="2">
      </xs:minLength>
      <xs:maxLength value="400">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="IPAddress">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Adres IP serwera
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        IP address
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern
                  value="(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="CodeCN">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Pozycje towarów wg Nomenklatury Scalonej - słownik PDR 1300
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Code of goods according to Combined Nomenclature - PDR glossary 1300
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="4">
      </xs:minLength>
      <xs:maxLength value="8">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="\d*">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="CodePKWiU">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Kody towarów wg Polskiej Klasyfikacji Wyrobów i Usług - słownik PDR 1301
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Codes of goods according to Polish Classification of Goods and Services - PDR glossary 1301
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="2">
      </xs:minLength>
      <xs:maxLength value="17">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="CodeEAN">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Kody produktów leczniczych objetych zakazem wywozu wg nomenklatury Europejskiego Kodu Towarowego EAN - słownik PDR 1314
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Codes of medicinal products subject to export ban according to the nomenclature of European Commodity Code EAN - PDR glossary 1314
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="\d{13,14}">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="GoodsName">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Nazwa / rodzaj towarów
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Name / type of goods
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="3">
      </xs:minLength>
      <xs:maxLength value="500">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="Currency">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Kod waluty - słownik PDR 026
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Currency code - PDR glossary 026
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="3">
      </xs:length>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="UnitOfMeasure">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Kod jednostki miary - słownik PDR 1303
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Measurement unit code - PDR glossary 1303
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="1">
      </xs:minLength>
      <xs:maxLength value="15">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="TypeOfTransportDocument">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Rodzaj dokumentu przewozowego - słownik PDR 1304
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Type of transport document - PDR glossary 1304
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="2">
      </xs:minLength>
      <xs:maxLength value="32">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NumberOfTransportDocument">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Numer dokumentu przewozowego towarzyszącego przesyłce
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Number of transport document accompanying the consignment
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="2">
      </xs:minLength>
      <xs:maxLength value="32">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="TransportSender">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacje o transporcie towarów wypełniane przez podmiot wysyłający / nadawcę
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information on the transport of goods filled in by the consignor / shipper
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PlannedStartCarriageDate" type="tp:Date" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Planowana data rozpoczęcia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Planned start date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlaceOfLoading" type="tp:GeoAddressPL" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce załadunku towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of goods loading
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="SalesWithoutTransport">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacje o miejscu transakcji
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information on the place of transaction
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DateOfTransaction" type="tp:Date" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Data transakcji
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Transaction date
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlaceOfTransaction" type="tp:GeoAddressPL" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce transakcji
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of transaction
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransportRecipient">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacje o transporcie towarów wypełniane przez podmiot odbierający / odbiorcę
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information on the transport of goods filled in by the consignee / recipient
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PlaceOfDelivery" type="tp:GeoAddressPL" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce dostarczenia towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of goods delivery
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OilHeatingAddressId" type="tp:OilHeatingAddressId" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Kod miejsca dostawy towaru dla przewozu paliwa opałowego
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Delivery place code for heating fuel carriage
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OilMobileDeviceId" type="tp:OilMobileDeviceId" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Kod urządzenia opałowego niestacjonarnego dla przewozu oleju opałowego
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Non stationary heating device code for heating oil carriage
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransportCarrier">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacje o transporcie towarów wypełniane przez przewoźnika
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information on the transport of goods filled in by carrier
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StartTransportDate" type="tp:Date" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Data rozpoczęcia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Start date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndTransportDate" type="tp:Date" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Planowana data zakończenia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Planned end date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EntranceToPoland" type="tp:EntranceToPoland" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce wjazdu na terytorium Polski
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of entry to Poland
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ExitFromPoland" type="tp:ExitFromPoland" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce wyjazdu poza terytorium Polski
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of exit from Poland
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransportCarrierFromSender">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacje o transporcie towarów wypełniane przez przewoźnika dla zgłoszenia przewozu zarejestrowanego przez podmiot wysyłający
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information on the transport of goods filled in by carrier for the notification of the carriage of goods registered by the consignor
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StartTransportDate" type="tp:Date" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Data rozpoczęcia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Start date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndTransportDate" type="tp:Date" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Planowana data zakończenia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Planned end date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlaceOfDelivery" type="tp:GeoAddressPL" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce dostarczenia towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Element obligatoryjny jeśli miejsce dostarczenia towaru znajduje się na terenie Polski
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of goods delivery
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            An obligatory element if the place of delivery is located in Poland
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ExitFromPoland" type="tp:ExitFromPoland" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce wyjazdu poza terytorium Polski
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Element obligatoryjny jeśli następuje wyjazd Polski
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of exit from Poland
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            An obligatory element if Poland leaves Poland
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OilHeatingAddressId" type="tp:OilHeatingAddressId" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Kod miejsca dostawy towaru dla przewozu paliwa opałowego
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Delivery place code for heating fuel carriage
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OilMobileDeviceId" type="tp:OilMobileDeviceId" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Kod urządzenia opałowego niestacjonarnego dla przewozu oleju opałowego
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Non stationary heating device code for heating oil carriage
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransportCarrierToRecipient">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacje o transporcie towarów wypełniane przez przewoźnika dla zgłoszenia przewozu zarejestrowanego przez podmiot odbierający
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information on the transport of goods filled in by carrier for the notification of the carriage of goods registered by the consignee
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StartTransportDate" type="tp:Date" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Data rozpoczęcia przewozu
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Start date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndTransportDate" type="tp:Date" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Planowana data zakończenia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Planned end date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EntranceToPoland" type="tp:EntranceToPoland" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce wjazdu na terytorium Polski
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of entry to Poland
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransportFromSender">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacje o transporcie dla podmiotu wysyłajacego
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information on the transport
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PlannedStartCarriageDate" type="tp:Date" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Planowana data rozpoczęcia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Planned start date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartTransportDate" type="tp:Date" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Data rozpoczęcia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Start date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndTransportDate" type="tp:Date" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Planowana data zakończenia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Planned end date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlaceOfLoading" type="tp:GeoAddressPL" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce załadunku towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of goods loading
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ExitFromPoland" type="tp:ExitFromPoland" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce wyjazdu poza terytorium Polski
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of exit from Poland
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlaceOfDelivery" type="tp:GeoAddressPL" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce dostarczenia towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Element obligatoryjny jeśli miejsce dostarczenia towaru znajduje się na terenie Polski
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of goods delivery
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            An obligatory element if the place of delivery is located in Poland
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OilHeatingAddressId" type="tp:OilHeatingAddressId" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Kod miejsca dostawy towaru dla przewozu paliwa opałowego
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Delivery place code for heating fuel carriage
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OilMobileDeviceId" type="tp:OilMobileDeviceId" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Kod urządzenia opałowego niestacjonarnego dla przewozu oleju opałowego
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Non stationary heating device code for heating oil carriage
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransportRecipientFromSender">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacje o transporcie dla podmiotu odbierającego i przewoźnika dla zgłoszenia przewozu zarejestrowanego przez podmiot wysyłający
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information on the transport
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PlannedStartCarriageDate" type="tp:Date" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Planowana data rozpoczęcia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Planned start date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartTransportDate" type="tp:Date" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Data rozpoczęcia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Start date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndTransportDate" type="tp:Date" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Planowana data zakończenia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Planned end date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlaceOfLoading" type="tp:GeoAddressPL" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce załadunku towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of goods loading
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlaceOfDelivery" type="tp:GeoAddressPL" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce dostarczenia towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of goods delivery
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ExitFromPoland" type="tp:ExitFromPoland" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce wyjazdu poza terytorium Polski
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of exit from Poland
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OilHeatingAddressId" type="tp:OilHeatingAddressId" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Kod miejsca dostawy towaru dla przewozu paliwa opałowego
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Delivery place code for heating fuel carriage
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OilMobileDeviceId" type="tp:OilMobileDeviceId" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Kod urządzenia opałowego niestacjonarnego dla przewozu oleju opałowego
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Non stationary heating device code for heating oil carriage
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransportToRecipient">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacje o transporcie
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information on the transport
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StartTransportDate" type="tp:Date" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Data rozpoczęcia przewozu
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Start date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndTransportDate" type="tp:Date" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Planowana data zakończenia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Planned end date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlaceOfDelivery" type="tp:GeoAddressPL" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce dostarczenia towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of goods delivery
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EntranceToPoland" type="tp:EntranceToPoland" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce wjazdu na terytorium Polski
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of entry to Poland
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OilHeatingAddressId" type="tp:OilHeatingAddressId" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Kod miejsca dostawy towaru dla przewozu paliwa opałowego
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Delivery place code for heating fuel carriage
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OilMobileDeviceId" type="tp:OilMobileDeviceId" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Kod urządzenia opałowego niestacjonarnego dla przewozu oleju opałowego
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Non stationary heating device code for heating oil carriage
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransportAllSender">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacje o transporcie 
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information on the transport
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PlannedStartCarriageDate" type="tp:Date" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Planowana data rozpoczęcia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Planned start date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartTransportDate" type="tp:Date" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Data rozpoczęcia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Start date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndTransportDate" type="tp:Date" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Planowana data zakończenia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Planned end date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlaceOfLoading" type="tp:GeoAddressPL" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce załadunku towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of goods loading
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlaceOfDelivery" type="tp:GeoAddressPL" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce dostarczenia towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Element obligatoryjny jeśli miejsce dostarczenia towaru znajduje się na terenie Polski
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of goods delivery
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            An obligatory element if the place of delivery is located in Poland
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ExitFromPoland" type="tp:ExitFromPoland" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce wyjazdu poza terytorium Polski
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Element obligatoryjny jeśli następuje wyjazd Polski
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of exit from Poland
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            An obligatory element if Poland leaves Poland
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OilHeatingAddressId" type="tp:OilHeatingAddressId" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Kod miejsca dostawy towaru dla przewozu paliwa opałowego
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Delivery place code for heating fuel carriage
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OilMobileDeviceId" type="tp:OilMobileDeviceId" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Kody urządzeń opałowych niestacjonarnych dla przewozu oleju opałowego
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Non stationary heating device codes for heating oil carriage
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransportAllRecipient">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacje o transporcie 
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information on the transport
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StartTransportDate" type="tp:Date" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Data rozpoczęcia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Start date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndTransportDate" type="tp:Date" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Planowana data zakończenia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Planned end date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlaceOfDelivery" type="tp:GeoAddressPL" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce dostarczenia towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Element obligatoryjny jeśli miejsce dostarczenia towaru znajduje się na terenie Polski
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of goods delivery
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            An obligatory element if the place of delivery is located in Poland
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EntranceToPoland" type="tp:EntranceToPoland" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce wjazdu na terytorium Polski
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of entry to Poland
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OilHeatingAddressId" type="tp:OilHeatingAddressId" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Kod miejsca dostawy towaru dla przewozu paliwa opałowego
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Delivery place code for heating fuel carriage
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OilMobileDeviceId" type="tp:OilMobileDeviceId" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Kod urządzenia opałowego niestacjonarnego dla przewozu oleju opałowego
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Non stationary heating device code for heating oil carriage
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransportAll">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacje o transporcie
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information on the transport
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PlannedStartCarriageDate" type="tp:Date" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Planowana data rozpoczęcia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Planned start date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartTransportDate" type="tp:Date" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Data rozpoczęcia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Start date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndTransportDate" type="tp:Date" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Planowana data zakończenia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Planned end date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlaceOfLoading" type="tp:GeoAddressPL" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce załadunku towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of goods loading
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlaceOfDelivery" type="tp:GeoAddressPL" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce dostarczenia towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of goods delivery
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EntranceToPoland" type="tp:EntranceToPoland" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce wjazdu na terytorium Polski
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of entry to Poland
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ExitFromPoland" type="tp:ExitFromPoland" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce wyjazdu poza terytorium Polski
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of exit from Poland
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OilHeatingAddressId" type="tp:OilHeatingAddressId" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Kod miejsca dostawy towaru dla przewozu paliwa opałowego
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Delivery place code for heating fuel carriage
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OilMobileDeviceId" type="tp:OilMobileDeviceId" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Kod urządzenia opałowego niestacjonarnego dla przewozu oleju opałowego
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Non stationary heating device code for heating oil carriage
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="RouteNumber">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Numer drogi - słownik PDR 1306
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Road number - PDR glossary 1306
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="1">
      </xs:minLength>
      <xs:maxLength value="32">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="RoutePlace">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Miejsce przekroczenia granicy (np. nazwa miejscowości, przejście graniczne) - słownik PDR 1306
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Place of border crossing (e.g. name of location, border crossing point) - PDR glossary 1306
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="1">
      </xs:minLength>
      <xs:maxLength value="255">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="OtherPlace">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Miejsce przekroczenia granicy (np. wskazanie adresu oddziału celnego, portu lotniczego)
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Place of border crossing (e.g. address of customs branch office, airport)
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="1">
      </xs:minLength>
      <xs:maxLength value="300">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NumberOfMeansOfTransport">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Numer rejestracyjny środka transportu lub numer pociągu
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Means of transport registration number or train number
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="4">
      </xs:minLength>
      <xs:maxLength value="89">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NumberOfRoadPermit">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Numer zezwolenia drogowego
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Number of road permit
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="1">
      </xs:minLength>
      <xs:maxLength value="32">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="EntranceToPoland">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Elementy określające miejsce wjazdu do Polski
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Elements determining the place of entry to Poland
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RoutePlace" type="tp:RoutePlace" maxOccurs="1" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Pole nieobowiązkowe tylko w przypadku określenia miejsca w elemencie OtherPlace i braku odpowiedniej wartości w słowniku PDR 1306
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Element is optional if place of border crossing is specified in the element OtherPlace and the corresponding value is missig in PDR glossary 1306
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RouteNumber" type="tp:RouteNumber" maxOccurs="1" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Pole nieobowiązkowe tylko w przypadku transportu kolejowego lub określenia miejsca w elemencie OtherPlace i braku odpowiedniej wartości w słowniku PDR 1306
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Element is optional only for rail transport or if place of border crossing is specified in the element OtherPlace and the corresponding value is missig in PDR glossary 1306
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OtherPlace" type="tp:OtherPlace" maxOccurs="1" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Pole nieobowiązkowe tylko w przypadku określenia miejsca w elemencie RoutePlace
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Element is optional if place of border crossing is specified in the element RoutePlace
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Province" type="tp:Province" maxOccurs="1" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Pole nieobowiązkowe tylko w przypadku określenia miejsca w elemencie RoutePlace
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Element is optional if place of border crossing is specified in the element RoutePlace
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Latitude" type="tp:Latitude" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Pole nieobowiązkowe tylko w przypadku określenia miejsca w elemencie RoutePlace
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Element is optional if place of border crossing is specified in the element RoutePlace
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Longitude" type="tp:Longitude" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Pole nieobowiązkowe tylko w przypadku określenia miejsca w elemencie RoutePlace
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Element is optional if place of border crossing is specified in the element RoutePlace
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ExitFromPoland">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Elementy określające miejsce wyjazdu z Polski
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Elements determining the place of exit from Poland
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RoutePlace" type="tp:RoutePlace" maxOccurs="1" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Pole nieobowiązkowe tylko w przypadku określenia miejsca w elemencie OtherPlace i braku odpowiedniej wartości w słowniku PDR 1306
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Element is optional if place of border crossing is specified in the element OtherPlace and the corresponding value is missig in PDR glossary 1306
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RouteNumber" type="tp:RouteNumber" maxOccurs="1" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Pole nieobowiązkowe tylko w przypadku transportu kolejowego lub określenia miejsca w elemencie OtherPlace i braku odpowiedniej wartości w słowniku PDR 1306
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Element is optional only for rail transport or if place of border crossing is specified in the element OtherPlace and the corresponding value is missig in PDR glossary 1306
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OtherPlace" type="tp:OtherPlace" maxOccurs="1" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Pole nieobowiązkowe tylko w przypadku określenia miejsca w elemencie RoutePlace
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Element is optional if place of border crossing is specified in the element RoutePlace
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Province" type="tp:Province" maxOccurs="1" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Pole nieobowiązkowe tylko w przypadku określenia miejsca w elemencie RoutePlace
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Element is optional if place of border crossing is specified in the element RoutePlace
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Latitude" type="tp:Latitude" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Pole nieobowiązkowe tylko w przypadku określenia miejsca w elemencie RoutePlace
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Element is optional if place of border crossing is specified in the element RoutePlace
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Longitude" type="tp:Longitude" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Pole nieobowiązkowe tylko w przypadku określenia miejsca w elemencie RoutePlace
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Element is optional if place of border crossing is specified in the element RoutePlace
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TraderInfo">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane identyfikacyjne podmiotu
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Entity identification data
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="IdSisc" type="tp:IdSisc" maxOccurs="1" minOccurs="0" />
      <xs:element name="TraderName" type="tp:TraderName" maxOccurs="1" minOccurs="1" />
      <xs:element name="TraderIdentityType" type="tp:TraderIdentityType" maxOccurs="1" minOccurs="1" />
      <xs:element name="TraderIdentityNumber" type="tp:TraderIdentityNumber" maxOccurs="1" minOccurs="1" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TraderInfoPL">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane identyfikacyjne podmiotu z siedzibą na terytorium Polski
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Identification data of entity established on the territory of Poland
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="IdSisc" type="tp:IdSisc" maxOccurs="1" minOccurs="0" />
      <xs:element name="TraderName" type="tp:TraderName" maxOccurs="1" minOccurs="1" />
      <xs:element name="TraderIdentityType" type="tp:TraderIdentityType" maxOccurs="1" minOccurs="1" fixed="NIP"/>
      <xs:element name="TraderIdentityNumber" type="tp:TraderIdentityNumber" maxOccurs="1" minOccurs="1" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TraderInfoIDNull">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane identyfikacyjne podmiotu z siedzibą poza terytorium Polski
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Identification data of entity established outside the territory of Poland
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="IdSisc" type="tp:IdSisc" maxOccurs="1" minOccurs="0" />
      <xs:element name="TraderName" type="tp:TraderName" maxOccurs="1" minOccurs="1" />
      <xs:element name="TraderIdentityType" type="tp:TraderIdentityTypeIDNull" maxOccurs="1" minOccurs="1" />
      <xs:element name="TraderIdentityNumber" type="tp:TraderIdentityNumber" maxOccurs="1" minOccurs="0" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TraderPL">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Podmiot z siedzibą na terytorium Polski
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Entity established on the territory of Poland
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="TraderInfo" type="tp:TraderInfoPL" maxOccurs="1" minOccurs="1" />
      <xs:element name="TraderAddress" type="tp:AddressPL" maxOccurs="1" minOccurs="1" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="Trader">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Podmiot z siedzibą na terytorium Polski lub poza terytorium Polski
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Entity established on the territory of Poland or outside the territory of Poland
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="TraderInfo" type="tp:TraderInfo" maxOccurs="1" minOccurs="1" />
      <xs:element name="TraderAddress" type="tp:Address" maxOccurs="1" minOccurs="1" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TraderIDNull">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Podmiot z siedzibą na terytorium Polski lub poza terytorium Polski
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Entity established on the territory of Poland or outside the territory of Poland
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="TraderInfo" type="tp:TraderInfoIDNull" maxOccurs="1" minOccurs="1" />
      <xs:element name="TraderAddress" type="tp:Address" maxOccurs="1" minOccurs="1" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PersonInfo">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane identyfikacyjne osoby fizycznej
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Identification data of a natural person
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="IdSisc" type="tp:IdSisc" minOccurs="0" maxOccurs="1" />
      <xs:element name="FirstName" type="tp:FirstName" minOccurs="1" maxOccurs="1" />
      <xs:element name="LastName" type="tp:LastName" minOccurs="1" maxOccurs="1" />
      <xs:element name="PersonIdentityType" type="tp:PersonIdentityType" minOccurs="1" maxOccurs="1" />
      <xs:element name="PersonIdentityNumber" type="tp:PersonIdentityNumber" minOccurs="1" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PersonInfoPL">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane identyfikacyjne osoby fizycznej będącej obywatelem Polski
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Identification data of a natural person who is a citizen of Poland
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="IdSisc" type="tp:IdSisc" minOccurs="0" maxOccurs="1" />
      <xs:element name="FirstName" type="tp:FirstName" minOccurs="1" maxOccurs="1" />
      <xs:element name="LastName" type="tp:LastName" minOccurs="1" maxOccurs="1" />
      <xs:element name="Pesel" type="tp:Pesel" minOccurs="1" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PersonInfoNotPL">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane identyfikacyjne osoby fizycznej niebędącej obywatelem Polski
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Identification data of a natural person who is not a citizen of Poland
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="IdSisc" type="tp:IdSisc" minOccurs="0" maxOccurs="1" />
      <xs:element name="FirstName" type="tp:FirstName" minOccurs="1" maxOccurs="1" />
      <xs:element name="LastName" type="tp:LastName" minOccurs="1" maxOccurs="1" />
      <xs:element name="PersonIdentityType" type="tp:PersonIdentityType" minOccurs="1" maxOccurs="1"/>
      <xs:element name="PersonIdentityNumber" type="tp:PersonIdentityNumber" minOccurs="1" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PersonPL">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Osoba fizyczna będąca obywatelem Polski
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        A natural person who is a citizen of Poland
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PersonInfo" type="tp:PersonInfoPL" maxOccurs="1" minOccurs="1" />
      <xs:element name="PersonAddress" type="tp:AddressPL" maxOccurs="1" minOccurs="1" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PersonNotPL">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Osoba fizyczna nie będąca obywatelem Polski
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        A natural person who is not a citizen of Poland
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PersonInfo" type="tp:PersonInfoNotPL" maxOccurs="1" minOccurs="1" />
      <xs:element name="PersonAddress" type="tp:Address" maxOccurs="1" minOccurs="1" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="Person">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Osoba fizyczna będąca lub niebędąca obywatelem Polski
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        A natural person who is or is not a citizen of Poland
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PersonInfo" type="tp:PersonInfo" maxOccurs="1" minOccurs="1" />
      <xs:element name="PersonAddress" type="tp:Address" maxOccurs="1" minOccurs="1" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TraderOrPersonType">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane identyfikacyjne
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Identification data
      </xs:documentation>
    </xs:annotation>
    <xs:choice minOccurs="1" maxOccurs="1">
      <xs:element name="Trader" type="tp:Trader" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Dane identyfikacyjne podmiotu
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Identification data of the entity
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Person" type="tp:Person" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Dane identyfikacyjne osoby fizycznej
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Identification data of the natural person
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:choice>
  </xs:complexType>
  <xs:complexType name="TraderOrPerson">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Podmiot lub osoba fizyczna z siedzibą na terytorium Polski lub poza terytorium Polski 
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Trader or person established on the territory of Poland or outside the territory of Poland
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="TraderInfo" type="tp:TraderInfo" maxOccurs="1" minOccurs="1" />
      <xs:element name="TraderAddress" type="tp:Address" maxOccurs="1" minOccurs="1" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="MeansOfTransport">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane identyfikacyjne środka transportu
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Identification data of the means of transport
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="TruckOrTrainNumber" type="tp:NumberOfMeansOfTransport" maxOccurs="1" minOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Numer pojazdu samochodowego dla przewozu drogowego albo numer pociągu dla przewozu kolejowego
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            The number of the vehicle for road transport or the train number for rail transport
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TrailerOrWagonNumber" type="tp:NumberOfMeansOfTransport" maxOccurs="1" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Numer przyczepy lub naczepy dla przewozu drogowego albo numer pojazdu kolejowego bez napędu dla przewozu kolejowego.
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            The number of the trailer or semi-trailer for road transport or the number of the railway vehicle without a drive for rail transport.
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PermitRoad" type="tp:NumberOfRoadPermit" maxOccurs="1" minOccurs="0">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Numer zezwolenia, zaświadczenia lub licencji w rozumieniu przepisów ustawy o transporcie drogowym o ile są wymagane. (Pole wymagane wyłacznie dla transportu drogowego)
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            The number of the permit, certificate or license within the meaning of the provisions of the Road Transport Act, if required. (Field required for road transport only)
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GeoLocatorNumber" type="tp:LocatorNumber" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Numer lokalizatora lub urządzenia GPS. (Pole przeznaczone wyłącznie dla transportu drogowego)
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Pole wymagane zgodnie z przepisami ustawy o monitorowaniu drogowego i kolejowego przewozu towarów
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            The number of the GPS device or locator GPS. (Field reserved only for road transport)
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Field is required in accordance with the Act on monitoring road and rail carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FailoverGeoLocatorNumber" type="tp:MobileLocatorNumber" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Zapasowy numer lokalizatora GPS. (Pole przeznaczone wyłącznie dla transportu drogowego.)
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Backup GPS locator number (Field reserved only for road transport)
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FailoverCarrierEmail" type="tp:Email" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Adres email przewoźnika
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            The carrier's email address
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="NotificationSMSPhone" type="tp:MobilePhoneNumber" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Numer telefonu przewoźnika do powiadomień SMS
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            SMS notification phone number
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DriverKey" type="tp:DriverKey" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Klucz kierowcy do aplikacji mobilnej
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Niezbędne w przypadku chęci korzystania przez kierowców z aplikacji mobilnej do potwierdzenia dostawy paliwa opałowego
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Driver key do mobile application
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Unnecessary if drivers want to use the mobile application to confirm delivery of heating fuel
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="Amount">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Masa brutto lub objętość towaru
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Gross weight or volume of goods
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="14" />
      <xs:fractionDigits value="2" />
      <xs:whiteSpace value="collapse" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="Comments">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Uwagi albo informacje uzupełniające
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Comments or additional information
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0">
      </xs:minLength>
      <xs:maxLength value="5000">
      </xs:maxLength>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="WebServiceChannel">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Kanał komunikacyjny Web Service
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Web Service communication channel
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="WsFromSISC" type="xs:boolean" maxOccurs="1" minOccurs="1" />
      <xs:element name="UrlAddress" type="tp:Url" maxOccurs="1" minOccurs="0" />
      <xs:element name="Username" type="tp:UserName" maxOccurs="1" minOccurs="0" />
      <xs:element name="UserPassword" type="tp:UserPassword" maxOccurs="1" minOccurs="0" />
      <xs:element name="AuthenticationKey" type="tp:AuthenticationKey" maxOccurs="1" minOccurs="0" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="EmailChannel">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Kanał komunikacyjny email
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        E-mail communication channel
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="EmailAddress1" type="tp:Email" maxOccurs="1" minOccurs="0" />
      <xs:element name="EmailAddress2" type="tp:Email" maxOccurs="1" minOccurs="0" />
      <xs:element name="EmailAddress3" type="tp:Email" maxOccurs="1" minOccurs="0" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ResponseAddress">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Kanały komunikacji zwrotnej
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Feedback communication channel
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="EmailChannel" type="tp:EmailChannel" minOccurs="0" maxOccurs="1"/>
      <xs:element name="WebServiceChannel" type="tp:WebServiceChannel" minOccurs="0" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="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:restriction base="xs:string">
      <xs:minLength value="2">
      </xs:minLength>
      <xs:maxLength value="70">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="GoodsInformation">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane identyfikacyjne przewożonego towaru
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Identification data of carried goods
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ElementNumber" type="tp:ItemNumber" minOccurs="0" maxOccurs="1"/>
      <xs:element name="CodeCnClassification" type="tp:CodeCN" minOccurs="1" maxOccurs="1"/>
      <xs:element name="GoodsName" type="tp:GoodsName" minOccurs="1" maxOccurs="1"/>
      <xs:element name="AmountOfGoods" type="tp:Amount" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Masa brutto lub objętość towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Gross weight or volume of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="UnitOfMeasure" type="tp:UnitOfMeasure" minOccurs="1" maxOccurs="1"/>
      <xs:element name="VATRate" type="tp:VATRate" minOccurs="0" maxOccurs="1"/>
      <xs:element name="WasteCode" type="tp:WasteCode" minOccurs="0" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="GoodsInformationWithOilAgreement">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane identyfikacyjne przewożonego towaru
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Identification data of carried goods
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ElementNumber" type="tp:ItemNumber" minOccurs="0" maxOccurs="1"/>
      <xs:element name="CodeCnClassification" type="tp:CodeCN" minOccurs="1" maxOccurs="1"/>
      <xs:element name="GoodsName" type="tp:GoodsName" minOccurs="1" maxOccurs="1"/>
      <xs:element name="AmountOfGoods" type="tp:Amount" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Masa brutto lub objętość towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Gross weight or volume of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="UnitOfMeasure" type="tp:UnitOfMeasure" minOccurs="1" maxOccurs="1"/>
      <xs:element name="VATRate" type="tp:VATRate" minOccurs="0" maxOccurs="1"/>
      <xs:element name="WasteCode" type="tp:WasteCode" minOccurs="0" maxOccurs="1"/>
      <xs:element name="GoodsCoveredByContract" type="tp:AgreementNumber" minOccurs="0" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="GoodsInformationWithEANCode">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane identyfikacyjne przewożonego towaru w zakresie produktów leczniczych
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Identification data of carried goods in the field of medicinal products
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ElementNumber" type="tp:ItemNumber" minOccurs="0" maxOccurs="1"/>
      <xs:element name="CodeEanClassification" type="tp:CodeEAN" minOccurs="1" maxOccurs="1"/>
      <xs:element name="GoodsName" type="tp:GoodsName" minOccurs="1" maxOccurs="1"/>
      <xs:element name="AmountOfGoods" type="tp:Amount" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Ilość towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Amount of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="UnitOfMeasure" type="tp:UnitOfMeasure" minOccurs="1" maxOccurs="1"/>
      <xs:element name="NumberOfLicense" type="tp:NumberOfLicense" minOccurs="1" maxOccurs="1"/>
      <xs:element name="AuthorityName" type="tp:AuthorityName" minOccurs="1" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="GoodsInformationAll">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane identyfikacyjne przewożonego towaru
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Identification data of carried goods
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ElementNumber" type="tp:ItemNumber" minOccurs="0" maxOccurs="1"/>
      <xs:element name="CodeCnClassification" type="tp:CodeCN" minOccurs="0" maxOccurs="1"/>
      <xs:element name="CodePkwiuClassification" type="tp:CodePKWiU" minOccurs="0" maxOccurs="1"/>
      <xs:element name="CodeEanClassification" type="tp:CodeEAN" minOccurs="0" maxOccurs="1"/>
      <xs:element name="GoodsName" type="tp:GoodsName" minOccurs="1" maxOccurs="1"/>
      <xs:element name="AmountOfGoods" type="tp:Amount" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Masa brutto lub objętość towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Gross weight or volume of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="UnitOfMeasure" type="tp:UnitOfMeasure" minOccurs="1" maxOccurs="1"/>
      <xs:element name="GrossWeightOfGoods" type="tp:Weight" minOccurs="0" maxOccurs="1"/>
      <xs:element name="NumberOfLicense" type="tp:NumberOfLicense" minOccurs="0" maxOccurs="1"/>
      <xs:element name="AuthorityName" type="tp:AuthorityName" minOccurs="0" maxOccurs="1"/>
      <xs:element name="VATRate" type="tp:VATRate" minOccurs="0" maxOccurs="1"/>
      <xs:element name="WasteCode" type="tp:WasteCode" minOccurs="0" maxOccurs="1"/>
      <xs:element name="GoodsCoveredByContract" type="tp:AgreementNumber" minOccurs="0" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="GoodsTransportDocuments">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dokumenty przewozowe towarzyszące przesyłce
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Transport documents accompanying the consignment
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="TypeOfTransportDocument" type="tp:TypeOfTransportDocument" minOccurs="1" maxOccurs="1"/>
      <xs:element name="NumberOfTransportDocument" type="tp:NumberOfTransportDocument" minOccurs="1" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="TypeOfNonCompliance">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Rodzaj niezgodności - słownik PDR 1305
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Type of irregularity - PDR glossary 1305
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="2">
      </xs:minLength>
      <xs:maxLength value="32">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="Compliance">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Zgodność dostawy ze zgłoszeniem
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Compliance of delivery with the notification
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="IsCompliance" type="xs:boolean" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Czy przewóz jest zgodny ze zgłoszeniem?
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            That carriage is compliant with the notification?
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TypeOfNonCompliance" type="tp:TypeOfNonCompliance" minOccurs="0" maxOccurs="1"/>
      <xs:element name="ComplianceComments" type="tp:Comments" minOccurs="0" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="SentNumber">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Numer referencyjny zgłoszenia
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Carriage notification number
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="[S][E][N][T][1234567890]{8}[1234567890]{6}">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="SenderKey">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Klucz autoryzacyjny podmiotu wysyłającego
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Authorisation key of the consignor
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="[K][S][-][123456789]{2}[XLANTCYDRUEFZPHMJSKW]{2}">
      </xs:pattern>
      <xs:length value="7">
      </xs:length>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="RecipientKey">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Klucz autoryzacyjny podmiotu odbierającego
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Authorisation key of the consignee
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="[K][R][-][123456789]{2}[XLANTCYDRUEFZPHMJSKW]{2}">
      </xs:pattern>
      <xs:length value="7">
      </xs:length>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="CarrierKey">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Klucz autoryzacyjny przewoźnika
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Authorisation key of the carrier
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="[K][D][-][123456789]{2}[XLANTCYDRUEFZPHMJSKW]{2}">
      </xs:pattern>
      <xs:length value="7">
      </xs:length>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="GenericKey">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Klucz autoryzacyjny generyczny bez względu na rodzaj podmiotu
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Generic authorisation key irrespective of the type of entity
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="[K][RSD]{1}[-][123456789]{2}[XLANTCYDRUEFZPHMJSKW]{2}">
      </xs:pattern>
      <xs:length value="7">
      </xs:length>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="SentStatus">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Status zgłoszenia SENT - słownik PDR 1307
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Status of SENT notification - PDR glossary 1307
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="RegisteredSenderKeys">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Klucze autoryzacyjne do zgłoszenia przewozu zarejestrowanego przez podmiot wysyłający
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Authorisation keys for notification of the carriage of goods registered by the consignor
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SenderKey" type="tp:SenderKey" minOccurs="1" maxOccurs="1"/>
      <xs:element name="RecipientKey" type="tp:RecipientKey" minOccurs="1" maxOccurs="1"/>
      <xs:element name="CarrierKey" type="tp:CarrierKey" minOccurs="0" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="RegisteredRecipientKeys">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Klucze autoryzacyjne do zgłoszenia przewozu zarejestrowanego przez podmiot odbierający
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Authorisation keys for notification of the carriage of goods registered by the consignee
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RecipientKey" type="tp:RecipientKey" minOccurs="1" maxOccurs="1"/>
      <xs:element name="CarrierKey" type="tp:CarrierKey" minOccurs="0" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="RegisteredCarrierKeys">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Klucze autoryzacyjne do zgłoszenia przewozu zarejestrowanego przez przewoźnika
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Authorisation keys for notification of the carriage of goods registered by the carrier
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="CarrierKey" type="tp:CarrierKey" minOccurs="1" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="NewChangedKeys">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Nowe klucze autoryzacyjne dla zgłoszenia przewozu wygenerowane na wniosek podmiotu rejestrującego zgłoszenie
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        New authorisation key for notification of the carriage of goods generated on request of an entity registering the notification
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SenderKey" type="tp:SenderKey" minOccurs="0" maxOccurs="1"/>
      <xs:element name="RecipientKey" type="tp:RecipientKey" minOccurs="0" maxOccurs="1"/>
      <xs:element name="CarrierKey" type="tp:CarrierKey" minOccurs="0" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransportClose">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacje o zamknięciu zgłoszenia przewozu
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information on closing the notification of the carriage of goods
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Compliance" type="tp:Compliance" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Zgodność dostawy ze zgłoszeniem
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Compliance of delivery with the notification
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DeliveredAmountOfGoods" type="tp:Amount" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Dostarczona masa brutto lub objętość towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Delivered gross weight or volume of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CloseTransportDate" type="tp:Date" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Data odbioru towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Date of collect the goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GasPumps" minOccurs="0" maxOccurs="20">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Informacja o dystrybutorach gazu LPG
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Inforamtion on LPG distributors
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="GasPumpNumber" type="xs:string" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation source="doc" xml:lang="pl">
                  Numer dystrybutora gazu LPG
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="en">
                  Number of a LPG distributor
                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="GasPumpMeter1" type="tp:Amount" minOccurs="1" maxOccurs="1">
              <xs:annotation>
                <xs:documentation source="doc" xml:lang="pl">
                  Stan licznika nr 1 dystrybutora gazu LPG
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="en">
                  Meter of LPG distributor no 1
                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="GasPumpMeter2" type="tp:Amount" minOccurs="0" maxOccurs="1">
              <xs:annotation>
                <xs:documentation source="doc" xml:lang="pl">
                  Stan licznika nr 2 dystrybutora gazu LPG
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="en">
                  Meter of LPG distributor no 2
                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="CancelOfTransport">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacja o anulowaniu zgłoszenia przewozu
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information on cancelling the notification of the carriage of goods
      </xs:documentation>
    </xs:annotation>
    <xs:sequence minOccurs="1" maxOccurs="1">
      <xs:element name="CancelComments" type="tp:Comments" minOccurs="1" maxOccurs="1" />
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="Statement1">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Oświadczenia o posiadaniu upoważnień do działania w imieniu i na rzecz danego podmiotu
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Declarations on holding authorisations to act for and on behalf of a given entity
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:boolean">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="true|false">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="Statement2">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informuję, że jestem pośredniczącym podmiotem olejowym
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        I inform that I am the intermediary oil entity
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:boolean">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="true|false">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="Statement3">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Oświadczam, że dostawa jest realizowana w ramach umowy, o której mowa w art. 89 ust. 5e albo 5f ustawy z dnia 6 grudnia 2008 r. o podatku akcyzowym.
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        I declare that the delivery is performed within the contract referred to the article 89 paragraph 5e or 5f of the act of 6 December 2008 on excise duty.
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:boolean">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="true|false">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="Statement4">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informuję, że jestem zużywającym podmiotem olejowym i „Oświadczam, że nabywane wyroby zużyję do celów opałowych. Za zmianę przeznaczenia nabywanych wyrobów i przez to narażenie na uszczuplenie podatku akcyzowego grozi odpowiedzialność przewidziana w art. 73a Kodeksu karnego skarbowego.”.
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        I inform that I am the consuming oil entity and "I declare that I will use purchased goods for heating purposes. For changing the purpose of purchased goods and thus exposure to a depletion of excise duty is threatened with liability under the article 73a of Penal Fiscal Code.".
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:boolean">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="true|false">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="Statement5">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informuję, że jestem pośredniczącym podmiotem olejowym i „Oświadczam, że nabywane wyroby sprzedam do celów opałowych. Za zmianę przeznaczenia nabywanych wyrobów i przez to narażenie na uszczuplenie podatku akcyzowego grozi odpowiedzialność przewidziana w art. 73a Kodeksu karnego skarbowego.”.
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        I inform that I am the intermediary oil entity and "I declare that I will sell purchased goods for heating purposes. For changing the purpose of purchased goods and thus exposure to a depletion of excise duty is threatened with liability under the article 73a of Penal Fiscal Code.".
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:boolean">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="true|false">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="Statement6">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informuję, że jestem zużywającym podmiotem olejowym i „Oświadczam, że przywożone wyroby zużyję do celów opałowych. Za zmianę przeznaczenia przywożonych wyrobów i przez to narażenie na uszczuplenie podatku akcyzowego grozi odpowiedzialność przewidziana w art. 73a Kodeksu karnego skarbowego.”.
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        I inform that I am the consuming oil entity and "I declare that I will use imported goods for heating purposes. For changing the purpose of imported goods and thus exposure to a depletion of excise duty is threatened with liability under the article 73a of Penal Fiscal Code.".
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:boolean">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="true|false">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="Statement7">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informuję, że jestem pośredniczącym podmiotem olejowym i „Oświadczam, że przywożone wyroby sprzedam z przeznaczeniem do celów opałowych. Za zmianę przeznaczenia przywożonych wyrobów i przez to narażenie na uszczuplenie podatku akcyzowego grozi odpowiedzialność przewidziana w art. 73a Kodeksu karnego skarbowego.”.
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        I inform that I am the intermediary oil entity and "I declare that I will sell imported goods for heating purposes. For changing the purpose of imported goods and thus exposure to a depletion of excise duty  is threatened with liability under the article 73a of Penal Fiscal Code.".
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:boolean">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="true|false">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ChecksumOfDocument">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Suma kontrolna dokumentu podana w formacie SHA-1
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Checksum of the document provided in the SHA-1 format
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:minLength value="2">
      </xs:minLength>
      <xs:maxLength value="120">
      </xs:maxLength>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="RegisteredInfo">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane informacyjne o zgłoszeniu
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information data on the notification
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="CreationDate" type="tp:DateTime" minOccurs="1" maxOccurs="1" />
      <xs:element name="Creator" type="tp:UserName" minOccurs="1" maxOccurs="1" />
      <xs:element name="ModificationDate" type="tp:DateTime" minOccurs="1" maxOccurs="1" />
      <xs:element name="Modifier" type="tp:UserName" minOccurs="1" maxOccurs="1" />
      <xs:element name="SourceDocumentId" type="tp:DocumentSelfNumber" minOccurs="1" maxOccurs="1" />
      <xs:element name="ChecksumOfSourceDocument" type="tp:ChecksumOfDocument" minOccurs="1" maxOccurs="1" />
      <xs:element name="SentId" type="tp:DocumentSelfNumber" minOccurs="1" maxOccurs="1" />
      <xs:element name="SentStatus" type="tp:SentStatus" minOccurs="1" maxOccurs="1" />
      <xs:element name="MultipleSentNumber" type="tp:MultipleSentNumber" minOccurs="0" maxOccurs="1" />
      <xs:element name="TypeOfTransport" type="tp:TypeOfTransport" minOccurs="1" maxOccurs="1"/>
      <xs:element name="TypeOfSent" type="xs:string" minOccurs="0" maxOccurs="1"/>
      <xs:element name="TypeOfDeclaration" type="tp:TypeOfDeclaration" minOccurs="0" maxOccurs="1"/>
      <xs:element name="HistoryId" type="tp:DocumentSelfNumber" minOccurs="0" maxOccurs="1" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ListOfMessages">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Lista z informacjami o operacji lub o błędach w walidacji zgłoszenia
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        List of information on the operation or errors in notification validation
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="TypeOfOperation" type="tp:TypeOfOperation" minOccurs="1" maxOccurs="1" />
      <xs:element name="CodeOfMessage" type="tp:CodeOfMessage" minOccurs="1" maxOccurs="1" />
      <xs:element name="Message" type="tp:Message" minOccurs="1" maxOccurs="1" />
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="TypeOfOperation">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Typ operacji na komunikacie
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Operation type in the message
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:enumeration value="rejestracja">
      </xs:enumeration>
      <xs:enumeration value="aktualizacja">
      </xs:enumeration>
      <xs:enumeration value="anulowanie">
      </xs:enumeration>
      <xs:enumeration value="zamkniecie">
      </xs:enumeration>
      <xs:enumeration value="odrzucenie">
      </xs:enumeration>
      <xs:enumeration value="odczyt">
      </xs:enumeration>
      <xs:enumeration value="inna">
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="CodeOfMessage">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Kod komunikatu / błędu - słownik PDR 1302
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Message / error code - PDR glossary 1302
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:integer">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:minExclusive value="0">
      </xs:minExclusive>
      <xs:maxExclusive value="999">
      </xs:maxExclusive>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="Message">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Treść komunikatu / błędu
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Message / error text
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:minLength value="2">
      </xs:minLength>
      <xs:maxLength value="500">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="TypeOfNotification">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Typ komunikatu (0 - informacja o błędzie, 1 - informacja o poprawnym wykonaniu operacji)
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Type of notification (0 - information with errors, 1 - information about valid operation)
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:enumeration value="0">
      </xs:enumeration>
      <xs:enumeration value="1">
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="SystemInfo">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacja o systemie i podmiocie tworzącym komunikat
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information on the system and the entity creating the message
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="OrganisationName" type="xs:string" minOccurs="1" maxOccurs="1" fixed="Ministerstwo Finansów"/>
      <xs:element name="SystemName" type="xs:string" minOccurs="1" maxOccurs="1" fixed="SENT"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="SourceDocumentInfo">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacja o komunikacie źródłowym
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information on the source message
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="CreationDate" type="tp:DateTime" minOccurs="0" maxOccurs="1" />
      <xs:element name="Creator" type="tp:UserName" minOccurs="0" maxOccurs="1" />
      <xs:element name="SentId" type="tp:DocumentSelfNumber" minOccurs="0" maxOccurs="1"/>
      <xs:element name="SourceDocumentId" type="tp:DocumentSelfNumber" minOccurs="0" maxOccurs="1" />
      <xs:element name="ChecksumOfDocument" type="tp:ChecksumOfDocument" minOccurs="0" maxOccurs="1" />
      <xs:element name="IncomingNumber" type="xs:string" minOccurs="0" maxOccurs="1" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="GenerateNewKeys">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Opcja żądania wygenerowania nowych kluczy autoryzacyjnych dla istniejącego zgłoszenia przewozu
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Option of generating new authorisation keys for the existing notification of the carriage of goods
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="NewSenderKey" type="xs:boolean" minOccurs="0" maxOccurs="1"/>
      <xs:element name="NewRecipientKey" type="xs:boolean" minOccurs="0" maxOccurs="1"/>
      <xs:element name="NewCarrierKey" type="xs:boolean" minOccurs="0" maxOccurs="1" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="Statements">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Oświadczenia podmiotu
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Entity declarations
      </xs:documentation>
    </xs:annotation>
    <xs:sequence minOccurs="1" maxOccurs="1">
      <xs:element name="Statement1" type="tp:Statement1" minOccurs="1" maxOccurs="1" fixed="true"/>
      <xs:element name="FirstName" type="tp:FirstName" minOccurs="1" maxOccurs="1" />
      <xs:element name="LastName" type="tp:LastName" minOccurs="1" maxOccurs="1" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AdditionalStatements100">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dodatkowe oświadczenia podmiotu wysyłającego dotyczące obrotu paliwami opałowymi
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Additional consignor declarations regarding heating fuel trading
      </xs:documentation>
    </xs:annotation>
    <xs:sequence minOccurs="0" maxOccurs="1">
      <xs:element name="Statement2" type="tp:Statement2" minOccurs="0" maxOccurs="1"/>
      <xs:element name="Statement3" type="tp:Statement3" minOccurs="0" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AdditionalStatements103">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dodatkowe oświadczenia podmiotu odbierającego dotyczące obrotu paliwami opałowymi
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Additional consignee declarations regarding heating fuel trading
      </xs:documentation>
    </xs:annotation>
    <xs:sequence minOccurs="0" maxOccurs="1">
      <xs:element name="Statement4" type="tp:Statement4" minOccurs="0" maxOccurs="1"/>
      <xs:element name="Statement5" type="tp:Statement5" minOccurs="0" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AdditionalStatements200">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dodatkowe oświadczenia podmiotu odbierającego dotyczące obrotu paliwami opałowymi
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Additional consignee declarations regarding heating fuel trading
      </xs:documentation>
    </xs:annotation>
    <xs:sequence minOccurs="0" maxOccurs="1">
      <xs:element name="Statement6" type="tp:Statement6" minOccurs="0" maxOccurs="1"/>
      <xs:element name="Statement7" type="tp:Statement7" minOccurs="0" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="DeclaredStatements">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Oświadczenia podmiotu
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Additional declarations
      </xs:documentation>
    </xs:annotation>
    <xs:sequence minOccurs="0" maxOccurs="1">
      <xs:element name="Statement1" type="tp:Statement1" minOccurs="0" maxOccurs="1"/>
      <xs:element name="Statement2" type="tp:Statement2" minOccurs="0" maxOccurs="1"/>
      <xs:element name="Statement3" type="tp:Statement3" minOccurs="0" maxOccurs="1"/>
      <xs:element name="Statement4" type="tp:Statement4" minOccurs="0" maxOccurs="1"/>
      <xs:element name="Statement5" type="tp:Statement5" minOccurs="0" maxOccurs="1"/>
      <xs:element name="Statement6" type="tp:Statement6" minOccurs="0" maxOccurs="1"/>
      <xs:element name="Statement7" type="tp:Statement7" minOccurs="0" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="TypeOfDeclaration">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Rodzaj przewozu towarów
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Type of the carriage of goods
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="1">
      </xs:minLength>
      <xs:maxLength value="2">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Transport towarów za wyłaczeniem poniżej wskazanych rodzajów
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Carriage of goods excluding the following types
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Transport oleju opałowego przeznaczonego do urządzeń grzewczych
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Carriage of heating oil intended for heating devices
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Transport gazu LPG
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Carriage of LPG
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="TransportToManyRecipients">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacje o transporcie
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information on the transport
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PlaceOfLoading" type="tp:GeoAddressPL" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce załadunku towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of goods loading
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlannedStartCarriageDate" type="tp:Date" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Planowana data rozpoczęcia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Planned start date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="StartTransportDate" type="tp:Date" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Data rozpoczęcia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Start date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="EndTransportDate" type="tp:Date" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Planowana data zakończenia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Planned end date of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransportToSingleRecipient">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacje o transporcie do odbiorcy
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information on the transport to single Recipient
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PlaceOfDelivery" type="tp:GeoAddressPL" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Miejsce dostarczenia towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Place of goods delivery
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OilHeatingAddressId" type="tp:OilHeatingAddressId" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Kod miejsca dostawy towaru dla przewozu paliwa opałowego
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Delivery place code for heating fuel carriage
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="OilMobileDeviceId" type="tp:OilMobileDeviceId" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Kod urządzenia opałowego niestacjonarnego dla przewozu oleju opałowego
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Non stationary heating device code for heating oil carriage
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="CommonGoodsInformation">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacje wspólne o towarze
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Common information about the goods
      </xs:documentation>
    </xs:annotation>
    <xs:sequence minOccurs="1" maxOccurs="1">
      <xs:element name="CodeCnClassification" type="tp:MultipleSentCodeCN" minOccurs="0" maxOccurs="1"/>
      <xs:element name="TotalAmountOfGoods" type="tp:Amount" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Całkowita masa brutto lub objętość towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Total gross weight or volume of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="UnitOfMeasure" type="tp:UnitOfMeasure" minOccurs="1" maxOccurs="1"/>
      <xs:element name="AmountOfGoodsToOthers" type="tp:AmountOfGoodsToOthers" minOccurs="0" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="AmountOfGoodsToOthers">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Ilość towaru do innych odbiorców niż wskazani w elemencie ParticularRegistration
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Amount of goods to other recipients
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="tp:Amount"/>
  </xs:simpleType>
  <xs:complexType name="SingleGoodsInformation">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacja o towarze
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information about a single goods
      </xs:documentation>
    </xs:annotation>
    <xs:sequence minOccurs="1" maxOccurs="1">
      <xs:element name="GoodsName" type="tp:GoodsName" minOccurs="1" maxOccurs="1"/>
      <xs:element name="AmountOfGoods" type="tp:Amount" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Masa brutto lub objętość towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Gross weight or volume of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TypeOfTransportDocument" type="tp:TypeOfTransportDocument" minOccurs="1" maxOccurs="1"/>
      <xs:element name="NumberOfTransportDocument" type="tp:NumberOfTransportDocument" minOccurs="1" maxOccurs="1"/>
      <xs:element name="WasteCode" type="tp:WasteCode" minOccurs="0" maxOccurs="1"/>
      <xs:element name="GoodsCoveredByContract" type="tp:AgreementNumber" minOccurs="0" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="RegisteredMultipleSentInfo">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane informacyjne o zgłoszeniu
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information data on the notification
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="CreationDate" type="tp:DateTime" minOccurs="1" maxOccurs="1" />
      <xs:element name="Creator" type="tp:UserName" minOccurs="1" maxOccurs="1" />
      <xs:element name="ModificationDate" type="tp:DateTime" minOccurs="1" maxOccurs="1" />
      <xs:element name="Modifier" type="tp:UserName" minOccurs="1" maxOccurs="1" />
      <xs:element name="SourceDocumentId" type="tp:DocumentSelfNumber" minOccurs="0" maxOccurs="1" />
      <xs:element name="ChecksumOfSourceDocument" type="tp:ChecksumOfDocument" minOccurs="1" maxOccurs="1" />
      <xs:element name="MultiSentId" type="tp:DocumentSelfNumber" minOccurs="1" maxOccurs="1" />
      <xs:element name="MultiSentStatus" type="tp:SentStatus" minOccurs="1" maxOccurs="1" />
      <xs:element name="TypeOfDeclaration" type="tp:TypeOfDeclaration" minOccurs="1" maxOccurs="1"/>
      <xs:element name="TypeOfTransport" type="tp:TypeOfTransport" minOccurs="1" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="RegisteredMultipleSentSenderKeys">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Klucze autoryzacyjne do zbiorczego zgłoszenia przewozu zarejestrowanego przez podmiot wysyłający
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Authorisation keys for multiple notification of the carriage of goods registered by the consignor
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SenderKey" type="tp:SenderKey" minOccurs="1" maxOccurs="1"/>
      <xs:element name="CarrierKey" type="tp:CarrierKey" minOccurs="0" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="MultipleSentNumber">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Numer referencyjny zgłoszenia zbiorczego
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Cumulative carriage notification number
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="[S][E][N][T][Z][B][1234567890]{8}[1234567890]{6}">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="Province">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Identyfikatory województwa z kodów podziału terytorialnego TERC - słownik PDR 501A
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        Element Krajowego rejestru urzędowego podziału terytorialnego kraju (TERYT)
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        Wymagane jest podanie kodu województwa
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        Pole wymagane zgodnie z przepisami ustawy o monitorowaniu drogowego i kolejowego przewozu towarów
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Polish provintial identifiers of territorial division (TERC)- PDR glossary 501A
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Element of the National Official Register of Territorial Division of the Country (TERYT)
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        The provincial code is required
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Field is required in accordance with the Act on monitoring road and rail carriage of goods
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <!--<xs:pattern value="\d{2}"></xs:pattern>-->
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="MultipleSentCodeCN">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Pozycje towarów wg Nomenklatury Scalonej dla zbiorczego SENT - słownik PDR 1313
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Code of goods according to Combined Nomenclature form multiple SENT - PDR glossary 1313
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="4">
      </xs:minLength>
      <xs:maxLength value="8">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="\d*">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="SentHistory">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Historia zgłoszenia SENT
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        History of the SENT notification
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DataRow" minOccurs="1" maxOccurs="unbounded">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="SentId" type="xs:string" minOccurs="1" maxOccurs="1"/>
            <xs:element name="SentStatus" type="xs:string" minOccurs="1" maxOccurs="1"/>
            <xs:element name="SentType" type="xs:string" minOccurs="1" maxOccurs="1"/>
            <xs:element name="ModificationDate" type="tp:DateTime" minOccurs="1" maxOccurs="1"/>
            <xs:element name="Modifier" type="tp:UserName" minOccurs="1" maxOccurs="1"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="CodeTERC">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Identyfikatory jednostek podziału terytorialnego TERC - słownik PDR 501A
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        Element Krajowego rejestru urzędowego podziału terytorialnego kraju (TERYT)
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        Wymagane jest podanie co najmniej kodu województwa
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        Pole wymagane zgodnie z przepisami ustawy o monitorowaniu drogowego i kolejowego przewozu towarów
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Polish identifiers of territorial division (TERC)- PDR glossary 501A
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Element of the National Official Register of Territorial Division of the Country (TERYT)
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        At least the provincial code is required
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Field is required in accordance with the Act on monitoring road and rail carriage of goods
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="(\d{2})|(\d{4})|(\d{6}[1,2,3,4,5,8,9])?">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="CodeSIMC">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Identyfikatory miejscowości podziału terytorialnego SIMC - słownik PDR 502A
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        Element Krajowego rejestru urzędowego podziału terytorialnego kraju (TERYT)
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Polish identifiers village territorial division (SIMC)- PDR glossary 502A
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Element of the National Official Register of Territorial Division of the Country (TERYT)
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="\d{7}">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="CodeULIC">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Centralny katalog ulic przypisanych do miejscowości w ramach jednostek polskiego podziału terytorialnego - slownik PDR 503A
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        Element Krajowego rejestru urzędowego podziału terytorialnego kraju (TERYT)
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Central catalog of streets assigned to the locality within the units of the Polish territorial division (ULIC)- PDR glossary 503A
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Element of the National Official Register of Territorial Division of the Country (TERYT)
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="\d{5}">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="Latitude">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Szerokość geograficzna wyrażona w stopniach dziesiętnych.
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        Wartość zawiera się w zakresie od 49.00 do 54.84
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        Pole wymagane zgodnie z przepisami ustawy o monitorowaniu drogowego i kolejowego przewozu towarów
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Latitude expressed in decimal degrees.
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        The value ranges from 49.00 to 54.84
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Field is required in accordance with the Act on monitoring road and rail carriage of goods
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="\d{2}\.\d{4,10}">
      </xs:pattern>
      <xs:maxInclusive value="54.84">
      </xs:maxInclusive>
      <xs:minInclusive value="49.00">
      </xs:minInclusive>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="Longitude">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Długość geograficzna wyrażona w stopniach dziesiętnych.
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        Wartość zawiera się w zakresie od 14.12 do 24.16
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        Pole wymagane zgodnie z przepisami ustawy o monitorowaniu drogowego i kolejowego przewozu towarów
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Longitude expressed in decimal degrees.
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Wartość zawiera się w zakresie od 14.12 do 24.16
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Field is required in accordance with the Act on monitoring road and rail carriage of goods
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="\d{2}\.\d{4,10}">
      </xs:pattern>
      <xs:minInclusive value="14.12">
      </xs:minInclusive>
      <xs:maxInclusive value="24.16">
      </xs:maxInclusive>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="TypeOfTransport">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Rodzaj transportu
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Type of transports
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="1">
      </xs:minLength>
      <xs:maxLength value="2">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:enumeration value="0">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Brak przewozu
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Without transport
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Transport drogowy
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Road transport
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Transport kolejowy
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Railway transport
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="NumberOfLicense">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Numer zezwolenia albo pozwolenia uprawniającego do obrotu produktami leczniczymi
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        The number of the permit or authorization entitling the medicinal products to trade
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="2">
      </xs:minLength>
      <xs:maxLength value="70">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AuthorityName">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Nazwa organu wydającego zezwolenie albo pozwolenie uprawniające do obrotu produktami leczniczymi
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Name of the authority issuing the permit or permission authorizing the marketing of medicinal products
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="2">
      </xs:minLength>
      <xs:maxLength value="150">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ZSLServiceNumber">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Identyfikator usługi ZSL Operatora
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        ZSL operator's service identifier
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse"/>
      <xs:pattern value="[Z][S][L]-[A,B,C,E,F,G,H,K,M,N,P,R,S,T,W,X,Y,Z]{4}-[0-9]{1}"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="WsSystemNumber">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Identyfikator Systemu WebService
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        WebService system identifier
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="[W][S]-[A,B,C,E,F,G,H,K,M,N,P,R,S,T,W,X,Y,Z]{4}-[0-9]{1}">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="LocatorNumber">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Numer urządzenia/lokalizatora GPS
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        GPS locator number
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="[Z,A,U,M][0-9]{2}-[A,B,C,E,F,G,H,K,M,N,P,R,S,T,W,X,Y,Z]{2}[0-9]{2}[A,B,C,E,F,G,H,K,M,N,P,R,S,T,W,X,Y,Z]{2}-[0-9]{1}">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="MobileLocatorNumber">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Numer lokalizatora GPS
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Number of GPS locator
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="[A,M,U][0-9]{2}-[A,B,C,E,F,G,H,K,M,N,P,R,S,T,W,X,Y,Z]{2}[0-9]{2}[A,B,C,E,F,G,H,K,M,N,P,R,S,T,W,X,Y,Z]{2}-[0-9]{1}">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ZSLServiceStatus">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Status usługi ZSL Operatora
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Status of the ZSL operator's service
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse"/>
      <xs:enumeration value="0">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            zarejestrowany
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            registered
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            zmodyfikowany
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            modified
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            anulowany
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            cancelled
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ZSLCarrierStatus">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Status usługi ZSL przewoźnika
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Status of the ZSL carrier's service
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse"/>
      <xs:enumeration value="0">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            zarejestrowany
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            registered
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            zmodyfikowany
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            modified
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            anulowany
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            cancelled
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="ZSLOperatorData">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Lista zarejestrowanych usług ZSL Operatora
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        List of registered ZSL operator's services
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DataRow" minOccurs="0" maxOccurs="unbounded">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ZSLServiceNumber" type="tp:ZSLServiceNumber" />
            <xs:element name="ZSLServiceStatus" type="tp:ZSLServiceStatus" />
            <xs:element name="ZSLCarrierName" type="xs:string" />
            <xs:element name="CreationDate" type="tp:DateTime" />
            <xs:element name="Creator" type="tp:UserName" />
            <xs:element name="ModificationDate" type="tp:DateTime" />
            <xs:element name="Modifier" type="tp:UserName" />
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="SystemOperatorData">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Lista zarejestrowanych kont systemowych podmiotu
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        List of registered entity system accounts
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DataRow" minOccurs="0" maxOccurs="unbounded">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="LastName" type="tp:LastName" minOccurs="1" maxOccurs="1" />
            <xs:element name="UserName" type="tp:Email" maxOccurs="1" minOccurs="1" />
            <xs:element name="CreationDate" type="tp:DateTime" />
            <xs:element name="Creator" type="tp:UserName" />
            <xs:element name="ModificationDate" type="tp:DateTime" />
            <xs:element name="Modifier" type="tp:UserName" />
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="GPSDevicesData">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Lista zarejestrowanych urządzeń GPS korzystających z usługi ZSL Operatora
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        List of registered GPS devices related to ZSL operator service
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DataRow" minOccurs="0" maxOccurs="unbounded">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="GPSDeviceID" type="tp:GPSDeviceIDAsString" />
            <xs:element name="GeoLocatorNumber" type="tp:LocatorNumber" />
            <xs:element name="GPSDeviceStatus" type="xs:string" />
            <xs:element name="AdditionalInformation" type="tp:AdditionalInformation" />
            <xs:element name="CreationDate" type="tp:DateTime" />
            <xs:element name="Creator" type="tp:UserName" />
            <xs:element name="ModificationDate" type="tp:DateTime" />
            <xs:element name="Modifier" type="tp:UserName" />
            <xs:element name="Updated" type="xs:boolean" minOccurs="0">
              <xs:annotation>
                <xs:documentation source="doc" xml:lang="pl">
                  Informacja o potwierdzeniu wykonania dodania/aktualizacji/usunięcia urządzenia
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="en">
                  Information about the confirmation of adding/updating/removing the device
                </xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="GPSDevicesPosition">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Lista aktywnych urządzeń GPS powiązanych z przewoźnikiem wraz z zarejestrowaną w SENT-GEO ostatnią pozycją GPS
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        List of active GPS devices related to the carrier, including last registered GPS position in SENT-GEO
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DataRow" minOccurs="0" maxOccurs="unbounded">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="GPSDeviceID" type="tp:GPSDeviceIDAsString" />
            <xs:element name="GeoLocatorNumber" type="tp:LocatorNumber" />
            <xs:element name="GPSPositionDate" type="tp:DateTime" />
            <xs:element name="Latitude" type="tp:Latitude" />
            <xs:element name="Longitude" type="tp:Longitude" />
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="GPSDevicesDataForOperator">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Lista zarejestrowanych urządzeń GPS korzystających z usług ZSL Operatora
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        List of registered GPS devices using ZSL operator services
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DataRow" minOccurs="0" maxOccurs="unbounded">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="CarrierIdentityNumber" type="tp:TraderIdentityNumber" />
            <xs:element name="GPSDeviceID" type="tp:GPSDeviceID" />
            <xs:element name="GPSDeviceStatus" type="xs:string" />
            <xs:element name="CreationDate" type="tp:DateTime" />
            <xs:element name="ModificationDate" type="tp:DateTime" />
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="GPSPosition">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Lokalizacja urządzenia GPS zgłoszonego w przewozie
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Location of the GPS device reported in the transport
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Latitude" type="tp:Latitude" />
      <xs:element name="Longitude" type="tp:Longitude" />
      <xs:element name="Date" type="tp:DateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="WsSystemStatus">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Status konta systemowego podmiotu dla usługi WS-DIRECT
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Status of the system account of the entity for the WS-DIRECT service
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse"/>
      <xs:enumeration value="0">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            nieaktywny
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            inactive
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            aktywny
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            active
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            zmodyfikowany
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            modified
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            anulowany
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            cancelled
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="InformationAboutControl">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacja o planowanej kontroli zgłoszenia
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information about planned carriage control
      </xs:documentation>
    </xs:annotation>
    <xs:sequence minOccurs="1" maxOccurs="1">
      <xs:element name="PlaceOfControl" type="tp:PlaceOfControl" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Informacja o miejscu planowanej kontroli zgłoszenia
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Information about place of planned control of carriage
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="RecommendationsForControl" type="xs:string" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Zalecenia dla planowanej kontroli zgłoszenia
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Recommendation for planned control of carriage
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="PlaceOfControl">
    <xs:restriction base="xs:int">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>
            Kontrola w miejscu rozładunku towaru
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>
            Kontrola w miejscu wskazanym
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ItemNumber">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Numer pozycji towarowej
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Item number
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:integer">
      <xs:whiteSpace value="collapse" />
      <xs:minInclusive value="1">
      </xs:minInclusive>
      <xs:maxInclusive value="999">
      </xs:maxInclusive>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="WagonNumberAndAmountOfGoods">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane identyfikacyjne wagonu z masą brutto lub objętością towaru
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Railroad car identification data with the gross weight or volume of goods
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="WagonNumber" type="tp:NumberOfMeansOfTransport" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Numer wagonu
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Railroad car number
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GoodsName" type="tp:GoodsName" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Nazwa towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Name of the goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AmountOfGoods" type="tp:Amount" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Masa brutto lub objętość towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Gross weight or volume of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="WagonNumberAndAmountOfGoodsAndSentNumber">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane identyfikacyjne wagonu z masą brutto lub objętością towaru oraz numerem zgłoszenia
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Railroad car identification data with the gross weight or volume of goods and notification number
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="WagonNumber" type="tp:NumberOfMeansOfTransport" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Numer wagonu
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Railroad car number
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GoodsName" type="tp:GoodsName" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Nazwa towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Name of the goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AmountOfGoods" type="tp:Amount" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Ilość towaru na pojedynczym wagonie
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Quantity of goods on a single wagon
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SentNumber" type="tp:SentNumber" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Numer pojedynczego zgłoszenia przewozu
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Single notification number of carriage
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AdministratorServices">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacje kontaktowe do administratora usługi
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Contact information for the administrator of service
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="AdminPhoneNumber" type="xs:string" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Telefon do administratora usługi
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Phone service administrator
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AdminEmail" type="tp:Email" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Adres email administratora usługi
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Email address for service administrator
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="NewPassword">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Nowe hasło
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        New password
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:minLength value="8">
      </xs:minLength>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="VATRate">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Stawka podatku VAT - słownik PDR 1317
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        VAT rate - the PDR dictionary 1317
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse" />
      <xs:pattern value="(\d{1})|(\d{2})|[N][P]">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="GPSDevice">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacje o identyfikatorze technicznym urządzenia GPS przewoźnika powiązanym z usługą ZSL
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information about the technical identifier of the transport GPS device associated with the ZSL service
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="GPSDeviceID" type="tp:GPSDeviceID" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Identyfikator techniczny urządzenia GPS przewoźnika powiązany z usługą ZSL
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            The technical identifier of the GPS device related to the ZSL service
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AdditionalInformation" type="tp:AdditionalInformation" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Informacje dodatkowe o urządzeniu
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Additional information about device
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="GPSDeviceAsString">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacje o identyfikatorze technicznym urządzenia GPS przewoźnika powiązanym z usługą ZSL
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information about the technical identifier of the transport GPS device associated with the ZSL service
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="GPSDeviceID" type="tp:GPSDeviceIDAsString" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Identyfikator techniczny urządzenia GPS przewoźnika powiązany z usługą ZSL
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            The technical identifier of the GPS device related to the ZSL service
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AdditionalInformation" type="tp:AdditionalInformation" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Informacje dodatkowe o urządzeniu
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Additional information about device
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="GPSDeviceID">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Identyfikator techniczny urządzenia GPS przewoźnika powiązany z usługą ZSL
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        The technical identifier of the GPS device related to the ZSL service
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse" />
      <xs:pattern value="[A-Za-z0-9_-]{1,50}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="GPSDeviceIDAsString">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Identyfikator techniczny urządzenia GPS przewoźnika powiązany z usługą ZSL
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        The technical identifier of the GPS device related to the ZSL service
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse" />
      <xs:minLength value="1" />
      <xs:maxLength value="50" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AdditionalInformation">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacje dodatkowe o urządzeniu
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Additional information about device
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse" />
      <xs:minLength value="1"/>
      <xs:maxLength value="255"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="SentInfoData">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Lista zgłoszeń przewozu wraz z datą utworzenia i statusem
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        List of carriage notifiactions including a creation date and a status
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SentNumber" type="tp:SentNumber" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Numer referencyjny zgłoszenia
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Carriage notification number
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CreationDate" type="tp:DateTime" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Data utworzenia zgłoszenia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Creation date of the notification of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ModificationDate" type="tp:DateTime" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Data utworzenia zgłoszenia przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Creation date of the notification of the carriage of goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TruckOrTrainNumber" type="tp:NumberOfMeansOfTransport" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Nr rejestracyjny środka transportu (numer pojazdu/ciągnika)
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Means of transport registration number (truck number)
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TrailerOrWagonNumber" type="tp:NumberOfMeansOfTransport" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Nr rejestracyjny naczepy
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Registration number of a semi-trailer
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GeoLocatorNumber" type="tp:LocatorNumber" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Numer lokalizatora GPS wskazanego w zgłoszeniu przewozu
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            GPS locator number indicated in a carriage notification
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FailoverGeoLocatorNumber" type="tp:LocatorNumber" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Numer zapasowego lokalizatora GPS wskazanego w zgłoszeniu przewozu
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Backup GPS locator number indicated in a carriage notification
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GoodsSender" type="tp:TraderIDNull" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Informacje o podmiocie wysyłającym lub nadawcy towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Information on a consignor or goods sender
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GoodsRecipient" type="tp:TraderIDNull" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Informacje podmiocie odbierającym lub odbiorcy towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Information on a consignee or goods recipient
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Carrier" type="tp:TraderIDNull" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Informacje o przewoźniku towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Information on a carrier
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GoodsInformation" type="tp:GoodsInformationAll" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Dane identyfikacyjne przewożonego towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Identification data of carried goods
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Transport" type="tp:TransportAll" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Informacje dotyczące przewozu towaru
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Information about goods transport
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SentStatus" type="tp:SentStatus" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Status zgłoszenia
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="en">
            Status of SENT notification
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="GpsData">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane lokalizacyjne urządzenia GPS
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        GPS data of GPS device
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="LocatorNumber" type="tp:LocatorNumber" />
      <xs:element name="Latitude" type="tp:Latitude" />
      <xs:element name="Longitude" type="tp:Longitude" />
      <xs:element name="Date" type="tp:DateTime" />
      <xs:element name="Event" type="xs:string"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AnprsData">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane OCR wskazanego numeru pojazdu
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        OCR data of the indicated vehicle registration number
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PlateNumber" type="tp:NumberOfMeansOfTransport" />
      <xs:element name="TypeOfVehicle" type="xs:string" />
      <xs:element name="PlatePosition" type="xs:string" />
      <xs:element name="PlateCountry" type="tp:Country" />
      <xs:element name="BcpCountry" type="tp:Country" />
      <xs:element name="BcpId" type="xs:string" />
      <xs:element name="EventDate" type="tp:DateTime" />
      <xs:element name="Latitude" type="tp:Latitude" />
      <xs:element name="Longitude" type="tp:Longitude" />
      <xs:element name="IdentityNumber" type="xs:string" minOccurs="0" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="WasteCode">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Kod odpadu - słownik PDR 1318
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Waste code - PDR glossary 1318
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="2">
      </xs:minLength>
      <xs:maxLength value="10">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="\d{6}">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="OfficialInformation">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dodatkowe informacje lub komunikaty urzędowe
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Additional information or official messages
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="InfoType" type="tp:InfoType" minOccurs="1" maxOccurs="1"/>
      <xs:element name="InfoOperator" type="tp:InfoReceiver" minOccurs="1" maxOccurs="unbounded"/>
      <xs:element name="InfoName" type="tp:InfoTitle" minOccurs="1" maxOccurs="1"/>
      <xs:element name="InfoValue" type="tp:InfoContent" minOccurs="1" maxOccurs="1"/>
      <xs:element name="InfoDescription" type="tp:InfoContent" minOccurs="0" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="InfoType">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Typ informacji - słownik PDR 1321
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Type of information - PDR 1321 glossary
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:maxLength value="300">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="InfoReceiver">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Adresat informacji - słownik PDR 1322
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information recipient - PDR 1322 glossary
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:maxLength value="300">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="InfoTitle">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Temat informacyjnego
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information subject
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:maxLength value="300">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="InfoContent">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Informacja
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="OilHeatingAddressId">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Kod miejsca dostawy towaru dla przewozu paliwa opałowego
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Delivery place code for heating fuel carriage
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="[P][L][C][1234567890]{3}">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="OilMobileDeviceId">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Kody urządzen mobilnych grzewczych oddzielone przecinkami dla przewozu oleju opałowego
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Non stationary heating device code separated by comma for heating oil carriage
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="([M][B][1234567890]{3})(([,][M][B][1234567890]{3}){0,99})">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="OilMobileDeviceSingleId">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Kod urządzenia mobilnego grzewczego dla przewozu oleju opałowego
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Non stationary heating device code for heating oil carriage
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="[M][B][1234567890]{3}">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="RecipientTransactionCode">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Jednorazowy kod transakcyjny do potwierdzenia dostawy towaru
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        One-time transaction code for confirming and authorizing the goods delivery
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="([ZP]{1}[-][1234567890]{3}[-][1234567890]{3})">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="AgreementNumber">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Numer umowy sprzedaży i dostawy towaru pomiędzy podmiotem sprzedającym a nabywającym - dotyczy oleju do celów opałowych
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Sale and goods delivery covered by a contract with the consignee - applies to oil for heating purposes
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="[S][E][N][T][O][I][L][1234567890]{4}[1234567890]{6}">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="AgreementBalanceInfo">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane informacyjne bilansie
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information data about the balance
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="BalanceYear" type="tp:Year" minOccurs="1" maxOccurs="1" />
      <xs:element name="BalanceMonth" type="tp:Month" minOccurs="1" maxOccurs="1" />
      <xs:element name="BalanceAmountOfGoods" type="tp:Amount" minOccurs="1" maxOccurs="1" />
      <xs:element name="BalanceCreationDate" type="tp:DateTime" minOccurs="1" maxOccurs="1" />
      <xs:element name="BalanceCreator" type="tp:UserName" minOccurs="1" maxOccurs="1" />
      <xs:element name="BalanceStatus" type="tp:SentStatus" minOccurs="1" maxOccurs="1" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="RegisteredAgreementInfo">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane informacyjne o umowie
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information data on the contract
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="CreationDate" type="tp:DateTime" minOccurs="1" maxOccurs="1" />
      <xs:element name="Creator" type="tp:UserName" minOccurs="1" maxOccurs="1" />
      <xs:element name="ModificationDate" type="tp:DateTime" minOccurs="1" maxOccurs="1" />
      <xs:element name="Modifier" type="tp:UserName" minOccurs="1" maxOccurs="1" />
      <xs:element name="SourceDocumentId" type="tp:DocumentSelfNumber" minOccurs="1" maxOccurs="1" />
      <xs:element name="ChecksumOfSourceDocument" type="tp:ChecksumOfDocument" minOccurs="1" maxOccurs="1" />
      <xs:element name="RegistrationStatus" type="tp:SentStatus" minOccurs="1" maxOccurs="1" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AgreementTraderInfo">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane identyfikacyjne podmiotu niebędącego osobą fizyczną lub osoby fizycznej prowadzącej działalność gospodarczą
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Identification data of a entity that is not a natural person or a self-employed person
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="IdSisc" type="tp:IdSisc" maxOccurs="1" minOccurs="0"/>
      <xs:element name="TraderOrPersonName" type="tp:TraderName" maxOccurs="1" minOccurs="1"/>
      <xs:element name="TraderIdentityType" type="tp:TraderIdentityType" maxOccurs="1" minOccurs="1" />
      <xs:element name="TraderIdentityNumber" type="tp:TraderIdentityNumber" maxOccurs="1" minOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="RegisteredAgreementTrader">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Podmiot niebędący osobą fizyczną oraz osoba fizyczna prowadząca działalność gospodarczą
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Entity that is not a natural person or a self-employed person
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RegisteredAgreementTraderInfo" type="tp:AgreementTraderInfo" maxOccurs="1" minOccurs="1" />
      <xs:element name="RegisteredAgreementTraderAddress" type="tp:AgreementTraderAddress" maxOccurs="1" minOccurs="1" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AgreementTraderAddress">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane adresowe
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Address data
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Street" type="tp:Street" minOccurs="1" maxOccurs="1"/>
      <xs:element name="HouseNumber" type="tp:HouseNumber" minOccurs="1" maxOccurs="1"/>
      <xs:element name="FlatNumber" type="tp:FlatNumber" minOccurs="0" maxOccurs="1"/>
      <xs:element name="City" type="tp:City" minOccurs="1" maxOccurs="1"/>
      <xs:element name="Country" type="tp:Country" minOccurs="1" maxOccurs="1"/>
      <xs:element name="PostalCode" type="tp:PostalCode" minOccurs="1" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="SalesAgreement">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane dotyczące umowy na dostawy oleju
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Oil supply contract details
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DateAgreementFrom" type="tp:Date" minOccurs="1" maxOccurs="1"/>
      <xs:element name="DateAgreementTo" type="tp:Date" minOccurs="1" maxOccurs="1"/>
      <xs:element name="AgreementAmountOfGoods" type="tp:Amount" minOccurs="1" maxOccurs="1"/>
      <xs:element name="UnitOfMeasure" type="tp:UnitOfMeasure" minOccurs="1" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="BalanceInformation">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane dotyczące bilansu ilości oleju
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Oil amount balance details
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="AgreementBalance" type="tp:Amount" minOccurs="1" maxOccurs="1"/>
      <xs:element name="AgreementBalancePerDay" type="tp:Date" minOccurs="1" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="DriverKey">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Klucz kierowcy do aplikacji mobilnej
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        Niezbędne w przypadku chęci korzystania przez kierowców z aplikacji mobilnej do potwierdzenia dostawy paliwa opałowego
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Driver key do mobile application
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Unnecessary if drivers want to use the mobile application to confirm delivery of heating fuel
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="8">
      </xs:minLength>
      <xs:maxLength value="20">
      </xs:maxLength>
      <xs:pattern value="[a-zA-Z0-9@#%]{8,20}"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="TraderIdentityType">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Typ identyfikatora podmiotu - słownik PDR 1324
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Entity identification type - PDR glossary 1324
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="2">
      </xs:minLength>
      <xs:maxLength value="10">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="PurposeOfTheGoods">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Przeznaczenie towaru w przypadku zgłoszenia przewozu / sprzedaży oleju opałowego
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information of the goods in case of transport heating oil
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:enumeration value="ZPO">
        <xs:annotation>
          <xs:documentation>
            Zużycie towaru
          </xs:documentation>
          <xs:documentation>
            Consumption of goods
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PPO">
        <xs:annotation>
          <xs:documentation>
            Odsprzedaż towaru
          </xs:documentation>
          <xs:documentation>
            Resale of goods
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="Year">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Rok w formacie YYYY
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Yearin format YYYY
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:pattern value="[2][0][2-9][0-9]"/>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="Month">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Rok w formacie MM
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Yearin format MM
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:pattern value="[0][1-9]|[1][0-2]"/>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="AgreementRegisteredBySender">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Dane informacyjne o zarejestrowanej umowie
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Information data on the registered contract
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="AgreementNumber" type="tp:AgreementNumber"  minOccurs="1" maxOccurs="1"/>
      <xs:element name="CreationDate" type="tp:DateTime" minOccurs="1" maxOccurs="1" />
      <xs:element name="Creator" type="tp:UserName" minOccurs="1" maxOccurs="1" />
      <xs:element name="ModificationDate" type="tp:DateTime" minOccurs="1" maxOccurs="1" />
      <xs:element name="Modifier" type="tp:UserName" minOccurs="1" maxOccurs="1" />
      <xs:element name="AgreementStatus" type="tp:AgreementStatus" minOccurs="1" maxOccurs="1" />
      <xs:element name="RecipientIdentityType" type="tp:TraderIdentityType" maxOccurs="1" minOccurs="1" />
      <xs:element name="RecipientIdentityNumber" type="tp:TraderIdentityNumber" maxOccurs="1" minOccurs="1"/>
      <xs:element name="RecipientName" type="tp:TraderName" maxOccurs="1" minOccurs="1"/>
      <xs:element name="DateAgreementFrom" type="tp:Date" minOccurs="1" maxOccurs="1"/>
      <xs:element name="DateAgreementTo" type="tp:Date" minOccurs="1" maxOccurs="1"/>
      <xs:element name="AgreementAmountOfGoods" type="tp:Amount" minOccurs="1" maxOccurs="1"/>
      <xs:element name="UnitOfMeasure" type="tp:UnitOfMeasure" minOccurs="1" maxOccurs="1"/>
      <xs:element name="AgreementBalance" type="tp:Amount" minOccurs="0" maxOccurs="1"/>
      <xs:element name="AgreementBalancePerDay" type="tp:Date" minOccurs="0" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="AgreementStatus">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Status rejestracji umowy olejowej - słownik PDR 1326
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Status of oil contract - PDR glossary 1326
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="OilPersonOrTraderIdentityType">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Typ identyfikatora podmiotu pośredniczącego lub zużywającego podmiotu olejowego 
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        ................................................................................
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="NIP">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Numer identyfikacj podatkowej NIP
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PESEL">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            Numer identyfikacyjny PESEL
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DO">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            DOWOD OSOBISTY
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PS">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            PASZPORT
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="KS">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            KARTA STAŁEGO POBYTU
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PJ">
        <xs:annotation>
          <xs:documentation source="doc" xml:lang="pl">
            PRAWO JAZDY
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="PhoneNumber">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Numer telefonu
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Phone number
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:maxLength value="12"/>
      <xs:minLength value="1"/>
      <xs:whiteSpace value="collapse"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="MobilePhoneNumber">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Numer telefonu komórkowego
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Mobile phone number
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="9">
      </xs:minLength>
      <xs:maxLength value="9">
      </xs:maxLength>
      <xs:whiteSpace value="collapse">
      </xs:whiteSpace>
      <xs:pattern value="[0-9]{9}">
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
</xs:schema>