checkr-official 1.7 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.github/workflows/tests.yml +27 -0
- data/Changelog.md +21 -13
- data/README.md +1 -1
- data/checkr-official.gemspec +1 -1
- data/lib/checkr/county_criminal_search.rb +3 -0
- data/lib/checkr/education_verification.rb +4 -0
- data/lib/checkr/employment_verification.rb +4 -0
- data/lib/checkr/eviction_search.rb +3 -0
- data/lib/checkr/federal_civil_search.rb +3 -0
- data/lib/checkr/federal_criminal_search.rb +3 -0
- data/lib/checkr/global_watchlist_search.rb +3 -0
- data/lib/checkr/motor_vehicle_report.rb +3 -0
- data/lib/checkr/national_criminal_search.rb +3 -0
- data/lib/checkr/report.rb +10 -7
- data/lib/checkr/sex_offender_search.rb +3 -0
- data/lib/checkr/ssn_trace.rb +3 -0
- data/lib/checkr/state_criminal_search.rb +3 -0
- data/lib/checkr/util.rb +3 -1
- data/lib/checkr/version.rb +1 -1
- data/lib/checkr.rb +2 -1
- data/test/checkr/county_criminal_search_test.rb +32 -0
- data/test/checkr/education_verification_test.rb +16 -0
- data/test/checkr/employment_verification_test.rb +16 -0
- data/test/checkr/eviction_search_test.rb +12 -0
- data/test/checkr/federal_civil_search_test.rb +12 -0
- data/test/checkr/federal_criminal_search_test.rb +12 -0
- data/test/checkr/{global_watchlist_search.rb → global_watchlist_search_test.rb} +12 -0
- data/test/checkr/motor_vehicle_report_test.rb +12 -0
- data/test/checkr/national_criminal_search_test.rb +12 -0
- data/test/checkr/report_test.rb +8 -0
- data/test/checkr/sex_offender_search_test.rb +12 -0
- data/test/checkr/ssn_trace_test.rb +12 -0
- data/test/checkr/state_criminal_search_test.rb +12 -0
- data/test/test_data.rb +48 -12
- metadata +8 -9
- data/.travis.yml +0 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: cc49b8f6bcd08fcddbfd4fa6f10480735744c4a86a6a9badf8d6cac97b76bc1f
|
|
4
|
+
data.tar.gz: e36a071772e61e5f472290939ed523cd6b6070686d04821e02ace4b44e673885
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 228cdd94c94246e58b8d2c1a9369afccafb5ed1ddb9a1d1a3b539ed513d8371e6e267b3bb65155afff75b55ab11b6d530bc80a9d3421cf72f585364e88be7afd
|
|
7
|
+
data.tar.gz: a096b3890d6124a9de5440baa2b292bab3422132d70f709a0f72962207b126fa7267dc4c3e52d8291cc55ea54ca0fac200e2d422438b6d8b7ea208a31b7f7516
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: Tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- "*"
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
test:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
strategy:
|
|
15
|
+
matrix:
|
|
16
|
+
ruby-version: [jruby, 2.7, 2.6]
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v2
|
|
20
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
|
21
|
+
uses: ruby/setup-ruby@03b78bdda287ae04217ee12e4b64996630a03542
|
|
22
|
+
with:
|
|
23
|
+
ruby-version: ${{ matrix.ruby-version }}
|
|
24
|
+
- name: Install dependencies
|
|
25
|
+
run: bundle install
|
|
26
|
+
- name: Run tests
|
|
27
|
+
run: bundle exec rake
|
data/Changelog.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 1.8.0 (2023-01-24)
|
|
2
|
+
|
|
3
|
+
- Add support for the Report Lifecycle
|
|
4
|
+
|
|
5
|
+
## 1.7.1 (2021-08-31)
|
|
6
|
+
|
|
7
|
+
- Remove usage of deprecated `URI.escape`
|
|
8
|
+
|
|
1
9
|
## 1.6.1 (2019-07-16)
|
|
2
10
|
|
|
3
11
|
Features:
|
|
@@ -51,59 +59,59 @@ Features:
|
|
|
51
59
|
|
|
52
60
|
Features:
|
|
53
61
|
|
|
54
|
-
|
|
55
|
-
|
|
62
|
+
- Add Package
|
|
63
|
+
- Add Program
|
|
56
64
|
|
|
57
65
|
## 1.2.1 (2017-10-25)
|
|
58
66
|
|
|
59
67
|
Fixes:
|
|
60
68
|
|
|
61
|
-
|
|
69
|
+
- Add `type` to Document (#33)
|
|
62
70
|
|
|
63
71
|
## 1.2.0 (2017-04-14)
|
|
64
72
|
|
|
65
73
|
Features:
|
|
66
74
|
|
|
67
|
-
|
|
75
|
+
- Add Invitation
|
|
68
76
|
|
|
69
77
|
Fixes:
|
|
70
78
|
|
|
71
|
-
|
|
72
|
-
|
|
79
|
+
- Add `document_ids` to Candidate
|
|
80
|
+
- Doc links
|
|
73
81
|
|
|
74
82
|
## 1.1.2 (2017-01-05)
|
|
75
83
|
|
|
76
84
|
Fixes:
|
|
77
85
|
|
|
78
|
-
|
|
86
|
+
- Gem dependencies version lock release
|
|
79
87
|
|
|
80
88
|
## 1.1.1 (2016-03-25)
|
|
81
89
|
|
|
82
90
|
Features:
|
|
83
91
|
|
|
84
|
-
|
|
85
|
-
|
|
92
|
+
- Add support for `Candidate#no_middle_name` flag (#8)
|
|
93
|
+
- Add Documents to Report (@sico, #12)
|
|
86
94
|
|
|
87
95
|
## 1.1.0 (2016-03-03)
|
|
88
96
|
|
|
89
97
|
Features:
|
|
90
98
|
|
|
91
|
-
|
|
99
|
+
- Adds Candidate#save method (@squaresurf, #6)
|
|
92
100
|
|
|
93
101
|
## 1.0.2 (2015-03-24)
|
|
94
102
|
|
|
95
103
|
Fixes:
|
|
96
104
|
|
|
97
|
-
|
|
105
|
+
- Fixed a bug - #4 - with Util.constantize
|
|
98
106
|
|
|
99
107
|
## 1.0.1 (2015-03-24)
|
|
100
108
|
|
|
101
109
|
Features:
|
|
102
110
|
|
|
103
|
-
|
|
111
|
+
- Updated documents class to feel like other classes
|
|
104
112
|
|
|
105
113
|
## 1.0 (2015-03-04)
|
|
106
114
|
|
|
107
115
|
Features:
|
|
108
116
|
|
|
109
|
-
|
|
117
|
+
- Initial release
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Checkr Ruby bindings [](https://github.com/checkr/checkr-ruby/actions) [](https://codeclimate.com/github/checkr/checkr-ruby)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Installation
|
data/checkr-official.gemspec
CHANGED
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
|
21
21
|
s.add_development_dependency('shoulda', '~> 3.4.0')
|
|
22
22
|
s.add_development_dependency('activesupport', '~> 4.2.6')
|
|
23
23
|
s.add_development_dependency('bump', '0.5.2')
|
|
24
|
-
s.add_development_dependency('rake', '
|
|
24
|
+
s.add_development_dependency('rake', '12.3.3')
|
|
25
25
|
s.add_development_dependency('test-unit')
|
|
26
26
|
|
|
27
27
|
s.files = `git ls-files`.split("\n")
|
|
@@ -2,6 +2,10 @@ module Checkr
|
|
|
2
2
|
class EducationVerification < APIResource
|
|
3
3
|
|
|
4
4
|
attribute :status
|
|
5
|
+
attribute :result
|
|
6
|
+
attribute :cancellation_reason
|
|
7
|
+
attribute :cancellation_reason_description
|
|
8
|
+
attribute :includes_canceled
|
|
5
9
|
attribute :completed_at
|
|
6
10
|
attribute :turnaround_time
|
|
7
11
|
attribute :records
|
|
@@ -2,6 +2,10 @@ module Checkr
|
|
|
2
2
|
class EmploymentVerification < APIResource
|
|
3
3
|
|
|
4
4
|
attribute :status
|
|
5
|
+
attribute :result
|
|
6
|
+
attribute :cancellation_reason
|
|
7
|
+
attribute :cancellation_reason_description
|
|
8
|
+
attribute :includes_canceled
|
|
5
9
|
attribute :completed_at
|
|
6
10
|
attribute :turnaround_time
|
|
7
11
|
attribute :records
|
data/lib/checkr/report.rb
CHANGED
|
@@ -2,6 +2,8 @@ module Checkr
|
|
|
2
2
|
class Report < APIResource
|
|
3
3
|
|
|
4
4
|
attribute :status
|
|
5
|
+
attribute :result
|
|
6
|
+
attribute :includes_canceled
|
|
5
7
|
attribute :adjudication
|
|
6
8
|
attribute :values
|
|
7
9
|
attribute :completed_at
|
|
@@ -11,7 +13,7 @@ module Checkr
|
|
|
11
13
|
attribute :candidate, :Candidate
|
|
12
14
|
attribute_writer_alias :candidate_id, :candidate
|
|
13
15
|
|
|
14
|
-
attribute :adverse_items, :AdverseItemList, :
|
|
16
|
+
attribute :adverse_items, :AdverseItemList, nested: true, default: {}
|
|
15
17
|
attribute_writer_alias :adverse_item_ids, :adverse_items
|
|
16
18
|
|
|
17
19
|
attribute :ssn_trace, :SSNTrace
|
|
@@ -47,10 +49,10 @@ module Checkr
|
|
|
47
49
|
attribute :documents, APIList.constructor(:Document)
|
|
48
50
|
attribute_writer_alias :document_ids, :documents
|
|
49
51
|
|
|
50
|
-
attribute :geos, APIList.constructor(:Geo), :
|
|
52
|
+
attribute :geos, APIList.constructor(:Geo), default: {}
|
|
51
53
|
attribute_writer_alias :geo_ids, :geos
|
|
52
54
|
|
|
53
|
-
attribute :verifications, :VerificationList, :
|
|
55
|
+
attribute :verifications, :VerificationList, nested: true, default: {}
|
|
54
56
|
attribute_writer_alias :verification_ids, :verifications
|
|
55
57
|
|
|
56
58
|
attribute :education_verification, :EducationVerification
|
|
@@ -59,15 +61,16 @@ module Checkr
|
|
|
59
61
|
attribute :employment_verification, :EmploymentVerification
|
|
60
62
|
attribute_writer_alias :employment_verification_id, :employment_verification
|
|
61
63
|
|
|
62
|
-
api_class_method :retrieve, :get,
|
|
64
|
+
api_class_method :retrieve, :get, ':path/:id', arguments: [:id]
|
|
63
65
|
api_class_method :create, :post
|
|
64
66
|
|
|
65
|
-
api_instance_method :save, :post, :
|
|
67
|
+
api_instance_method :save, :post, default_params: :changed_attributes
|
|
66
68
|
|
|
67
69
|
def self.path
|
|
68
|
-
|
|
70
|
+
'/v1/reports'
|
|
69
71
|
end
|
|
70
72
|
|
|
71
|
-
APIClass.register_subclass(self,
|
|
73
|
+
APIClass.register_subclass(self, 'report')
|
|
74
|
+
|
|
72
75
|
end
|
|
73
76
|
end
|
data/lib/checkr/ssn_trace.rb
CHANGED
data/lib/checkr/util.rb
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
require 'erb'
|
|
2
|
+
|
|
1
3
|
module Checkr
|
|
2
4
|
module Util
|
|
3
5
|
|
|
@@ -38,7 +40,7 @@ module Checkr
|
|
|
38
40
|
end
|
|
39
41
|
|
|
40
42
|
def self.escape(val)
|
|
41
|
-
|
|
43
|
+
ERB::Util.url_encode(val.to_s)
|
|
42
44
|
end
|
|
43
45
|
|
|
44
46
|
def self.symbolize_keys(obj)
|
data/lib/checkr/version.rb
CHANGED
data/lib/checkr.rb
CHANGED
|
@@ -77,7 +77,8 @@ module Checkr
|
|
|
77
77
|
|
|
78
78
|
if [:get, :head, :delete].include?(method.to_s.downcase.to_sym)
|
|
79
79
|
unless params.empty?
|
|
80
|
-
url += URI.parse(url).query ? '&' : '?'
|
|
80
|
+
url += URI.parse(url).query ? '&' : '?'
|
|
81
|
+
url += Util.query_string(params)
|
|
81
82
|
end
|
|
82
83
|
params = nil
|
|
83
84
|
end
|
|
@@ -47,6 +47,18 @@ module Checkr
|
|
|
47
47
|
assert_equal(test_county_criminal_search[:status], @county_criminal_search.status)
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
+
should 'have the result attribute' do
|
|
51
|
+
assert_equal(test_county_criminal_search[:result], @county_criminal_search.result)
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
should 'have the cancellation_reason attribute' do
|
|
55
|
+
assert_equal(test_county_criminal_search[:cancellation_reason], @county_criminal_search.cancellation_reason)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
should 'have the cancellation_reason_description attribute' do
|
|
59
|
+
assert_equal(test_county_criminal_search[:cancellation_reason_description], @county_criminal_search.cancellation_reason_description)
|
|
60
|
+
end
|
|
61
|
+
|
|
50
62
|
should 'have the created_at attribute' do
|
|
51
63
|
assert_equal(test_county_criminal_search[:created_at], @county_criminal_search.created_at)
|
|
52
64
|
end
|
|
@@ -73,6 +85,26 @@ module Checkr
|
|
|
73
85
|
|
|
74
86
|
end
|
|
75
87
|
|
|
88
|
+
context 'have cancellation reasons' do
|
|
89
|
+
setup do
|
|
90
|
+
@mock.expects(:get).once.returns(test_response(test_county_criminal_search.merge(
|
|
91
|
+
{
|
|
92
|
+
status: 'canceled',
|
|
93
|
+
result: nil,
|
|
94
|
+
cancellation_reason: 'complete_now_customer_requested',
|
|
95
|
+
cancellation_reason_description: 'Customer requested Complete Now prior to screening completion',
|
|
96
|
+
})))
|
|
97
|
+
@county_criminal_search = CountyCriminalSearch.retrieve('county_criminal_search_id')
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
should 'have the correct attribute' do
|
|
101
|
+
assert_equal(@county_criminal_search.status, 'canceled')
|
|
102
|
+
assert_equal(@county_criminal_search.result, nil)
|
|
103
|
+
assert_equal(@county_criminal_search.cancellation_reason, 'complete_now_customer_requested')
|
|
104
|
+
assert_equal(@county_criminal_search.cancellation_reason_description, 'Customer requested Complete Now prior to screening completion')
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
76
108
|
should 'be registered' do
|
|
77
109
|
assert(APIClass.subclasses.include?(CountyCriminalSearch))
|
|
78
110
|
assert_equal(CountyCriminalSearch, APIClass.subclass_fetch("county_criminal_search"))
|
|
@@ -51,6 +51,22 @@ module Checkr
|
|
|
51
51
|
assert_equal(test_education_verification[:status], @education_verification.status)
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
+
should 'have the result attribute' do
|
|
55
|
+
assert_equal(test_education_verification[:result], @education_verification.result)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
should 'have the cancellation_reason attribute' do
|
|
59
|
+
assert_equal(test_education_verification[:cancellation_reason], @education_verification.cancellation_reason)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
should 'have the cancellation_reason_description attribute' do
|
|
63
|
+
assert_equal(test_education_verification[:cancellation_reason_description], @education_verification.cancellation_reason_description)
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
should 'have the includes_canceled attribute' do
|
|
67
|
+
assert_equal(test_education_verification[:includes_canceled], @education_verification.includes_canceled)
|
|
68
|
+
end
|
|
69
|
+
|
|
54
70
|
should 'have the created_at attribute' do
|
|
55
71
|
assert_equal(test_education_verification[:created_at],
|
|
56
72
|
@education_verification.created_at)
|
|
@@ -51,6 +51,22 @@ module Checkr
|
|
|
51
51
|
assert_equal(test_employment_verification[:status], @employment_verification.status)
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
+
should 'have the result attribute' do
|
|
55
|
+
assert_equal(test_employment_verification[:result], @employment_verification.result)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
should 'have the cancellation_reason attribute' do
|
|
59
|
+
assert_equal(test_employment_verification[:cancellation_reason], @employment_verification.cancellation_reason)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
should 'have the cancellation_reason_description attribute' do
|
|
63
|
+
assert_equal(test_employment_verification[:cancellation_reason_description], @employment_verification.cancellation_reason_description)
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
should 'have the includes_canceled attribute' do
|
|
67
|
+
assert_equal(test_employment_verification[:includes_canceled], @employment_verification.includes_canceled)
|
|
68
|
+
end
|
|
69
|
+
|
|
54
70
|
should 'have the created_at attribute' do
|
|
55
71
|
assert_equal(test_employment_verification[:created_at],
|
|
56
72
|
@employment_verification.created_at)
|
|
@@ -47,6 +47,18 @@ module Checkr
|
|
|
47
47
|
assert_equal(test_eviction_search[:status], @eviction_search.status)
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
+
should 'have the result attribute' do
|
|
51
|
+
assert_equal(test_eviction_search[:result], @eviction_search.result)
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
should 'have the cancellation_reason attribute' do
|
|
55
|
+
assert_equal(test_eviction_search[:cancellation_reason], @eviction_search.cancellation_reason)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
should 'have the cancellation_reason_description attribute' do
|
|
59
|
+
assert_equal(test_eviction_search[:cancellation_reason_description], @eviction_search.cancellation_reason_description)
|
|
60
|
+
end
|
|
61
|
+
|
|
50
62
|
should 'have the created_at attribute' do
|
|
51
63
|
assert_equal(test_eviction_search[:created_at], @eviction_search.created_at)
|
|
52
64
|
end
|
|
@@ -47,6 +47,18 @@ module Checkr
|
|
|
47
47
|
assert_equal(test_federal_civil_search[:status], @federal_civil_search.status)
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
+
should 'have the result attribute' do
|
|
51
|
+
assert_equal(test_federal_civil_search[:result], @federal_civil_search.result)
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
should 'have the cancellation_reason attribute' do
|
|
55
|
+
assert_equal(test_federal_civil_search[:cancellation_reason], @federal_civil_search.cancellation_reason)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
should 'have the cancellation_reason_description attribute' do
|
|
59
|
+
assert_equal(test_federal_civil_search[:cancellation_reason_description], @federal_civil_search.cancellation_reason_description)
|
|
60
|
+
end
|
|
61
|
+
|
|
50
62
|
should 'have the created_at attribute' do
|
|
51
63
|
assert_equal(test_federal_civil_search[:created_at], @federal_civil_search.created_at)
|
|
52
64
|
end
|
|
@@ -47,6 +47,18 @@ module Checkr
|
|
|
47
47
|
assert_equal(test_federal_criminal_search[:status], @federal_criminal_search.status)
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
+
should 'have the result attribute' do
|
|
51
|
+
assert_equal(test_federal_criminal_search[:result], @federal_criminal_search.result)
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
should 'have the cancellation_reason attribute' do
|
|
55
|
+
assert_equal(test_federal_criminal_search[:cancellation_reason], @federal_criminal_search.cancellation_reason)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
should 'have the cancellation_reason_description attribute' do
|
|
59
|
+
assert_equal(test_federal_criminal_search[:cancellation_reason_description], @federal_criminal_search.cancellation_reason_description)
|
|
60
|
+
end
|
|
61
|
+
|
|
50
62
|
should 'have the created_at attribute' do
|
|
51
63
|
assert_equal(test_federal_criminal_search[:created_at], @federal_criminal_search.created_at)
|
|
52
64
|
end
|
|
@@ -47,6 +47,18 @@ module Checkr
|
|
|
47
47
|
assert_equal(test_global_watchlist_search[:status], @global_watchlist_search.status)
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
+
should 'have the result attribute' do
|
|
51
|
+
assert_equal(test_global_watchlist_search[:result], @global_watchlist_search.result)
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
should 'have the cancellation_reason attribute' do
|
|
55
|
+
assert_equal(test_global_watchlist_search[:cancellation_reason], @global_watchlist_search.cancellation_reason)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
should 'have the cancellation_reason_description attribute' do
|
|
59
|
+
assert_equal(test_global_watchlist_search[:cancellation_reason_description], @global_watchlist_search.cancellation_reason_description)
|
|
60
|
+
end
|
|
61
|
+
|
|
50
62
|
should 'have the created_at attribute' do
|
|
51
63
|
assert_equal(test_global_watchlist_search[:created_at], @global_watchlist_search.created_at)
|
|
52
64
|
end
|
|
@@ -47,6 +47,18 @@ module Checkr
|
|
|
47
47
|
assert_equal(test_motor_vehicle_report[:status], @motor_vehicle_report.status)
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
+
should 'have the result attribute' do
|
|
51
|
+
assert_equal(test_motor_vehicle_report[:result], @motor_vehicle_report.result)
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
should 'have the cancellation_reason attribute' do
|
|
55
|
+
assert_equal(test_motor_vehicle_report[:cancellation_reason], @motor_vehicle_report.cancellation_reason)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
should 'have the cancellation_reason_description attribute' do
|
|
59
|
+
assert_equal(test_motor_vehicle_report[:cancellation_reason_description], @motor_vehicle_report.cancellation_reason_description)
|
|
60
|
+
end
|
|
61
|
+
|
|
50
62
|
should 'have the created_at attribute' do
|
|
51
63
|
assert_equal(test_motor_vehicle_report[:created_at], @motor_vehicle_report.created_at)
|
|
52
64
|
end
|
|
@@ -47,6 +47,18 @@ module Checkr
|
|
|
47
47
|
assert_equal(test_national_criminal_search[:status], @national_criminal_search.status)
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
+
should 'have the result attribute' do
|
|
51
|
+
assert_equal(test_national_criminal_search[:result], @national_criminal_search.result)
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
should 'have the cancellation_reason attribute' do
|
|
55
|
+
assert_equal(test_national_criminal_search[:cancellation_reason], @national_criminal_search.cancellation_reason)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
should 'have the cancellation_reason_description attribute' do
|
|
59
|
+
assert_equal(test_national_criminal_search[:cancellation_reason_description], @national_criminal_search.cancellation_reason_description)
|
|
60
|
+
end
|
|
61
|
+
|
|
50
62
|
should 'have the created_at attribute' do
|
|
51
63
|
assert_equal(test_national_criminal_search[:created_at], @national_criminal_search.created_at)
|
|
52
64
|
end
|
data/test/checkr/report_test.rb
CHANGED
|
@@ -67,6 +67,14 @@ module Checkr
|
|
|
67
67
|
assert_equal(test_report[:status], @report.status)
|
|
68
68
|
end
|
|
69
69
|
|
|
70
|
+
should 'have the result attribute' do
|
|
71
|
+
assert_equal(test_report[:result], @report.result)
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
should 'have the includes_canceled attribute' do
|
|
75
|
+
assert_equal(test_report[:includes_canceled], @report.includes_canceled)
|
|
76
|
+
end
|
|
77
|
+
|
|
70
78
|
should 'have the adjudication attribute' do
|
|
71
79
|
assert_equal(test_report[:adjudication], @report.adjudication)
|
|
72
80
|
end
|
|
@@ -47,6 +47,18 @@ module Checkr
|
|
|
47
47
|
assert_equal(test_sex_offender_search[:status], @sex_offender_search.status)
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
+
should 'have the result attribute' do
|
|
51
|
+
assert_equal(test_sex_offender_search[:result], @sex_offender_search.result)
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
should 'have the cancellation_reason attribute' do
|
|
55
|
+
assert_equal(test_sex_offender_search[:cancellation_reason], @sex_offender_search.cancellation_reason)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
should 'have the cancellation_reason_description attribute' do
|
|
59
|
+
assert_equal(test_sex_offender_search[:cancellation_reason_description], @sex_offender_search.cancellation_reason_description)
|
|
60
|
+
end
|
|
61
|
+
|
|
50
62
|
should 'have the created_at attribute' do
|
|
51
63
|
assert_equal(test_sex_offender_search[:created_at], @sex_offender_search.created_at)
|
|
52
64
|
end
|
|
@@ -47,6 +47,18 @@ module Checkr
|
|
|
47
47
|
assert_equal(test_ssn_trace[:status], @ssn_trace.status)
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
+
should 'have the result attribute' do
|
|
51
|
+
assert_equal(test_ssn_trace[:result], @ssn_trace.result)
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
should 'have the cancellation_reason attribute' do
|
|
55
|
+
assert_equal(test_ssn_trace[:cancellation_reason], @ssn_trace.cancellation_reason)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
should 'have the cancellation_reason_description attribute' do
|
|
59
|
+
assert_equal(test_ssn_trace[:cancellation_reason_description], @ssn_trace.cancellation_reason_description)
|
|
60
|
+
end
|
|
61
|
+
|
|
50
62
|
should 'have the created_at attribute' do
|
|
51
63
|
assert_equal(test_ssn_trace[:created_at], @ssn_trace.created_at)
|
|
52
64
|
end
|
|
@@ -51,6 +51,18 @@ module Checkr
|
|
|
51
51
|
assert_equal(test_state_criminal_search[:status], @state_criminal_search.status)
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
+
should 'have the result attribute' do
|
|
55
|
+
assert_equal(test_state_criminal_search[:result], @state_criminal_search.result)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
should 'have the cancellation_reason attribute' do
|
|
59
|
+
assert_equal(test_state_criminal_search[:cancellation_reason], @state_criminal_search.cancellation_reason)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
should 'have the cancellation_reason_description attribute' do
|
|
63
|
+
assert_equal(test_state_criminal_search[:cancellation_reason_description], @state_criminal_search.cancellation_reason_description)
|
|
64
|
+
end
|
|
65
|
+
|
|
54
66
|
should 'have the created_at attribute' do
|
|
55
67
|
assert_equal(test_state_criminal_search[:created_at], @state_criminal_search.created_at)
|
|
56
68
|
end
|
data/test/test_data.rb
CHANGED
|
@@ -76,7 +76,8 @@ module Checkr
|
|
|
76
76
|
{:id=>"4722c07dd9a10c3985ae432a",
|
|
77
77
|
:object=>"report",
|
|
78
78
|
:uri=>"/v1/reports/4722c07dd9a10c3985ae432a",
|
|
79
|
-
:status=>"
|
|
79
|
+
:status=>"complete",
|
|
80
|
+
:result=>"clear",
|
|
80
81
|
:adjudication=>nil,
|
|
81
82
|
:created_at=>"2014-01-18T12:34:00Z",
|
|
82
83
|
:completed_at=>"2014-01-18T12:35:30Z",
|
|
@@ -176,7 +177,10 @@ module Checkr
|
|
|
176
177
|
{:id=>"539fd88c101897f7cd000001",
|
|
177
178
|
:object=>"ssn_trace",
|
|
178
179
|
:uri=>"/v1/ssn_traces/539fd88c101897f7cd000001",
|
|
179
|
-
:status=>"
|
|
180
|
+
:status=>"complete",
|
|
181
|
+
:result=>nil,
|
|
182
|
+
:cancellation_reason=>nil,
|
|
183
|
+
:cancellation_reason_description=>nil,
|
|
180
184
|
:created_at=>"2014-01-18T12:34:00Z",
|
|
181
185
|
:completed_at=>"2014-01-18T12:35:30Z",
|
|
182
186
|
:turnaround_time=>90,
|
|
@@ -204,7 +208,10 @@ module Checkr
|
|
|
204
208
|
{:id=>"539fd88c101897f7cd000008",
|
|
205
209
|
:object=>"sex_offender_search",
|
|
206
210
|
:uri=>"/v1/sex_offender_searches/539fd88c101897f7cd000008",
|
|
207
|
-
:status=>"
|
|
211
|
+
:status=>"complete",
|
|
212
|
+
:result=>"consider",
|
|
213
|
+
:cancellation_reason=>nil,
|
|
214
|
+
:cancellation_reason_description=>nil,
|
|
208
215
|
:created_at=>"2014-01-18T12:34:00Z",
|
|
209
216
|
:completed_at=>"2014-01-18T12:35:30Z",
|
|
210
217
|
:turnaround_time=>90,
|
|
@@ -238,7 +245,10 @@ module Checkr
|
|
|
238
245
|
{:id=>"539fd88c101897f7cd000008",
|
|
239
246
|
:object=>"global_watchlist_search",
|
|
240
247
|
:uri=>"/v1/global_watchlist_searches/539fd88c101897f7cd000008",
|
|
241
|
-
:status=>"
|
|
248
|
+
:status=>"complete",
|
|
249
|
+
:result=>"consider",
|
|
250
|
+
:cancellation_reason=>nil,
|
|
251
|
+
:cancellation_reason_description=>nil,
|
|
242
252
|
:created_at=>"2014-01-18T12:34:00Z",
|
|
243
253
|
:completed_at=>"2014-01-18T12:35:30Z",
|
|
244
254
|
:turnaround_time=>90,
|
|
@@ -271,7 +281,10 @@ module Checkr
|
|
|
271
281
|
|
|
272
282
|
def test_federal_criminal_search
|
|
273
283
|
{
|
|
274
|
-
:status=>"
|
|
284
|
+
:status=>"complete",
|
|
285
|
+
:result=>"clear",
|
|
286
|
+
:cancellation_reason=>nil,
|
|
287
|
+
:cancellation_reason_description=>nil,
|
|
275
288
|
:completed_at=>"2018-04-27T05:21:18Z",
|
|
276
289
|
:turnaround_time=>144.912,
|
|
277
290
|
:records=>[],
|
|
@@ -284,7 +297,10 @@ module Checkr
|
|
|
284
297
|
|
|
285
298
|
def test_federal_civil_search
|
|
286
299
|
{
|
|
287
|
-
:status=>"
|
|
300
|
+
:status=>"complete",
|
|
301
|
+
:result=>"consider",
|
|
302
|
+
:cancellation_reason=>nil,
|
|
303
|
+
:cancellation_reason_description=>nil,
|
|
288
304
|
:completed_at=>"2018-04-27T05:23:12Z",
|
|
289
305
|
:turnaround_time=>271.332,
|
|
290
306
|
:records=>[
|
|
@@ -312,7 +328,10 @@ module Checkr
|
|
|
312
328
|
{:id=>"539fd88c101897f7cd000006",
|
|
313
329
|
:object=>"national_criminal_search",
|
|
314
330
|
:uri=>"/v1/national_criminal_searches/539fd88c101897f7cd000006",
|
|
315
|
-
:status=>"
|
|
331
|
+
:status=>"complete",
|
|
332
|
+
:result=>"consider",
|
|
333
|
+
:cancellation_reason=>nil,
|
|
334
|
+
:cancellation_reason_description=>nil,
|
|
316
335
|
:created_at=>"2014-01-18T12:34:00Z",
|
|
317
336
|
:completed_at=>"2014-01-18T12:35:30Z",
|
|
318
337
|
:turnaround_time=>90,
|
|
@@ -347,7 +366,10 @@ module Checkr
|
|
|
347
366
|
{:id=>"539fdcf335644a0ef4000001",
|
|
348
367
|
:object=>"county_criminal_search",
|
|
349
368
|
:uri=>"/v1/county_criminal_searches/539fdcf335644a0ef4000001",
|
|
350
|
-
:status=>"
|
|
369
|
+
:status=>"complete",
|
|
370
|
+
:result=>"consider",
|
|
371
|
+
:cancellation_reason=>"complete_now_customer_requested",
|
|
372
|
+
:cancellation_reason_description=>" Customer requested Complete Now prior to screening completion",
|
|
351
373
|
:created_at=>"2014-01-18T12:34:00Z",
|
|
352
374
|
:completed_at=>"2014-01-18T12:35:30Z",
|
|
353
375
|
:turnaround_time=>100800,
|
|
@@ -415,7 +437,10 @@ module Checkr
|
|
|
415
437
|
{:id=>"539fd88c101897f7cd000007",
|
|
416
438
|
:object=>"motor_vehicle_report",
|
|
417
439
|
:uri=>"/v1/motor_vehicle_reports/539fd88c101897f7cd000007",
|
|
418
|
-
:status=>"
|
|
440
|
+
:status=>"complete",
|
|
441
|
+
:result => "consider",
|
|
442
|
+
:cancellation_reason => nil,
|
|
443
|
+
:cancellation_reason_description => nil,
|
|
419
444
|
:created_at=>"2014-01-18T12:34:00Z",
|
|
420
445
|
:completed_at=>"2014-01-18T12:35:30Z",
|
|
421
446
|
:turnaround_time=>90,
|
|
@@ -480,7 +505,10 @@ module Checkr
|
|
|
480
505
|
{ :id => "539fd88c101897f7cd000008",
|
|
481
506
|
:object => "eviction",
|
|
482
507
|
:uri => "/v1/evictions/539fd88c101897f7cd000008",
|
|
483
|
-
:status => "
|
|
508
|
+
:status => "complete",
|
|
509
|
+
:result=>"consider",
|
|
510
|
+
:cancellation_reason=>nil,
|
|
511
|
+
:cancellation_reason_description=>nil,
|
|
484
512
|
:created_at => "2014-01-18T12:34:00Z",
|
|
485
513
|
:completed_at => "2014-01-18T12:35:30Z",
|
|
486
514
|
:turnaround_time => 90,
|
|
@@ -581,7 +609,11 @@ module Checkr
|
|
|
581
609
|
{:id => "5af5e030d24297006cce1e06",
|
|
582
610
|
:object => "education_verification",
|
|
583
611
|
:uri => "/v1/education_verifications/5af5e030d24297006cce1e06",
|
|
584
|
-
:status => "
|
|
612
|
+
:status => "complete",
|
|
613
|
+
:result=>"consider",
|
|
614
|
+
:cancellation_reason=>nil,
|
|
615
|
+
:cancellation_reason_description=>nil,
|
|
616
|
+
:includes_canceled=>false,
|
|
585
617
|
:created_at => "2018-05-11T18:25:52Z",
|
|
586
618
|
:completed_at => "2018-05-11T18:26:04Z",
|
|
587
619
|
:turnaround_time => 12,
|
|
@@ -592,7 +624,11 @@ module Checkr
|
|
|
592
624
|
{ id: "5cd42657682ee80028cece4c",
|
|
593
625
|
object: "employment_verification",
|
|
594
626
|
uri: "/v1/employment_verifications/5cd42657682ee80028cece4c",
|
|
595
|
-
status: "
|
|
627
|
+
status: "complete",
|
|
628
|
+
result: "clear",
|
|
629
|
+
cancellation_reason: nil,
|
|
630
|
+
cancellation_reason_description: nil,
|
|
631
|
+
includes_canceled: false,
|
|
596
632
|
created_at: "2019-05-09T13:08:39Z",
|
|
597
633
|
completed_at: "2019-05-13T12:50:47Z",
|
|
598
634
|
turnaround_time: 344528,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: checkr-official
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 1.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Checkr Engineering Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-01-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|
|
@@ -100,14 +100,14 @@ dependencies:
|
|
|
100
100
|
requirements:
|
|
101
101
|
- - '='
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
|
-
version:
|
|
103
|
+
version: 12.3.3
|
|
104
104
|
type: :development
|
|
105
105
|
prerelease: false
|
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
|
108
108
|
- - '='
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
|
-
version:
|
|
110
|
+
version: 12.3.3
|
|
111
111
|
- !ruby/object:Gem::Dependency
|
|
112
112
|
name: test-unit
|
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -132,9 +132,9 @@ executables:
|
|
|
132
132
|
extensions: []
|
|
133
133
|
extra_rdoc_files: []
|
|
134
134
|
files:
|
|
135
|
+
- ".github/workflows/tests.yml"
|
|
135
136
|
- ".gitignore"
|
|
136
137
|
- ".rubocop.yml"
|
|
137
|
-
- ".travis.yml"
|
|
138
138
|
- Changelog.md
|
|
139
139
|
- Gemfile
|
|
140
140
|
- LICENSE
|
|
@@ -216,7 +216,7 @@ files:
|
|
|
216
216
|
- test/checkr/federal_civil_search_test.rb
|
|
217
217
|
- test/checkr/federal_criminal_search_test.rb
|
|
218
218
|
- test/checkr/geo_test.rb
|
|
219
|
-
- test/checkr/
|
|
219
|
+
- test/checkr/global_watchlist_search_test.rb
|
|
220
220
|
- test/checkr/invitation_test.rb
|
|
221
221
|
- test/checkr/motor_vehicle_report_test.rb
|
|
222
222
|
- test/checkr/national_criminal_search_test.rb
|
|
@@ -253,8 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
253
253
|
- !ruby/object:Gem::Version
|
|
254
254
|
version: '0'
|
|
255
255
|
requirements: []
|
|
256
|
-
|
|
257
|
-
rubygems_version: 2.5.2.3
|
|
256
|
+
rubygems_version: 3.0.3.1
|
|
258
257
|
signing_key:
|
|
259
258
|
specification_version: 4
|
|
260
259
|
summary: Ruby bindings for Checkr API
|
|
@@ -276,7 +275,7 @@ test_files:
|
|
|
276
275
|
- test/checkr/federal_civil_search_test.rb
|
|
277
276
|
- test/checkr/federal_criminal_search_test.rb
|
|
278
277
|
- test/checkr/geo_test.rb
|
|
279
|
-
- test/checkr/
|
|
278
|
+
- test/checkr/global_watchlist_search_test.rb
|
|
280
279
|
- test/checkr/invitation_test.rb
|
|
281
280
|
- test/checkr/motor_vehicle_report_test.rb
|
|
282
281
|
- test/checkr/national_criminal_search_test.rb
|