<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tcl="http://www.icisnet.gr/emcs/phase3/v2.00/tcl" targetNamespace="http://www.icisnet.gr/emcs/phase3/v2.00/tcl" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.00">
  <!--=========================================-->
  <!--===== Global Conclusion Of Receipt =====-->
  <!--=========================================-->
  <xs:simpleType name="GlobalConclusionOfReceipt">
    <xs:annotation>
      <xs:documentation>Global Conclusion Of Receipt</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Receipt accepted and satisfactory</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Receipt accepted although unsatisfactory</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation>Receipt refused</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:documentation>Receipt partially refused</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="21">
        <xs:annotation>
          <xs:documentation>Exit accepted and satisfactory</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="22">
        <xs:annotation>
          <xs:documentation>Exit accepted although unsatisfactory</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="23">
        <xs:annotation>
          <xs:documentation>Exit refused</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--=========================================-->
  <!--===== Customs Rejection Reason Code =====-->
  <!--=========================================-->
  <xs:simpleType name="CustomsRejectionReasonCode">
    <xs:annotation>
      <xs:documentation>Customs Rejection Reason Code</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Import data not found</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>The content of the e-AD does not match with import data</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation>Export data not found</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:documentation>The content of the e-AD does not match with export data</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="5">
        <xs:annotation>
          <xs:documentation>Goods are rejected at export procedure</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--=========================================-->
  <!--===== Flag =====-->
  <!--=========================================-->
  <xs:simpleType name="Flag">
    <xs:annotation>
      <xs:documentation>Flag</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:enumeration value="0">
        <xs:annotation>
          <xs:documentation>No or False</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Yes or True</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--=========================================-->
  <!--===== Guarantor Type Code =====-->
  <!--=========================================-->
  <xs:simpleType name="GuarantorTypeCode">
    <xs:annotation>
      <xs:documentation>Guarantor Type Code</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Consignor</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Transporter</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation>Owner of the Excise products</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:documentation>Consignee</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="12">
        <xs:annotation>
          <xs:documentation>Joint guarantee of the consignor and of the transporter</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="13">
        <xs:annotation>
          <xs:documentation>Joint guarantee of the consignor and of the owner of the Excise products</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="14">
        <xs:annotation>
          <xs:documentation>Joint guarantee of the consignor and of the consignee</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="23">
        <xs:annotation>
          <xs:documentation>Joint guarantee of the transporter and of the owner of the Excise products</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="24">
        <xs:annotation>
          <xs:documentation>Joint guarantee of the transporter and of the consignee</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="34">
        <xs:annotation>
          <xs:documentation>Joint guarantee of the owner of the Excise products and of the consignee</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="123">
        <xs:annotation>
          <xs:documentation>Joint guarantee of the consignor, of the transporter and of the owner of the Excise products</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="124">
        <xs:annotation>
          <xs:documentation>Joint guarantee of the consignor, of the transporter and of the consignee</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="134">
        <xs:annotation>
          <xs:documentation>Joint guarantee of the consignor, of the owner of the Excise products and of the consignee</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="234">
        <xs:annotation>
          <xs:documentation>Joint guarantee of the transporter, of the owner of the Excise products and of the consignee</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1234">
        <xs:annotation>
          <xs:documentation>Joint guarantee of the consignor, of the transporter, of the owner of the Excise products and of the consignee</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="5">
        <xs:annotation>
          <xs:documentation>No guarantee is provided according to Article 18.4(b) of 2008/118/EC</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--=========================================-->
  <!--===== Origin Type Code =====-->
  <!--=========================================-->
  <xs:simpleType name="OriginTypeCode">
    <xs:annotation>
      <xs:documentation>Origin Type Code</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Origin - Tax warehouse</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Origin - Import</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--=========================================-->
  <!--===== Destination Type Code =====-->
  <!--=========================================-->
  <xs:simpleType name="DestinationTypeCode">
    <xs:annotation>
      <xs:documentation>Destination Type Code</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Destination - Tax warehouse</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Destination - Registered consignee</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation>Destination - Temporary registered consignee</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:documentation>Destination - Direct delivery</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="5">
        <xs:annotation>
          <xs:documentation>Destination - Exempted consignee</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="8">
        <xs:annotation>
          <xs:documentation>Unknown destination (consignee unknown)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="6">
        <xs:annotation>
          <xs:documentation>Destination - Export</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--=========================================-->
  <!--===== Category of Wine Product =====-->
  <!--=========================================-->
  <xs:simpleType name="CategoryOfWineProduct">
    <xs:annotation>
      <xs:documentation>Category of Wine Product</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Wine without PDO/PGI</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Varietal wine without PDO/PGI</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation>Wine with PDO or PGI</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:documentation>Imported wine</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="5">
        <xs:annotation>
          <xs:documentation>Other</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--=========================================-->
  <!--===== Notification Type =====-->
  <!--=========================================-->
  <xs:simpleType name="NotificationType">
    <xs:annotation>
      <xs:documentation>Notification Type</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Change of destination</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Splitting</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--=========================================-->
  <!--===== Indicator of Shortage or Excess =====-->
  <!--=========================================-->
  <xs:simpleType name="IndicatorOfShortageOrExcess">
    <xs:annotation>
      <xs:documentation>Indicator of Shortage or Excess</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="E">
        <xs:annotation>
          <xs:documentation>Excess</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="S">
        <xs:annotation>
          <xs:documentation>Shortage</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--=========================================-->
  <!--===== Reminder Message Type =====-->
  <!--=========================================-->
  <xs:simpleType name="ReminderMessageType">
    <xs:annotation>
      <xs:documentation>Reminder Message Type</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Reminder message at expiry of time to change destination</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Reminder message at expiry of time to send the report of receipt/export</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation>Reminder message at expiry of time to give destination information (Article 22 of Directive 2008/118/EC)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--=========================================-->
  <!--===== Functional Error Codes =====-->
  <!--=========================================-->
  <xs:simpleType name="FunctionalErrorCodes">
    <xs:annotation>
      <xs:documentation>Functional Error Codes</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:enumeration value="12">
        <xs:annotation>
          <xs:documentation>Incorrect (code) value</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="15">
        <xs:annotation>
          <xs:documentation>Not supported in this position</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="90">
        <xs:annotation>
          <xs:documentation>Unknown ARC</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="93">
        <xs:annotation>
          <xs:documentation>Invalid ARC</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="91">
        <xs:annotation>
          <xs:documentation>Duplicate LRN</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="92">
        <xs:annotation>
          <xs:documentation>Message out of sequence</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="0">
        <xs:annotation>
          <xs:documentation>Other</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="26">
        <xs:annotation>
          <xs:documentation>Duplicate detected</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="94">
        <xs:annotation>
          <xs:documentation>Invalid Follow Up Correlation ID</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="95">
        <xs:annotation>
          <xs:documentation>Unknown Follow Up Correlation ID</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--=========================================-->
  <!--===== Excise Operate State Types =====-->
  <!--=========================================-->
  <xs:simpleType name="ExciseOperateStateTypes">
    <xs:annotation>
      <xs:documentation>Excise Operate State Types</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="X01">
        <xs:annotation>
          <xs:documentation>Accepted</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="X02">
        <xs:annotation>
          <xs:documentation>Cancelled</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="X03">
        <xs:annotation>
          <xs:documentation>Delivered</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="X04">
        <xs:annotation>
          <xs:documentation>Diverted</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="X05">
        <xs:annotation>
          <xs:documentation>Rejected</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="X06">
        <xs:annotation>
          <xs:documentation>Replaced</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="X07">
        <xs:annotation>
          <xs:documentation>e-AD Manually Closed</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="X08">
        <xs:annotation>
          <xs:documentation>Refused</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="X09">
        <xs:annotation>
          <xs:documentation>None</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="X10">
        <xs:annotation>
          <xs:documentation>Partially Refused</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="X11">
        <xs:annotation>
          <xs:documentation>Exporting</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="X12">
        <xs:annotation>
          <xs:documentation>Accepted for Export</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="X13">
        <xs:annotation>
          <xs:documentation>Stopped</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--=========================================-->
  <!--===== Technical Message Type =====-->
  <!--=========================================-->
  <xs:simpleType name="TechnicalMessageType">
    <xs:annotation>
      <xs:documentation>Technical Message Type</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="IE801">
        <xs:annotation>
          <xs:documentation>E-AD</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE802">
        <xs:annotation>
          <xs:documentation>REMINDER MESSAGE FOR EXCISE MOVEMENT</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE829">
        <xs:annotation>
          <xs:documentation>NOTIFICATION OF ACCEPTED EXPORT</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE717">
        <xs:annotation>
          <xs:documentation>CONTROL REPORT</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE803">
        <xs:annotation>
          <xs:documentation>NOTIFICATION OF DIVERTED E-AD</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE807">
        <xs:annotation>
          <xs:documentation>INTERRUPTION OF MOVEMENT</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE810">
        <xs:annotation>
          <xs:documentation>CANCELLATION OF EAD</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE813">
        <xs:annotation>
          <xs:documentation>CHANGE OF DESTINATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE818">
        <xs:annotation>
          <xs:documentation>ACCEPTED OR (PARTIALLY) REFUSED REPORT OF RECEIPT/EXPORT</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE819">
        <xs:annotation>
          <xs:documentation>ALERT OR REJECTION OF AN E-AD</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE837">
        <xs:annotation>
          <xs:documentation>EXPLANATION ON DELAY FOR DELIVERY</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE839">
        <xs:annotation>
          <xs:documentation>REJECTION OF E-AD FOR EXPORT</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE840">
        <xs:annotation>
          <xs:documentation>EVENT REPORT</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE871">
        <xs:annotation>
          <xs:documentation>EXPLANATION ON REASON FOR SHORTAGE</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE905">
        <xs:annotation>
          <xs:documentation>STATUS RESPONSE</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--=========================================-->
  <!--===== Submitter Type =====-->
  <!--=========================================-->
  <xs:simpleType name="SubmitterType">
    <xs:annotation>
      <xs:documentation>Submitter Type</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Consignor</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Consignee</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--=========================================-->
  <!--===== Requested Message Type =====-->
  <!--=========================================-->
  <xs:simpleType name="RequestedMessageType">
    <xs:annotation>
      <xs:documentation>Requested Message Type</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="IE801">
        <xs:annotation>
          <xs:documentation>E-AD</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE803">
        <xs:annotation>
          <xs:documentation>NOTIFICATION OF DIVERTED E-AD</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE810">
        <xs:annotation>
          <xs:documentation>CANCELLATION OF AN E-AD</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE813">
        <xs:annotation>
          <xs:documentation>CHANGE OF DESTINATION</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE818">
        <xs:annotation>
          <xs:documentation>ACCEPTED OR (PARTIALLY) REFUSED REPORT OF RECEIPT/EXPORT</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE819">
        <xs:annotation>
          <xs:documentation>ALERT OR REJECTION OF AN E-AD</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE829">
        <xs:annotation>
          <xs:documentation>NOTIFICATION OF ACCEPTED EXPORT</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE839">
        <xs:annotation>
          <xs:documentation>REJECTION OF E-AD FOR EXPORT</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="None">
        <xs:annotation>
          <xs:documentation>NONE</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE807">
        <xs:annotation>
          <xs:documentation>INTERRUPTION OF MOVEMENT</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IE905">
        <xs:annotation>
          <xs:documentation>STATUS RESPONSE</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--=========================================-->
  <!--===== Transport Arrangement =====-->
  <!--=========================================-->
  <xs:simpleType name="TransportArrangement">
    <xs:annotation>
      <xs:documentation>Transport Arrangement</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Consignor</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Consignee</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation>Owner of goods</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:documentation>Other</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--=========================================-->
  <!--===== Submission Type =====-->
  <!--=========================================-->
  <xs:simpleType name="SubmissionType">
    <xs:annotation>
      <xs:documentation>Submission Type</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Standard submission</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Submission for export (local clearance)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--=========================================-->
  <!--===== Diagnosis Code =====-->
  <!--=========================================-->
  <xs:simpleType name="DiagnosisCode">
    <xs:annotation>
      <xs:documentation>Diagnosis Code</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Unknown ARC</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Body Record Unique Reference does not exist in the e-AD</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation>No corresponding GOODS ITEM in the export declaration</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:documentation>Weight/mass do not match</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="5">
        <xs:annotation>
          <xs:documentation>The destination type code of the e-AD is not export</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="6">
        <xs:annotation>
          <xs:documentation>CN codes do not match</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--=========================================-->
  <!--===== Message Role Code =====-->
  <!--=========================================-->
  <xs:simpleType name="MessageRoleCode">
    <xs:annotation>
      <xs:documentation>Message Role Code</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Explanation on delay for sending the report of receipt/export</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Explanation on delay for giving destination</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--=========================================-->
  <!--===== Status Request Message Type =====-->
  <!--=========================================-->
  <xs:simpleType name="StatusRequestMessageType">
    <xs:annotation>
      <xs:documentation>Status Request Message Type</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Status Synchronisation Request</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Movement History Request</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--=========================================-->
  <!--===== Changed Destination Type Code =====-->
  <!--=========================================-->
  <xs:simpleType name="ChangedDestinationTypeCode">
    <xs:annotation>
      <xs:documentation>Changed Destination Type Code</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Destination - Tax warehouse</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Destination - Registered consignee</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation>Destination - Temporary registered consignee</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:documentation>Destination - Direct delivery</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="6">
        <xs:annotation>
          <xs:documentation>Destination - Export</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!--=========================================-->
  <!--===== Report Message Type =====-->
  <!--=========================================-->
  <xs:simpleType name="ReportMessageType">
    <xs:annotation>
      <xs:documentation>Report Message Type</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:nonNegativeInteger">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Initial submission</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Complementary submission</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation>Validated document</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:schema>

