onfido 5.0.0 → 5.1.1
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 +4 -4
- data/CHANGELOG.md +27 -0
- data/README.md +2 -2
- data/lib/onfido/api/default_api.rb +63 -0
- data/lib/onfido/api_client.rb +2 -2
- data/lib/onfido/models/applicant_consent.rb +272 -0
- data/lib/onfido/models/device_intelligence_breakdown.rb +10 -1
- data/lib/onfido/models/device_intelligence_breakdown_breakdown.rb +1 -1
- data/lib/onfido/models/{device_intelligence_breakdown_breakdown_device.rb → device_intelligence_breakdown_device.rb} +4 -4
- data/lib/onfido/models/{device_intelligence_breakdown_breakdown_device_breakdown.rb → device_intelligence_breakdown_device_breakdown.rb} +3 -3
- data/lib/onfido/models/device_intelligence_breakdown_properties_device.rb +1 -1
- data/lib/onfido/models/device_intelligence_properties.rb +232 -0
- data/lib/onfido/models/device_intelligence_report.rb +13 -4
- data/lib/onfido/models/document_properties.rb +4 -2
- data/lib/onfido/models/{document_properties_driving_licence_information.rb → document_properties_driving_licence_information_item.rb} +3 -3
- data/lib/onfido/models/document_with_driver_verification_report_all_of_properties.rb +4 -2
- data/lib/onfido/models/webhook.rb +51 -1
- data/lib/onfido/models/webhook_builder.rb +51 -1
- data/lib/onfido/models/webhook_shared.rb +54 -4
- data/lib/onfido/models/webhook_updater.rb +51 -1
- data/lib/onfido/version.rb +1 -1
- data/lib/onfido.rb +5 -3
- data/spec/integrations/applicant_spec.rb +28 -0
- data/spec/integrations/check_spec.rb +4 -3
- data/spec/integrations/document_spec.rb +7 -6
- data/spec/integrations/id_photo_spec.rb +4 -3
- data/spec/integrations/live_photo_spec.rb +4 -3
- data/spec/integrations/live_video_spec.rb +7 -6
- data/spec/integrations/motion_capture_spec.rb +7 -6
- data/spec/integrations/report_schema_spec.rb +33 -0
- data/spec/integrations/workflow_run_spec.rb +7 -5
- data/spec/shared_examples/file_examples.rb +44 -0
- metadata +29 -25
@@ -27,6 +27,21 @@ module Onfido
|
|
27
27
|
# Webhook version used to control the payload object when sending webhooks.
|
28
28
|
attr_accessor :payload_version
|
29
29
|
|
30
|
+
# Determines if the webhook will fetch OAuth access tokens to send in the Authorization header.
|
31
|
+
attr_accessor :oauth_enabled
|
32
|
+
|
33
|
+
# The url to fetch the OAuth access token using client credentials grant.
|
34
|
+
attr_accessor :oauth_server_url
|
35
|
+
|
36
|
+
# The client id to authenticate the client credentials grant.
|
37
|
+
attr_accessor :oauth_server_client_id
|
38
|
+
|
39
|
+
# The client secret to authenticate the client credentials grant.
|
40
|
+
attr_accessor :oauth_server_client_secret
|
41
|
+
|
42
|
+
# The scopes to be sent when requesting the access token.
|
43
|
+
attr_accessor :oauth_server_scope
|
44
|
+
|
30
45
|
# The url that will listen to notifications (must be https).
|
31
46
|
attr_accessor :url
|
32
47
|
|
@@ -37,6 +52,11 @@ module Onfido
|
|
37
52
|
:'events' => :'events',
|
38
53
|
:'environments' => :'environments',
|
39
54
|
:'payload_version' => :'payload_version',
|
55
|
+
:'oauth_enabled' => :'oauth_enabled',
|
56
|
+
:'oauth_server_url' => :'oauth_server_url',
|
57
|
+
:'oauth_server_client_id' => :'oauth_server_client_id',
|
58
|
+
:'oauth_server_client_secret' => :'oauth_server_client_secret',
|
59
|
+
:'oauth_server_scope' => :'oauth_server_scope',
|
40
60
|
:'url' => :'url'
|
41
61
|
}
|
42
62
|
end
|
@@ -53,6 +73,11 @@ module Onfido
|
|
53
73
|
:'events' => :'Array<WebhookEventType>',
|
54
74
|
:'environments' => :'Array<String>',
|
55
75
|
:'payload_version' => :'Integer',
|
76
|
+
:'oauth_enabled' => :'Boolean',
|
77
|
+
:'oauth_server_url' => :'String',
|
78
|
+
:'oauth_server_client_id' => :'String',
|
79
|
+
:'oauth_server_client_secret' => :'String',
|
80
|
+
:'oauth_server_scope' => :'String',
|
56
81
|
:'url' => :'String'
|
57
82
|
}
|
58
83
|
end
|
@@ -106,6 +131,26 @@ module Onfido
|
|
106
131
|
self.payload_version = attributes[:'payload_version']
|
107
132
|
end
|
108
133
|
|
134
|
+
if attributes.key?(:'oauth_enabled')
|
135
|
+
self.oauth_enabled = attributes[:'oauth_enabled']
|
136
|
+
end
|
137
|
+
|
138
|
+
if attributes.key?(:'oauth_server_url')
|
139
|
+
self.oauth_server_url = attributes[:'oauth_server_url']
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes.key?(:'oauth_server_client_id')
|
143
|
+
self.oauth_server_client_id = attributes[:'oauth_server_client_id']
|
144
|
+
end
|
145
|
+
|
146
|
+
if attributes.key?(:'oauth_server_client_secret')
|
147
|
+
self.oauth_server_client_secret = attributes[:'oauth_server_client_secret']
|
148
|
+
end
|
149
|
+
|
150
|
+
if attributes.key?(:'oauth_server_scope')
|
151
|
+
self.oauth_server_scope = attributes[:'oauth_server_scope']
|
152
|
+
end
|
153
|
+
|
109
154
|
if attributes.key?(:'url')
|
110
155
|
self.url = attributes[:'url']
|
111
156
|
end
|
@@ -135,6 +180,11 @@ module Onfido
|
|
135
180
|
events == o.events &&
|
136
181
|
environments == o.environments &&
|
137
182
|
payload_version == o.payload_version &&
|
183
|
+
oauth_enabled == o.oauth_enabled &&
|
184
|
+
oauth_server_url == o.oauth_server_url &&
|
185
|
+
oauth_server_client_id == o.oauth_server_client_id &&
|
186
|
+
oauth_server_client_secret == o.oauth_server_client_secret &&
|
187
|
+
oauth_server_scope == o.oauth_server_scope &&
|
138
188
|
url == o.url
|
139
189
|
end
|
140
190
|
|
@@ -147,7 +197,7 @@ module Onfido
|
|
147
197
|
# Calculates hash code according to all attributes.
|
148
198
|
# @return [Integer] Hash code
|
149
199
|
def hash
|
150
|
-
[enabled, events, environments, payload_version, url].hash
|
200
|
+
[enabled, events, environments, payload_version, oauth_enabled, oauth_server_url, oauth_server_client_id, oauth_server_client_secret, oauth_server_scope, url].hash
|
151
201
|
end
|
152
202
|
|
153
203
|
# Builds the object from hash
|
data/lib/onfido/version.rb
CHANGED
data/lib/onfido.rb
CHANGED
@@ -23,6 +23,7 @@ require 'onfido/models/address_shared'
|
|
23
23
|
require 'onfido/models/addresses_list'
|
24
24
|
require 'onfido/models/applicant'
|
25
25
|
require 'onfido/models/applicant_builder'
|
26
|
+
require 'onfido/models/applicant_consent'
|
26
27
|
require 'onfido/models/applicant_consent_builder'
|
27
28
|
require 'onfido/models/applicant_consent_name'
|
28
29
|
require 'onfido/models/applicant_create'
|
@@ -44,12 +45,13 @@ require 'onfido/models/complete_task_data_builder'
|
|
44
45
|
require 'onfido/models/country_codes'
|
45
46
|
require 'onfido/models/device_intelligence_breakdown'
|
46
47
|
require 'onfido/models/device_intelligence_breakdown_breakdown'
|
47
|
-
require 'onfido/models/
|
48
|
-
require 'onfido/models/
|
48
|
+
require 'onfido/models/device_intelligence_breakdown_device'
|
49
|
+
require 'onfido/models/device_intelligence_breakdown_device_breakdown'
|
49
50
|
require 'onfido/models/device_intelligence_breakdown_properties'
|
50
51
|
require 'onfido/models/device_intelligence_breakdown_properties_device'
|
51
52
|
require 'onfido/models/device_intelligence_breakdown_properties_geolocation'
|
52
53
|
require 'onfido/models/device_intelligence_breakdown_properties_ip'
|
54
|
+
require 'onfido/models/device_intelligence_properties'
|
53
55
|
require 'onfido/models/device_intelligence_report'
|
54
56
|
require 'onfido/models/document'
|
55
57
|
require 'onfido/models/document_breakdown'
|
@@ -95,7 +97,7 @@ require 'onfido/models/document_properties_address_lines'
|
|
95
97
|
require 'onfido/models/document_properties_barcode_inner'
|
96
98
|
require 'onfido/models/document_properties_document_classification'
|
97
99
|
require 'onfido/models/document_properties_document_numbers_inner'
|
98
|
-
require 'onfido/models/
|
100
|
+
require 'onfido/models/document_properties_driving_licence_information_item'
|
99
101
|
require 'onfido/models/document_properties_extracted_data'
|
100
102
|
require 'onfido/models/document_properties_nfc'
|
101
103
|
require 'onfido/models/document_report'
|
@@ -80,6 +80,34 @@ describe Onfido::Applicant do
|
|
80
80
|
expect(updated_applicant.dob).to eq Date.parse('1968-04-08')
|
81
81
|
end
|
82
82
|
|
83
|
+
it 'lists applicant consents' do
|
84
|
+
new_applicant_data = Onfido::ApplicantUpdater.new(
|
85
|
+
'consents' => [{
|
86
|
+
'name' => Onfido::ApplicantConsentName::PRIVACY_NOTICES_READ,
|
87
|
+
'granted' => true
|
88
|
+
},
|
89
|
+
{
|
90
|
+
'name' => Onfido::ApplicantConsentName::SSN_VERIFICATION,
|
91
|
+
'granted' => true
|
92
|
+
},
|
93
|
+
{
|
94
|
+
'name' => Onfido::ApplicantConsentName::PHONE_NUMBER_VERIFICATION,
|
95
|
+
'granted' => true
|
96
|
+
}]
|
97
|
+
)
|
98
|
+
onfido_api.update_applicant(applicant_id, new_applicant_data)
|
99
|
+
|
100
|
+
expected_consents = [
|
101
|
+
have_attributes(name: "phone_number_verification", granted: true),
|
102
|
+
have_attributes(name: "privacy_notices_read", granted: true),
|
103
|
+
have_attributes(name: "ssn_verification", granted: true)
|
104
|
+
]
|
105
|
+
|
106
|
+
consents = onfido_api.find_applicant_consents(applicant_id)
|
107
|
+
expect(consents).to contain_exactly(*expected_consents)
|
108
|
+
|
109
|
+
end
|
110
|
+
|
83
111
|
it 'deletes an applicant' do
|
84
112
|
onfido_api.delete_applicant(applicant_id)
|
85
113
|
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative '../shared_contexts/with_check'
|
4
|
+
require_relative '../shared_examples/file_examples'
|
4
5
|
|
5
6
|
describe Onfido::Check do
|
6
7
|
describe 'Checks' do
|
@@ -74,10 +75,10 @@ describe Onfido::Check do
|
|
74
75
|
onfido_api.resume_check(check_id)
|
75
76
|
end
|
76
77
|
|
77
|
-
|
78
|
-
file
|
78
|
+
describe 'downloading a check' do
|
79
|
+
let(:file) { onfido_api.download_check(check_id) }
|
79
80
|
|
80
|
-
|
81
|
+
it_behaves_like "a valid PDF file"
|
81
82
|
end
|
82
83
|
end
|
83
84
|
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative '../shared_contexts/with_document'
|
4
|
+
require_relative '../shared_examples/file_examples'
|
4
5
|
|
5
6
|
describe Onfido::Document do
|
6
7
|
describe 'Documents' do
|
@@ -27,10 +28,10 @@ describe Onfido::Document do
|
|
27
28
|
expect(get_document.id).to eq document_id
|
28
29
|
end
|
29
30
|
|
30
|
-
|
31
|
-
file
|
31
|
+
describe 'downloading a document' do
|
32
|
+
let(:file) { onfido_api.download_document(document_id) }
|
32
33
|
|
33
|
-
|
34
|
+
it_behaves_like "a valid PNG file", 361771
|
34
35
|
end
|
35
36
|
|
36
37
|
it 'cannot download an inexistent document' do
|
@@ -41,10 +42,10 @@ describe Onfido::Document do
|
|
41
42
|
}
|
42
43
|
end
|
43
44
|
|
44
|
-
|
45
|
-
file
|
45
|
+
describe 'downloading an NFC face' do
|
46
|
+
let(:file) { onfido_api.download_nfc_face(nfc_face_id) }
|
46
47
|
|
47
|
-
|
48
|
+
it_behaves_like "a valid PNG file", 471345
|
48
49
|
end
|
49
50
|
|
50
51
|
it 'cannot download an inexistent NFC face' do
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative '../shared_contexts/with_applicant'
|
4
|
+
require_relative '../shared_examples/file_examples'
|
4
5
|
|
5
6
|
describe Onfido::IdPhoto do
|
6
7
|
describe 'Id Photo' do
|
@@ -35,10 +36,10 @@ describe Onfido::IdPhoto do
|
|
35
36
|
expect(get_id_photo.id).to eq id_photo_id
|
36
37
|
end
|
37
38
|
|
38
|
-
|
39
|
-
file
|
39
|
+
describe 'downloading id photo' do
|
40
|
+
let(:file) { onfido_api.download_id_photo(id_photo_id) }
|
40
41
|
|
41
|
-
|
42
|
+
it_behaves_like "a valid PNG file", 395856
|
42
43
|
end
|
43
44
|
|
44
45
|
it 'raises an error with the correct status code when trying to download an inexistent id photo' do
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative '../shared_contexts/with_live_photo'
|
4
|
+
require_relative '../shared_examples/file_examples'
|
4
5
|
|
5
6
|
describe Onfido::LivePhoto do
|
6
7
|
describe 'Live Photo' do
|
@@ -27,10 +28,10 @@ describe Onfido::LivePhoto do
|
|
27
28
|
expect(live_photo).to be_an_instance_of Onfido::LivePhoto
|
28
29
|
end
|
29
30
|
|
30
|
-
|
31
|
-
file
|
31
|
+
describe 'downloading live photo' do
|
32
|
+
let(:file) { onfido_api.download_live_photo(live_photo_id) }
|
32
33
|
|
33
|
-
|
34
|
+
it_behaves_like "a valid PNG file", 395856
|
34
35
|
end
|
35
36
|
|
36
37
|
it 'raises an error with the correct status code when trying to download an inexistent live photo' do
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative '../shared_contexts/with_onfido'
|
4
|
+
require_relative '../shared_examples/file_examples'
|
4
5
|
|
5
6
|
describe Onfido::LiveVideo do
|
6
7
|
describe 'Live Video' do
|
@@ -24,16 +25,16 @@ describe Onfido::LiveVideo do
|
|
24
25
|
expect(get_live_video).to be_an_instance_of Onfido::LiveVideo
|
25
26
|
end
|
26
27
|
|
27
|
-
|
28
|
-
file
|
28
|
+
describe 'downloading live video' do
|
29
|
+
let(:file) { onfido_api.download_live_video(live_video_id) }
|
29
30
|
|
30
|
-
|
31
|
+
it_behaves_like "a valid MP4 file", 165093
|
31
32
|
end
|
32
33
|
|
33
|
-
|
34
|
-
file
|
34
|
+
describe 'downloading live video frame' do
|
35
|
+
let(:file) { onfido_api.download_live_video_frame(live_video_id) }
|
35
36
|
|
36
|
-
|
37
|
+
it_behaves_like "a valid JPEG file", 1692
|
37
38
|
end
|
38
39
|
|
39
40
|
it 'raises an error with the correct status code when trying to download an inexistent live video' do
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative '../shared_contexts/with_onfido'
|
4
|
+
require_relative '../shared_examples/file_examples'
|
4
5
|
|
5
6
|
describe Onfido::MotionCapture do
|
6
7
|
describe 'Motion Capture' do
|
@@ -24,16 +25,16 @@ describe Onfido::MotionCapture do
|
|
24
25
|
expect(get_motion_capture).to be_an_instance_of Onfido::MotionCapture
|
25
26
|
end
|
26
27
|
|
27
|
-
|
28
|
-
file
|
28
|
+
describe 'downloading live video' do
|
29
|
+
let(:file) { onfido_api.download_motion_capture(motion_id) }
|
29
30
|
|
30
|
-
|
31
|
+
it_behaves_like "a valid MP4 file", 2720276
|
31
32
|
end
|
32
33
|
|
33
|
-
|
34
|
-
file
|
34
|
+
describe 'downloading live video frame' do
|
35
|
+
let(:file) { onfido_api.download_motion_capture_frame(motion_id) }
|
35
36
|
|
36
|
-
|
37
|
+
it_behaves_like "a valid JPEG file", 75627
|
37
38
|
end
|
38
39
|
|
39
40
|
it 'raises an error with the correct status code when trying to download an inexistent motion capture' do
|
@@ -58,5 +58,38 @@ describe Onfido::Report do
|
|
58
58
|
expect(report.properties.barcode[0]).to be_an_instance_of Onfido::DocumentPropertiesBarcodeInner
|
59
59
|
expect(report.properties.barcode[0].document_type).to eq("driving_licence")
|
60
60
|
end
|
61
|
+
|
62
|
+
it 'schema of Document With Driving Lincence Information report is valid' do
|
63
|
+
report_id = onfido_api.create_check(
|
64
|
+
Onfido::CheckBuilder.new(
|
65
|
+
applicant_id: applicant_id,
|
66
|
+
document_ids: [document_id],
|
67
|
+
report_names: [Onfido::ReportName::DOCUMENT_WITH_DRIVING_LICENCE_INFORMATION],
|
68
|
+
)).report_ids[0]
|
69
|
+
|
70
|
+
report = repeat_request_until_status_changes(
|
71
|
+
Onfido::ReportStatus::COMPLETE
|
72
|
+
) { onfido_api.find_report(report_id) }
|
73
|
+
|
74
|
+
expect(report).to be_an_instance_of Onfido::DocumentWithDrivingLicenceInformationReport
|
75
|
+
expect(report.properties.driving_licence_information).not_to be_nil
|
76
|
+
end
|
77
|
+
|
78
|
+
it 'schema of Device Intelligence report is valid' do
|
79
|
+
report_id = onfido_api.create_check(
|
80
|
+
Onfido::CheckBuilder.new(
|
81
|
+
applicant_id: applicant_id,
|
82
|
+
document_ids: [document_id],
|
83
|
+
report_names: [Onfido::ReportName::DEVICE_INTELLIGENCE],
|
84
|
+
)).report_ids[0]
|
85
|
+
|
86
|
+
report = repeat_request_until_status_changes(
|
87
|
+
Onfido::ReportStatus::COMPLETE
|
88
|
+
) { onfido_api.find_report(report_id) }
|
89
|
+
|
90
|
+
expect(report).to be_an_instance_of Onfido::DeviceIntelligenceReport
|
91
|
+
expect(report.breakdown).not_to be_nil
|
92
|
+
expect(report.properties).not_to be_nil
|
93
|
+
end
|
61
94
|
end
|
62
95
|
end
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative '../shared_contexts/with_workflow_run'
|
4
|
+
require_relative '../shared_examples/file_examples'
|
5
|
+
|
4
6
|
require 'zip'
|
5
7
|
|
6
8
|
describe Onfido::WorkflowRun do
|
@@ -47,10 +49,10 @@ describe Onfido::WorkflowRun do
|
|
47
49
|
expect(get_workflow_run.id).to eq workflow_run_id
|
48
50
|
end
|
49
51
|
|
50
|
-
|
51
|
-
file
|
52
|
+
describe 'downloading evidence file' do
|
53
|
+
let(:file) { onfido_api.download_signed_evidence_file(workflow_run_id) }
|
52
54
|
|
53
|
-
|
55
|
+
it_behaves_like "a valid PDF file", 497605
|
54
56
|
end
|
55
57
|
|
56
58
|
context 'with start -> approved workflow' do
|
@@ -78,7 +80,7 @@ describe Onfido::WorkflowRun do
|
|
78
80
|
onfido_api.find_timeline_file(workflow_run_id, timeline_file_id)
|
79
81
|
end
|
80
82
|
|
81
|
-
expect(file.size).to be >
|
83
|
+
expect(file.size).to be > 100000
|
82
84
|
end
|
83
85
|
|
84
86
|
it 'downloads an evidence folder' do
|
@@ -87,7 +89,7 @@ describe Onfido::WorkflowRun do
|
|
87
89
|
end
|
88
90
|
|
89
91
|
Zip::File.open(file.path) do |zip|
|
90
|
-
expect(zip.entries.size).to be >
|
92
|
+
expect(zip.entries.size).to be > 1
|
91
93
|
end
|
92
94
|
end
|
93
95
|
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
RSpec.shared_examples_for "a valid file" do |expected_size|
|
4
|
+
it "is not nil and has a size greater than 0" do
|
5
|
+
expect(file).not_to be_nil
|
6
|
+
expect(file.size).to be > 0
|
7
|
+
end
|
8
|
+
|
9
|
+
it "has the expected file size" do
|
10
|
+
expect(file.size).to equal expected_size if expected_size
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
RSpec.shared_examples_for "a file with signature" do |signature, offset, length|
|
15
|
+
it "has a valid signature" do
|
16
|
+
signature_to_check = String.new(signature, encoding: 'BINARY')
|
17
|
+
|
18
|
+
File.open(file.path, 'rb') do |file_handler|
|
19
|
+
file_handler.rewind
|
20
|
+
content = file_handler.read(offset + length)
|
21
|
+
expect(content[offset, length]).to eq(signature_to_check)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
RSpec.shared_examples_for "a valid PNG file" do |expected_size|
|
27
|
+
include_examples "a valid file", expected_size
|
28
|
+
include_examples "a file with signature", "\x89PNG\r\n\x1A\n", 0, 8
|
29
|
+
end
|
30
|
+
|
31
|
+
RSpec.shared_examples_for "a valid PDF file" do |expected_size|
|
32
|
+
include_examples "a valid file", expected_size
|
33
|
+
include_examples "a file with signature", "%PDF-", 0, 5
|
34
|
+
end
|
35
|
+
|
36
|
+
RSpec.shared_examples_for "a valid JPEG file" do |expected_size|
|
37
|
+
include_examples "a valid file", expected_size
|
38
|
+
include_examples "a file with signature", "\xFF\xD8\xFF\xE0\x00\x10JF", 0, 8
|
39
|
+
end
|
40
|
+
|
41
|
+
RSpec.shared_examples_for "a valid MP4 file" do |expected_size|
|
42
|
+
include_examples "a valid file", expected_size
|
43
|
+
include_examples "a file with signature", "ftyp", 4, 4
|
44
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onfido
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -144,6 +144,7 @@ files:
|
|
144
144
|
- lib/onfido/models/addresses_list.rb
|
145
145
|
- lib/onfido/models/applicant.rb
|
146
146
|
- lib/onfido/models/applicant_builder.rb
|
147
|
+
- lib/onfido/models/applicant_consent.rb
|
147
148
|
- lib/onfido/models/applicant_consent_builder.rb
|
148
149
|
- lib/onfido/models/applicant_consent_name.rb
|
149
150
|
- lib/onfido/models/applicant_create.rb
|
@@ -165,12 +166,13 @@ files:
|
|
165
166
|
- lib/onfido/models/country_codes.rb
|
166
167
|
- lib/onfido/models/device_intelligence_breakdown.rb
|
167
168
|
- lib/onfido/models/device_intelligence_breakdown_breakdown.rb
|
168
|
-
- lib/onfido/models/
|
169
|
-
- lib/onfido/models/
|
169
|
+
- lib/onfido/models/device_intelligence_breakdown_device.rb
|
170
|
+
- lib/onfido/models/device_intelligence_breakdown_device_breakdown.rb
|
170
171
|
- lib/onfido/models/device_intelligence_breakdown_properties.rb
|
171
172
|
- lib/onfido/models/device_intelligence_breakdown_properties_device.rb
|
172
173
|
- lib/onfido/models/device_intelligence_breakdown_properties_geolocation.rb
|
173
174
|
- lib/onfido/models/device_intelligence_breakdown_properties_ip.rb
|
175
|
+
- lib/onfido/models/device_intelligence_properties.rb
|
174
176
|
- lib/onfido/models/device_intelligence_report.rb
|
175
177
|
- lib/onfido/models/document.rb
|
176
178
|
- lib/onfido/models/document_breakdown.rb
|
@@ -216,7 +218,7 @@ files:
|
|
216
218
|
- lib/onfido/models/document_properties_barcode_inner.rb
|
217
219
|
- lib/onfido/models/document_properties_document_classification.rb
|
218
220
|
- lib/onfido/models/document_properties_document_numbers_inner.rb
|
219
|
-
- lib/onfido/models/
|
221
|
+
- lib/onfido/models/document_properties_driving_licence_information_item.rb
|
220
222
|
- lib/onfido/models/document_properties_extracted_data.rb
|
221
223
|
- lib/onfido/models/document_properties_nfc.rb
|
222
224
|
- lib/onfido/models/document_report.rb
|
@@ -461,6 +463,7 @@ files:
|
|
461
463
|
- spec/shared_contexts/with_live_photo.rb
|
462
464
|
- spec/shared_contexts/with_onfido.rb
|
463
465
|
- spec/shared_contexts/with_workflow_run.rb
|
466
|
+
- spec/shared_examples/file_examples.rb
|
464
467
|
- spec/spec_helper.rb
|
465
468
|
- spec/studio_webhook_event_verifier_spec.rb
|
466
469
|
homepage: https://github.com/onfido/onfido-ruby
|
@@ -488,33 +491,34 @@ specification_version: 4
|
|
488
491
|
summary: The official Ruby library for integrating with the Onfido API.
|
489
492
|
test_files:
|
490
493
|
- spec/classic_webhook_event_verifier_spec.rb
|
491
|
-
- spec/integrations/
|
492
|
-
- spec/integrations/
|
493
|
-
- spec/integrations/
|
494
|
-
- spec/integrations/
|
494
|
+
- spec/integrations/motion_capture_spec.rb
|
495
|
+
- spec/integrations/id_photo_spec.rb
|
496
|
+
- spec/integrations/check_spec.rb
|
497
|
+
- spec/integrations/live_photo_spec.rb
|
495
498
|
- spec/integrations/watchlist_monitor_spec.rb
|
496
|
-
- spec/integrations/
|
499
|
+
- spec/integrations/workflow_run_output_spec.rb
|
500
|
+
- spec/integrations/media/sample_photo.png
|
501
|
+
- spec/integrations/media/sample_driving_licence.png
|
502
|
+
- spec/integrations/live_video_spec.rb
|
503
|
+
- spec/integrations/document_spec.rb
|
504
|
+
- spec/integrations/webhook_spec.rb
|
497
505
|
- spec/integrations/applicant_spec.rb
|
506
|
+
- spec/integrations/address_picker_spec.rb
|
507
|
+
- spec/integrations/workflow_run_spec.rb
|
498
508
|
- spec/integrations/qualified_electronic_signature_spec.rb
|
499
|
-
- spec/integrations/
|
509
|
+
- spec/integrations/report_schema_spec.rb
|
510
|
+
- spec/integrations/sdk_token_spec.rb
|
511
|
+
- spec/integrations/tasks_spec.rb
|
500
512
|
- spec/integrations/report_spec.rb
|
501
|
-
- spec/integrations/media/sample_driving_licence.png
|
502
|
-
- spec/integrations/media/sample_photo.png
|
503
513
|
- spec/integrations/extraction_spec.rb
|
504
|
-
- spec/integrations/webhook_spec.rb
|
505
|
-
- spec/integrations/check_spec.rb
|
506
|
-
- spec/integrations/live_video_spec.rb
|
507
|
-
- spec/integrations/id_photo_spec.rb
|
508
|
-
- spec/integrations/workflow_run_spec.rb
|
509
|
-
- spec/integrations/document_spec.rb
|
510
|
-
- spec/integrations/live_photo_spec.rb
|
511
|
-
- spec/media/studio_webhook_event_with_list_in_output.json
|
512
514
|
- spec/media/studio_webhook_event_with_object_in_output.json
|
513
|
-
- spec/
|
514
|
-
- spec/shared_contexts/with_onfido.rb
|
515
|
+
- spec/media/studio_webhook_event_with_list_in_output.json
|
515
516
|
- spec/shared_contexts/with_applicant.rb
|
516
|
-
- spec/shared_contexts/with_document.rb
|
517
|
-
- spec/shared_contexts/with_workflow_run.rb
|
518
517
|
- spec/shared_contexts/with_check.rb
|
518
|
+
- spec/shared_contexts/with_workflow_run.rb
|
519
|
+
- spec/shared_contexts/with_onfido.rb
|
520
|
+
- spec/shared_contexts/with_live_photo.rb
|
521
|
+
- spec/shared_contexts/with_document.rb
|
522
|
+
- spec/shared_examples/file_examples.rb
|
519
523
|
- spec/spec_helper.rb
|
520
524
|
- spec/studio_webhook_event_verifier_spec.rb
|