<xsd:schema elementFormDefault="qualified" targetNamespace="http://xmlns.oracle.com/apps/sales/opptyMgmt/revenues/revenueService/"
     sdoJava:package="oracle.apps.sales.opptyMgmt.revenues.revenueService" xmlns:ns0="http://xmlns.oracle.com/adf/svc/types/"
     xmlns:sdoJava="commonj.sdo/java" xmlns:sdoXML="commonj.sdo/xml" xmlns="http://xmlns.oracle.com/apps/sales/opptyMgmt/revenues/revenueService/"
     xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:annotation>
        <xsd:documentation xmlns:oer="http://xmlns.oracle.com/oer">
            <name>Opportunity Revenue Territory</name>
            <description>The territories assigned to an opportunity revenue line.</description>
            <oer:category name="lba">
                <value>SalesTop-Sales</value>
                <value>SalesTop-Sales : OpptyMgmtTop-Sales Opportunity Top</value>
                <value>SalesTop-Sales : OpptyMgmtTop-Sales Opportunity Top :
                    OpptyMgmtOpportunities-Opportunities</value>
            </oer:category>
            <oer:attributes>
                <oer:attribute description="Revenue territory identifier." name="RevnTerrId"/>
                <oer:attribute description="Revenue identifier." name="RevnId"/>
                <oer:attribute description="Territory identifier." name="TerritoryId"/>
                <oer:attribute description="Territory version identifier." name="TerritoryVersionId"/>
                <oer:attribute description="Disconnected Mobile: this value is used to guarantee the uniqueness of the row when duplicates are created in different databases (i.e. mobile databases or the server)."
                     name="ConflictId"/>
                <oer:attribute description="Who column: indicates the user who created the row." name="CreatedBy"/>
                <oer:attribute description="Who column: indicates the date and time of the creation of the row."
                     name="CreationDate"/>
                <oer:attribute description="Who column: indicates the date and time of the last update of the row."
                     name="LastUpdateDate"/>
                <oer:attribute description="Who column: indicates the user who last updated the row."
                     name="LastUpdatedBy"/>
                <oer:attribute description="Who column: indicates the session login associated to the user who last updated the row."
                     name="LastUpdateLogin"/>
                <oer:attribute description="Used to implement optimistic locking. This number is incremented every time that the row is updated. The number is compared at the start and end of a transaction to detect whether another session has updated the row since it was queried."
                     name="ObjectVersionNumber"/>
                <oer:attribute description="Disconnected Mobile: indicates the date and time of the last update of the row. This value is different from LAST_UPDATE_DATE if the update originally happened in a different database (i.e. a different mobile database or the server)."
                     name="UserLastUpdateDate"/>
                <oer:attribute description="Name of the territory." name="Name"/>
                <oer:attribute description="Name of the territory owner." name="PartyName"/>
                <oer:attribute description="Identifier of the territory owner." name="PartyId"/>
                <oer:attribute description="Resource organization of the territory resource." name="Name1"/>
                <oer:attribute description="Resource organization identifier of the territory resource."
                     name="OrganizationId"/>
                <oer:attribute description="Effective start date of the resource organization for the territory assigned to the revenue line."
                     name="EffectiveStartDate"/>
                <oer:attribute description="Effective end date of the resource organization for the territory assigned to the revenue line."
                     name="EffectiveEndDate"/>
                <oer:attribute description="Resource role of the territory resource." name="RoleName"/>
                <oer:attribute description="Resource role identifier of the territory resource." name="RoleId"/>
                <oer:attribute description="Identifies the type of the assigned territory." name="TypeCode"/>
                <oer:attribute description="The type of forecast this territory participates in (Revenue, Nonrevenue, Revenue and Nonrevenue, or Nonforecasting)."
                     name="ForecastParticipationCode"/>
            </oer:attributes>
        </xsd:documentation>
    </xsd:annotation>
    <xsd:import namespace="http://xmlns.oracle.com/adf/svc/types/" schemaLocation="BC4JService.xsd"/>
    <xsd:import namespace="commonj.sdo/java" schemaLocation="sdoJava.xsd"/>
    <xsd:import namespace="commonj.sdo/xml" schemaLocation="sdoXML.xsd"/>
    <xsd:complexType name="RevenueTerritory">
        <xsd:annotation>
            <xsd:appinfo source="http://xmlns.oracle.com/adf/svc/metadata/">
                <key xmlns="http://xmlns.oracle.com/adf/svc/metadata/">
                    <attribute>RevnTerrId</attribute>
                    <attribute>OrganizationId</attribute>
                    <attribute>EffectiveStartDate</attribute>
                    <attribute>EffectiveEndDate</attribute>
                </key>
            </xsd:appinfo>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element minOccurs="0" name="RevnTerrId" type="xsd:long" sdoXML:dataType="sdoJava:LongObject"/>
            <xsd:element minOccurs="0" name="RevnId" type="xsd:long" sdoXML:dataType="sdoJava:LongObject"/>
            <xsd:element minOccurs="0" name="TerritoryId" type="xsd:long" sdoXML:dataType="sdoJava:LongObject"/>
            <xsd:element minOccurs="0" name="TerritoryVersionId" nillable="true" type="xsd:long"/>
            <xsd:element minOccurs="0" name="ConflictId" type="xsd:long" sdoXML:dataType="sdoJava:LongObject"/>
            <xsd:element minOccurs="0" name="CreatedBy" type="xsd:string"/>
            <xsd:element minOccurs="0" name="CreationDate" type="ns0:dateTime-Timestamp"/>
            <xsd:element minOccurs="0" name="LastUpdateDate" type="ns0:dateTime-Timestamp"/>
            <xsd:element minOccurs="0" name="LastUpdatedBy" type="xsd:string"/>
            <xsd:element minOccurs="0" name="LastUpdateLogin" nillable="true" type="xsd:string"/>
            <xsd:element minOccurs="0" name="ObjectVersionNumber" type="xsd:int" sdoXML:dataType="sdoJava:IntObject"/>
            <xsd:element minOccurs="0" name="UserLastUpdateDate" nillable="true" type="ns0:dateTime-Timestamp"/>
            <xsd:element minOccurs="0" name="Name" type="xsd:string"/>
            <xsd:element minOccurs="0" name="PartyName" type="xsd:string"/>
            <xsd:element minOccurs="0" name="PartyId" type="xsd:long" sdoXML:dataType="sdoJava:LongObject"/>
            <xsd:element minOccurs="0" name="Name1" type="xsd:string"/>
            <xsd:element minOccurs="0" name="OrganizationId" type="xsd:long" sdoXML:dataType="sdoJava:LongObject"/>
            <xsd:element minOccurs="0" name="EffectiveStartDate" type="ns0:date-Date"/>
            <xsd:element minOccurs="0" name="EffectiveEndDate" type="ns0:date-Date"/>
            <xsd:element minOccurs="0" name="RoleName" type="xsd:string"/>
            <xsd:element minOccurs="0" name="RoleId" type="xsd:long" sdoXML:dataType="sdoJava:LongObject"/>
            <xsd:element minOccurs="0" name="TypeCode" nillable="true" type="xsd:string"/>
            <xsd:element minOccurs="0" name="ForecastParticipationCode" nillable="true" type="xsd:string"/>
            <xsd:element minOccurs="0" name="AssignmentType" nillable="true" type="xsd:string"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="revenueTerritory" type="RevenueTerritory"/>
</xsd:schema>
