<?xml version="1.0" encoding="UTF-8"?>
<xs:schema attributeFormDefault="unqualified"
           elementFormDefault="qualified"
           targetNamespace="http://www.mf.gov.pl/schematy/SZPROT/e-Klient/WRP0001/1.0.xsd"
           xmlns="http://www.mf.gov.pl/schematy/SZPROT/e-Klient/WRP0001/1.0.xsd"
           xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
           xmlns:sz="http://www.mf.gov.pl/schematy/SZPROT/Typy/1.0.xsd"
           xmlns:wpe="http://www.mf.gov.pl/schematy/SZPROT/e-Klient/WPE0001/1.0.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import
             namespace="http://www.mf.gov.pl/schematy/SZPROT/Typy/1.0.xsd" schemaLocation="http://seap-intranet-ws:8080/seap_schematy/xsd?id=1023364"/>
  <xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="http://seap-intranet-ws:8080/seap_schematy/xsd?id=10125"/>
  <xs:import
             namespace="http://www.mf.gov.pl/schematy/SZPROT/e-Klient/WPE0001/1.0.xsd" schemaLocation="http://seap-intranet-ws:8080/seap_schematy/xsd?id=1021327"/>
  <xs:element name="WRP0001" type="WRPType">
    <xs:annotation>
      <xs:documentation source="rootName" xml:lang="pl">
        WRP0001
      </xs:documentation>
      <xs:documentation source="rootDoc" xml:lang="pl">
        Wniosek o rejestrację danych podmiotu w SISC.
      </xs:documentation>
      <xs:documentation source="rootDoc" xml:lang="pl">
        Komunikat jest przekazywany przez wnioskodawcę do SZPROT PLUS.
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        Element główny.
      </xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="WRPType">
    <xs:sequence>
      <xs:element name="Naglowek">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Nagłówek
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:complexContent>
            <xs:extension base="sz:NaglowekType">
              <xs:attribute name="eoriOperacjaKod" use="optional">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Kod operacji na EORI
                  </xs:documentation>
                  <xs:documentation source="doc" xml:lang="pl">
                    Możliwe wartości: "1" (Nadać stały numer EORI), "2" (Nadać tymczasowy numer EORI), "3" (dezaktywować numer EORI)
                  </xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:length value="1"/>
                    <xs:enumeration value="1"/>
                    <xs:enumeration value="2"/>
                    <xs:enumeration value="3"/>
                  </xs:restriction>
                </xs:simpleType>
              </xs:attribute>
            </xs:extension>
          </xs:complexContent>
        </xs:complexType>
      </xs:element>
      <xs:element maxOccurs="99" minOccurs="0"
                  name="ObszarDzialalnosci" type="sz:ObszarDzialalnosciType">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Obszar działalności
          </xs:documentation>
          <xs:documentation source="rule">
            R111
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Podmiot" type="sz:PodmiotType">
        <xs:annotation>
          <xs:documentation source="name">
            Podmiot
          </xs:documentation>
          <xs:documentation source="doc" xml:lang="pl">
            Dane identyfikacyjne podmiotu.
          </xs:documentation>
          <xs:documentation source="rule">
            R98, R106
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element maxOccurs="9" name="Adres" type="sz:AdresType">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Adres
          </xs:documentation>
          <xs:documentation source="rule">
            R35, R36, R131, R140
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element maxOccurs="99" minOccurs="0"
                  name="DedykowanyKontakt" type="sz:DedykowanyKontaktType">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Preferowany kontakt
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="Akcyza" type="sz:AkcyzaType">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Dane akcyzowe
          </xs:documentation>
          <xs:documentation source="rule">
            R39
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element maxOccurs="999" minOccurs="0"
                  name="KontoBankowe" type="sz:KontoBankoweType">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Konto bankowe
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element maxOccurs="99" minOccurs="0" name="StatusAPE" type="sz:StatusAPEType">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Status aktywności prawno-ekonomicznej
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element maxOccurs="999" minOccurs="0"
                  name="KanalKomunikacji" type="sz:KanalKomunikacjiType">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Kanał komunikacji
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element maxOccurs="9999" minOccurs="0" name="Oddzial" type="sz:OddzialPodmiotuType">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Oddział podmiotu
          </xs:documentation>
          <xs:documentation source="rule">
            R51
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="ReprezentacjaOsFiz" type="wpe:ReprezentacjaOsFizType">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Reprezentacja - osoba fizyczna
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="ReprezentacjaPodmiot" type="wpe:ReprezentacjaPodmiotType">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Reprezentacja - podmiot
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element maxOccurs="99" minOccurs="0" name="Oswiadczenie" type="sz:OswiadczenieType">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Oświadczenie
          </xs:documentation>
          <xs:documentation source="rule">
            R74
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" name="InfDodatkowe" type="sz:InfDodatkoweType">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Informacje dodatkowe
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element maxOccurs="99" minOccurs="0" name="Zalacznik" type="sz:PlikType">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Załącznik
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Wnioskodawca">
        <xs:annotation>
          <xs:documentation source="name" xml:lang="pl">
            Wnioskodawca
          </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:complexContent>
            <xs:extension base="sz:WnioskodawcaType"/>
          </xs:complexContent>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" ref="ds:Signature"/>
    </xs:sequence>
  </xs:complexType>
</xs:schema>
