﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="senduserinvitation" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:include schemaLocation ="netvisorgeneraltypes.xsd" />
    <xs:element name="root">
        <xs:complexType>
            <xs:all>
                <xs:element name="senduserinvitation" minOccurs="1" maxOccurs="1">
                    <xs:complexType>
                        <xs:sequence>
							<xs:element name="type" minOccurs="1" maxOccurs="1">
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:pattern value="Employee|employee|NewUser|newuser"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="firstname" type="netvisor_string_min1_max50" minOccurs="1" maxOccurs="1" />	
							<xs:element name="lastname" type="netvisor_string_min1_max50" minOccurs="1" maxOccurs="1" />
							<xs:element name="email" type="netvisor_email" minOccurs="1" maxOccurs="1" />
							<xs:element name="phone" type="netvisor_string_min2_max20" minOccurs="1" maxOccurs="1" />
							<xs:element name="company" type="netvisor_positiveinteger" minOccurs="1" maxOccurs="1" />
							<xs:element name="user" minOccurs="0" maxOccurs="1">
								<xs:complexType>
									<xs:simpleContent>
										<xs:extension base="netvisor_positiveinteger">
											<xs:attribute name="type">
												<xs:simpleType>
													<xs:restriction base="xs:string">
														<xs:pattern value="netvisorkey" />
													</xs:restriction>
												</xs:simpleType>
											</xs:attribute>
										</xs:extension>
									</xs:simpleContent>
								</xs:complexType>
							</xs:element>
								<xs:element name="verifiernotification" type="netvisor_email" minOccurs="0" maxOccurs="1" />
						</xs:sequence>
                    </xs:complexType>
                </xs:element>
            </xs:all>
        </xs:complexType>
    </xs:element>
</xs:schema>
