<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSpy v2011 rel. 3 (http://www.altova.com) by PostNL (TNT Post Shared Services B.V. ICT Mail) -->
<!--

major/ minor versie:	1.1
datum creatie:			jan 2012 
datum akkoord:			9-5-2016
datum productie:		9-5-2016
gemaakt door			NM + Freek Teuling
doelgroep					PostNL
beschrijving:				Op Charge niveau is ChargeCharacteristics toegevoegd. Is een minor change.

  CS PostNL versie 1.0


major/ minor versie:	1.0
datum creatie:			jan 2012 
datum akkoord:			13-09-2012
datum productie:		04-02-2013
gemaakt door			HdB + projectleden EIP
doelgroep					PostNL

   Schema agency: 	Open Applications Group 


   OAGIS® Revision:    OAGIS 9_5  
   Date:               05 May 2011
   Copyright 1997-2011, All Rights Reserved 

  	
   Copyright (C) Open Applications Group (1997-2011). All Rights Reserved.
  
  
   This is an OAGIS® BOD XML Schema (XSD) Definition.

   License information for this file is provided in the file **OAGi License Agreement.txt** that is provided with this download package.

   For support, more information, or to report implementation bugs, please contact the Open Applications Group at oagis@openapplications.org.
    
   XML Schema 
     
    Name: /OAGi-BPI-Platform/org_openapplications_oagis/9_5/Developer/Nouns/Invoice.xsd
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:postnl/mail/invoicepresentment/1" xmlns:fn1="urn:postnl/mail/financialcomponents/1" xmlns:co1="urn:postnl/mail/components/1" xmlns:me1="urn:postnl/mail/meta/1" xmlns:fi1="urn:postnl/mail/fields1" xmlns:co2="urn:postnl/mail/components/2" targetNamespace="urn:postnl/mail/invoicepresentment/1" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xsd:import namespace="urn:postnl/mail/financialcomponents/1" schemaLocation="../../Common/OAGI/Components/FinancialComponents1.xsd"/>
	<xsd:import namespace="urn:postnl/mail/components/1" schemaLocation="../../Common/OAGI/Components/Components1.xsd"/>
	<xsd:import namespace="urn:postnl/mail/meta/1" schemaLocation="../../Common/OAGI/Components/Meta1.xsd"/>
	<xsd:import namespace="urn:postnl/mail/fields1" schemaLocation="../../Common/OAGI/Components/Fields1.xsd"/>
	<xsd:import namespace="urn:postnl/mail/components/2" schemaLocation="../../Common/OAGI/Components/Components2.xsd"/>
	<xsd:element name="InvoicePresentment" type="InvoicePresentmentType">
		<xsd:annotation>
			<xsd:documentation source="http://www.openapplications.org/oagis/9">InvoicePresentment wordt gebruikt ten behoeve van invoice aangevuld met gegevens tbv het presenteren van de Invoice.       The Invoice is used to invoice a customer for goods/services the have been provided.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="InvoiceHeader" type="InvoiceHeaderType">
		<xsd:annotation>
			<xsd:documentation source="http://www.openapplications.org/oagis/9">InvoiceHeader is aangepast tbv EIP door HdB.   Information that applies to the entire invoice document. The Header supports summary amounts for line items, charges, taxes and allowances.

It also supports itemizing Header level charges, taxes and allowances for use in credit or debit invoices. In this case Line items are not needed. 

The summary amounts in the Header include the Line level amounts and Header level amounts.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="InvoiceLine" type="InvoiceLineType">
		<xsd:annotation>
			<xsd:documentation source="http://www.openapplications.org/oagis/9">In general an Invoice Line can be aligned with Order Lines. The ItemQuantity and Price are used to compute the Total. The Total is a sum of the Total and any Charges, Taxes or Allowances.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="InvoiceSubLine" type="InvoiceSubLineType">
		<xsd:annotation>
			<xsd:documentation source="http://www.openapplications.org/oagis/9">Is a SubLine of the InvoiceLine in order to provide a finer grained breakdown of the items being invoiced.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="InvoicePresentmentType">
		<xsd:sequence>
			<xsd:element ref="InvoiceHeader" minOccurs="0"/>
			<xsd:element ref="InvoiceLine" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="InvoiceMetaData" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>InvoiceMetaData bevat informatie specifiek voor de Presentment van de Invoice</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
		<!--<xsd:attribute name="type" type="fi1:NormalizedStringType"/>-->
	</xsd:complexType>
	<xsd:complexType name="InvoiceHeaderType">
		<xsd:annotation>
			<xsd:documentation source="http://www.openapplications.org/oagis/9">The InvoiceHeader type supports summary amounts for line items, charges and allowances.</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="co1:StatusEnabledHeaderType">
				<xsd:sequence>
					<xsd:element ref="fi1:Type" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation source="http://www.openapplications.org/oagis/9">Code type specifing the type of Invoice.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<!--<xsd:element ref="co1:PurchaseOrderReference" minOccurs="0" maxOccurs="unbounded"/>-->
					<xsd:element ref="fi1:PurchaseOrderID" minOccurs="0"/>
					<!--<xsd:element ref="co1:SupplierParty" minOccurs="0"/>-->
					<xsd:element ref="co1:SupplierInvoiceParty" minOccurs="0"/>
					<xsd:element ref="co1:ProvidingParty" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="co1:CustomerParty" minOccurs="0"/>
					<xsd:element ref="fi1:ExtendedAmount" minOccurs="0"/>
					<xsd:element ref="fi1:TotalAmount" minOccurs="0"/>
					<xsd:element ref="co1:QualifiedAmount" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="co1:VATQualifiedAmount" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="fi1:InvoicePaymentMethodCode" minOccurs="0"/>
					<xsd:element ref="fi1:InvoicePaymentMethodDescription" minOccurs="0"/>
					<xsd:element ref="co1:Payment" minOccurs="0"/>
					<xsd:element ref="co1:PaymentTerm" minOccurs="0" maxOccurs="unbounded"/>
					<!--<xsd:element ref="co1:RemitToParty" minOccurs="0"/>-->
					<!--<xsd:element ref="co1:ShipToParty" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:element ref="co1:CarrierParty" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:element ref="co1:BillToParty" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:element ref="co1:ShipFromParty" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:element ref="co1:Party" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:element ref="fi1:ReasonCode" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation source="http://www.openapplications.org/oagis/9">A code for the invoice.Example: Special allowance for preferred customers.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>-->
					<!--<xsd:element ref="co1:ContractReference" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:element ref="co1:Tax" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:element ref="co1:DistributedCharge" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="co1:DistributedTax" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="co1:Distribution" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:element ref="co1:Charge" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:element ref="co1:Allowance" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:element ref="fi1:TransportationMethodCode" minOccurs="0"/>
					<xsd:element ref="co1:TransportationTerm" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:group ref="co1:ShippingWeightAndVolumeGroup"/>-->
					<!--<xsd:element ref="fi1:UserArea" minOccurs="0"/>-->
					<xsd:element ref="fi1:PaymentCharacteristic" minOccurs="0"/>
					<xsd:element ref="fi1:PaymenDescription" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="fi1:InvoiceDescription" minOccurs="0"/>
					<xsd:element ref="fi1:InvoicePeriod" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="fi1:InvoiceAnnotation" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="fi1:SalesOrderID" minOccurs="0"/>
					<xsd:element ref="fi1:CustomerOrderID" minOccurs="0"/>
					<xsd:element ref="fi1:SAPInvoiceID" minOccurs="0"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="InvoiceLineBaseType">
		<xsd:complexContent>
			<xsd:extension base="co1:StatusEnabledLineType">
				<xsd:sequence>
					<xsd:element ref="co1:SalesDocumentReference" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="co1:Party" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="co1:Item" minOccurs="0"/>
					<xsd:element ref="co1:ProvidingParty" minOccurs="0"/>
					<xsd:element ref="fi1:ShipmentZone" minOccurs="0"/>
					<!--<xsd:element ref="fi1:Quantity" minOccurs="0" maxOccurs="unbounded">
						<xsd:annotation>
							<xsd:documentation source="http://www.openapplications.org/oagis/9">Indicates the number of order items for the given line..</xsd:documentation>
						</xsd:annotation>
					</xsd:element>-->
					<xsd:element ref="fi1:NumberOfQuantity" minOccurs="0"/>
					<xsd:element ref="fi1:WeightOfQuantity" minOccurs="0"/>
					<xsd:element ref="fi1:WeightPerUnit" minOccurs="0"/>
					<xsd:element ref="co1:InvoiceDocumentReference" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="fi1:ExtendedAmount" minOccurs="0"/>
					<xsd:element ref="co1:QualifiedAmount" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="fi1:TotalAmount" minOccurs="0"/>
					<xsd:element ref="InvoiceCharge" minOccurs="0" maxOccurs="unbounded"/>
					<!--<xsd:element ref="co1:UnitPrice" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation source="http://www.openapplications.org/oagis/9">Unit price of the item for the number of items in the unitCode specified in the PerQuantity elements.

In most cases the unitCode of the PerQuantity is the same as the unitCode of the Quantity element above.</xsd:documentation>
							<xsd:documentation source="http://www.openapplications.org/oagis/9">Unit price of the item for the number of items in the unitCode specified in the PerQuantity elements.

In most cases the unitCode of the PerQuantity is the same as the unitCode of the Quantity element above.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>-->
					<!--<xsd:element ref="co1:PurchaseOrderReference" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:element ref="co1:ContractReference" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:element ref="fi1:OpenItemIndicator" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation source="http://www.openapplications.org/oagis/9">Indicates that the line is an open item and is not to be included in the document total. </xsd:documentation>
						</xsd:annotation>
					</xsd:element>-->
					<!--<xsd:element ref="co1:Tax" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:element ref="co1:DistributedCharge" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:element ref="co1:DistributedTax" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:element ref="co1:Distribution" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:element ref="InvoiceAllowance" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:element ref="fi1:GoodsReceiptDateTime" minOccurs="0"/>-->
					<!--<xsd:element ref="fi1:ServicesReceiptDateTime" minOccurs="0"/>-->
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="InvoiceLineType">
		<xsd:annotation>
			<xsd:documentation source="http://www.openapplications.org/oagis/9">The InvoiceLine type supports order line invoicing.</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="InvoiceLineBaseType">
				<xsd:sequence>
					<!--<xsd:element ref="co1:CarrierParty" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:element ref="co1:ShipToParty" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:element ref="co1:ShipFromParty" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:element ref="co1:BillToParty" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:element ref="co1:TransportationTerm" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:element ref="InvoiceSubLine" minOccurs="0" maxOccurs="unbounded"/>-->
					<!--<xsd:group ref="co1:ShippingWeightAndVolumeGroup"/>-->
					<xsd:element ref="co1:InvoiceLinePresentment" minOccurs="0"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="InvoiceSubLineType">
		<xsd:complexContent>
			<xsd:extension base="InvoiceLineBaseType">
				<xsd:sequence>
					<xsd:element ref="co1:HeatReference" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="fi1:UserArea" minOccurs="0"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="InvoiceAllowanceChargeType">
		<xsd:complexContent>
			<xsd:extension base="co1:AllowanceChargeABIEType">
				<xsd:sequence>
					<xsd:element ref="co1:Tax" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="co1:Party" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="co1:Rate" minOccurs="0"/>
					<!--<xsd:element ref="fi1:RateDetermination" minOccurs="0"/>-->
					<xsd:element ref="fi1:SequenceCode" minOccurs="0"/>
					<xsd:element ref="co1:QualifiedAmount" minOccurs="0"/>
					<xsd:element name="ChargeCharacteristics" type="co1:CharacteristicType" minOccurs="0" maxOccurs="unbounded"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:element name="InvoiceAllowance" type="InvoiceAllowanceChargeType"/>
	<xsd:element name="InvoiceCharge" type="InvoiceAllowanceChargeType"/>
	<xsd:element name="InvoiceMetaData" type="InvoiceMetaDataType"/>
	<xsd:complexType name="InvoiceMetaDataType">
		<xsd:sequence>
			<xsd:element ref="fi1:ForeignCurrencyCode" minOccurs="0"/>
			<xsd:element ref="fi1:ForeignCurrencyExchangeRate" minOccurs="0"/>
			<xsd:element ref="fi1:ForeignCurrencyAmount" minOccurs="0"/>
			<xsd:element ref="co1:InfoText" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="fi1:InvoiceDocumentType" minOccurs="0"/>
			<xsd:element ref="co1:PDF" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="co1:CustomerInvoiceParty" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="co1:PayerPartyHierarchy" minOccurs="0"/>
			<xsd:element ref="co1:TaxDescription" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="co1:Batch" minOccurs="0"/>
			<xsd:element ref="co1:Representation" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
</xsd:schema>
