<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ie="http://www.icisnet.gr/emcs/v1.03/em13/ie" xmlns:emcs="http://www.icisnet.gr/emcs/v1.03/types" xmlns:tms="http://www.icisnet.gr/emcs/v1.03/tms" xmlns:tcl="http://www.icisnet.gr/emcs/v1.03/tcl" xmlns:doc="http://www.icisnet.gr/emcs/v1.03/doc" targetNamespace="http://www.icisnet.gr/emcs/v1.03/em13/ie" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.03">
  <!--=========================================-->
  <!--===== EM13:N_TRL_UPD -->
  <!--===== Μεταβολή Άδειας Μεταφοράς -->
  <!--=========================================-->
  <!--===== Imports =====-->
  <xs:import namespace="http://www.icisnet.gr/emcs/v1.03/types" schemaLocation="types.xsd" />
  <xs:import namespace="http://www.icisnet.gr/emcs/v1.03/tms" schemaLocation="tms.xsd" />
  <xs:import namespace="http://www.icisnet.gr/emcs/v1.03/tcl" schemaLocation="tcl.xsd" />
  <xs:import namespace="http://www.icisnet.gr/emcs/v1.03/doc" schemaLocation="doc.xsd" />
  <!--===== Root Element =====-->
  <xs:element name="EM13A" type="ie:EM13AType" />
  <!--===== EMCS Data Groups Declarations =====-->
  <xs:complexType name="EM13AType">
    <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="MovementPermissionAmendment" type="ie:MovementPermissionAmendmentType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="MovementPermissionAmendmentType">
    <xs:sequence>
      <xs:element name="SubmittingOperator" type="ie:SubmittingOperatorType" minOccurs="0" />
      <xs:element name="TransitPermission" type="ie:TransitPermissionType" />
      <xs:element name="MeansOfTransportation" type="ie:MeansOfTransportationType" />
      <xs:element name="ReferencedExciseTaxesDeclaration" type="ie:ReferencedExciseTaxesDeclarationType" />
      <xs:element name="Customers" type="ie:CustomersType" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="SubmittingOperatorType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="SUBMITTING OPERATOR" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="SubmittingOperatorIdentification" type="emcs:SubmittingOperatorIdentificationType" />
      <xs:element name="SubmittingTraderIdentification" type="emcs:SubmittingTraderIdentificationType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransitPermissionType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="TRANSIT PERMISSION" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DeclarationReferenceNumber" type="emcs:DeclarationReferenceNumberType" />
      <xs:element name="LocalReferenceNumber" type="emcs:LocalReferenceNumberType" />
      <xs:element name="TraderTaxIdNumber" type="emcs:TraderTaxIdNumberType" />
      <xs:element name="OfficeOfDestination" type="emcs:ExciseOfficeCodeType" />
      <xs:element name="DeliveryPlace" type="emcs:DeliveryPlaceType" minOccurs="0" />
      <xs:element name="Products" type="ie:ProductsType" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ProductsType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="PRODUCTS" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="TaricCode" type="emcs:TaricCodeType" />
      <xs:element name="Quantity" type="emcs:QuantityType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="MeansOfTransportationType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="MEANS OF TRANSPORTATION" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="MeansOfTransportation" type="tcl:MeansOfTransportationCodes" />
      <xs:element name="TransportationVehicleDetails" type="ie:TransportationVehicleDetailsType" minOccurs="0" />
      <xs:element name="TransportationVesselDetails" type="ie:TransportationVesselDetailsType" minOccurs="0" />
      <xs:element name="TransportationAircraftDetails" type="ie:TransportationAircraftDetailsType" minOccurs="0" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransportationVehicleDetailsType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="TRANSPORTATION VEHICLE DETAILS" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="TransportVehicleRegistrationPlate" type="emcs:TransportVehicleRegistrationPlateType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransportationVesselDetailsType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="TRANSPORTATION VESSEL DETAILS" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="VesselRegistrationType" type="tcl:VesselRegistrationTypeCodes" />
      <xs:element name="VesselRegistrationNumber" type="emcs:VesselRegistrationNumberType" />
      <xs:element name="VesselName" type="emcs:VesselNameType" />
      <xs:element name="VesselPortOfRegistration" type="emcs:VesselPortOfRegistrationType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransportationAircraftDetailsType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="TRANSPORTATION AIRCRAFT DETAILS" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="AircraftCarrier" type="emcs:AircraftCarrierType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ReferencedExciseTaxesDeclarationType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="REFERENCED EXCISE TAXES DECLARATION" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DeclarationReferenceNumber" type="emcs:DeclarationReferenceNumberType" />
      <xs:element name="AmountOfTaxes" type="emcs:AmountOfTaxesType" />
      <xs:element name="GuaranteeReference" type="ie:GuaranteeReferenceType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="GuaranteeReferenceType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="GUARANTEE REFERENCE" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="GuaranteeReferenceNumber" type="emcs:GuaranteeReferenceNumberType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="CustomersType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="CUSTOMERS" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="TaxIdNumber" type="emcs:TaxIdNumberType" />
      <xs:element name="InvoiceReference" type="emcs:InvoiceReferenceType" />
      <xs:element name="OfficeOfResponsibility" type="emcs:ExciseOfficeCodeType" />
    </xs:sequence>
  </xs:complexType>
</xs:schema>

