<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="1.00">
  <!--=========================================-->
  <!--===== IM15:IM_AP_EL_ET  -->
  <!--===== Υποβολή Εκκαθαριστικού Λογαριασμού Ενεργητικής Τελειοποίησης  -->
  <!--===== ICS Domain Definition  -->
  <!--===== DDNIA v13.00  -->
  <!--===== Included Features: [10, 12, 18, 20, 26, 27, 28, 29]  -->
  <!--=========================================-->
  <!--===== Includes =====-->
  <xs:include schemaLocation="simple_types_ics.xsd" />
  <xs:include schemaLocation="simple_types.xsd" />
  <xs:include schemaLocation="complex_types.xsd" />
  <xs:include schemaLocation="tcl_ics.xsd" />
  <xs:include schemaLocation="tcl.xsd" />
  <xs:include schemaLocation="doc.xsd" />
  <!--===== Root Element =====-->
  <xs:element name="IM15A" type="IM15A" />
  <!--===== Root Element Content =====-->
  <xs:complexType name="IM15A">
    <xs:sequence>
      <xs:group ref="MESSAGE" />
      <xs:element name="HEAHEA" type="HEAHEA">
        <xs:annotation>
          <xs:documentation>
            <description value="HEADER" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TRADER" type="TRADER">
        <xs:annotation>
          <xs:documentation>
            <description value="TRADER" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="INWPRDECL" type="INWPRDECL">
        <xs:annotation>
          <xs:documentation>
            <description value="INWORD PROCESS DECLARATION" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="REMQUANT" type="REMQUANT" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>
            <description value="REMAINING QUANTITY" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IMPCUSOFF" type="IMPCUSOFF">
        <xs:annotation>
          <xs:documentation>
            <description value="(IMPORT) CUSTOMS OFFICE" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IMPDEB347" type="IMPDEB347" maxOccurs="50">
        <xs:annotation>
          <xs:documentation>
            <description value="IMPORT DEBIT" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SETCRE900" type="SETCRE900" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>
            <description value="SETTLEMENT CREDIT" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GUAS258" type="GUAS258" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>
            <description value="GUARANTEES" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== MESSAGE Content =====-->
  <xs:group name="MESSAGE">
    <xs:sequence>
      <xs:element name="MesSenMES3" type="Alphanumeric_Max35">
        <xs:annotation>
          <xs:documentation>
            <description value="Message sender" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MesRecMES6" type="Alphanumeric_Max35">
        <xs:annotation>
          <xs:documentation>
            <description value="Message recipient" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DatOfPreMES9" type="DatePrepType">
        <xs:annotation>
          <xs:documentation>
            <description value="Date of preparation" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TimOfPreMES10" type="TimeType">
        <xs:annotation>
          <xs:documentation>
            <description value="Time of preparation" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PriMES15" type="Alpha_1" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Priority" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TesIndMES18" type="Flag" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Test indicator" />
            <codeList name="Flag" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MesIdeMES19" type="Alphanumeric_Max14">
        <xs:annotation>
          <xs:documentation>
            <description value="Message identification" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MesTypMES20" type="MessageTypes">
        <xs:annotation>
          <xs:documentation>
            <description value="Message type" />
            <codeList name="MessageTypes" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CorIdeMES25" type="Alphanumeric_Max14" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Correlation identifier" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:group>
  <!--===== HEADER =====-->
  <xs:complexType name="HEAHEA">
    <xs:annotation>
      <xs:documentation>
        <description value="HEADER" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RefNumHEA4" type="Alphanumeric_Max22">
        <xs:annotation>
          <xs:documentation>
            <description value="Reference number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AccDatHEA158" type="DateType">
        <xs:annotation>
          <xs:documentation>
            <description value="Acceptance date" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ApprNumHEA04" type="Alphanumeric_Max35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Approval Number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CreDecHEA05" type="Alphanumeric_Max17" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Credit Decision" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CommentsHEA06" type="Alphanumeric_Max280" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Comments" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TotQuaHEA401" type="Decimal_8_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Total Quantity" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TotWasHEA089" type="Decimal_8_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Total Wastage" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TotRemQuaHEA985" type="Decimal_8_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Total Remaining Quantity" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== SETTLEMENT CREDIT =====-->
  <xs:complexType name="SETCRE900">
    <xs:annotation>
      <xs:documentation>
        <description value="SETTLEMENT CREDIT" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RefNumSETCRE907" type="Alphanumeric_Max22">
        <xs:annotation>
          <xs:documentation>
            <description value="Reference number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IteNumSETCRE903" type="Numeric_Max5">
        <xs:annotation>
          <xs:documentation>
            <description value="Item number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ProReqSETCRE906" type="Numeric_2">
        <xs:annotation>
          <xs:documentation>
            <description value="Procedure requested" />
            <codeList name="ImportsPreviousProcedure" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PreProSETCRE905" type="Numeric_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Previous Procedure" />
            <codeList name="ImportsPreviousProcedure" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ComNomSETCRE901" type="NumericMin4Max8Type" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Combined Nomenclature" />
            <rule name="TR1008" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TARcodSETCRE908" type="Alphanumeric_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="TARIC code" />
            <rule name="R868" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TARfirSETCRE909" type="Alphanumeric_4" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="TARIC first additional code" />
            <rule name="R868" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TARsecSETCRE910" type="Alphanumeric_4" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="TARIC second additional code" />
            <rule name="R868" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GooDesSETCRE902" type="Alphanumeric_Max280" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Goods description" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PerSETCRE904" type="Decimal_5_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Performance" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="WasSETCRE911" type="Decimal_8_2" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Wastage" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SERCREITEQUA920" type="SERCREITEQUA920" minOccurs="0" maxOccurs="50">
        <xs:annotation>
          <xs:documentation>
            <description value="ITEM QUANTITY" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:schema>

