<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.mf.gov.pl/SENT/2017/12/08/SENT_407.xsd" xmlns:tp="http://www.mf.gov.pl/SENT/2017/12/08/STypes.xsd" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.mf.gov.pl/SENT/2017/12/08/SENT_407.xsd">
  <xs:import namespace="http://www.mf.gov.pl/SENT/2017/12/08/STypes.xsd" schemaLocation="STypes.xsd"/>
  <xs:annotation>
    <xs:appinfo>
      SENT
    </xs:appinfo>
    <xs:documentation source="doc" xml:lang="pl">
      SENT407 - SPRAWDZENIE STATUSU REJESTRACJI PODMIOTU OLEJOWEGO ORAZ URZĄDZEŃ GRZEWCZYCH
    </xs:documentation>
    <xs:documentation source="doc" xml:lang="pl">
      Podstawa prawna: Art. 16b ust. 1, 2, 4 i art. 19 ust. 1 i 2 ustawy z dnia 6 grudnia 2008 r. o podatku akcyzowym (Dz. U. z 2018 r. poz. 1114, z późn. zm.)
    </xs:documentation>
    <xs:documentation source="doc" xml:lang="en">
      SENT407 - REGISTRATION STATUS CHECK OF OIL ENTITY AND HEATING DEVICES
    </xs:documentation>
    <xs:documentation source="doc" xml:lang="en">
      Legal basis: Aricle 16b paragraph 1, 2, 4 and article 19 paragraph 1 and 2 of of the Act of 6 December 2008 on excise duty (Journal of Laws of 2018 item 1114, as amended)
    </xs:documentation>
  </xs:annotation>
  <xs:element name="SENT_407">
    <xs:annotation>
      <xs:documentation source="doc" xml:lang="pl">
        Element główny komunikatu
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="en">
        Main element of the message
      </xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="1" minOccurs="1" name="OilEntityIdentityType" type="tp:TraderIdentityType">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Typ identyfikatora
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Identity Type
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="1" minOccurs="1" name="OilEntityIdentityNumber" type="tp:TraderIdentityNumber">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Numer identyfikatora
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Identification Number
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="5" minOccurs="0" name="OilHeatingAddressId" type="tp:OilHeatingAddressId">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Kod miejsca dostawy towaru dla przewozu paliwa opałowego
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Delivery place code for heating fuel carriage
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="10" minOccurs="0" name="OilMobileDeviceId" type="tp:OilMobileDeviceSingleId">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Kod urządzenia opałowego niestacjonarnego dla przewozu oleju opałowego
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Non stationary heating device code for heating oil carriage
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="1" minOccurs="0" name="DocumentId" type="tp:DocumentSelfNumber">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Numer własny dokumentu
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Own document number
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="1" minOccurs="0" name="ResponseAddress" type="tp:ResponseAddress">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Kanały komunikacji zwrotnej
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              Feedback communication channel
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element maxOccurs="1" minOccurs="1" name="Statements" type="tp:Statements">
          <xs:annotation>
            <xs:documentation source="doc" xml:lang="pl">
              Oświadczam, że posiadam upoważnienie do złożenia niniejszego zgłoszenia w imieniu i na rzecz podmiotu zobowiązanego
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="en">
              I declare that I am authorized to submit this notification for and on behalf of the obligated entity
            </xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>