<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:dd802="http://www.mf.gov.pl/schematy/EDD/DD802/2019/10/"
		       xmlns:emcs="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:EMCS:V2.02"
		       xmlns:tms="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:TMS:V2.02"
		       xmlns:tcl="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:TCL:V2.02"
		       xmlns:doc="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:DOC:V2.02"
		       xmlns:ddtypes="http://www.mf.gov.pl/schematy/EDD/DDTYPES/2019/10/"
		       targetNamespace="http://www.mf.gov.pl/schematy/EDD/DD802/2019/10/"
		       elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.00">

  <!--=========================================-->
  <!--===== DD802:C_EXC_REM -->
  <!--===== REMINDER MESSAGE FOR DELIVERY DOCUMENT -->
  <!--=========================================-->
  <!--===== Imports =====-->
  <xs:import namespace="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:EMCS:V2.02" schemaLocation="types.xsd" />
  <xs:import namespace="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:TMS:V2.02" schemaLocation="tms.xsd" />
  <xs:import namespace="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:TCL:V2.02" schemaLocation="tcl.xsd" />
  <xs:import namespace="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:DOC:V2.02" schemaLocation="doc.xsd" />
  <xs:import namespace="http://www.mf.gov.pl/schematy/EDD/DDTYPES/2019/10/" schemaLocation="ddTypes.xsd" />

  <!--===== Root Element =====-->
  <xs:element name="DD802" type="dd802:DD802Type" />

  <!--===== EMCS Data Groups Declarations =====-->
  <xs:complexType name="DD802Type">
    <xs:sequence>
      <xs:element name="Header" type="tms:HeaderType" />
      <xs:element name="Body" type="dd802:BodyType" />
    </xs:sequence>
  </xs:complexType>

  <!--===== IE Specific Data Groups Declarations =====-->
  <xs:complexType name="BodyType">
    <xs:sequence>
      <xs:element name="ReminderMessageForDeliveryDocument" type="dd802:ReminderMessageForDeliveryDocumentType" />
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="ReminderMessageForDeliveryDocumentType">
    <xs:sequence>
      <xs:element name="Attributes" type="dd802:AttributesType" />
      <xs:element name="DocumentReference" type="ddtypes:AdministrativeReferenceType" minOccurs="1" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="AttributesType">
    <xs:sequence>
      <xs:element name="DateAndTimeOfIssuanceOfReminder" type="emcs:DateTimeType" />
      <xs:element name="ReminderInformation" type="ddtypes:LSDDDComplementaryInformation350Type" minOccurs="0" />
      <xs:element name="LimitDateAndTime" type="emcs:DateTimeType" />
      <xs:element name="ReminderMessageType" type="tcl:ReminderMessageType" />
    </xs:sequence>
  </xs:complexType>

</xs:schema>