<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.ote-cr.cz/schema/sfvot/billing/emo" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ote="http://www.ote-cr.cz/schema/globals" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.ote-cr.cz/schema/sfvot/billing/emo" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:import namespace="http://www.ote-cr.cz/schema/globals" schemaLocation="./ote_globals.xsd"/>
	<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="./xmldsig-core-schema.xsd"/>
	<xs:element name="SFVOTBILLINGEMO">
		<xs:annotation>
			<xs:documentation xml:lang="CS">Hlavní element společný pro všechny finanční reporty</xs:documentation>
			<xs:documentation xml:lang="EN">Root element containing basic message data</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="SenderIdentification" type="ote:SenderIdentificationType">
					<xs:annotation>
						<xs:documentation xml:lang="CS">Identifikace odesílatele zprávy, tzn. OTE, a.s.</xs:documentation>
						<xs:documentation xml:lang="EN">EAN13 Sender identification - OTE, a.s.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="ReceiverIdentification" type="ote:ReceiverIdentificationType">
					<xs:annotation>
						<xs:documentation xml:lang="CS">Identifikace příjemce, resp. odesilatele požadavku</xs:documentation>
						<xs:documentation xml:lang="EN">Message receiver identification</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="Reference" type="ote:ReferenceType" minOccurs="0">
					<xs:annotation>
						<xs:documentation xml:lang="CS">Reference na předešlou zprávu. Pokud není element obsažen v cílovém XML nebyl report generován na základě XML požadavku.</xs:documentation>
						<xs:documentation xml:lang="EN">Reference to the previous message, if any.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="Stock">
					<xs:annotation>
						<xs:documentation xml:lang="CS">Podklady pro fakturaci EOT</xs:documentation>
						<xs:documentation xml:lang="EN">Billing Report for EMO</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="Rut" minOccurs="0">
								<xs:complexType>
									<xs:attribute name="dic" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="CS">DIČ</xs:documentation>
											<xs:documentation xml:lang="EN">TAX number</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="ic" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="CS">IČ</xs:documentation>
											<xs:documentation xml:lang="EN">Registration number</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="id" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="CS">Jednoznačný identifikátor účastníka trhu</xs:documentation>
											<xs:documentation xml:lang="EN">The participant's unique id</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="name" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="CS">Zkrácený název účastníka trhu</xs:documentation>
											<xs:documentation xml:lang="EN">The participant's short name</xs:documentation>
										</xs:annotation>
									</xs:attribute>
								</xs:complexType>
							</xs:element>
							<xs:element name="Delivery" minOccurs="0" maxOccurs="4">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="Emergency" minOccurs="0">
											<xs:complexType>
												<xs:attribute name="emergencyStatus">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Stav nouze (0 ne, 1 ano)</xs:documentation>
														<xs:documentation xml:lang="EN">Emergency Status (0 no, 1 yes)</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:enumeration value="0"/>
															<xs:enumeration value="1"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
											</xs:complexType>
										</xs:element>
										<xs:element name="Data" maxOccurs="unbounded">
											<xs:complexType>
												<xs:attribute name="exchRate" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Směnný kurz EUR</xs:documentation>
														<xs:documentation xml:lang="EN">Exchange rate EUR</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="origAmount" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Částka s daní</xs:documentation>
														<xs:documentation xml:lang="EN">The amount with tax</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="origAmountNetCzk" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Částka bez DPH</xs:documentation>
														<xs:documentation xml:lang="EN">The amount without VAT</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="origAmountNetEur" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Částka bez DPH</xs:documentation>
														<xs:documentation xml:lang="EN">The amount without VAT</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="origEtaxCzk" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Daň z elektřiny</xs:documentation>
														<xs:documentation xml:lang="EN">The electricity tax</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="origEtaxEur" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Daň z elektřiny</xs:documentation>
														<xs:documentation xml:lang="EN">The electricity tax</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="origVatCzk" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">DPH</xs:documentation>
														<xs:documentation xml:lang="EN">VAT</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="origVatEur" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">DPH</xs:documentation>
														<xs:documentation xml:lang="EN">VAT</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="particID" type="xs:integer">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Jednoznačný identifikátor účastníka trhu</xs:documentation>
														<xs:documentation xml:lang="EN">The participant's unique id</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="tradeDate" type="xs:date">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Datum obchodu</xs:documentation>
														<xs:documentation xml:lang="EN">Trade date</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="tradeTypeGrp">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Typ obchodu
												 PX- - Denní trh (PXE) - odběr
                                                 PX+ - Denní trh (PXE) - dodávka
                                                 PF- - Denní trh (PXE Future)- odběr
                                                 PF+ - Denní trh (PXE Future)- dodávka
</xs:documentation>
														<xs:documentation xml:lang="EN">Trade type
												 PX- - Day-ahead market (PXE) - consumption
                                                 PX+ - Day-ahead market (PXE) - supply
                                                 PF- - Day-ahead market (PXE Future) - consumption
                                                 PF+ - Day-ahead market (PXE Future) - supply
</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:enumeration value="PXE"/>
															<xs:enumeration value="PX-"/>
                                                            <xs:enumeration value="PX+"/>
															<xs:enumeration value="PXE-FUT"/>
															<xs:enumeration value="PF-"/>
                                                            <xs:enumeration value="PF+"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="volume" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Množství</xs:documentation>
														<xs:documentation xml:lang="EN">Volume</xs:documentation>
													</xs:annotation>
												</xs:attribute>
											</xs:complexType>
										</xs:element>
										<xs:element name="Summary">
											<xs:complexType>
												<xs:attribute name="origAmountCzk" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Částka s daní</xs:documentation>
														<xs:documentation xml:lang="EN">The amount with tax</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="origAmountEur" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Částka s daní</xs:documentation>
														<xs:documentation xml:lang="EN">The amount with tax</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="origAmountNetCzk" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Částka bez DPH</xs:documentation>
														<xs:documentation xml:lang="EN">The amount without VAT</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="origAmountNetEur" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Částka bez DPH</xs:documentation>
														<xs:documentation xml:lang="EN">The amount without VAT</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="origEtaxCzk" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Daň z elektřiny</xs:documentation>
														<xs:documentation xml:lang="EN">The electricity tax</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="origEtaxEur" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Daň z elektřiny</xs:documentation>
														<xs:documentation xml:lang="EN">The electricity tax</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="origVatCzk" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">DPH</xs:documentation>
														<xs:documentation xml:lang="EN">VAT</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="origVatEur" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">DPH</xs:documentation>
														<xs:documentation xml:lang="EN">VAT</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="tradeDay" type="xs:string">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Datum obchodu</xs:documentation>
														<xs:documentation xml:lang="EN">Trade date</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="volume" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Množství</xs:documentation>
														<xs:documentation xml:lang="EN">Volume</xs:documentation>
													</xs:annotation>
												</xs:attribute>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
									<xs:attribute name="stockSettlType">
										<xs:annotation>
											<xs:documentation xml:lang="CS">Způsob zůčtování (0 Denní, 1 Měsíční)</xs:documentation>
											<xs:documentation xml:lang="EN">Settlement Type (0 Daily, 1 Monthly)</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:enumeration value="0"/>
												<xs:enumeration value="1"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:attribute>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
						<xs:attribute name="date" type="xs:date" use="required">
							<xs:annotation>
								<xs:documentation xml:lang="CS">Čas generování</xs:documentation>
								<xs:documentation xml:lang="EN">Production timestamp</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="dateFrom" type="xs:date" use="required">
							<xs:annotation>
								<xs:documentation xml:lang="CS">Datum od</xs:documentation>
								<xs:documentation xml:lang="EN">Date from</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="dateTo" type="xs:date" use="required">
							<xs:annotation>
								<xs:documentation xml:lang="CS">Datum do</xs:documentation>
								<xs:documentation xml:lang="EN">Date to</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="title" type="xs:string" use="required">
							<xs:annotation>
								<xs:documentation xml:lang="CS">Název reportu</xs:documentation>
								<xs:documentation xml:lang="EN">Report title</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="ote" type="xs:boolean" use="required">
							<xs:annotation>
								<xs:documentation xml:lang="CS">Je-li nastaveno (1, true) jedná se o Podklady pro fakturaci OTE od EOT, v opačném případě (0, false) o Podklady pro fakturaci EOT</xs:documentation>
								<xs:documentation xml:lang="EN">If set (1, true) OTE is on debet side (Billing report from EMO to OTE), otherwise (0, false) OTE is on credit side (Billing report from OTE to EMO)</xs:documentation>
							</xs:annotation>
						</xs:attribute>
					</xs:complexType>
				</xs:element>
				<xs:element ref="ds:Signature" minOccurs="0"/>
			</xs:sequence>
			<xs:attribute name="answer-required" type="xs:boolean" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="CS">Indikace požadavku na odpověď 1=ANO, 0=NE</xs:documentation>
					<xs:documentation xml:lang="EN">Indication of request for response 1=YES, 0=NO</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="date-time" type="xs:dateTime" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="CS">Datum a čas zprávy</xs:documentation>
					<xs:documentation xml:lang="EN">Date and time of message</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="dtd-release" type="xs:string" use="required" fixed="1">
				<xs:annotation>
					<xs:documentation xml:lang="CS">Rezervováno pro příští verze. Zatím konstanta '1'</xs:documentation>
					<xs:documentation xml:lang="EN">Reserved for incoming versions. So far a constant '1'</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="dtd-version" type="xs:unsignedByte" use="required" fixed="1">
				<xs:annotation>
					<xs:documentation xml:lang="CS">Rezervováno pro příští verze. Zatím konstanta '1'</xs:documentation>
					<xs:documentation xml:lang="EN">Reserved for incoming versions; so far a constant '1'</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="id" type="ote:msg-id" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="CS">Identifikátor zprávy</xs:documentation>
					<xs:documentation xml:lang="EN">Message Identification</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="message-code" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="CS">Kód zprávy upřesňující obsah zprávy.</xs:documentation>
					<xs:documentation xml:lang="EN">Message code that specifies the message content.</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:enumeration value="419">
							<xs:annotation>
								<xs:documentation xml:lang="CS">Report vypořádání PXE-OTE</xs:documentation>
								<xs:documentation xml:lang="EN">Billing report from PXE to OTE</xs:documentation>
							</xs:annotation>
						</xs:enumeration>
						<xs:enumeration value="422">
							<xs:annotation>
								<xs:documentation xml:lang="CS">Report vypořádání OTE-PXE</xs:documentation>
								<xs:documentation xml:lang="EN">Billing report from OTE to PXE</xs:documentation>
							</xs:annotation>
						</xs:enumeration>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
</xs:schema>
