<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2019 sp2 (x64) (http://www.altova.com) by Róża Szwarga (SKG S.A.) -->
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by S³awomir Kubis (Systemy Komputerowe Glowka SA) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.mf.gov.pl/schematy/SZPROT/e-Decyzje/WDACT01/1.0.xsd" xmlns:td="http://www.mf.gov.pl/schematy/SZPROT/Typy_eDecyzje/1.0.xsd" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.mf.gov.pl/schematy/SZPROT/e-Decyzje/WDACT01/1.0.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified">
  <!--Wniosek o wydanie, zmianę lub cofnięcie pozwolenia na korzystanie ze statusu upoważnionego odbiorcy w procedurze TIR-->
  <xs:import namespace="http://www.mf.gov.pl/schematy/SZPROT/Typy_eDecyzje/1.0.xsd" schemaLocation="http://seap-intranet-ws:8080/seap_schematy/xsd?id=1022000"/>
  <xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="http://seap-intranet-ws:8080/seap_schematy/xsd?id=10125"/>
  <xs:element name="WDACT01">
    <xs:annotation>
      <xs:documentation source="rootName" xml:lang="pl">
        WDACT01
      </xs:documentation>
      <xs:documentation source="rootDoc" xml:lang="pl">
        Komunikat zawiera dane wniosku o wydanie pozwolenia na korzystanie ze statusu upoważnionego odbiorcy w procedurze TIR.
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        Element główny.
      </xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Wniosek" type="td:NaglowekEdecyzjePozType3">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Dane ogólne wniosku (D.1/1, D.1/3, D.1/4, D.1/6, D.1/7).
            </xs:documentation>
            <xs:documentation source="rule">
              R785
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="WnioskodawcaPodmiot" type="td:PodmiotWnioskodawcaCloType">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Wnioskodawca (D.3/1; D.3/2).
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Dane Wnioskodawcy
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="PrzedstawicielPodmiot" type="td:PodmiotPrzedstawicielCloType" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Przedstawiciel - podmiot  (D.3/3; D.3/4).
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Dane Przedstawiciela, który jest podmiotem gospodarczym.
            </xs:documentation>
            <xs:documentation source="rule">
              R675
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="PrzedstawicielOsoba" type="td:OsobaFizycznaPrzedstawicielType" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Przedstawiciel - osoba fizyczna (D.3/3; D.3/4).
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Dane przedsta
            </xs:documentation>
            <xs:documentation source="rule">
              R675
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="OsobaOdpowiedzialnaZaWniosek" type="td:OsobaFizycznaIdEdecyzjeType">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Osoba do kontaktu odpowiedzialna za wniosek (D.3/6).
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="OsobaOdpowiedzialnaZaSprawyCelne" type="td:OsobaFizycznaIdEdecyzjeType" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Osoba odpowiedzialna za sprawy celne (D.3/5).
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Imię i nazwisko oraz dane kontaktowe osoby odpowiedzialnej za sprawy celne.
            </xs:documentation>
            <xs:documentation source="rule">
              R652
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="KierujacyPrzedsiebiorstwem" minOccurs="0" maxOccurs="99">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Osoba kierująca przedsiębiorstwem wnioskodawcy lub nadzorująca zarządzanie nim (D.3/7).
            </xs:documentation>
            <xs:documentation source="rule">
              R652
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:complexContent>
              <xs:extension base="td:OsobaFizycznaIdentyfikacja2Type">
                <xs:sequence>
                  <xs:element name="Adres" type="td:AdresType">
                    <xs:annotation>
                      <xs:documentation source="doc" xml:lang="pl">
                        Adres osoby kierującej przedsiębiorstwem
                      </xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:extension>
            </xs:complexContent>
          </xs:complexType>
        </xs:element>
        <xs:element name="EwidencjeCelne" minOccurs="0" maxOccurs="99">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Miejsce prowadzenia ewidencji oraz jej rodzaj (D.4/4; D.8/2).
            </xs:documentation>
            <xs:documentation source="rule">
              R512
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="MiejsceProwadzenia" type="td:AdresType">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Miejsce prowadzenia ewidencji (D.4/4/).
                  </xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="rodzaj" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Rodzaj ewidencji (D.8/2) 
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="512"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="ZgodaNaPublikacje" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Zgoda na publikację w wykazie posiadaczy pozwoleń (D.8/12).
            </xs:documentation>
            <xs:documentation source="rule">
              R512
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:attribute name="zgodaNaPublikacje" type="xs:boolean" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Czy wyrażenie zgody na publikację w wykazie posiadaczy pozwoleń?
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Znacznik wyrażenia zgody na publikację w wykazie posiadaczy pozwoleń (D.8/12).
                </xs:documentation>
              </xs:annotation>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="DataRozpoczeciaWaznosciPozwolenia" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Wnioskowana data rozpoczęcia ważności pozwolenia (D.4/6).
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:attribute name="dataOd" type="xs:date" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Wnioskowana data początkowa
                </xs:documentation>
                <xs:documentation source="rule">
                  R659
                </xs:documentation>
              </xs:annotation>
            </xs:attribute>
            <xs:attribute name="opis" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Opis terminu rozpoczęcia ważności pozwolenia
                </xs:documentation>
                <xs:documentation source="rule">
                  R659
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="512"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="LokalizacjaTowarow" minOccurs="0" maxOccurs="999">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Lokalizacja towarów (D.4/8)
            </xs:documentation>
            <xs:documentation source="rule">
              R512
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:complexContent>
              <xs:extension base="td:LokalizacjaMiejsceType">
                <xs:attribute name="ucPrzeznaczeniaKod" use="required">
                  <xs:annotation>
                    <xs:documentation source="name" xml:lang="pl">
                      Kod urzędu celnego przeznaczenia
                    </xs:documentation>
                    <xs:documentation source="list">
                      001A
                    </xs:documentation>
                  </xs:annotation>
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:length value="8"/>
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
                <xs:attribute name="ucPrzeznaczeniaNazwa" use="optional">
                  <xs:annotation>
                    <xs:documentation source="name" xml:lang="pl">
                      Nazwa urzędu celnego 
                    </xs:documentation>
                  </xs:annotation>
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:maxLength value="255"/>
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
              </xs:extension>
            </xs:complexContent>
          </xs:complexType>
        </xs:element>
        <xs:element name="UCKontrolny" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Kontrolny urząd celny (D.4/13).
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:attribute name="kod" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Kod urzędu celnego kontrolnego
                </xs:documentation>
                <xs:documentation source="list">
                  001A
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:length value="8"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="nazwa" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Nazwa urzędu celnego kontrolnego
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="255"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="LiczbaOperacji" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Liczba operacji (D.7/4)
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Szacunkowa miesięczna   ilość operacji realizowanych w ramach uproszczenia.
            </xs:documentation>
            <xs:documentation source="rule">
              R512
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:attribute name="liczbaOperacji" use="required">
              <xs:simpleType>
                <xs:restriction base="xs:integer">
                  <xs:totalDigits value="7"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="InformacjaDodatkowa" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Dodatkowe informacje (D.8/5).
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:attribute name="tekst" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Tekst informacji dodatkowej.
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="512"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="Zalacznik" type="td:ZalacznikType" minOccurs="0" maxOccurs="99">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Załączony dokument (D.2/4).
            </xs:documentation>
            <xs:documentation source="doc">
              Załączny dokument elektroniczny w postaci pliku lub numeru e-Dokumentu w podsystemie e-Dokumenty.
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="SkladajacyWniosek" type="td:SkladajacyWniosekType">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Data i dane osoby składającej wniosek (D.1/2; D.4/2).
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element ref="ds:Signature" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>
