<?xml version="1.0"?>
<xs:schema xmlns="http://www.mf.gov.pl/xsd/ais/ZCX91.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/ZCX91.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="ZCX91" type="ZCX91CT"/>
	<xs:complexType name="CustomsDecisionCT">
		<xs:sequence>
			<xs:element name="sequenceNumber" type="st:SequenceNumberST"/>
			<xs:element name="decisionDate" type="st:CustomsDecisionDecisionDateST"/>
			<xs:element name="decisionReferenceNumber" type="st:CustomsDecisionDecisionReferenceNumberST"/>
		</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"/>
			<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" minOccurs="0"/>
			<xs:element name="phoneNumber" type="st:ContactPersonPhoneNumberST" minOccurs="0"/>
			<xs:element name="eMailAddress" type="st:ContactPersonEmailAddressST" minOccurs="0"/>
		</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="mrn">
				<xs:simpleType>
					<xs:restriction base="st:MasterReferenceNumberST">
						<xs:length value="18"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="instructionCustomsDebt" type="st:InstructionCustomsDebtST" minOccurs="0"/>
			<xs:element name="CustomsDecision" type="CustomsDecisionCT" minOccurs="0" maxOccurs="99"/>
			<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="SupervisingCustomsOffice" type="SupervisingCustomsOfficeCT" minOccurs="0"/>
			<xs:element name="GoodsShipments" type="GoodsShipmentCT" minOccurs="0" maxOccurs="9999"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="DutiesAndTaxesCT">
		<xs:sequence>
			<xs:element name="sequenceNumber" type="st:SequenceNumberST"/>
			<xs:element name="taxType" type="st:DutiesAndTaxesTaxTypeST"/>
			<xs:element name="methodOfPayment" type="st:DutiesAndTaxesMethodOfPaymentST" minOccurs="0"/>
			<xs:element name="payableTaxAmount" type="st:DutiesAndTaxesPayableTaxAmountST" minOccurs="0"/>
			<xs:element name="TaxBase" type="DutiesAndTaxesTaxBaseCT" maxOccurs="99"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="DutiesAndTaxesTaxBaseCT">
		<xs:sequence>
			<xs:element name="sequenceNumber" type="st:SequenceNumberST"/>
			<xs:element name="taxRate" type="st:DutiesAndTaxesTaxBaseTaxRateST" minOccurs="0"/>
			<xs:element name="measurementUnitAndQualifier" type="st:DutiesAndTaxesTaxBaseMeasurementUnitAndQualifierST" minOccurs="0"/>
			<xs:element name="quantity" type="st:DutiesAndTaxesTaxBaseQuantityST" minOccurs="0"/>
			<xs:element name="amount" type="st:DutiesAndTaxesTaxBaseAmountST" minOccurs="0"/>
			<xs:element name="taxAmount" type="st:DutiesAndTaxesTaxBaseTaxAmountST" minOccurs="0"/>
		</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="DutiesAndTaxes" type="DutiesAndTaxesCT" maxOccurs="99"/>
		</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="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" minOccurs="0"/>
			<xs:element name="eMailAddress" type="st:ContactPersonEmailAddressST" minOccurs="0"/>
		</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="SupervisingCustomsOfficeCT">
		<xs:sequence>
			<xs:element name="referenceNumber" type="st:SupervisingCustomsOfficeReferenceNumberST"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="ZCX91CT">
		<xs:sequence>
			<xs:element name="preparationDateAndTime" type="st:MessagePreparationDateAndTimeST"/>
			<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>
