<?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/es13/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/es13/ie" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.03">
  <!--=========================================-->
  <!--===== ES13:N_STR_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="ES13A" type="ie:ES13AType" />
  <!--===== EMCS Data Groups Declarations =====-->
  <xs:complexType name="ES13AType">
    <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="ExciseStampsDeclarationAmendment" type="ie:ExciseStampsDeclarationAmendmentType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ExciseStampsDeclarationAmendmentType">
    <xs:sequence>
      <xs:element name="SubmittingOperator" type="ie:SubmittingOperatorType" minOccurs="0" />
      <xs:element name="StampRequest" type="ie:StampRequestType" />
      <xs:element name="ClearingAgent" type="ie:ClearingAgentType" minOccurs="0" />
      <xs:element name="GuaranteeReference" type="ie:GuaranteeReferenceType" minOccurs="0" maxOccurs="2" />
      <xs:element name="StampRequestApplicant" type="ie:StampRequestApplicantType" />
      <xs:element name="StampRequestConsignee" type="ie:StampRequestConsigneeType" />
      <xs:element name="PreviousDocument" type="ie:PreviousDocumentType" minOccurs="0" />
    </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="StampRequestType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="STAMP REQUEST" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DeclarationReferenceNumber" type="emcs:DeclarationReferenceNumberType" />
      <xs:element name="LocalReferenceNumber" type="emcs:LocalReferenceNumberType" />
      <xs:element name="Fallbackflag" type="tcl:Flag" />
      <xs:element name="FallbackDocumentReference" type="emcs:FallbackDocumentReferenceType" minOccurs="0" />
      <xs:element name="FallbackOffice" type="emcs:ExciseOfficeCodeType" minOccurs="0" />
      <xs:element name="RegistrationDate" type="emcs:DateType" minOccurs="0" />
      <xs:element name="StampWarehouseReferenceNumber" type="emcs:StampWarehouseReferenceNumberType" />
      <xs:element name="OfficeOfTaxWarehouse" type="emcs:ExciseOfficeCodeType" />
      <xs:element name="ProductCode" type="emcs:ProductCodeType" minOccurs="0" />
      <xs:element name="AttachedDocuments" type="emcs:AttachedDocumentsType" minOccurs="0" />
      <xs:element name="PaymentMethodCode" type="tcl:PaymentMethodCodes" />
      <xs:element name="Stamp" type="ie:StampType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="StampType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="STAMP" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StampType" type="emcs:StampTypeType" />
      <xs:element name="StampUsageType" type="tcl:StampUsageTypeCodes" />
      <xs:element name="StampQuantity" type="emcs:StampQuantityType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ClearingAgentType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="CLEARING AGENT" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ClearingAgentType" type="tcl:ClearingAgentTypeCodes" />
      <xs:element name="ClearingAgentEORI" type="emcs:ClearingAgentEORIType" minOccurs="0" />
      <xs:element name="ClearingAgentAfm" type="emcs:ClearingAgentAfmType" minOccurs="0" />
      <xs:element name="SpecialReferenceCode" type="emcs:SpecialReferenceCodeType" minOccurs="0" />
    </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:element name="Amount" type="emcs:AmountType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="StampRequestApplicantType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="STAMP REQUEST APPLICANT" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StampRequestApplicantType" type="tcl:StampRequestApplicantTypeCodes" />
      <xs:element name="TraderIdentification" type="emcs:TraderIdentificationType" minOccurs="0" />
      <xs:element name="TaxIdNumber" type="emcs:TaxIdNumberType" minOccurs="0" />
      <xs:element name="Comments" type="ie:CommentsType" minOccurs="0" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="CommentsType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="COMMENTS" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Comments" type="emcs:CommentsType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="StampRequestConsigneeType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="STAMP REQUEST CONSIGNEE" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StampRequestConsigneeType" type="tcl:StampRequestConsigneeTypeCodes" />
      <xs:element name="TraderIdentification" type="emcs:TraderIdentificationType" minOccurs="0" />
      <xs:element name="TaxIdNumber" type="emcs:TaxIdNumberType" minOccurs="0" />
      <xs:element name="StampRequestDestinationType" type="tcl:StampRequestDestinationTypeCodes" minOccurs="0" />
      <xs:element name="ContactDetails" type="ie:ContactDetailsType" minOccurs="0" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ContactDetailsType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="CONTACT DETAILS" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="LastNames" type="emcs:LastNamesType" />
      <xs:element name="Forenames" type="emcs:ForenamesType" />
      <xs:element name="Address" type="emcs:AddressType" />
      <xs:element name="Country" type="emcs:CountryCodeType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PreviousDocumentType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="PREVIOUS DOCUMENT" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="StampRequestPreviousDocumentType" type="tcl:StampRequestPreviousDocumentTypeCodes" />
      <xs:element name="PreviousDestroyCertificate" type="ie:PreviousDestroyCertificateType" minOccurs="0" />
      <xs:element name="PreviousStampRequest" type="ie:PreviousStampRequestType" minOccurs="0" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PreviousDestroyCertificateType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="PREVIOUS DESTROY CERTIFICATE" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DestroyCertificateReference" type="emcs:DestroyCertificateReferenceType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PreviousStampRequestType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="PREVIOUS STAMP REQUEST" />
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DeclarationReferenceNumber" type="emcs:DeclarationReferenceNumberType" />
    </xs:sequence>
  </xs:complexType>
</xs:schema>

