<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="1.00">
    <!--=========================================-->
    <!--===== IB15A  -->
    <!--===== Αιτηση - ΔΕΤΕ  -->
    <!--=========================================-->
    <!--===== 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="IB15A" type="IB15A"/>
    <!--===== Root Element Content =====-->
    <xs:complexType name="IB15A">
        <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="GOOITEGDS" type="GOOITEGDS" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>
                        <description value="GOODS ITEM"/>
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="TRADEC" type="TRADEC">
                <xs:annotation>
                    <xs:documentation>
                        <description value="(DECLARANT) TRADER"/>
                        <Rule name="EC001"/>
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="TRAREP" type="TRAREP" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>
                        <description value="(REPRESENTATIVE) TRADER"/>
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="REFDECL" type="REFDECL" minOccurs="0" maxOccurs="99">
                <xs:annotation>
                    <xs:documentation>
                        <description value="REFERENCED DECLARATION"/>
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="TAXCALC" type="TAXCALC" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>
                        <description value="(TAXES) CALCULATION" />
                        <rule name="E728" />
                        <rule name="EC007" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="CUSOFF" type="IMPCUSOFF">
                <xs:annotation>
                    <xs:documentation>
                        <description value="CUSTOMS OFFICE"/>
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="TASKS" type="TASKS" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>
                        <description value="TASKS"/>
                    </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" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Acceptance date" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="DecSubDatTimHEA118" type="DateTimeType">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Declaration Submitted Date and Time" />
                    </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="MetOfPayHEA590" type="Alpha_1">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Method of payment" />
                        <codeList name="MethodOfPayment" type="business" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="GenrlPurpsTsksDescr" type="Alphanumeric_Max280" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>
                        <description value="General Purpose Tasks Description" />
                        <rule name="EC004" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="CustomsTasks" type="Flag">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Customs Tasks" />
                        <codeList name="Flag" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="TotalAmount" type="Decimal_11_2" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Total amount of tax" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <!--===== (DECLARANT) TRADER =====-->
    <xs:complexType name="TRADEC">
        <xs:annotation>
            <xs:documentation>
                <description value="(DECLARANT) TRADER"/>
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="NamTDE1" type="TradNameType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Name"/>
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="StrAndNumTDE1" type="StreetNumType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Street and number"/>
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="PosCodTDE1" type="PostalCodeType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Postal code"/>
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="CiTDE1" type="CityType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>
                        <description value="City"/>
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="CouCodTDE1" type="CountryCodeType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Country code"/>
                        <codeList name="CountryCodesFullList" type="business"/>
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="PhoneDECL" type="Alphanumeric_Max35" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Phone number"/>
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="EmailDECL" type="emailAddressType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>
                        <description value="E-mail address"/>
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="IDTypDECL" type="Numeric_2">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Identity Type"/>
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="IDNumDECL" type="Alphanumeric_Max21">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Identity Number"/>
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <!--===== REFERENCED DECLARATION =====-->
    <xs:complexType name="REFDECL">
        <xs:annotation>
            <xs:documentation>
                <description value="REFERENCED DECLARATION" />
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="DocRefNumREFDEC" type="MRNType">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Document/reference number" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <!--===== (REPRESENTATIVE) TRADER =====-->
    <xs:complexType name="TRAREP">
        <xs:annotation>
            <xs:documentation>
                <description value="(REPRESENTATIVE) TRADER" />
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="NamTRE1" type="TradNameType">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Name" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="VatNumTRE" type="Alphanumeric_Max12">
                <xs:annotation>
                    <xs:documentation>
                        <description value="VAT Number" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <!--===== GOODS ITEM =====-->
    <xs:complexType name="GOOITEGDS">
        <xs:annotation>
            <xs:documentation>
                <description value="GOODS ITEM" />
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="GooDesGDS23" type="Alphanumeric_Max280">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Goods description" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="StaValAmoGDI1" type="Decimal_11_2" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Statistical value amount" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="COMCODGODITM" type="COMCODGODITM">
                <xs:annotation>
                    <xs:documentation>
                        <description value="(CODE) COMMODITY" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <!--===== (CODE) COMMODITY =====-->
    <xs:complexType name="COMCODGODITM">
        <xs:annotation>
            <xs:documentation>
                <description value="(CODE) COMMODITY" />
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="ComNomCMD1" type="Alphanumeric_Max8">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Combined Nomenclature" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="TARCodCMD1" type="Alphanumeric_2">
                <xs:annotation>
                    <xs:documentation>
                        <description value="TARIC code" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="TARFirAddCodCMD1" type="Alphanumeric_4">
                <xs:annotation>
                    <xs:documentation>
                        <description value="TARIC first additional code" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="TARSecAddCodCMD1" type="Alphanumeric_4">
                <xs:annotation>
                    <xs:documentation>
                        <description value="TARIC second additional code" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="NAtAddCodCMD1" type="Alphanumeric_4" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>
                        <description value="National additional code" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <!--===== TASKS =====-->
    <xs:complexType name="TASKS">
        <xs:annotation>
            <xs:documentation>
                <description value="TASKS" />
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="FlatRate" type="Flag" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>
                        <description value="FlatRate"/>
                        <rule name="E726" />
                        <codeList name="Flag" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="CustomsTaskType" type="Alphanumeric_2">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Type Of Customs Task" />
                        <codeList name="ΛίσταΤελωνειακώνΕργασιών" type="business" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="CstPerHour" type="Decimal_11_2" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Cost Per Hour" />
                        <rule name="EC006" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="CstPerKlmtr" type="Decimal_11_2" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Cost Per Kilometer" />
                        <rule name="EC006" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="NumHours" type="Numeric_Max5" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Number of hours" />
                        <rule name="E726" />
                        <rule name="EC008" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="NumMnts" type="Numeric_Max2" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Number of minutes" />
                        <rule name="E726" />
                        <rule name="EC008" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="NumKlmtrs" type="Decimal_11_2" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Number of kilometers" />
                        <rule name="E726" />
                        <rule name="EC008" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Amount" type="Decimal_11_2" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Amount" />
                        <rule name="E726" />
                        <rule name="E727" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <!--===== (TAXES) CALCULATION =====-->
    <xs:complexType name="TAXCALC">
        <xs:annotation>
            <xs:documentation>
                <description value="(TAXES) CALCULATION" />
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="TypTax4019" type="Alphanumeric_3">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Type of tax" />
                        <codeList name="TypeOfTax" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="AmoTax4022" type="Decimal_15_2">
                <xs:annotation>
                    <xs:documentation>
                        <description value="Amount of tax" />
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
</xs:schema>

