<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.00"
           xmlns:emcs="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:EMCS:V2.02"
           xmlns:tms="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:TMS:V2.02"
           xmlns:doc="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:DOC:V2.02"
           xmlns:ie="http://www.mf.gov.pl/schematy/EAD/PL705/2019/10/"
           targetNamespace="http://www.mf.gov.pl/schematy/EAD/PL705/2019/10/" >
  <!--=========================================-->
  <!--===== PL705:PL_REQ_SUB -->
  <!--===== Prośba o wartości słowników -->
  <!--=========================================-->
  <!--===== Imports =====-->
  <xs:import namespace="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:EMCS:V2.02" schemaLocation="types.xsd" />
  <xs:import namespace="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:TMS:V2.02" schemaLocation="tms.xsd" />
  <xs:import namespace="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:DOC:V2.02" schemaLocation="doc.xsd" />

  <!--===== Root Element =====-->
  <xs:element name="PL705" type="ie:PL705Type" />

  <!--===== EMCS Data Groups Declarations =====-->
  <xs:complexType name="PL705Type">
    <xs:sequence>
      <xs:element name="Header" type="tms:HeaderType" />
      <xs:element name="Body" type="ie:BodyType" />
    </xs:sequence>
  </xs:complexType>
  <!--===== IE Specific Data Groups Declarations =====-->
  <xs:complexType name="BodyType">
    <xs:sequence>
      <xs:element name="ExternalRequest" type="ie:ExternalRequestType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ExternalRequestType">
    <xs:sequence>
      <xs:element name="Attributes" type="ie:AttributesType" />
      <xs:element name="ListOfCodes" type="ie:ListOfCodesType" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AttributesType">
    <xs:sequence>
      <xs:element name="RequestingEconomicOperator" type="emcs:ExciseNumberType" />
      <xs:element name="RequestReason" type="ie:RequestReasonType" minOccurs="0" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ListOfCodesType">
    <xs:sequence>
      <xs:element name="RequestedListOfCodesCode" type="ie:RequestedListOfCodesExternal" />
    </xs:sequence>
  </xs:complexType>
  <!--===== IE Specific Data Items Declarations =====-->
  <xs:simpleType name="RequestReasonType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Request Reason" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="350" />
      <xs:pattern value=".{1,350}" />
    </xs:restriction>
  </xs:simpleType>
  <!--=========================================-->
  <!--===== Requested List of Codes (external) =====-->
  <!--=========================================-->
  <xs:simpleType name="RequestedListOfCodesExternal">
    <xs:annotation>
      <xs:documentation>Requested List of Codes (external)</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation xml:lang="en">Units of measure</xs:documentation>
          <xs:documentation xml:lang="pl">Jednostki miary</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation xml:lang="en">Events types</xs:documentation>
          <xs:documentation xml:lang="pl">Typy zdarzeń</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation xml:lang="en">Evidence types</xs:documentation>
          <xs:documentation xml:lang="pl">Typu dowodów</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="6">
        <xs:annotation>
          <xs:documentation xml:lang="en">Language codes</xs:documentation>
          <xs:documentation xml:lang="pl">Kody języka</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="7">
        <xs:annotation>
          <xs:documentation xml:lang="en">Member states</xs:documentation>
          <xs:documentation xml:lang="pl">Państwa członkowskie</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="8">
        <xs:annotation>
          <xs:documentation xml:lang="en">Country codes</xs:documentation>
          <xs:documentation xml:lang="pl">Kody krajów</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="9">
        <xs:annotation>
          <xs:documentation xml:lang="en">Packaging codes</xs:documentation>
          <xs:documentation xml:lang="pl">Kody opakowań</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="10">
        <xs:annotation>
          <xs:documentation xml:lang="en">Reasons for unsatisfactory receipt or control report</xs:documentation>
          <xs:documentation xml:lang="pl">Rodzaje zastrzeżeń</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="11">
        <xs:annotation>
          <xs:documentation xml:lang="en">Reasons for interruption</xs:documentation>
          <xs:documentation xml:lang="pl">Powody zatrzymania przesyłki</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="13">
        <xs:annotation>
          <xs:documentation xml:lang="en">Transport modes</xs:documentation>
          <xs:documentation xml:lang="pl">Kody rodzaju transportu</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="14">
        <xs:annotation>
          <xs:documentation xml:lang="en">Transport units</xs:documentation>
          <xs:documentation xml:lang="pl">Kody jednostek transportowych</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="15">
        <xs:annotation>
          <xs:documentation xml:lang="en">Wine-growing zones</xs:documentation>
          <xs:documentation xml:lang="pl">Kody stref uprawy winorośli</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="16">
        <xs:annotation>
          <xs:documentation xml:lang="en">Wine operation codes</xs:documentation>
          <xs:documentation xml:lang="pl">Kody czynności związanych z winem</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="17">
        <xs:annotation>
          <xs:documentation xml:lang="en">Excise products categories</xs:documentation>
          <xs:documentation xml:lang="pl">Kategorie wyrobów akcyzowych</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="18">
        <xs:annotation>
          <xs:documentation xml:lang="en">Excise product</xs:documentation>
          <xs:documentation xml:lang="pl">Wyrób akcyzowy</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="19">
        <xs:annotation>
          <xs:documentation xml:lang="en">CN codes</xs:documentation>
          <xs:documentation xml:lang="pl">Kody CN</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="20">
        <xs:annotation>
          <xs:documentation xml:lang="en">Correspondences CN code - Excise product</xs:documentation>
          <xs:documentation xml:lang="pl">Przynależność kodów CN do wyrobów akcyzowych</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="21">
        <xs:annotation>
          <xs:documentation xml:lang="en">Cancellation reasons</xs:documentation>
          <xs:documentation xml:lang="pl">Kody przyczyny anulowania</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="22">
        <xs:annotation>
          <xs:documentation xml:lang="en">Alert or rejection of e-AD reasons</xs:documentation>
          <xs:documentation xml:lang="pl">Ostrzeżenie lub odrzucenie dokumentu e-AD</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="23">
        <xs:annotation>
          <xs:documentation xml:lang="en">Delay explanations</xs:documentation>
          <xs:documentation xml:lang="pl">Kody wyjaśnień opóźnień w dostawie</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="25">
        <xs:annotation>
          <xs:documentation xml:lang="en">Event submitting persons</xs:documentation>
          <xs:documentation xml:lang="pl">Osoby zgłaszające zdarzenie</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="91">
        <xs:annotation>
          <xs:documentation xml:lang="en">Polish excise products</xs:documentation>
          <xs:documentation xml:lang="pl">Polskie wyroby akcyzowe</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="92">
        <xs:annotation>
          <xs:documentation xml:lang="en">Polish CN codes</xs:documentation>
          <xs:documentation xml:lang="pl">Polskie kody CN</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="93">
        <xs:annotation>
          <xs:documentation xml:lang="en">Polish correspondences CN code - Excise product</xs:documentation>
          <xs:documentation xml:lang="pl">Przynależność polskich kodów CN do wyrobów akcyzowych</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="94">
        <xs:annotation>
          <xs:documentation xml:lang="en">Additional units of measure</xs:documentation>
          <xs:documentation xml:lang="pl">Dodatkowe jednostki miary</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="95">
        <xs:annotation>
          <xs:documentation xml:lang="en">Maximum Journey Time Parameters</xs:documentation>
          <xs:documentation xml:lang="pl">Maksymalna wartość czasu przewozu</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="97">
        <xs:annotation>
          <xs:documentation xml:lang="en">Member State Allowing Splitting On Its Territory</xs:documentation>
          <xs:documentation xml:lang="pl">Państwa członkowskie pozwalające na podział na ich terenie</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="101">
        <xs:annotation>
          <xs:documentation xml:lang="en">Type of document</xs:documentation>
          <xs:documentation xml:lang="pl">Typ dokumentu - zaświadczenia</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="102">
        <xs:annotation>
          <xs:documentation xml:lang="en">Manual Closure Request Reason</xs:documentation>
          <xs:documentation xml:lang="pl">Powód żądania manualnego zamknięcia</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="103">
        <xs:annotation>
          <xs:documentation xml:lang="en">Manual Closure Rejection Reason</xs:documentation>
          <xs:documentation xml:lang="pl">Powód odrzucenia manualnego zamknięcia</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:schema>

