<?xml version="1.0" encoding="utf-8"?>
<!--
        
        ** OAGIS® Revision: 9.1  **
        ** Date: 11 May 2007 **
        ** Copyright 1997-2007, 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 xml@openapplications.org.
        
        XML Schema 
        
-->
 
<!--
© 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
09 Aug 2011   NO      New noun
23 Sep 2013    LA    BOD-2355 changes, moved ExpectedProblemCode, ExpectedSolutionCode, ReportedProblemCode to components.xsd
        *****     Update End     *****
 
-->


<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://schema.infor.com/InforOAGIS/2"
    targetNamespace="http://schema.infor.com/InforOAGIS/2" elementFormDefault="qualified"
    attributeFormDefault="unqualified">

    <xsd:include schemaLocation="../Components/Operational/Components.xsd"/>

    <xsd:element name="CustomerCall" type="CustomerCallType">
        <xsd:annotation>
            <xsd:documentation >CustomerCall used for associating a chart of accounts, a currency, and a calendar.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>

    <xsd:complexType name="CustomerCallType">
            <xsd:sequence>
                <xsd:element ref="CustomerCallHeader" minOccurs="0">
                    <xsd:annotation>
                        <xsd:documentation >Provides general information from the customer call.</xsd:documentation>
                    </xsd:annotation>
                </xsd:element>
                <xsd:element ref="CustomerCallDetail" minOccurs="0" maxOccurs="unbounded">
                    <xsd:annotation>
                        <xsd:documentation >Provides the activity level detail from the customer call.</xsd:documentation>
                    </xsd:annotation>
                </xsd:element>
            </xsd:sequence>
    </xsd:complexType>
    
    <xsd:complexType name="CustomerCallHeaderType">
        <xsd:complexContent>
            <xsd:extension base="StatusEnabledHeaderType">
                <xsd:sequence>
                    <xsd:choice>
                        <xsd:annotation>
                            <xsd:documentation>Idicates if the call is coming from a customer or internally</xsd:documentation>
                        </xsd:annotation>
                        <xsd:element ref="CustomerParty" minOccurs="0"/>
                        <xsd:element ref="InternalCallerPerson" minOccurs="0"/>
                    </xsd:choice>
                    <xsd:element ref="CallDateTime" minOccurs="0"/>
                    <xsd:element ref="CallTakenByPerson" minOccurs="0"/>
                    <xsd:element ref="CallTypeCode" minOccurs="0"/>
                    <xsd:element ref="CallGroupCode" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="ProblemPriorityCode" minOccurs="0"/>
                    <xsd:element ref="CustomerPriorityCode" minOccurs="0"/>
                    <xsd:element ref="InstallationPriorityCode" minOccurs="0"/>
                    <xsd:element ref="ReportedProblemCode" minOccurs="0"/>
                    <xsd:element ref="ExpectedProblemCode" minOccurs="0"/>
                    <xsd:element ref="ActualProblemCode" minOccurs="0"/>
                    <xsd:element ref="ExpectedSolutionCode" minOccurs="0"/>
                    <xsd:element ref="ActualSolutionCode" minOccurs="0"/>
                    <xsd:element ref="ServiceContract" minOccurs="0"/>
                    <xsd:element ref="Message" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="ExpectedDeliveryDateTime" minOccurs="0"/>
                    <xsd:element ref="FollowUpDateTime" minOccurs="0"/>
                    <xsd:element ref="UserArea" minOccurs="0"/>
                    <xsd:element ref="AppointmentIndicator" minOccurs="0"/>
                    <xsd:element ref="ConfiguredAsset" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="EmergencyIndicator" minOccurs="0"/>
                    <xsd:element ref="CustomerTimePeriod" minOccurs="0"/>
                    <xsd:element ref="SiteLocation" minOccurs="0"/>
                    <xsd:element ref="ProjectReference" minOccurs="0"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>
    <xsd:element name="CustomerCallHeader" type="CustomerCallHeaderType"/>
    
    <xsd:complexType name="CustomerCallDetailType">
                <xsd:sequence>
                    <xsd:element ref="LineNumber" minOccurs="0"/>
                    <xsd:element ref="Description" minOccurs="0"/>
                    <xsd:element ref="Note" minOccurs="0"/>
                    <xsd:element ref="AssignedPerson" minOccurs="0"/>
                    <xsd:element ref="CallActivityCode" minOccurs="0"/>
                    <xsd:element ref="ActivityPriorityCode" minOccurs="0"/>
                    <xsd:element ref="EffectiveTimePeriod" minOccurs="0"/>
                    <xsd:element ref="NextActivity" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="CustomerContact" minOccurs="0"/>
                    <xsd:element ref="DocumentReference" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="ResponseTimeCode" minOccurs="0"/>
                    <xsd:element ref="UserArea" minOccurs="0"/>
                    <xsd:element ref="ConfiguredAsset" minOccurs="0" maxOccurs="unbounded"/>
                    <xsd:element ref="SiteLocation" minOccurs="0"/>
                    <xsd:element ref="EmergencyIndicator" minOccurs="0"/>
                </xsd:sequence>
        <xsd:attribute name="sequence" type="PositiveIntegerNumericType"/>
    </xsd:complexType>
    
    <xsd:element name="CustomerCallDetail" type="CustomerCallDetailType"/>

    <xsd:element name="CallTypeCode" type="CodeType">
        <xsd:annotation>
            <xsd:documentation>Contains information of the type of call being used. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    
    <xsd:element name="CallGroupCode" type="CodeType">
        <xsd:annotation>
            <xsd:documentation>When creating a call; call group will be defaulted based on the call type; 
                provided each call type has only one call group defined. If more than one call group exists 
                for a call type then the call group will not be defaulted.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>

    <xsd:element name="ExpectedDeliveryDateTime" type="DateTimeType"/>
    
    <xsd:element name="FollowUpDateTime" type="DateTimeType"/> 

    <xsd:element name="InternalCallerPerson" type="PersonType">
        <xsd:annotation>
            <xsd:documentation>Internal person making the call/request.</xsd:documentation>
        </xsd:annotation>
    </xsd:element>

    
    
    <xsd:element name="CallActivityCode" type="CodeType">
        <xsd:annotation>
            <xsd:documentation>Identifies the reason for an activity. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>

    <xsd:complexType name="NextActivityType">
        <xsd:sequence>
            <xsd:element ref="Description" minOccurs="0"/>
            <xsd:element ref="ScheduledDateTime" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>
    
    <xsd:element name="NextActivity" type="NextActivityType"/>
    
    <xsd:element name="CustomerContact" type="ContactType"/>
    
    <xsd:element name="ResponseTimeCode" type="CodeType">
        <xsd:annotation>
            <xsd:documentation>Identifies the type of response time needed.. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>

    <xsd:element name="ActivityPriorityCode" type="CodeType">
        <xsd:annotation>
            <xsd:documentation>Identifies the priority level of this activity. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    
    <xsd:element name="ProblemPriorityCode" type="CodeType">
        <xsd:annotation>
            <xsd:documentation>Identifies the priority level of the problem. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    
    <xsd:element name="CustomerPriorityCode" type="CodeType">
        <xsd:annotation>
            <xsd:documentation>Identifies the priority level of the customer. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    
    <xsd:element name="InstallationPriorityCode" type="CodeType">
        <xsd:annotation>
            <xsd:documentation>Identifies the priority level of the Installation. </xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    
      

    
</xsd:schema>
