<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://www.mf.gov.pl/schematy/SZPROT/e-Decyzje/WDZW01/1.0.xsd" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:ed="http://www.mf.gov.pl/schematy/SZPROT/Typy_eDecyzje/1.0.xsd" xmlns="http://www.mf.gov.pl/schematy/SZPROT/e-Decyzje/WDZW01/1.0.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
  <!--=====Wniosek o zawieszenie pozwolenia celnego-->
  <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="WDZW01">
    <xs:annotation>
      <xs:documentation source="rootName" xml:lang="pl">
        WDZW01
      </xs:documentation>
      <xs:documentation source="rootDoc" xml:lang="pl">
        Wniosek o zawieszenie pozwolenia celnego
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        Element główny komunikatu z wnioskiem o zawieszenie pozwolenia celnego.
      </xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Wniosek">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Dane ogólne wniosku
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              (D.1/1, D.1/3, D.1/4, D.1/6, D.1/7)
            </xs:documentation>
            <xs:documentation source="rule">
              R670
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:complexContent>
              <xs:extension base="ed:NaglowekWnioskuType"/>
            </xs:complexContent>
          </xs:complexType>
        </xs:element>
        <xs:element name="WnioskodawcaPodmiot" type="ed:PodmiotWnioskodawcaCloType2024">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Wnioskodawca
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Dane Wnioskodawcy ( (D.3/1; D.3/2).
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="PrzedstawicielPodmiot" type="ed:PodmiotPrzedstawicielCloType2024" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Przedstawiciel - podmiot 
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Dane Przedstawiciela, który jest podmiotem gospodarczym ( (D.3/3; D.3/4).
            </xs:documentation>
            <xs:documentation source="rule">
              R675
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="PrzedstawicielOsoba" type="ed:OsobaFizycznaPrzedstawicielType2024" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Przedstawiciel - osoba fizyczna
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Dane przedstawiciela - osoby ( (D.3/3; D.3/4).
            </xs:documentation>
            <xs:documentation source="rule">
              R675
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="OsobaOdpowiedzialnaZaWniosek" type="ed:OsobaFizycznaIdEdecyzjeType2024" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Osoba do kontaktu odpowiedzialna za wniosek 
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              (D.3/6)
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="Pozwolenie">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Pozwolenie i szczegóły wniosku
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="TerminZawieszeniaPozwolenia">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Termin, w jakim właściciel pozwolenia będzie w stanie ponownie spełnić warunki i kryteria.
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:attribute name="data" type="xs:date" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Wnioskowana data końca zawieszenia pozwolenia
                      </xs:documentation>
                    </xs:annotation>
                  </xs:attribute>
                  <xs:attribute name="opis" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Opis terminu zakończenia zawieszenia
                      </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="PlanowaneSrodki" minOccurs="0" maxOccurs="99">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Szczegółowe informacje dotyczące planowanych środków 
                  </xs:documentation>
                  <xs:documentation source="rule">
                    R512
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:attribute name="opis" use="required">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Opis planowanego środka
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="512"/>
                        <xs:whiteSpace value="collapse"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="dataOd" type="xs:date" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Termin, do którego będzie stosowany
                      </xs:documentation>
                    </xs:annotation>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
              <xs:element name="AEO" minOccurs="0">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Szczegóły pozwolenia AEO
                  </xs:documentation>
                  <xs:documentation source="doc" xml:lang="pl">
                    Dane uzupełniające dla pozwolenia AEO
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:attribute name="rodzajPozwolenia" use="required">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Rodzaj pozwolenia AEO
                      </xs:documentation>
                      <xs:documentation source="list">
                        1680
                      </xs:documentation>
                      <xs:documentation source="rule">
                        R984
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:length value="4"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="czyCzesciowe" type="xs:boolean" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Czy zawieszenie częściowe?
                      </xs:documentation>
                    </xs:annotation>
                  </xs:attribute>
                  <xs:attribute name="czescDoZawieszenia" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Część pozwolenia AEOF do zawieszenia
                      </xs:documentation>
                      <xs:documentation source="doc" xml:lang="pl">
                        Pole może przyjmować wartości AEOC i AEOS ze słownika 1680
                      </xs:documentation>
                      <xs:documentation source="list">
                        1680
                      </xs:documentation>
                      <xs:documentation source="rule">
                        R992
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:length value="4"/>
                        <xs:whiteSpace value="collapse"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="rodzajPozwoleniaKod" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Kod rodzaju pozwolenia ( D.1/1)
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Kod określający rodzaj pozwolenia, którego dotyczy wniosek
                </xs:documentation>
                <xs:documentation source="list">
                  1619
                </xs:documentation>
                <xs:documentation source="rule">
                  R982
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="8"/>
                  <xs:whiteSpace value="collapse"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="rodzajPozwoleniaNazwa" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Nazwa pozwolenia 
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Nazwa pozwolenia, którego dotyczy wniosek
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="512"/>
                  <xs:whiteSpace value="collapse"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="numer" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Numer pozwolenia (D.1/6)
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Numer pozwolenia, którego dotyczy wniosek.
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="35"/>
                  <xs:whiteSpace value="collapse"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="uzasadnienie" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Uzasadnienie
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:whiteSpace value="preserve"/>
                  <xs:maxLength value="4000"/>
                </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
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              (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="2560"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="Zalacznik" type="ed:ZalacznikType" minOccurs="0" maxOccurs="99">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Załączony dokument
            </xs:documentation>
            <xs:documentation source="doc">
              Załączny dokument elektroniczny w postaci pliku lub numeru e-Dokumentu w podsystemie e-Dokumenty  (D.2/4).
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="SkladajacyWniosek" type="ed:SkladajacyWniosekType">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Data i dane osoby składającej wniosek
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              (D.1/2; D.4/2)
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element ref="ds:Signature" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Podpis elektroniczny osoby składającej wniosek.
            </xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>
