<?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-Klient/WRP0003/1.0.xsd" xmlns:sz="http://www.mf.gov.pl/schematy/SZPROT/Typy/1.0.xsd" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.mf.gov.pl/schematy/SZPROT/e-Klient/WRP0003/1.0.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified">
  <xs:import namespace="http://www.mf.gov.pl/schematy/SZPROT/Typy/1.0.xsd" schemaLocation="http://seap-intranet-ws:8080/seap_schematy/xsd?id=1021325"/>
  <xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="http://seap-intranet-ws:8080/seap_schematy/xsd?id=10125"/>
  <xs:element name="WRP0003">
    <xs:annotation>
      <xs:documentation source="rootName" xml:lang="pl">
        WRP0003
      </xs:documentation>
      <xs:documentation source="rootDoc" xml:lang="pl">
        Wniosek o dezaktywację 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:complexType>
      <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:complexContent>
          </xs:complexType>
        </xs:element>
        <xs:element name="Podmiot">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Podmiot
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Dane identyfikacyjne podmiotu.
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:complexContent>
              <xs:extension base="sz:PodmiotIdentyfikacjaType">
                <xs:attribute name="dataZaprzestaniaGosp" type="xs:date" use="optional">
                  <xs:annotation>
                    <xs:documentation source="name" xml:lang="pl">
                      Data zaprzestania prowadzenia działalności gospodarczej
                    </xs:documentation>
                  </xs:annotation>
                </xs:attribute>
              </xs:extension>
            </xs:complexContent>
          </xs:complexType>
        </xs:element>
        <xs:element name="Akcyza" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Dane akcyzowe
            </xs:documentation>
            <xs:documentation source="rule">
              R80
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:attribute name="dataZaprzestaniaAkc" type="xs:date" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Data zaprzestania działalności w akcyzie
                </xs:documentation>
              </xs:annotation>
            </xs:attribute>
            <xs:attribute name="przyczynaZaprzestaniaAkcKod" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Kod przyczyny zaprzestania działalności w akcyzie
                </xs:documentation>
                <xs:documentation source="list">
                  1630
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:length value="1"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="przyczynaZaprzestaniaAkcNazwa" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Przyczyna zaprzestania działalności w akcyzie
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="140"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="przyczynaZaprzestaniaAkcWyjasnienie" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Wyjaśnienie przyczyny zaprzestania działalności  akcyzowej
                </xs:documentation>
                <xs:documentation source="rule">
                  R79
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="350"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="Oswiadczenie" type="sz:OswiadczenieType" minOccurs="0" maxOccurs="99">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Oświadczenie
            </xs:documentation>
            <xs:documentation source="rule">
              R81
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="InfDodatkowe" type="sz:InfDodatkoweType" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Informacje dodatkowe
            </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 ref="ds:Signature" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>