<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.mf.gov.pl/schematy/SZPROT/e-Decyzje/WDCLA01/1.0.xsd" xmlns:ed="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/WDCLA01/1.0.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified">
  <!--=====Wniosek o wpis na listę agentów celnych-->
  <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="WDCLA01">
    <xs:annotation>
      <xs:documentation source="rootName" xml:lang="pl">
        WDCLA01
      </xs:documentation>
      <xs:documentation source="rootDoc" xml:lang="pl">
        Wniosek o wpis na listę agentów celnych.
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        Element główny komunikatu z wnioskiem o wpis na listę agentów celnych.
      </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:annotation>
          <xs:complexType>
            <xs:complexContent>
              <xs:extension base="ed:NaglowekWnioskuType">
                <xs:attribute name="typWniosku" use="required">
                  <xs:annotation>
                    <xs:documentation source="name" xml:lang="pl">
                      Typ wniosku
                    </xs:documentation>
                    <xs:documentation source="doc" xml:lang="pl">
                      Kod określający, w jakim celu złożono wniosek.
                    </xs:documentation>
                    <xs:documentation source="list">
                      1565
                    </xs:documentation>
                    <xs:documentation source="rule">
                      R709, R711, R712
                    </xs:documentation>
                  </xs:annotation>
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:length value="1"/>
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
              </xs:extension>
            </xs:complexContent>
          </xs:complexType>
        </xs:element>
        <xs:element name="WnioskodawcaOsoba">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Wnioskodawca
            </xs:documentation>
            <xs:documentation source="rule">
              R712
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:complexContent>
              <xs:extension base="ed:OsobaFizycznaZAdresemType">
                <xs:attribute name="dokumentTozsamosciKod" use="optional">
                  <xs:annotation>
                    <xs:documentation source="name" xml:lang="pl">
                      Kod rodzaju dokumentu tożsamości
                    </xs:documentation>
                    <xs:documentation source="list">
                      1503
                    </xs:documentation>
                    <xs:documentation source="rule">
                      R698
                    </xs:documentation>
                  </xs:annotation>
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:maxLength value="36"/>
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
                <xs:attribute name="dokumentTozsamosciNazwa" use="optional">
                  <xs:annotation>
                    <xs:documentation source="name" xml:lang="pl">
                      Nazwa rodzaju dokumentu tożsamości
                    </xs:documentation>
                  </xs:annotation>
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:maxLength value="140"/>
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
                <xs:attribute name="dokumentTozsamosciNr" use="optional">
                  <xs:annotation>
                    <xs:documentation source="name" xml:lang="pl">
                      Seria i numer dokumentu tożsamości
                    </xs:documentation>
                    <xs:documentation source="rule">
                      R698
                    </xs:documentation>
                  </xs:annotation>
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:maxLength value="30"/>
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
                <xs:attribute name="nrDecyzji" use="optional">
                  <xs:annotation>
                    <xs:documentation source="name" xml:lang="pl">
                      Nr decyzji o uznaniu kwalifikacji do wykonywania zawodu agenta celnego
                    </xs:documentation>
                    <xs:documentation source="doc" xml:lang="pl">
                      Należy podać w przypadku uznania kwalifikacji do wykonywania zawodu agenta celnego uzyskanych w innym państwie członkowskim Unii Europejskiej, Konfederacji Szwajcarskiej lub państwach członkowskich Europejskiego Porozumienia o Wolnym Handlu (EFTA) — stronach umowy o Europejskim Obszarze Gospodarczym.
                    </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 decyzji o uznaniu kwalifikacji do wykonywania zawodu agenta celnego
                    </xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute name="nrAgentaCelnego" use="optional">
                  <xs:annotation>
                    <xs:documentation source="name" xml:lang="pl">
                      Numer agenta celnego
                    </xs:documentation>
                    <xs:documentation source="doc" xml:lang="pl">
                      Numer agenta celnego podawany w przypadku wniosku o zmianę lub dezaktywację wpisu na listę agentów celnych.
                    </xs:documentation>
                    <xs:documentation source="rule">
                      R709, R719
                    </xs:documentation>
                  </xs:annotation>
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:maxLength value="6"/>
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
              </xs:extension>
            </xs:complexContent>
          </xs:complexType>
        </xs:element>
        <xs:element name="Oswiadczenie" minOccurs="0" maxOccurs="9">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Oświadczenie wnioskodawcy
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Oświadczam, że posiadam pełną zdolność do czynności prawnych
            </xs:documentation>
            <xs:documentation source="rule">
              R710
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:complexContent>
              <xs:extension base="ed:OswiadczenieType">
                <xs:attribute name="zdolnoscDoCzynnosciPrawnych" type="xs:boolean" use="optional">
                  <xs:annotation>
                    <xs:documentation source="name" xml:lang="pl">
                      Oświadczam, że posiadam pełną zdolność do czynności prawnych
                    </xs:documentation>
                    <xs:documentation source="rule">
                      R710
                    </xs:documentation>
                  </xs:annotation>
                </xs:attribute>
              </xs:extension>
            </xs:complexContent>
          </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 (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="ed:SkladajacyWniosekType">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Data i dane osoby składającej wniosek 
            </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>