<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.00"
           xmlns:emcs="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:EMCS:V2.02"
           xmlns:ddtypes="http://www.mf.gov.pl/schematy/EDD/DDTYPES/2019/10/"
           xmlns:tms="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:TMS:V2.02"
           xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
           xmlns:pz="http://www.mf.gov.pl/schematy/EDD/DDPZ/2019/10/"
           targetNamespace="http://www.mf.gov.pl/schematy/EDD/DDPZ/2019/10/" >
  <!--======================================== -->
  <!--=============== DDPZ =================== -->
  <!--==== Potwierdzenie zarejestrowania ===== -->
  <!--========= w Dokumencie Dostawy ========= -->
  <!--======================================== -->
  <!--===== Imports ===== -->
  <xs:import namespace="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:EMCS:V2.02" schemaLocation="types.xsd" />
  <xs:import namespace="http://www.mf.gov.pl/schematy/EDD/DDTYPES/2019/10/" schemaLocation="ddTypes.xsd" />
  <xs:import namespace="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:TMS:V2.02" schemaLocation="tms.xsd" />
  <xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd" />

  <!--===== Root Element ===== -->
  <xs:element name="DDPZ" type="pz:DDPZType" />

  <!--===== EMCS Data Groups Declarations ===== -->
  <xs:complexType name="DDPZType">
    <xs:sequence>
      <xs:element name="Header" type="tms:HeaderType" />
      <xs:element name="Body" type="pz:BodyType" />
    </xs:sequence>
  </xs:complexType>
  <!--===== IE Specific Data Groups Declarations ===== -->
  <xs:complexType name="BodyType">
    <xs:annotation>
      <xs:documentation xml:lang="pl">Treść potwierdzenia zarejestrowania.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PublicSubjectName" type="xs:string" fixed="Naczelnik Urzędu Celnego" minOccurs="1" maxOccurs="1"/>
      <xs:element name="DateOfReceiption" type="emcs:DateType" minOccurs="1" maxOccurs="1"/>
      <xs:element name="TimeOfReceiption" type="emcs:TimeType" minOccurs="1" maxOccurs="1"/>
      <xs:element name="LocalReferenceNumber" type="ddtypes:DeliveryDocumentLocalReferenceNumberType" minOccurs="0" maxOccurs="1"/>
      <xs:element name="AdministrativeReferenceCode" type="ddtypes:DeliveryDocumentAdministrativeReferenceCodeType" minOccurs="0" maxOccurs="1"/>
      <xs:element name="ReceiptedMessageIdentifier" type="tms:MessageIdentifierType" minOccurs="1" maxOccurs="1"/>
      <xs:element name="ReceiptedMessageDigestInfo" type="pz:ReceiptedMessageDigestInfoType" minOccurs="1" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="ReceiptedMessageDigestInfoType">
    <xs:annotation>
      <xs:documentation xml:lang="pl">
        Skrót otrzymanego przez EMCSPL komunikatu odczytany z podpisu utworzonego przez podmiot.
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element ref="ds:DigestMethod" />
      <xs:element ref="ds:DigestValue" />
    </xs:sequence>
  </xs:complexType>
</xs:schema>