<?xml version="1.0" encoding="utf-8"?>
<!--
   Schema agency: 	Open Applications Group 

   OAGIS® Revision:    9.3  
   Date:               11 August 2008 
   Copyright 1997-2008, All Rights Reserved 

   Copyright (C) Open Applications Group (1997-2008). 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_3/Developer/Nouns/CustomerRemittanceAdvice.xsd
-->
<!--
	© Copyright 2007 Infor Global Solutions Technology GmbH and/or its affiliates and subsidiaries. All rights reserved. The 
	word and design marks set forth herein are trademarks and/or registered trademarks of Infor Global Solutions 
	Technology GmbH and/or its affiliates and subsidiaries. All rights reserved. All other trademarks listed herein 
	are the property of their respective owners.
-->
<!--    *****     Update Log     *****
	
	Date                By      Note
	26 Nov 2012   BvO   Created.
	
	*****     Update End     *****
-->
<xsd:schema targetNamespace="http://schema.infor.com/InforOAGIS/2" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schema.infor.com/InforOAGIS/2" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xsd:include schemaLocation="../Components/Financial/Components.xsd"/>
	<xsd:element name="CustomerRemittanceAdvice" type="CustomerRemittanceAdviceType">
		<xsd:annotation>
			<xsd:documentation source="http://www.openapplications.org/oagis/9">The purpose of the CustomerRemittanceAdvice Business Object Document is to provide a detailed breakdown of a receipt amount. It includes all credits, debits, discounts, adjustments taken on an invoice, and adjustment reason codes. A receipt can attach a customer remittance advice notification. The receipt can be for products only, transportation, or other services.</xsd:documentation>
			<xsd:documentation source="http://www.openapplications.org/oagis/9">The LoadCustomerRemittanceAdvice sends the electronic form of a customer remittance advice document from a payer to a payee. In case of direct debits, the SyncCustomerRemittanceAdvice is to be sent from a payee to a payer.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="CustomerRemittanceAdviceHeader" type="CustomerRemittanceAdviceHeaderType">
		<xsd:annotation>
			<xsd:documentation source="http://www.openapplications.org/oagis/9">The customer remittance advice header contains information that applies to the entire customer remittance advice. This component is required.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="CustomerRemittanceAdviceLine" type="CustomerRemittanceAdviceLineType">
		<xsd:annotation>
			<xsd:documentation source="http://www.openapplications.org/oagis/9">This level contains detail information by customer remittance advice line on the receipt amount, taken discounts and penalties. At least one occurrence of this component is required for each occurrence of the customer remittance advice.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="CustomerRemittanceAdviceType">
		<xsd:annotation>
			<xsd:documentation source="http://www.openapplications.org/oagis/9">The schema type for CustomerRemittanceAdvice. To be entered.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element ref="CustomerRemittanceAdviceHeader" minOccurs="0"/>
			<xsd:element ref="CustomerRemittanceAdviceLine" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="CustomerRemittanceAdviceHeaderType">
		<xsd:complexContent>
			<xsd:extension base="StatusEnabledHeaderType">
				<xsd:sequence>
					<xsd:element ref="EffectiveDateTime" minOccurs="0"/>
					<xsd:element ref="InitiatingParty" minOccurs="0"/>
					<xsd:element ref="PayFromParty" minOccurs="0"/>
					<xsd:element ref="FinancialParty" minOccurs="0"/>
					<xsd:element ref="RemitToParty" minOccurs="0"/>
					<xsd:element ref="ChequeInstruction" minOccurs="0"/>
					<xsd:element ref="PaymentMethodCode" minOccurs="0"/>
					<xsd:element ref="TotalAmount" minOccurs="0"/>
					<xsd:element ref="TotalBaseAmount" minOccurs="0"/>
					<xsd:element ref="TotalReportAmount" minOccurs="0"/>
					<xsd:element ref="TransactionID" minOccurs="0"/>
					<xsd:element ref="UserArea" minOccurs="0"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="CustomerRemittanceAdviceLineType">
		<xsd:complexContent>
			<xsd:extension base="StatusEnabledLineType">
				<xsd:sequence>
					<xsd:element ref="PaymentAmount" minOccurs="0"/>
					<xsd:element ref="PaymentBaseAmount" minOccurs="0"/>
					<xsd:element ref="PaymentReportAmount" minOccurs="0"/>
					<xsd:element ref="DiscountTakenAmount" minOccurs="0"/>
					<xsd:element ref="DiscountTakenBaseAmount" minOccurs="0"/>
					<xsd:element ref="DiscountTakenReportAmount" minOccurs="0"/>
					<xsd:element ref="PenaltyTakenAmount" minOccurs="0"/>
					<xsd:element ref="PenaltyTakenBaseAmount" minOccurs="0"/>
					<xsd:element ref="PenaltyTakenReportAmount" minOccurs="0"/>
					<xsd:element ref="UserArea" minOccurs="0"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
</xsd:schema>
