lexis_nexis_api 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/Gemfile +4 -0
- data/README.md +2 -0
- data/Rakefile +2 -0
- data/doc/AdminRequest.xsd +47 -0
- data/doc/AdminResponse.xsd +64 -0
- data/doc/CPBackgroundReports.xsd +55 -0
- data/doc/CPScreenings.xsd +1762 -0
- data/doc/admin.wsdl +57 -0
- data/lexis_nexis_api.gemspec +27 -0
- data/lib/lexis_nexis_api/background_check.rb +309 -0
- data/lib/lexis_nexis_api/password_change.rb +65 -0
- data/lib/lexis_nexis_api/remote_actions.rb +116 -0
- data/lib/lexis_nexis_api/version.rb +3 -0
- data/lib/lexis_nexis_api/xml_helper.rb +26 -0
- data/lib/lexis_nexis_api/xml_samples.rb +50 -0
- data/lib/lexis_nexis_api.rb +124 -0
- data/test/background_check_test.rb +304 -0
- data/test/lexis_nexis_api_test.rb +70 -0
- data/test/password_change_test.rb +32 -0
- data/test/remote_actions_test.rb +47 -0
- data/test/test_helper.rb +143 -0
- metadata +134 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--W3C Schema generated by XMLSPY v2004 rel. 3 U (http://www.xmlspy.com)-->
|
3
|
+
<xs:schema
|
4
|
+
targetNamespace="http://www.cpscreen.com/schemas"
|
5
|
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
6
|
+
xmlns="http://www.cpscreen.com/schemas"
|
7
|
+
elementFormDefault="qualified"
|
8
|
+
version="1">
|
9
|
+
<xs:element name="ChoicePointAdminRequest">
|
10
|
+
<xs:complexType>
|
11
|
+
<xs:sequence>
|
12
|
+
<xs:element name="ChangePassword" minOccurs="0" maxOccurs="unbounded">
|
13
|
+
<xs:complexType>
|
14
|
+
<xs:sequence>
|
15
|
+
<xs:element name="Account" type="xs:string"/>
|
16
|
+
<xs:element name="UserId" type="xs:string"/>
|
17
|
+
<xs:element name="Password" type="xs:string"/>
|
18
|
+
<xs:element name="NewPassword" type="xs:string" minOccurs="0"/>
|
19
|
+
</xs:sequence>
|
20
|
+
</xs:complexType>
|
21
|
+
</xs:element>
|
22
|
+
<xs:element name="PackageDetail" minOccurs="0" maxOccurs="unbounded">
|
23
|
+
<xs:complexType>
|
24
|
+
<xs:sequence>
|
25
|
+
<xs:element name="PackageId">
|
26
|
+
<xs:simpleType>
|
27
|
+
<xs:restriction base="xs:string">
|
28
|
+
<xs:pattern value="[0-9]{4}|ALL"/>
|
29
|
+
</xs:restriction>
|
30
|
+
</xs:simpleType>
|
31
|
+
</xs:element>
|
32
|
+
</xs:sequence>
|
33
|
+
</xs:complexType>
|
34
|
+
</xs:element>
|
35
|
+
</xs:sequence>
|
36
|
+
<xs:attribute name="userId" type="xs:string" use="required">
|
37
|
+
<xs:annotation>
|
38
|
+
<xs:documentation>ChoicePoint assigned customer user id. The max length
|
39
|
+
of the userId is 30 characters.
|
40
|
+
</xs:documentation>
|
41
|
+
</xs:annotation>
|
42
|
+
</xs:attribute>
|
43
|
+
<xs:attribute name="account" type="xs:string" use="required"/>
|
44
|
+
<xs:attribute name="password" type="xs:string" use="required"/>
|
45
|
+
</xs:complexType>
|
46
|
+
</xs:element>
|
47
|
+
</xs:schema>
|
@@ -0,0 +1,64 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xs:schema targetNamespace="http://www.cpscreen.com/schemas" xmlns="http://www.cpscreen.com/schemas" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="1">
|
3
|
+
<xs:element name="ChoicePointAdminResponse">
|
4
|
+
<xs:complexType>
|
5
|
+
<xs:sequence>
|
6
|
+
<xs:element name="Error" type="ErrorType" minOccurs="0"/>
|
7
|
+
<xs:element name="ChangePassword" minOccurs="0" maxOccurs="unbounded">
|
8
|
+
<xs:complexType>
|
9
|
+
<xs:sequence>
|
10
|
+
<xs:element ref="Status"/>
|
11
|
+
<xs:element name="Account" type="xs:string"/>
|
12
|
+
<xs:element name="UserId" type="xs:string"/>
|
13
|
+
<xs:element name="Password" type="xs:string"/>
|
14
|
+
<xs:element name="NewPassword" type="xs:string" minOccurs="0"/>
|
15
|
+
<xs:element name="Error" type="ErrorType" minOccurs="0"/>
|
16
|
+
</xs:sequence>
|
17
|
+
</xs:complexType>
|
18
|
+
</xs:element>
|
19
|
+
<xs:element name="PackageDetail" minOccurs="0" maxOccurs="unbounded">
|
20
|
+
<xs:complexType>
|
21
|
+
<xs:sequence>
|
22
|
+
<xs:element ref="Status"/>
|
23
|
+
<xs:element name="PackageId" type="xs:string"/>
|
24
|
+
<xs:element name="Name" type="xs:string" minOccurs="0"/>
|
25
|
+
<xs:element name="Price" type="xs:string" minOccurs="0"/>
|
26
|
+
<xs:element name="Components" minOccurs="0" maxOccurs="1">
|
27
|
+
<xs:complexType>
|
28
|
+
<xs:sequence>
|
29
|
+
<xs:element name="Component" minOccurs="0" maxOccurs="unbounded">
|
30
|
+
<xs:complexType>
|
31
|
+
<xs:sequence>
|
32
|
+
<xs:element name="Type" type="xs:string"/>
|
33
|
+
<xs:element name="Subtype" type="xs:string" minOccurs="0"/>
|
34
|
+
<xs:element name="Name" type="xs:string"/>
|
35
|
+
</xs:sequence>
|
36
|
+
</xs:complexType>
|
37
|
+
</xs:element>
|
38
|
+
</xs:sequence>
|
39
|
+
</xs:complexType>
|
40
|
+
</xs:element>
|
41
|
+
<xs:element name="Error" type="ErrorType" minOccurs="0"/>
|
42
|
+
</xs:sequence>
|
43
|
+
</xs:complexType>
|
44
|
+
</xs:element>
|
45
|
+
</xs:sequence>
|
46
|
+
<xs:attribute name="userId" type="xs:string"/>
|
47
|
+
<xs:attribute name="account" type="xs:string"/>
|
48
|
+
</xs:complexType>
|
49
|
+
</xs:element>
|
50
|
+
<xs:complexType name="ErrorType">
|
51
|
+
<xs:sequence>
|
52
|
+
<xs:element name="ErrorCode" type="xs:string"/>
|
53
|
+
<xs:element name="ErrorDescription" type="xs:string"/>
|
54
|
+
</xs:sequence>
|
55
|
+
</xs:complexType>
|
56
|
+
<xs:element name="Status">
|
57
|
+
<xs:simpleType>
|
58
|
+
<xs:restriction base="xs:string">
|
59
|
+
<xs:enumeration value="Complete"/>
|
60
|
+
<xs:enumeration value="Fail"/>
|
61
|
+
</xs:restriction>
|
62
|
+
</xs:simpleType>
|
63
|
+
</xs:element>
|
64
|
+
</xs:schema>
|
@@ -0,0 +1,55 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xs:schema targetNamespace="http://www.cpscreen.com/schemas" xmlns="http://www.cpscreen.com/schemas" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="1">
|
3
|
+
<xs:include schemaLocation="CPScreenings.xsd"/>
|
4
|
+
<xs:element name="BackgroundReports">
|
5
|
+
<xs:complexType>
|
6
|
+
<xs:sequence>
|
7
|
+
<xs:element name="BackgroundReportPackage" maxOccurs="unbounded">
|
8
|
+
<xs:complexType>
|
9
|
+
<xs:sequence>
|
10
|
+
<xs:element name="ProviderReferenceId" type="xs:string" minOccurs="0"/>
|
11
|
+
<xs:element name="PackageInformation" type="PackageInformationType" minOccurs="0"/>
|
12
|
+
<xs:element name="PersonalData" type="PersonalDataType" minOccurs="0"/>
|
13
|
+
<xs:element name="ScreeningStatus" type="ScreeningStatusType" minOccurs="0"/>
|
14
|
+
<xs:element name="ScreeningResults" type="ScreeningResultsType" minOccurs="0"/>
|
15
|
+
<xs:element name="SupportingDocumentation" minOccurs="0">
|
16
|
+
<xs:complexType>
|
17
|
+
<xs:sequence>
|
18
|
+
<xs:element name="InternetWebAddress" type="xs:string" minOccurs="0" />
|
19
|
+
</xs:sequence>
|
20
|
+
</xs:complexType>
|
21
|
+
</xs:element>
|
22
|
+
<xs:element name="Screenings" minOccurs="0">
|
23
|
+
<xs:complexType>
|
24
|
+
<xs:sequence>
|
25
|
+
<xs:element name="Screening" type="ScreeningType" minOccurs="0" maxOccurs="unbounded"/>
|
26
|
+
</xs:sequence>
|
27
|
+
</xs:complexType>
|
28
|
+
</xs:element>
|
29
|
+
<xs:element name="ErrorReport" type="ErrorReportType" minOccurs="0" maxOccurs="unbounded"/>
|
30
|
+
</xs:sequence>
|
31
|
+
<xs:attribute name="type">
|
32
|
+
<xs:simpleType>
|
33
|
+
<xs:restriction base="xs:NMTOKEN">
|
34
|
+
<xs:enumeration value="report"/>
|
35
|
+
<xs:enumeration value="errors"/>
|
36
|
+
<xs:enumeration value="message"/>
|
37
|
+
</xs:restriction>
|
38
|
+
</xs:simpleType>
|
39
|
+
</xs:attribute>
|
40
|
+
</xs:complexType>
|
41
|
+
</xs:element>
|
42
|
+
</xs:sequence>
|
43
|
+
<xs:attribute name="userId" type="xs:string">
|
44
|
+
<xs:annotation>
|
45
|
+
<xs:documentation>ChoicePoint assigned customer user id. The max length
|
46
|
+
of the userId is 30 characters.
|
47
|
+
</xs:documentation>
|
48
|
+
</xs:annotation>
|
49
|
+
</xs:attribute>
|
50
|
+
<xs:attribute name="account" type="xs:string"/>
|
51
|
+
<xs:attribute name="cpUserId" type="xs:string"/>
|
52
|
+
<xs:attribute name="cpPassword" type="xs:string"/>
|
53
|
+
</xs:complexType>
|
54
|
+
</xs:element>
|
55
|
+
</xs:schema>
|