<?xml version="1.0" encoding="UTF-8"?>
<xs:schema 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/WDWCO001/1.0.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.mf.gov.pl/schematy/SZPROT/e-Decyzje/WDWCO001/1.0.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified">
  <!--=====Odwołanie od decyzji wydanej na podstawie przepisów prawa 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="WDWCO001">
    <xs:annotation>
      <xs:documentation source="rootName" xml:lang="pl">
        WDWCO001
      </xs:documentation>
      <xs:documentation source="rootDoc" xml:lang="pl">
        Odwołanie od wydanej decyzji
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        Element główny komunikatu z odwołaniem od wydanej decyzji
      </xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Wniosek">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Dane ogólne
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:attribute name="nrWlasny" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Nr własny
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
                </xs:documentation>
                <xs:documentation source="rule">
                  R513
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="35"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="rodzajWnioskuKod" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Kod rodzaju wniosku
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Wartość stała dla danego rodzaju komunikatu. Wypełniana automatycznie dla wniosków wypełnianych na portalu PUESC.
                </xs:documentation>
                <xs:documentation source="list">
                  1553
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="10"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="rodzajWnioskuNazwa" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Nazwa rodzaju wniosku
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Nazwa składanego wniosku.
                </xs:documentation>
                <xs:documentation source="rule">
                  R505
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="512"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="organKod" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Kod organu, który wydał zaskarżone rozstrzygnięcie
                </xs:documentation>
                <xs:documentation source="list">
                  001C
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:length value="8"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="organNazwa" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Organ, który wydał zaskarżone rozstrzygnięcie
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="255"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="organOdwolaniaKod" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Kod organu, do którego wnoszone jest odwołanie
                </xs:documentation>
                <xs:documentation source="list">
                  001C
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:length value="8"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="organOdwolaniaNazwa" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Organ, do którego wnoszone jest odwołanie
                </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="WnioskodawcaPodmiot" type="ed:PodmiotPelnyIDSISCType" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Podmiot odwołujący sie
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Dane odwołującego się - podmiotu gospodarczego
            </xs:documentation>
            <xs:documentation source="rule">
              R700
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="WnioskodawcaOsoba" type="ed:OsobaFizycznaZAdresemType" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Osoba odwołująca się
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Dane odwołującego się - osoby fizycznej
            </xs:documentation>
            <xs:documentation source="rule">
              R700
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="PelnomocnikOsoba" type="ed:PelnomocnikOsobaOPType" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Pełnomocnik osoba
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Dane Przedstawiciela - osoby fizycznej
            </xs:documentation>
            <xs:documentation source="rule">
              R510
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="PrzedstawicielPodmiot" type="ed:PrzedstawicielPodmiotType" minOccurs="0" maxOccurs="9">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Przedstawiciel - podmiot
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Dane Przedstawiciel, który jest podmiotem gospodarczym.
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="PrzedstawicielOsoba" type="ed:PrzedstawicielOsobaType" minOccurs="0" maxOccurs="9">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Przedstawiciel - osoba
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Dane Przedstawiciela - osoby fizycznej
            </xs:documentation>
            <xs:documentation source="rule">
              R510
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="OsobaWyznaczonaDoKontaktu" type="ed:OsobaFizycznaIdEdecyzjeType" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Osoba wyznaczona do kontaktu
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="Odwolanie">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Szczegółowe dane odwołania
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:attribute name="nrDecyzji" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Numer rozstrzygnięcia, którego dotyczy odwołanie
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="35"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="dataDecyzji" type="xs:date" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Data wydania decyzji
                </xs:documentation>
              </xs:annotation>
            </xs:attribute>
            <xs:attribute name="nrPozwolenia" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Numer pozwolenia lub zezwolenia
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Numer pozwolenia lub zezwolenia, którego dotyczy odwołanie
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="35"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="trescOdwolania" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Treść żądania 
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="4096"/>
                </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: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="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.
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="SkladajacyWniosek">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Data i dane osoby składającej wniosek 
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:complexContent>
              <xs:extension base="ed:SkladajacyWniosekType"/>
            </xs:complexContent>
          </xs:complexType>
        </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>