<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2016 rel. 2 sp1 (x64) (http://www.altova.com) by Nicolas Guillet (ABACUS Research AG) -->
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Blaser (ABACUS Research AG) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:abans="http://abacus.ch/namespace" targetNamespace="http://abacus.ch/namespace" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
	<xs:include schemaLocation="../core/AbaCoreComponentBasics-2.0043.xsd"/>
	<xs:element name="E-Business-DocumentInfo">
		<xs:annotation>
			<xs:documentation>Root element for document information, used in the AbaNetWS SOAP calls for uploading and downloading documents.</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="Direction" type="xs:string" minOccurs="0"/>
				<xs:element name="ID" type="xs:long">
					<xs:annotation>
						<xs:documentation>ID. This ID has to be unique. For all documents that are sent to AbaNet, this number has to be positive. Not other restrictions. But please choose the numbers you use wisely. All documents that are downloaded contain a negativ unqiue number here.
In all support cases, this number is important.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="DocType" type="xs:int">
					<xs:annotation>
						<xs:documentation>Type of document:
1: Offer request
2: Offer
3: Purchase order
4: Order confirmation
5: Delivery note (DESADV)
6: Bill</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="SubDocType" type="xs:int" minOccurs="0"/>
				<xs:element name="AgreedDocType" type="xs:string" minOccurs="0"/>
				<xs:element name="Application" type="xs:string" minOccurs="0">
					<xs:annotation>
						<xs:documentation>Contains "3RDP" for all ThirdParty Applications, ORDE for the ABACUS Order Processing application, IMMO for the real estate management software etc.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="OrderNumber" type="xs:long" minOccurs="0">
					<xs:annotation>
						<xs:documentation>Number of purchase order, if purely numeric. Otherwise, omit this element.
The meaning of this element depends on the 'Application'.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="OrderSubNumber" type="xs:int" minOccurs="0">
					<xs:annotation>
						<xs:documentation>"Rückstandsnummer".
The meaning of this element depends on the 'Application'.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="ShopOrderNumber" type="xs:long" minOccurs="0"/>
				<xs:element name="DocumentNumber" type="xs:long" minOccurs="0"/>
				<xs:element name="CustomerNumber" type="xs:long" minOccurs="0"/>
				<xs:element name="CustomerContactNumber" type="xs:long" minOccurs="0"/>
				<xs:element name="ThirdPartyID" type="xs:string" minOccurs="0"/>
				<xs:element name="DocumentDate" type="xs:date" minOccurs="0">
					<xs:annotation>
						<xs:documentation>Date of the document</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="HasPDFRealAttachments" type="xs:boolean" minOccurs="0">
					<xs:annotation>
						<xs:documentation>True if the PDF not only contains XML for other networks, but real attachments</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="SignatureInfo" minOccurs="0">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="IsSigned" type="xs:boolean" minOccurs="0"/>
							<xs:element name="IsSignatureVerified" type="xs:boolean" minOccurs="0"/>
							<xs:element name="IsSignatureVerificationOK" type="xs:boolean" minOccurs="0"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="ArchiveInfo" minOccurs="0">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="IsForArchive" type="xs:boolean" minOccurs="0"/>
							<xs:element name="ArchiveID" type="xs:long" minOccurs="0"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="DocumentFiles">
					<xs:annotation>
						<xs:documentation>Information about the "files" that are part of a message. Often, two files are used, an AbaDoc XML and a PDF.</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="File" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>Each "file" of a message must have a corresponding element here, in the same order.</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="DocFormat" type="xs:int">
											<xs:annotation>
												<xs:documentation>ID of the format. The public range is:
1: AbaDoc
2: PDF</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="DocFormatExtended" type="xs:int">
											<xs:annotation>
												<xs:documentation>Please fill with 0 for all unsinged documents</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="Language" type="abans:LanguageType" minOccurs="0">
											<xs:annotation>
												<xs:documentation>Language of the document, according to BCP 47: de for german, en for english, fr for french, it for italian.</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="CreatationApplication">
											<xs:annotation>
												<xs:documentation>Please provide information about the application that created the AbaDoc document, including a version identification. Used for support cases and if ever a nasty bug has to be worked around.</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="ID" type="xs:string">
														<xs:annotation>
															<xs:documentation>ID of the application, e.g. "AbaShop" or "ABEA"</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="VersionMajor" type="xs:string">
														<xs:annotation>
															<xs:documentation>Major version number</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="VersionMinor" type="xs:string">
														<xs:annotation>
															<xs:documentation>Minor version number</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="BuildNumber" type="xs:string">
														<xs:annotation>
															<xs:documentation>Detailed buildl number</xs:documentation>
														</xs:annotation>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
			<xs:attribute name="version" type="xs:decimal" use="required"/>
		</xs:complexType>
	</xs:element>
</xs:schema>
