<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="dgtaxud:ics:messages" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="dgtaxud:ics:messages" version="1.00">
  <!--=========================================-->
  <!--===== IZ15:I_IMP_Z_DAT  -->
  <!--===== Z3 Declaration_Notification of Goods Arrival at Customs  -->
  <!--===== ICS_P1 Phase Definition  -->
  <!--===== Message Specifications for IMPORT v1.00  -->
  <!--===== XSD version v1.23  -->
  <!--=========================================-->
  <!--===== Includes =====-->
  <xs:include schemaLocation="doc.xsd" />
  <xs:include schemaLocation="complex_types_ics.xsd" />
  <xs:include schemaLocation="simple_types_ics.xsd" />
  <xs:include schemaLocation="tcl_ics.xsd" />
  <!--===== Root Element =====-->
  <xs:element name="IZ15A" type="tns:IZ15AType" />
  <!--===== Root Element Content =====-->
  <xs:complexType name="IZ15AType">
    <xs:sequence>
      <xs:element name="MesSenMES3" type="tns:Alphanumeric_Max35">
        <xs:annotation>
          <xs:documentation>
            <description value="Message sender" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MesRecMES6" type="tns:Alphanumeric_Max35">
        <xs:annotation>
          <xs:documentation>
            <description value="Message recipient" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DatOfPreMES9" type="tns:DatePrepType">
        <xs:annotation>
          <xs:documentation>
            <description value="Date of preparation" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TimOfPreMES10" type="tns:TimeType">
        <xs:annotation>
          <xs:documentation>
            <description value="Time of preparation" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PriMES15" type="tns:Alpha_1" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Priority" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="TesIndMES18" type="tns: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="tns:Alphanumeric_Max14">
        <xs:annotation>
          <xs:documentation>
            <description value="Message identification" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MesTypMES20" type="tns:MessageTypes">
        <xs:annotation>
          <xs:documentation>
            <description value="Message type" />
            <codeList name="MessageTypes" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CorIdeMES25" type="tns:Alphanumeric_Max14" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Correlation identifier" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
	  <!-- 31/08/2023 Changed type from IZ15_HEAHEAType to IZ15_HEAHEAType02-->
	  <xs:element name="HEAHEA" type="tns:IZ15_HEAHEAType02">
        <xs:annotation>
          <xs:documentation>
            <description value="HEADER" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="INFOZ3" type="tns:INFOZ3Type">
        <xs:annotation>
          <xs:documentation>
            <description value="INFORMATION Z3" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
	  <!-- 31/07/2023 Changed type from  REPDECMESType to REPDECMESType02-->
      <!-- 09/08/2023 Changed type from  REPDECMESType to REPDECMESType03. There was an element collision-->
      <xs:element name="REPDECMES" type="tns:REPDECMESType03" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="(REPRESENTATIVE) DECLARANT" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
	  <!-- 31/07/2023 Changed type from  IZ15_PEPREGOOMESType to IZ15_PEPREGOOMESType02--> 
      <xs:element name="PEPREGOOMES" type="tns:IZ15_PEPREGOOMESType02">
        <xs:annotation>
          <xs:documentation>
            <description value="PERSON PRESENTING THE GOODS" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
	  <!-- 31/07/2023 Changed from  <xs:element name="PREADMREF" type="PREADMREFType" maxOccurs="unbounded"> --> 
      <xs:element name="PREADMREF" type="tns:PREADMREFType" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>
		    <!-- 31/07/2023 Changed from  "PREVIOUS ADMINISTRATIVE REFERENCES" --> 
            <description value="PREVIOUS ADMINISTRATIVE E-COMMERCE" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
	  <!-- 31/07/2023 moved in  CONMASTERLType										 
      <xs:element name="ICS2GROUPRECE" type="tns:ICS2GROUPRECEType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="ICS2 GROUP RECEPTACLE" />
          </xs:documentation>
        </xs:annotation>
      </xs:element> -->
	  <!-- 31/07/2023 Changed type from  IZ15_ICS2GROUPType to IZ15_ICS2GROUPType02 --> 
      <xs:element name="ICS2GROUP" type="tns:IZ15_ICS2GROUPType02" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="ICS2 GROUP" />
            <rule name="C933" />
            <condition name="C933" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ENTCUSOFF" type="tns:ENTCUSOFFType">
        <xs:annotation>
          <xs:documentation>
            <description value="(ENTRY) CUSTOMS OFFICE" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IMPCUSOFF" type="tns:IMPCUSOFFType">
        <xs:annotation>
          <xs:documentation>
            <description value="(IMPORT) CUSTOMS OFFICE" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== MESSAGE Content =====-->
  <!--===== PERSON PRESENTING THE GOODS =====-->
  <xs:complexType name="IZ15_PEPREGOOMESType">
    <xs:annotation>
      <xs:documentation>
        <description value="PERSON PRESENTING THE GOODS" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="IdeNum" type="tns:Alphanumeric_Max17">
        <xs:annotation>
          <xs:documentation>
            <description value="Identification number" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--===== ICS2 GROUP =====-->
  <xs:complexType name="IZ15_ICS2GROUPType">
    <xs:annotation>
      <xs:documentation>
        <description value="ICS2 GROUP" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ICS2MRN" type="tns:Alphanumeric_18">
        <xs:annotation>
          <xs:documentation>
            <description value="ICS2 document MRN" />
            <rule name="C934" />
            <condition name="C934" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CONHOULVL" type="tns:CONHOULVLType" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>
            <description value="CONSIGNMENT (HOUSE LEVEL)" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <!--New Type declaration -->
  <xs:complexType name="IZ15_ICS2GROUPType02">
    <xs:annotation>
      <xs:documentation>
        <description value="ICS2 GROUP" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PrevDocICS2" type="tns:PREVDOCICS2Group_Type">
        <xs:annotation>
          <xs:documentation>
            <description value="ICS2 GROUP PREVIOUS DOCUMENT" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
	  <xs:element name="CONMASTERL" type="tns:CONMASTERLType" minOccurs="1" maxOccurs="99">
        <xs:annotation>
          <xs:documentation>
            <description value="CONSIGNMENT (MASTER LEVEL)" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
	</xs:sequence>
  </xs:complexType>
  <!-- 31/08/2023 New type-->
  <!--===== HEADER =====-->
  <xs:complexType name="IZ15_HEAHEAType02">
    <xs:annotation>
      <xs:documentation>
        <description value="HEADER" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="AgrLocOfGooCodHEA38" type="tns:Alphanumeric_Max17" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Agreed location of goods, code" />
            <codeList name="AgreedLocationOfGoodsCode" type="tns:business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="AgrLocOfGooHEA39" type="tns:Alphanumeric_Max35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Agreed location of goods" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="IdeOfMeaOfTraCroHEA85" type="tns:Alphanumeric_Max27" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            <description value="Identity of means of transport crossing border" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="LRNHEA01" type="tns:Alphanumeric_Max22">
        <xs:annotation>
          <xs:documentation>
            <description value="LRN" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
	  <xs:element name="TRANSMODEHEA01" type="tns:Numeric_Max2">
        <xs:annotation>
          <xs:documentation>
            <description value="Transport mode at border" />
            <!-- <rule name="R914" /> -->
            <codeList name="TransportMode" type="business" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
	  <xs:element name="PRESDATEHEA01" type="tns:Numeric_12">
        <xs:annotation>
          <xs:documentation>
            <description value="Date and time of presentation" />
          </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:schema>