<?xml version="1.0"?>
<xs:schema xmlns="http://www.mf.gov.pl/xsd/ais/ZCX05.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:st="http://www.mf.gov.pl/xsd/ais/cdm/cdmSTypes.xsd" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.mf.gov.pl/xsd/ais/ZCX05.xsd" elementFormDefault="unqualified" attributeFormDefault="unqualified">
	<xs:import namespace="http://www.mf.gov.pl/xsd/ais/cdm/cdmSTypes.xsd" schemaLocation="cdmSTypes.xsd"/>
	<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/>
	<xs:element name="ZCX05" type="ZCX05CT"/>
	<xs:complexType name="AttachmentCT">
		<xs:sequence>
			<xs:element name="sequenceNumber" type="st:SequenceNumberST"/>
			<xs:element name="fileType" type="st:AttachmentFileTypeST"/>
			<xs:element name="documentImage" type="st:AttachmentDocumentImageST"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="CommodityCodeCT">
		<xs:sequence>
			<xs:element name="TARICAdditionalCode" type="CommodityCodeTARICAdditionalCodeCT" maxOccurs="99"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="CommodityCodeTARICAdditionalCodeCT">
		<xs:sequence>
			<xs:element name="sequenceNumber" type="st:SequenceNumberST"/>
			<xs:element name="taricAdditionalCode" type="st:CommodityCodeTARICAdditionalCodeST"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="CustomsOfficeOfDeclarationCT">
		<xs:sequence>
			<xs:element name="referenceNumber" type="st:CustomsOfficeOfDeclarationReferenceNumberST"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="DeclarantAddressCT">
		<xs:sequence>
			<xs:element name="streetAndNumber" type="st:AddressStreetAndNumberST"/>
			<xs:element name="postcode" type="st:AddressPostcodeST" minOccurs="0"/>
			<xs:element name="city" type="st:AddressCityST"/>
			<xs:element name="country" type="st:AddressCountryST"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="DeclarantContactPersonCT">
		<xs:sequence>
			<xs:element name="sequenceNumber" type="st:SequenceNumberST"/>
			<xs:element name="name" type="st:ContactPersonNameST"/>
			<xs:element name="phoneNumber" type="st:ContactPersonPhoneNumberST"/>
			<xs:element name="eMailAddress" type="st:ContactPersonEmailAddressST"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="DeclarantCT">
		<xs:sequence>
			<xs:element name="typeOfPerson" type="st:PersonTypeOfPersonST" minOccurs="0"/>
			<xs:element name="name" type="st:PersonNameST" minOccurs="0"/>
			<xs:element name="identificationNumber" type="st:PersonIdentificationNumberST" minOccurs="0"/>
			<xs:element name="nip" type="st:PersonNIPST" minOccurs="0"/>
			<xs:element name="regon" type="st:PersonREGONST" minOccurs="0"/>
			<xs:element name="pesel" type="st:PersonPESELST" minOccurs="0"/>
			<xs:element name="otherIdentificationNumber" type="st:PersonOtherIdentificationNumberST" minOccurs="0"/>
			<xs:element name="officeIdentifier" type="st:PersonOfficeIdentifierST" minOccurs="0"/>
			<xs:element name="Address" type="DeclarantAddressCT" minOccurs="0"/>
			<xs:element name="ContactPerson" type="DeclarantContactPersonCT" minOccurs="0" maxOccurs="9"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="DeclarationCT">
		<xs:sequence>
			<xs:element name="officeIdentifier" type="st:OfficeIdentifier" minOccurs="0"/>
			<xs:element name="mrn">
				<xs:simpleType>
					<xs:restriction base="st:MasterReferenceNumberST">
						<xs:length value="18"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="Importer" type="ImporterCT" minOccurs="0"/>
			<xs:element name="Declarant" type="DeclarantCT" minOccurs="0"/>
			<xs:element name="Representative" type="RepresentativeCT" minOccurs="0"/>
			<xs:element name="CustomsOfficeOfDeclaration" type="CustomsOfficeOfDeclarationCT" minOccurs="0"/>
			<xs:element name="GoodsShipments" type="GoodsShipmentCT" maxOccurs="9999"/>
			<xs:element name="Operator" type="Operator" minOccurs="0" maxOccurs="9"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="GoodsShipmentCT">
		<xs:sequence>
			<xs:element name="goodsShipmentNumber" type="st:GoodsShipmentNumberST" minOccurs="0"/>
			<xs:element name="GoodsItem" type="GovernmentAgencyGoodsItemCT" maxOccurs="9999"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="GovernmentAgencyGoodsItemCT">
		<xs:sequence>
			<xs:element name="goodsItemNumber">
				<xs:simpleType>
					<xs:restriction base="st:GoodsItemNumberST">
						<xs:totalDigits value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="itemAmountInvoiced" type="st:ItemAmountInvoicedST" minOccurs="0"/>
			<xs:element name="preference" type="st:PreferenceST"/>
			<xs:element name="netMass" type="st:NetMassST" minOccurs="0"/>
			<xs:element name="supplementaryUnits" type="st:SupplementaryUnitsST" minOccurs="0"/>
			<xs:element name="quotaOrderNumber" type="st:QuotaOrderNumberST"/>
			<xs:element name="SupportingDocument" type="SupportingDocumentSICT" minOccurs="0" maxOccurs="99"/>
			<xs:element name="RequestedDocuments" type="RequestedDocumentsCT" minOccurs="0" maxOccurs="99"/>
			<xs:element name="CommodityCode" type="CommodityCodeCT" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="ImporterAddressCT">
		<xs:sequence>
			<xs:element name="streetAndNumber" type="st:AddressStreetAndNumberST" minOccurs="0"/>
			<xs:element name="postcode" type="st:AddressPostcodeST" minOccurs="0"/>
			<xs:element name="city" type="st:AddressCityST" minOccurs="0"/>
			<xs:element name="country" type="st:AddressCountryST" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="ImporterCT">
		<xs:sequence>
			<xs:element name="typeOfPerson" type="st:PersonTypeOfPersonST" minOccurs="0"/>
			<xs:element name="name" type="st:PersonNameST" minOccurs="0"/>
			<xs:element name="identificationNumber" type="st:PersonIdentificationNumberST" minOccurs="0"/>
			<xs:element name="nip" type="st:PersonNIPST" minOccurs="0"/>
			<xs:element name="regon" type="st:PersonREGONST" minOccurs="0"/>
			<xs:element name="pesel" type="st:PersonPESELST" minOccurs="0"/>
			<xs:element name="otherIdentificationNumber" type="st:PersonOtherIdentificationNumberST" minOccurs="0"/>
			<xs:element name="Address" type="ImporterAddressCT" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="Operator">
		<xs:sequence>
			<xs:element name="sequenceNumber" type="st:SequenceNumberST"/>
			<xs:element name="operatorEmail" type="st:OperatorEmail"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="RepresentativeAddressCT">
		<xs:sequence>
			<xs:element name="streetAndNumber" type="st:AddressStreetAndNumberST"/>
			<xs:element name="postcode" type="st:AddressPostcodeST"/>
			<xs:element name="city" type="st:AddressCityST"/>
			<xs:element name="country" type="st:AddressCountryST"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="RepresentativeContactPersonCT">
		<xs:sequence>
			<xs:element name="sequenceNumber" type="st:SequenceNumberST"/>
			<xs:element name="name" type="st:ContactPersonNameST"/>
			<xs:element name="phoneNumber" type="st:ContactPersonPhoneNumberST"/>
			<xs:element name="eMailAddress" type="st:ContactPersonEmailAddressST"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="RepresentativeCT">
		<xs:sequence>
			<xs:element name="identificationNumber" type="st:PersonIdentificationNumberST" minOccurs="0"/>
			<xs:element name="status" type="st:RepresentativeStatusST"/>
			<xs:element name="ContactPerson" type="RepresentativeContactPersonCT" minOccurs="0" maxOccurs="9"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="RequestedDocumentsCT">
		<xs:sequence>
			<xs:element name="sequenceNumber" type="st:SequenceNumberST"/>
			<xs:element name="type" type="st:RequestedDocumentsTypeST"/>
			<xs:element name="ccQualifier" type="st:CcQualifierST" minOccurs="0"/>
			<xs:element name="description" type="st:RequestedDocumentsDescriptionST" minOccurs="0"/>
			<xs:element name="documentsAvailable" type="st:RequestedDocumentsDocumentsAvailableST"/>
			<xs:element name="DocumentsImage" type="AttachmentCT" minOccurs="0" maxOccurs="9"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="SupportingDocumentSICT">
		<xs:sequence>
			<xs:element name="sequenceNumber" type="st:SequenceNumberST"/>
			<xs:element name="referenceNumber" type="st:SupportingDocumentReferenceNumberST" minOccurs="0"/>
			<xs:element name="type" type="st:SupportingDocumentTypeST"/>
			<xs:element name="issuingAuthorityName" type="st:SupportingDocumentIssuingAuthorityNameST" minOccurs="0"/>
			<xs:element name="measurementUnitAndQualifier" type="st:SupportingDocumentMeasurementUnitAndQualifierST" minOccurs="0"/>
			<xs:element name="quantity" type="st:SupportingDocumentQuantityST" minOccurs="0"/>
			<xs:element name="dateOfValidity" type="st:SupportingDocumentDateOfValidityST" minOccurs="0"/>
			<xs:element name="currency" type="st:SupportingDocumentCurrencyST" minOccurs="0"/>
			<xs:element name="documentLineItemNumber" type="st:SupportingDocumentDocumentLineItemNumberST" minOccurs="0"/>
			<xs:element name="amount" type="st:SupportingDocumentAmountST" minOccurs="0"/>
			<xs:element name="eDocReferenceNumber" minOccurs="0">
				<xs:simpleType>
					<xs:restriction base="st:SupportingDocumentEDocReferenceNumberST">
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="ZCX05CT">
		<xs:sequence>
			<xs:element name="messageIdentification" type="st:MessageMessageIdentificationST"/>
			<xs:element name="Declaration" type="DeclarationCT"/>
			<xs:element ref="ds:Signature" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
</xs:schema>
