Schema Name: DealerLocatorExtended.xsd
Target Namespace: http://www.starstandard.org/STAR/5
Documentation:
This schema is made available under an Eclipse Public Licenses 1.0. This license may be found in the STAR/License directory as well as the STAR BOD Guidelines.
Collapse XSD Schema Code:

<xsd:schema xmlns="http://www.starstandard.org/STAR/5"
	xmlns:ccts="urn:un:unece:uncefact:documentation:1.1" xmlns:oacl="http://www.openapplications.org/oagis/9/codelists"
	xmlns:qdt="http://www.openapplications.org/oagis/9/qualifieddatatypes/1.1"
	xmlns:scl="http://www.starstandard.org/STAR/5/codelists" xmlns:sqdt="http://www.starstandard.org/STAR/5/qualifieddatatypes/1.0"
	xmlns:star="http://www.starstandard.org/STAR/5"
	xmlns:sudt="http://www.starstandard.org/STAR/5/unqualifieddatatypes/1.0"
	xmlns:udt="http://www.openapplications.org/oagis/9/unqualifieddatatypes/1.1"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified"
	blockDefault="#all" elementFormDefault="qualified"
	targetNamespace="http://www.starstandard.org/STAR/5">
	<xsd:annotation>
		<xsd:documentation source="http://www.starstandard.org/STAR/5"> This schema is made
			available under an Eclipse Public Licenses 1.0.
			This license may be
			found in the STAR/License directory as well as the
			STAR BOD
			Guidelines.</xsd:documentation>
	</xsd:annotation>
	<xsd:include schemaLocation="../Components/Common/Meta.xsd" />
	<xsd:import namespace="http://www.starstandard.org/STAR/5/qualifieddatatypes/1.0"
		schemaLocation="../Components/Common/QualifiedDataTypes.xsd" />
	<xsd:import
		namespace="http://www.openapplications.org/oagis/9/unqualifieddatatypes/1.1"
		schemaLocation="../Components/OAGIS/CoreComponents/UnqualifiedDataTypes.xsd" />
	<xsd:import
		namespace="http://www.openapplications.org/oagis/9/qualifieddatatypes/1.1"
		schemaLocation="../Components/OAGIS/CoreComponents/QualifiedDataTypes.xsd" />
	<xsd:import namespace="http://www.starstandard.org/STAR/5/codelists"
		schemaLocation="../Components/Common/CodeLists.xsd" />
	<xsd:import namespace="http://www.openapplications.org/oagis/9"
		schemaLocation="../Components/OAGIS/Common/Components.xsd" />
	<xsd:element name="DealerLocatorExtended" type="DealerLocatorExtendedType">
		<xsd:annotation>
			<xsd:documentation source="http://www.starstandard.org/STAR/5">
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="DealerLocatorExtendedHeader" type="DealerLocatorExtendedHeaderType">
		<xsd:annotation>
			<xsd:documentation source="http://www.starstandard.org/STAR/5"> Dealer Locator Extended
				Header</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="DealerLocatorExtendedRequest" type="DealerLocatorExtendedRequestType">
		<xsd:annotation>
			<xsd:documentation source="http://www.starstandard.org/STAR/5">Dealer Locator Extended Request
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="DealerLocatorExtendedResponse" type="DealerLocatorExtendedResponseType">
		<xsd:annotation>
			<xsd:documentation source="http://www.starstandard.org/STAR/5">Dealer Locator Extended Response
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="DealerLocatorExtendedType">
		<xsd:annotation xmlns="http://www.starstandards.org/STAR">
			<xsd:documentation source="http://www.starstandard.org/STAR/5">
				Description of the BOD goes here............
         </xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element maxOccurs="1" minOccurs="1"
				ref="DealerLocatorExtendedHeader" />
			<xsd:element maxOccurs="1" minOccurs="0"
				ref="DealerLocatorExtendedRequest" />
			<xsd:element maxOccurs="1" minOccurs="0"
				ref="DealerLocatorExtendedResponse" />
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="DealerLocatorExtendedHeaderType">
		<xsd:annotation xmlns="http://www.starstandards.org/STAR">
			<xsd:documentation source="http://www.starstandard.org/STAR/5">Dealer Locator Extended
				header information.</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="HeaderBaseType">
				<xsd:sequence>
					<xsd:element maxOccurs="1" minOccurs="0" ref="EmployeePerson" />
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="DealerLocatorExtendedRequestType">
		<xsd:annotation xmlns="http://www.starstandards.org/STAR">
			<xsd:documentation source="http://www.starstandard.org/STAR/5">Dealer Information Request
				information</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="context" type="Context"/>
			<xsd:element name="searchType" type="SearchType"/>
			<xsd:element name="filter" minOccurs="0" maxOccurs="1" type="Filter"/>
			<xsd:element name="outputSpecification" minOccurs="0" maxOccurs="1" type="OutputSpecification"/>
		</xsd:sequence>
		<xsd:attribute name="businessAssociateType" default="dealer" type="BusinessAssociateType"/>
		<xsd:attribute name="businessManagementSellingSource" default="ALL"
			type="BusinessManagementSellingSource"/>
		<xsd:attribute name="desiredCount" default="5" type="xsd:int"/>
		<xsd:attribute name="sortOrder" default="DEFAULT" type="SortOrder"/>
		<xsd:attribute name="contactType" default="ALL" type="xsd:string"/>
		<!--<xsd:attribute name="contactType" default="ALL" type="ContactType"/>-->
	</xsd:complexType>
	<xsd:complexType name="DealerLocatorExtendedResponseType">
		<xsd:annotation xmlns="http://www.starstandards.org/STAR">
			<xsd:documentation source="http://www.starstandard.org/STAR/5">Dealer Information Response
				information</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
		    <xsd:element name="statusMessage" minOccurs="0" maxOccurs="unbounded" type="StatusMessage"/>
		    <xsd:element name="locatorResult" minOccurs="0" maxOccurs="unbounded" type="LocatorResult"/>
		</xsd:sequence>
	    <xsd:attribute name="resultCount" type="xsd:int"/>
	    <xsd:attribute name="returnCode" type="xsd:int" use="required"/>
	    <xsd:attribute name="supplierVersion" type="xsd:string"/>
	    <xsd:attribute name="xmlVersion" type="xsd:string"/>
	</xsd:complexType>
	<xsd:complexType name="Context">
		<xsd:attribute name="country" type="sqdt:CountryCodeType" use="required"/>
		<xsd:attribute name="language" type="xsd:string" use="required"/>
		<xsd:attribute name="sourceId" type="xsd:string" use="required"/>
		<xsd:attribute name="userId" type="xsd:string"/>
		<xsd:attribute name="sessionId" type="xsd:string"/>
	</xsd:complexType>

	<xsd:complexType name="SearchType">
		<xsd:choice>
			<xsd:element name="cityProximitySearch" type="CityProximitySearch"/>
			<xsd:element name="postalCodeProximitySearch" type="PostalCodeProximitySearch"/>
			<xsd:element name="latitudeLongitudeSearch" type="LatitudeLongitudeSearch"/>
			<xsd:element name="vendorNameCityStateSearch" type="VendorNameCityStateSearch"/>
			<xsd:element name="vendorIdSearch" type="VendorIdSearch"/>
			<xsd:element name="multipleVendorIdSearch" type="MultipleVendorIdSearch"/>
			<xsd:element name="dealerCodeSearch" type="DealerCodeSearch"/>
		</xsd:choice>
	</xsd:complexType>

	<xsd:complexType name="ProximitySearch">
		<xsd:sequence>
			<xsd:element name="proximity" type="Proximity"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="CityProximitySearch">
		<xsd:complexContent>
			<xsd:extension base="ProximitySearch">
				<xsd:sequence>
					<xsd:element name="community" type="udt:TextType" minOccurs="0" maxOccurs="1"/>
					<xsd:element name="city" type="udt:TextType"/>
					<xsd:choice>
						<xsd:element name="regionCode" type="udt:TextType"/>
						<xsd:element name="regionName" type="udt:TextType"/>
					</xsd:choice>
					<xsd:element name="country" type="sqdt:CountryCodeType"/>
				</xsd:sequence>
				<xsd:attribute name="cityRank" default="false" type="udt:IndicatorType"/>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>

	<xsd:complexType name="PostalCodeProximitySearch">
		<xsd:complexContent>
			<xsd:extension base="ProximitySearch">
				<xsd:sequence>
					<xsd:element name="postalCode" type="udt:TextType"/>
					<xsd:element name="country" type="sqdt:CountryCodeType"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>

	<xsd:complexType name="LatitudeLongitudeSearch">
		<xsd:complexContent>
			<xsd:extension base="ProximitySearch">
				<xsd:sequence>
					<xsd:element name="latitude" type="xsd:double"/>
					<xsd:element name="longitude" type="xsd:double"/>
					<xsd:element name="country" type="sqdt:CountryCodeType" minOccurs="0" maxOccurs="1"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>

	<xsd:complexType name="VendorIdSearch">
		<xsd:sequence>
			<xsd:element name="vendorId" type="VendorId"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="MultipleVendorIdSearch">
		<xsd:sequence>
			<xsd:element name="vendorId" type="VendorId" minOccurs="1" maxOccurs="6"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="VendorId">
		<xsd:simpleContent>
			<xsd:extension base="xsd:int">
				<xsd:attribute default="BAC" name="vendorType">
					<xsd:simpleType>
						<xsd:restriction base="xsd:NMTOKEN">
							<xsd:enumeration value="BAC" />
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:attribute>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>

	<xsd:complexType name="DealerCodeSearch">
		<xsd:sequence>
			<xsd:element name="dealerCode" type="udt:TextType" minOccurs="1" maxOccurs="6"/>
			<xsd:element name="country" type="sqdt:CountryCodeType" minOccurs="0" maxOccurs="1"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="VendorNameCityStateSearch">
		<xsd:sequence>
			<xsd:element name="vendorName" minOccurs="0" maxOccurs="1" type="VendorName"/>
			<xsd:element name="country" minOccurs="0" maxOccurs="1" type="sqdt:CountryCodeType"/>
			<xsd:element name="regionCode" minOccurs="0" maxOccurs="8" type="udt:TextType"/>
			<xsd:element name="city" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
			<xsd:element name="cityRegion" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
			<xsd:element name="regionName" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
			<xsd:element name="province" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="VendorName">
		<xsd:simpleContent>
			<xsd:extension base="udt:TextType">
				<xsd:attribute name="searchAllNames" default="false" type="udt:IndicatorType"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>

<!-- This is the GM's complext time coding style -->
	<xsd:complexType name="Proximity">
		<xsd:simpleContent>
			<xsd:extension base="xsd:int">
				<xsd:attribute name="unitOfMeasure" default="km" type="DistanceUnitOfMeasure"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>


<!--	STAR's complex type coding style, The use of xsd:elelment is recommnended instead of using xsd:attribute. However, either coding style will work -->
	<xsd:complexType name="ProximityType">
		<xsd:annotation>
			<xsd:documentation>Proximity descriptions goes here</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element minOccurs="0" name="UnitOfMeasure" type="sqdt:LengthMeasureType"> <!-- sqdt:LengthMeasureType is a STAR data type -->
				<xsd:annotation>
					<xsd:documentation source="http://www.starstandard.org/STAR/5">
						Indicates the unit of measure. Possible values are kilometers or miles
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:simpleType name="DistanceUnitOfMeasure">
		<xsd:restriction base="xsd:NMTOKEN">
			<xsd:enumeration value="km"/>
			<xsd:enumeration value="mi"/>
		</xsd:restriction>
	</xsd:simpleType>

	<xsd:simpleType name="BusinessManagementSellingSource">
		<xsd:restriction base="xsd:NMTOKEN">
			<xsd:enumeration value="ALL"/>
			<xsd:enumeration value="PRIMARY"/>
		</xsd:restriction>
	</xsd:simpleType>

	<xsd:simpleType name="SortOrder">
		<xsd:restriction base="xsd:NMTOKEN">
			<xsd:enumeration value="DEFAULT"/>
			<xsd:enumeration value="CITY_VENDOR"/>
			<xsd:enumeration value="POSTAL_VENDOR"/>
			<xsd:enumeration value="VENDOR_NAME"/>
		</xsd:restriction>
	</xsd:simpleType>

	<!--<xsd:simpleType name="ContactType">
		<xsd:union memberTypes="ContactTypeEnum AnyContactType"/>
	</xsd:simpleType>

	<xsd:simpleType name="ContactTypeEnum">
		<xsd:restriction base="xsd:NMTOKEN">
			<xsd:enumeration value="ALL"/>
			<xsd:enumeration value="main"/>
		</xsd:restriction>
	</xsd:simpleType>

	<xsd:simpleType name="AnyContactType">
		<xsd:restriction base="xsd:string">
			<xsd:pattern value="^[0-9]{1,3}$"/>
		</xsd:restriction>
	</xsd:simpleType>-->

	<xsd:simpleType name="BusinessAssociateType">
		<xsd:restriction base="xsd:NMTOKEN">
			<xsd:enumeration value="ASO"/>
			<xsd:enumeration value="dealer"/>
			<xsd:enumeration value="upfitter"/>
			<xsd:enumeration value="dealer-upfitter"/>
			<xsd:enumeration value="centralDistributionCenter"/>
			<xsd:enumeration value="distributor"/>
			<xsd:enumeration value="europeanOperations"/>
			<xsd:enumeration value="fleetBusiness"/>
			<xsd:enumeration value="installer"/>
			<xsd:enumeration value="nationalSalesCompany"/>
			<xsd:enumeration value="regionalDistributionCenter"/>
		</xsd:restriction>
	</xsd:simpleType>

	<xsd:complexType name="OutputSpecification">
		<xsd:attribute name="includeAlternateInfo" default="false" type="udt:IndicatorType"/>
		<xsd:attribute name="includeCNPJData" default="false" type="udt:IndicatorType"/>
		<xsd:attribute name="includeCorporateProgramParticipations" default="false"
			type="udt:IndicatorType"/>
		<xsd:attribute name="includeDepartments" default="false" type="udt:IndicatorType"/>
		<xsd:attribute name="includeMainContact" default="false" type="udt:IndicatorType"/>
		<xsd:attribute name="includeMiscellaneousInfo" default="false" type="udt:IndicatorType"/>
		<xsd:attribute name="includeOfferings" default="false" type="udt:IndicatorType"/>
		<xsd:attribute name="includeQualifiedVehicleForRequestedVehicleTypeOnly" default="false"
			type="udt:IndicatorType"/>
		<xsd:attribute name="includeQualifiedVehicleWithModel" default="false"
			type="udt:IndicatorType"/>
		<xsd:attribute name="includeQualifiedVehicleWithModelOnly" default="false"
			type="udt:IndicatorType"/>
		<xsd:attribute name="includeVehicleQualifications" default="false" type="udt:IndicatorType"/>
		<xsd:attribute name="includeVendorGroups" default="false" type="udt:IndicatorType"/>
	</xsd:complexType>

	<xsd:complexType name="Filter">
		<xsd:sequence>
			<xsd:element name="corporateProgramCode" minOccurs="0" maxOccurs="5" type="udt:TextType"/>
			<xsd:element name="offeringPreference" minOccurs="0" maxOccurs="unbounded"
				type="OfferingPreference"/>
			<xsd:element name="vehicleMakeAuthorization" minOccurs="0" maxOccurs="6"
				type="VehicleMakeAuthorizationChoice"/>
			<xsd:element name="sellingSourceCode" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
			<xsd:element name="webCapabilityCode" minOccurs="0" maxOccurs="10" type="xsd:int"/>
			<xsd:element name="useAnySelectedCPC" minOccurs="0" maxOccurs="1" default="false" type="udt:IndicatorType"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="OfferingPreference">
		<xsd:sequence>
			<xsd:element name="offeringCode" type="udt:TextType"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="VehicleMakeAuthorizationChoice">
		<xsd:sequence>
			<xsd:element name="makeCode" type="udt:TextType"/>
			<xsd:element name="agreementTypeCode" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
			<xsd:element name="vehicleTypeCode" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="StatusMessage">
        <xsd:sequence>
            <xsd:element name="text" type="udt:TextType"/>
        </xsd:sequence>
        <xsd:attribute name="messageId" type="xsd:string" use="required"/>
        <xsd:attribute name="severityCode" type="xsd:string" use="required"/>
        <xsd:attribute name="messageType" type="xsd:string" use="required"/>
        <xsd:attribute name="statusDescription" type="xsd:string"/>
    </xsd:complexType>

    <xsd:complexType name="LocatorResult">
        <xsd:sequence>
            <xsd:element name="vendor" type="Vendor"/>
        </xsd:sequence>
        <xsd:attribute name="confidenceRating" type="xsd:double"/>
        <xsd:attribute name="distance" type="xsd:double"/>
        <xsd:attribute name="distanceUnitOfMeasure" default="km" type="DistanceUnitOfMeasure"/>
    </xsd:complexType>

    <xsd:complexType name="Vendor">
        <xsd:sequence>
            <xsd:element name="id" type="xsd:int"/>
            <xsd:element minOccurs="0" maxOccurs="1" name="sellingSource" type="SellingSource"/>
            <xsd:element name="contact" minOccurs="0" maxOccurs="unbounded" type="Contact"/>
            <xsd:element name="programCodes" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
            <xsd:element name="vendorCorporateProgramRelationship" minOccurs="0" maxOccurs="unbounded"
                        type="VendorCorporateProgramRelationship"/>
            <xsd:element name="businessFunction" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
            <xsd:element name="url" minOccurs="0" maxOccurs="unbounded" type="Url"/>
            <xsd:element name="department" minOccurs="0" maxOccurs="unbounded" type="Department"/>
            <xsd:choice minOccurs="0" maxOccurs="unbounded">
                <xsd:element name="localMarketingGroup" type="LocalMarketingGroup"/>
                <xsd:element name="marketingOrganization" type="MarketingOrganization"/>
            </xsd:choice>
            <xsd:element name="replacementVendorId" minOccurs="0" maxOccurs="1" type="xsd:int"/>
            <xsd:element name="primaryName" type="udt:TextType"/>
            <xsd:element name="alternateName" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
            <xsd:element name="alternateId" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
            <xsd:element name="hoursOfOperation" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
            <xsd:element name="marketingText" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
            <xsd:element name="offering" minOccurs="0" maxOccurs="unbounded" type="Offering"/>
            <xsd:element name="vehicleMakeAuthorization" minOccurs="0" maxOccurs="unbounded"
                        type="VehicleMakeAuthorization"/>
            <xsd:element name="vehicleMakeAuthorizationWithModel" minOccurs="0" maxOccurs="unbounded"
                        type="VehicleMakeAuthorizationWithModel"/>
            <xsd:element name="CNPJ" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
            <xsd:element name="directions" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
            <xsd:element name="vendorCode" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
        </xsd:sequence>
        <xsd:attribute name="primaryBusinessManagementSellingSourceIndicator" type="xsd:boolean"/>
        <xsd:attribute name="businessManagementDivision" type="xsd:string"/>
        <xsd:attribute name="role" type="VendorRole"/>
        <xsd:attribute name="type" default="unknown" type="VendorType"/>
    </xsd:complexType>

    <xsd:simpleType name="VendorRole">
        <xsd:restriction base="xsd:NMTOKEN">
            <xsd:enumeration value="dealerOfRecord"/>
            <xsd:enumeration value="shipTo"/>
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="VendorType">
        <xsd:restriction base="xsd:NMTOKEN">
            <xsd:enumeration value="ASO"/>
            <xsd:enumeration value="auction"/>
            <xsd:enumeration value="centralDistributionCenter"/>
            <xsd:enumeration value="converterCompany"/>
            <xsd:enumeration value="dealer"/>
        	<xsd:enumeration value="upfitter"/>
        	<xsd:enumeration value="dealer-upfitter"/>
            <xsd:enumeration value="distributor"/>
            <xsd:enumeration value="euorpeanOperations"/>
            <xsd:enumeration value="fleetBusiness"/>
            <xsd:enumeration value="gmSubOrganization"/>
            <xsd:enumeration value="governmentAgency"/>
            <xsd:enumeration value="installer"/>
            <xsd:enumeration value="marshallingYard"/>
            <xsd:enumeration value="nationalSalesCompany"/>
            <xsd:enumeration value="nonProfitGroup"/>
            <xsd:enumeration value="overseasMilitarySales"/>
            <xsd:enumeration value="regionalDistributionCenter"/>
            <xsd:enumeration value="shippingLocation"/>
            <xsd:enumeration value="unknown"/>
            <xsd:enumeration value="usedVehicleInspection"/>
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:complexType name="Contact">
        <xsd:sequence>
            <xsd:element name="name" minOccurs="0" maxOccurs="unbounded" type="ContactName"/>
            <xsd:element name="email" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
            <xsd:element name="address" minOccurs="0" maxOccurs="unbounded" type="Address"/>
            <xsd:element name="phone" minOccurs="0" maxOccurs="unbounded" type="Phone"/>
        </xsd:sequence>
        <xsd:attribute name="type" type="xsd:string"/>
    </xsd:complexType>

    <xsd:complexType name="ContactName">
        <xsd:simpleContent>
            <xsd:extension base="udt:TextType">
                <xsd:attribute name="part" default="full" type="ContactNamePart"/>
                <xsd:attribute name="type" default="individual" type="ContactNameType"/>
            </xsd:extension>
        </xsd:simpleContent>
    </xsd:complexType>

    <xsd:simpleType name="ContactNamePart">
        <xsd:restriction base="xsd:NMTOKEN">
            <xsd:enumeration value="surname"/>
            <xsd:enumeration value="first"/>
            <xsd:enumeration value="middle"/>
            <xsd:enumeration value="last"/>
            <xsd:enumeration value="full"/>
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="ContactNameType">
        <xsd:restriction base="xsd:NMTOKEN">
            <xsd:enumeration value="individual"/>
            <xsd:enumeration value="business"/>
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:complexType name="AddressStreet">
        <xsd:simpleContent>
            <xsd:extension base="udt:TextType">
                <xsd:attribute name="line" type="xsd:int"/>
            </xsd:extension>
        </xsd:simpleContent>
    </xsd:complexType>

    <xsd:complexType name="Address">
        <xsd:sequence>
            <xsd:element name="street" minOccurs="1" maxOccurs="unbounded" type="AddressStreet"/>
            <xsd:element name="city" type="udt:TextType"/>
            <xsd:element name="cityRegion" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
            <xsd:element name="regionCode" type="udt:TextType"/>
            <xsd:element name="postalCode" type="udt:TextType"/>
            <xsd:element name="country" type="udt:TextType"/>
            <xsd:element name="latitude" minOccurs="0" maxOccurs="1" type="xsd:double"/>
            <xsd:element name="longitude" minOccurs="0" maxOccurs="1" type="xsd:double"/>
            <xsd:element name="community" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
            <xsd:element name="province" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
            <xsd:element name="regionName" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
        </xsd:sequence>
        <xsd:attribute name="type" default="physical" type="TypeOfAddress"/>
    </xsd:complexType>

    <xsd:simpleType name="TypeOfAddress">
        <xsd:restriction base="xsd:NMTOKEN">
            <xsd:enumeration value="physical"/>
            <xsd:enumeration value="shipping"/>
            <xsd:enumeration value="mailing"/>
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:complexType name="Phone">
        <xsd:sequence>
            <xsd:element name="number" type="udt:TextType"/>
            <xsd:element name="areaCode" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
            <xsd:element name="cityCode" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
            <xsd:element name="countryAccessNumber" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
            <xsd:element name="phoneExtension" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
        </xsd:sequence>
        <xsd:attribute name="type" default="home" type="PhoneType"/>
    </xsd:complexType>

    <xsd:simpleType name="PhoneType">
        <xsd:restriction base="xsd:NMTOKEN">
            <xsd:enumeration value="home"/>
            <xsd:enumeration value="workBusiness"/>
            <xsd:enumeration value="fax"/>
            <xsd:enumeration value="cellphonePager"/>
            <xsd:enumeration value="dealerMain"/>
            <xsd:enumeration value="dealerFax"/>
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:complexType name="SellingSource">
        <xsd:sequence>
            <xsd:element name="sellingSourceDescription" minOccurs="0" maxOccurs="1" type="udt:TextType"/>
        </xsd:sequence>
        <xsd:attribute name="sellingSourceCode" type="xsd:string"/>
    </xsd:complexType>

    <xsd:complexType name="VendorCorporateProgramRelationship">
        <xsd:sequence>
            <xsd:element name="effectiveDate" minOccurs="0" maxOccurs="1" type="xsd:date"/>
            <xsd:element name="terminationDate" minOccurs="0" maxOccurs="1" type="xsd:date"/>
            <xsd:element name="corporateProgram" type="CorporateProgram"/>
            <xsd:element name="contact" minOccurs="0" maxOccurs="unbounded" type="Contact"/>
            <xsd:element name="enrollmentStatusCode" type="udt:TextType"/>
            <xsd:element name="targetEffectiveDate" type="xsd:date"/>
        </xsd:sequence>
        <xsd:attribute name="emailNotificationRequired" default="false" type="xsd:boolean"/>
        <xsd:attribute name="faxNotificationRequired" default="false" type="xsd:boolean"/>
    </xsd:complexType>

    <xsd:complexType name="CorporateProgram">
        <xsd:sequence>
            <xsd:element name="country" type="udt:TextType"/>
            <xsd:element name="language" type="udt:TextType"/>
            <xsd:element name="program" type="CorporateProgramCode"/>
            <xsd:element name="corporateProgramType" minOccurs="0" maxOccurs="1" type="CorporateProgramType"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="CorporateProgramCode">
        <xsd:simpleContent>
            <xsd:extension base="udt:TextType">
                <xsd:attribute name="programCode" type="xsd:string" use="required"/>
            </xsd:extension>
        </xsd:simpleContent>
    </xsd:complexType>

    <xsd:complexType name="CorporateProgramType">
        <xsd:simpleContent>
            <xsd:extension base="udt:TextType">
                <xsd:attribute name="code" type="xsd:string" use="required"/>
            </xsd:extension>
        </xsd:simpleContent>
    </xsd:complexType>

    <xsd:complexType name="Url">
        <xsd:simpleContent>
            <xsd:extension base="udt:TextType">
                <xsd:attribute name="makeCode" type="xsd:string"/>
                <xsd:attribute name="source" type="xsd:string"/>
                <xsd:attribute name="type" default="DealerWebsite" type="UrlType"/>
            </xsd:extension>
        </xsd:simpleContent>
    </xsd:complexType>

    <xsd:simpleType name="UrlType">
        <xsd:restriction base="xsd:NMTOKEN">
            <xsd:enumeration value="DealerWebsite"/>
            <xsd:enumeration value="UserCarStockList"/>
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:complexType name="Department">
        <xsd:sequence>
            <xsd:element name="departmentCode" type="xsd:int"/>
            <xsd:element name="departmentName" type="udt:TextType"/>
            <xsd:element name="contact" minOccurs="0" maxOccurs="unbounded" type="Contact"/>
            <xsd:element name="dailyHours" minOccurs="0" maxOccurs="unbounded" type="DailyHours"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="DailyHours">
        <xsd:sequence>
            <xsd:element name="dayOfWeek" type="xsd:int"/>
            <xsd:element name="openingTime" type="udt:TextType"/>
            <xsd:element name="closingTime" type="udt:TextType"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="VehicleMakeAuthorization">
        <xsd:sequence>
            <xsd:element name="makeCode" type="udt:TextType"/>
            <xsd:element name="agreementTypeCode" type="udt:TextType"/>
            <xsd:element name="vehicleTypeCode" type="udt:TextType"/>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="VehicleMakeAuthorizationWithModel">
        <xsd:complexContent>
            <xsd:extension base="VehicleMakeAuthorization">
                <xsd:sequence>
                    <xsd:element name="merchandisingModelDesig" type="udt:TextType"/>
                    <xsd:element name="brandDesc" type="udt:TextType"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>

    <xsd:complexType name="MarketingOrganization">
        <xsd:sequence>
            <xsd:element name="marketingOrganizationType" type="udt:TextType"/>
            <xsd:sequence>
                <xsd:element name="level10Code" type="udt:TextType"/>
                <xsd:element name="level10Description"/>
                <xsd:element name="level20Code" type="udt:TextType"/>
                <xsd:element name="level20Description" type="udt:TextType"/>
                <xsd:element name="level30Code" type="udt:TextType"/>
                <xsd:element name="level30Description" type="udt:TextType"/>
                <xsd:element name="level40Code" type="udt:TextType"/>
                <xsd:element name="level40Description" type="udt:TextType"/>
            </xsd:sequence>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="Offering">
        <xsd:simpleContent>
            <xsd:extension base="udt:TextType">
                <xsd:attribute name="code" type="xsd:string" use="required"/>
            </xsd:extension>
        </xsd:simpleContent>
    </xsd:complexType>

    <xsd:complexType name="LocalMarketingGroup">
        <xsd:sequence>
            <xsd:element name="country" type="udt:TextType"/>
            <xsd:element name="gmMarketingAreaNumber" type="udt:TextType"/>
            <xsd:element name="sellingSourceCode" type="udt:TextType"/>
        </xsd:sequence>
    </xsd:complexType>
</xsd:schema>
Collapse ComplexTypes:
Collapse Elements:
Collapse SimpleTypes: