onfido 2.3.0 → 2.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e3f66215e580ff6d0348639303fc81984b8e2115179e74ef101787a8ac76fb7
4
- data.tar.gz: bf0ab24f1cc95cf9339ce9554926093f1f175993e8b3151d86b80d31711e95db
3
+ metadata.gz: 3a735bab9e701c74ac67467bc518ddbf0c2cabf9a7dea65744fe497cac937ef6
4
+ data.tar.gz: b93c799294c06f6dcfc63f0973f896ef7090688219bd09e2bcf257b8a4f6fee1
5
5
  SHA512:
6
- metadata.gz: d6a0de780f828c458e26c0216471fc701eea61082ebbfd89f6cc4a0f11deb42005d8294a13893f59589b79f3a9182faba57ec9af887a1bb622b3001fceb4f223
7
- data.tar.gz: 24505122f39fc8ff91243b399d8c9076689796d62ca47a0893f7d29e94fc53e76387b88d4afe5d084452c7e6d5983a4280d468705f30e0a86ad269f96cc543fa
6
+ metadata.gz: b95258294942d7f46c1c6614b3fbb73c27ad3b37d6b4f4fa8360b80b25e3744ab6c4db62892c258bedbcf99a9c699dc2e860b8439af53d28d2fbf2790d611fe1
7
+ data.tar.gz: 2c52abc70d6022a2a1e10fe02e413920fefea32eb6a6ef7e0b7cd0f5bb618ad5013b7733e722f99800e42b0f0fe40331b43061716fdb3402d5149ffe25faa744
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## v2.5.0, 22 October 2022
2
+
3
+ - Added Motion capture support
4
+
5
+ ## v2.4.0, 05 October 2022
6
+
7
+ - Updated to use API v3.5, for more details please see our [release notes](https://developers.onfido.com/release-notes#api-v35).
8
+
1
9
  ## v2.3.0, 02 March 2022
2
10
 
3
11
  - Updated to use API v3.4, for more details please see our [release notes](https://developers.onfido.com/release-notes#api-v34).
data/README.md CHANGED
@@ -7,7 +7,7 @@ The official Ruby library for integrating with the Onfido API.
7
7
 
8
8
  Documentation can be found at https://documentation.onfido.com
9
9
 
10
- This version uses Onfido API v3.4 and is compatible with Ruby 2.4 onwards. Refer to our [API versioning guide](https://developers.onfido.com/guide/api-versioning-policy#client-libraries) for details of which client library versions use which versions of the API.
10
+ This version uses Onfido API v3.5 and is compatible with Ruby 2.4 onwards. Refer to our [API versioning guide](https://developers.onfido.com/guide/api-versioning-policy#client-libraries) for details of which client library versions use which versions of the API.
11
11
 
12
12
  ## Installation
13
13
 
data/lib/onfido/api.rb CHANGED
@@ -26,6 +26,10 @@ module Onfido
26
26
  @live_video ||= Onfido::LiveVideo.new(options)
27
27
  end
28
28
 
29
+ def motion_capture
30
+ @motion_capture ||= Onfido::MotionCapture.new(options)
31
+ end
32
+
29
33
  def report
30
34
  @report ||= Onfido::Report.new(options)
31
35
  end
@@ -32,7 +32,7 @@ module Onfido
32
32
  attr_reader :api_key, :open_timeout, :read_timeout
33
33
 
34
34
  def base_url
35
- @unknown_api_url || "https://api.#{@region}.onfido.com/v3.4/"
35
+ @unknown_api_url || "https://api.#{@region}.onfido.com/v3.5/"
36
36
  end
37
37
  end
38
38
  end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Onfido
4
+ class MotionCapture < Resource
5
+ def find(motion_capture_id)
6
+ get(path: "motion_captures/#{motion_capture_id}")
7
+ end
8
+
9
+ def download(motion_capture_id)
10
+ get(path: "motion_captures/#{motion_capture_id}/download")
11
+ end
12
+
13
+ def frame(motion_capture_id)
14
+ get(path: "motion_captures/#{motion_capture_id}/frame")
15
+ end
16
+
17
+ def all(applicant_id)
18
+ get(path: "motion_captures?applicant_id=#{applicant_id}")
19
+ end
20
+ end
21
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Onfido
4
- VERSION = '2.3.0'
4
+ VERSION = '2.5.0'
5
5
  end
data/lib/onfido.rb CHANGED
@@ -20,6 +20,7 @@ require 'onfido/resources/document'
20
20
  require 'onfido/resources/extraction'
21
21
  require 'onfido/resources/live_photo'
22
22
  require 'onfido/resources/live_video'
23
+ require 'onfido/resources/motion_capture'
23
24
  require 'onfido/resources/report'
24
25
  require 'onfido/resources/sdk_token'
25
26
  require 'onfido/resources/webhook'
@@ -39,7 +39,7 @@ describe Onfido::Applicant do
39
39
 
40
40
  it 'serializes the payload correctly' do
41
41
  WebMock.after_request do |request_signature, _response|
42
- if request_signature.uri.path == 'v3.4/applicants'
42
+ if request_signature.uri.path == 'v3.5/applicants'
43
43
  expect(Rack::Utils.parse_nested_query(request_signature.body))
44
44
  .to eq(params)
45
45
  end
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tempfile'
4
+
5
+ describe Onfido::MotionCapture do
6
+ include_context 'fake onfido api'
7
+
8
+ subject(:motion_capture) { onfido.motion_capture }
9
+
10
+ let(:motion_capture_id) { 'b1ae05b7-fb12-47c3-971c-311b56fc8de6' }
11
+
12
+ describe '#find' do
13
+ it 'returns the expected motion capture' do
14
+ response = motion_capture.find(motion_capture_id)
15
+
16
+ expect(response['id']).to eq(motion_capture_id)
17
+ end
18
+ end
19
+
20
+ describe '#all' do
21
+ it 'returns list of motion captures' do
22
+ applicant_id = '1030303-123123-123123'
23
+ response = motion_capture.all(applicant_id)
24
+
25
+ expect(response['motion_captures']).not_to be_empty
26
+ end
27
+ end
28
+
29
+ describe '#download' do
30
+ it 'returns the file data' do
31
+ response = motion_capture.download(motion_capture_id)
32
+
33
+ expect(response).not_to be_nil
34
+ end
35
+ end
36
+
37
+ describe '#frame' do
38
+ it 'returns the frame data' do
39
+ response = motion_capture.frame(motion_capture_id)
40
+
41
+ expect(response).not_to be_nil
42
+ end
43
+ end
44
+ end
@@ -26,7 +26,7 @@ describe Onfido::Options do
26
26
  end
27
27
 
28
28
  it 'configures with region' do
29
- expect(rest_client.url).to eq 'https://api.us.onfido.com/v3.4/'
29
+ expect(rest_client.url).to eq 'https://api.us.onfido.com/v3.5/'
30
30
  end
31
31
 
32
32
  it 'configures with timeouts' do
@@ -19,32 +19,32 @@ class FakeOnfidoAPI < Sinatra::Base # rubocop:disable Metrics/ClassLength
19
19
  end
20
20
  end
21
21
 
22
- get '/v3.4/addresses/pick' do
22
+ get '/v3.5/addresses/pick' do
23
23
  json_response(200, 'addresses.json')
24
24
  end
25
25
 
26
- post '/v3.4/applicants' do
26
+ post '/v3.5/applicants' do
27
27
  json_response(201, 'applicant.json')
28
28
  end
29
29
 
30
- put '/v3.4/applicants/:id' do
30
+ put '/v3.5/applicants/:id' do
31
31
  json_response(200, 'applicant.json')
32
32
  end
33
33
 
34
- get '/v3.4/applicants/:id' do
34
+ get '/v3.5/applicants/:id' do
35
35
  json_response(200, 'applicant.json')
36
36
  end
37
37
 
38
- get '/v3.4/applicants' do
38
+ get '/v3.5/applicants' do
39
39
  response = json_response(200, 'applicants.json')
40
40
  { applicants: JSON.parse(response)['applicants'][pagination_range] }.to_json
41
41
  end
42
42
 
43
- delete '/v3.4/applicants/:id' do
43
+ delete '/v3.5/applicants/:id' do
44
44
  status 204
45
45
  end
46
46
 
47
- post '/v3.4/applicants/:id/restore' do
47
+ post '/v3.5/applicants/:id/restore' do
48
48
  if params['id'] == 'a2fb9c62-ab10-4898-a8ec-342c4b552ad5'
49
49
  json_response(422, 'not_scheduled_for_deletion_error.json')
50
50
  else
@@ -52,37 +52,37 @@ class FakeOnfidoAPI < Sinatra::Base # rubocop:disable Metrics/ClassLength
52
52
  end
53
53
  end
54
54
 
55
- post '/v3.4/documents' do
55
+ post '/v3.5/documents' do
56
56
  json_response(201, 'document.json')
57
57
  end
58
58
 
59
- post '/v3.4/extractions' do
59
+ post '/v3.5/extractions' do
60
60
  json_response(201, 'extraction.json')
61
61
  end
62
62
 
63
- get '/v3.4/documents/:id' do
63
+ get '/v3.5/documents/:id' do
64
64
  json_response(200, 'document.json')
65
65
  end
66
66
 
67
- get '/v3.4/documents' do
67
+ get '/v3.5/documents' do
68
68
  json_response(200, 'documents.json')
69
69
  end
70
70
 
71
- get '/v3.4/documents/:id/download' do
71
+ get '/v3.5/documents/:id/download' do
72
72
  status 200
73
73
  content_type 'application/octet-stream'
74
74
  "\x01\x02\x03" # acts as binary file data
75
75
  end
76
76
 
77
- post '/v3.4/live_photos' do
77
+ post '/v3.5/live_photos' do
78
78
  json_response(201, 'live_photo.json')
79
79
  end
80
80
 
81
- get '/v3.4/live_photos/:id' do
81
+ get '/v3.5/live_photos/:id' do
82
82
  json_response(200, 'live_photo.json')
83
83
  end
84
84
 
85
- get '/v3.4/live_photos' do
85
+ get '/v3.5/live_photos' do
86
86
  if params['applicant_id'] == '1030303-123123-123123'
87
87
  json_response(200, 'live_photos.json')
88
88
  else
@@ -90,17 +90,17 @@ class FakeOnfidoAPI < Sinatra::Base # rubocop:disable Metrics/ClassLength
90
90
  end
91
91
  end
92
92
 
93
- get '/v3.4/live_photos/:id/download' do
93
+ get '/v3.5/live_photos/:id/download' do
94
94
  status 200
95
95
  content_type 'image/jpeg'
96
96
  "\x01\x02\x03" # acts as binary file data
97
97
  end
98
98
 
99
- get '/v3.4/live_videos/:id' do
99
+ get '/v3.5/live_videos/:id' do
100
100
  json_response(200, 'live_video.json')
101
101
  end
102
102
 
103
- get '/v3.4/live_videos' do
103
+ get '/v3.5/live_videos' do
104
104
  if params['applicant_id'] == '1030303-123123-123123'
105
105
  json_response(200, 'live_videos.json')
106
106
  else
@@ -108,79 +108,103 @@ class FakeOnfidoAPI < Sinatra::Base # rubocop:disable Metrics/ClassLength
108
108
  end
109
109
  end
110
110
 
111
- get '/v3.4/live_videos/:id/download' do
111
+ get '/v3.5/live_videos/:id/download' do
112
112
  status 200
113
113
  content_type 'video/quicktime'
114
114
  "\x01\x02\x03" # acts as binary file data
115
115
  end
116
116
 
117
- post '/v3.4/checks' do
117
+ get '/v3.5/motion_captures/:id' do
118
+ json_response(200, 'motion_capture.json')
119
+ end
120
+
121
+ get '/v3.5/motion_captures' do
122
+ if params['applicant_id'] == '1030303-123123-123123'
123
+ json_response(200, 'motion_captures.json')
124
+ else
125
+ status 404
126
+ end
127
+ end
128
+
129
+ get '/v3.5/motion_captures/:id/download' do
130
+ status 200
131
+ content_type 'video/mp4'
132
+ "\x01\x02\x03" # acts as binary file data
133
+ end
134
+
135
+ get '/v3.5/motion_captures/:id/frame' do
136
+ status 200
137
+ content_type 'image/jpeg'
138
+ "\x01\x02\x03" # acts as binary file data
139
+ end
140
+
141
+ post '/v3.5/checks' do
118
142
  params['applicant_id'].nil? ? status(422) : json_response(201, 'check.json')
119
143
  end
120
144
 
121
- get '/v3.4/checks/:id' do
145
+ get '/v3.5/checks/:id' do
122
146
  json_response(200, 'check.json')
123
147
  end
124
148
 
125
- get '/v3.4/checks' do
149
+ get '/v3.5/checks' do
126
150
  json_response(200, 'checks.json')
127
151
  end
128
152
 
129
- post '/v3.4/checks/:id/resume' do
153
+ post '/v3.5/checks/:id/resume' do
130
154
  status 204 # no_content
131
155
  end
132
156
 
133
- get '/v3.4/checks/:id/download' do
157
+ get '/v3.5/checks/:id/download' do
134
158
  status 200
135
159
  content_type 'application/pdf'
136
160
  "\x01\x02\x03" # acts as binary file data
137
161
  end
138
162
 
139
- get '/v3.4/reports' do
163
+ get '/v3.5/reports' do
140
164
  json_response(200, 'reports.json')
141
165
  end
142
166
 
143
- get '/v3.4/reports/:id' do
167
+ get '/v3.5/reports/:id' do
144
168
  json_response(200, 'report.json')
145
169
  end
146
170
 
147
- post '/v3.4/reports/:id/resume' do
171
+ post '/v3.5/reports/:id/resume' do
148
172
  status 204
149
173
  end
150
174
 
151
- post '/v3.4/reports/:id/cancel' do
175
+ post '/v3.5/reports/:id/cancel' do
152
176
  status 204
153
177
  end
154
178
 
155
- post '/v3.4/sdk_token' do
179
+ post '/v3.5/sdk_token' do
156
180
  json_response(201, 'sdk_token.json')
157
181
  end
158
182
 
159
- post '/v3.4/webhooks' do
183
+ post '/v3.5/webhooks' do
160
184
  json_response(201, 'webhook.json')
161
185
  end
162
186
 
163
- get '/v3.4/webhooks/:id' do
187
+ get '/v3.5/webhooks/:id' do
164
188
  json_response(200, 'webhook.json')
165
189
  end
166
190
 
167
- delete '/v3.4/webhooks/:id' do
191
+ delete '/v3.5/webhooks/:id' do
168
192
  status 204
169
193
  end
170
194
 
171
- get '/v3.4/webhooks' do
195
+ get '/v3.5/webhooks' do
172
196
  json_response(200, 'webhooks.json')
173
197
  end
174
198
 
175
- get '/v3.4/4xx_response' do
199
+ get '/v3.5/4xx_response' do
176
200
  json_response(422, '4xx_response.json')
177
201
  end
178
202
 
179
- get '/v3.4/unexpected_error_format' do
203
+ get '/v3.5/unexpected_error_format' do
180
204
  json_response(400, 'unexpected_error_format.json')
181
205
  end
182
206
 
183
- get '/v3.4/unparseable_response' do
207
+ get '/v3.5/unparseable_response' do
184
208
  content_type :json
185
209
  status 504
186
210
  ''
@@ -7,7 +7,7 @@
7
7
  "last_name":"Bing",
8
8
  "email":"chandler_bing_6@friends.com",
9
9
  "dob":"1968-04-08",
10
- "href":"/v3.4/applicants/61f659cb-c90b-4067-808a-6136b5c01351",
10
+ "href":"/v3.5/applicants/61f659cb-c90b-4067-808a-6136b5c01351",
11
11
  "id_numbers":[],
12
12
  "address": {
13
13
  "flat_number":"4",
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "id": "8546921-123123-123123",
3
3
  "created_at": "2019-05-23T13:50:33Z",
4
- "href": "/v3.4/checks/8546921-123123-123123",
4
+ "href": "/v3.5/checks/8546921-123123-123123",
5
5
  "applicant_provides_data": "false",
6
- "status": "pending",
6
+ "status": "in_progress",
7
7
  "result": "pending",
8
8
  "report_ids": [
9
9
  "1030303-123123-375629",
@@ -3,9 +3,9 @@
3
3
  {
4
4
  "id": "8546921-123123-123123",
5
5
  "created_at": "2019-11-23T13:50:33Z",
6
- "href": "/v3.4/checks/8546921-123123-123123",
6
+ "href": "/v3.5/checks/8546921-123123-123123",
7
7
  "applicant_provides_data": "false",
8
- "status": "pending",
8
+ "status": "in_progress",
9
9
  "result": "pending",
10
10
  "report_ids": [
11
11
  "1030303-123123-375629",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "7568415-123123-123123",
3
3
  "created_at": "2019-11-23 13:50:33Z",
4
- "href": "/v3.4/documents/7568415-123123-123123",
4
+ "href": "/v3.5/documents/7568415-123123-123123",
5
5
  "file_name": "passport.jpg",
6
6
  "file_type": "png",
7
7
  "file_size": 282870,
@@ -3,7 +3,7 @@
3
3
  {
4
4
  "id": "7568415-123123-123123",
5
5
  "created_at": "2019-11-23 13:50:33Z",
6
- "href": "/v3.4/documents/7568415-123123-123123",
6
+ "href": "/v3.5/documents/7568415-123123-123123",
7
7
  "file_name": "passport.jpg",
8
8
  "file_type": "png",
9
9
  "file_size": 282870,
@@ -12,7 +12,7 @@
12
12
  {
13
13
  "id": "121122-123123-123123",
14
14
  "created_at": "2019-11-23 13:50:40Z",
15
- "href": "/v3.4/documents/7568415-123123-123123",
15
+ "href": "/v3.5/documents/7568415-123123-123123",
16
16
  "file_name": "driving_licence.png",
17
17
  "file_type": "png",
18
18
  "file_size": 282870,
@@ -4,6 +4,6 @@
4
4
  "file_name": "onfido_captured_image.jpg",
5
5
  "file_type": "image/jpeg",
6
6
  "file_size": 47544,
7
- "href": "/v3.4/live_photos/3538c8f6-fdce-4745-9d34-fc246bc05aa1",
8
- "download_href": "/v3.4/live_photos/3538c8f6-fdce-4745-9d34-fc246bc05aa1/download"
7
+ "href": "/v3.5/live_photos/3538c8f6-fdce-4745-9d34-fc246bc05aa1",
8
+ "download_href": "/v3.5/live_photos/3538c8f6-fdce-4745-9d34-fc246bc05aa1/download"
9
9
  }
@@ -6,8 +6,8 @@
6
6
  "file_name": "onfido_captured_image.jpg",
7
7
  "file_type": "image/jpeg",
8
8
  "file_size": 47544,
9
- "href": "/v3.4/live_photos/3538c8f6-fdce-4745-9d34-fc246bc05aa1",
10
- "download_href": "/v3.4/live_photos/3538c8f6-fdce-4745-9d34-fc246bc05aa1/download"
9
+ "href": "/v3.5/live_photos/3538c8f6-fdce-4745-9d34-fc246bc05aa1",
10
+ "download_href": "/v3.5/live_photos/3538c8f6-fdce-4745-9d34-fc246bc05aa1/download"
11
11
  },
12
12
  {
13
13
  "id": "5134c12a-555a-1234-5e12-9d34fcbc11ba",
@@ -15,8 +15,8 @@
15
15
  "file_name": "onfido_captured_image.jpg",
16
16
  "file_type": "image/jpeg",
17
17
  "file_size": 47544,
18
- "href": "/v3.4/live_photos/5134c12a-555a-1234-5e12-9d34fcbc11ba",
19
- "download_href": "/v3.4/live_photos/5134c12a-555a-1234-5e12-9d34fcbc11ba/download"
18
+ "href": "/v3.5/live_photos/5134c12a-555a-1234-5e12-9d34fcbc11ba",
19
+ "download_href": "/v3.5/live_photos/5134c12a-555a-1234-5e12-9d34fcbc11ba/download"
20
20
  }
21
21
  ]
22
22
  }
@@ -18,6 +18,6 @@
18
18
  "file_name" : "output-29-05-2018_11_00_24.mov",
19
19
  "file_type" : "video/quicktime",
20
20
  "file_size" : 3348421,
21
- "href" : "/v3.4/live_videos/c9701e9b-83aa-442f-995b-20320ee8fb01",
22
- "download_href" : "/v3.4/live_videos/c9701e9b-83aa-442f-995b-20320ee8fb01/download"
21
+ "href" : "/v3.5/live_videos/c9701e9b-83aa-442f-995b-20320ee8fb01",
22
+ "download_href" : "/v3.5/live_videos/c9701e9b-83aa-442f-995b-20320ee8fb01/download"
23
23
  }
@@ -16,11 +16,11 @@
16
16
  }
17
17
  ],
18
18
  "created_at": "2019-11-29T09:00:39Z",
19
- "download_href": "/v3.4/live_videos/c9701e9b-83aa-442f-995b-20320ee8fb01/download",
19
+ "download_href": "/v3.5/live_videos/c9701e9b-83aa-442f-995b-20320ee8fb01/download",
20
20
  "file_name": "output-29-11-2019_11_00_24.mov",
21
21
  "file_size": 3348421,
22
22
  "file_type": "video/quicktime",
23
- "href": "/v3.4/live_videos/c9701e9b-83aa-442f-995b-20320ee8fb01",
23
+ "href": "/v3.5/live_videos/c9701e9b-83aa-442f-995b-20320ee8fb01",
24
24
  "id": "c9701e9b-83aa-442f-995b-20320ee8fb01"
25
25
  }
26
26
  ]
@@ -0,0 +1,9 @@
1
+ {
2
+ "id" : "b1ae05b7-fb12-47c3-971c-311b56fc8de6",
3
+ "created_at" : "2022-11-22T10:22:45Z",
4
+ "file_name" : "motion_capture.mp4",
5
+ "file_type" : "video/mp4",
6
+ "file_size" : 2437112,
7
+ "href" : "/v3.5/motion_captures/b1ae05b7-fb12-47c3-971c-311b56fc8de6",
8
+ "download_href" : "/v3.5/motion_captures/b1ae05b7-fb12-47c3-971c-311b56fc8de6/download"
9
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "motion_captures": [
3
+ {
4
+ "id" : "b1ae05b7-fb12-47c3-971c-311b56fc8de6",
5
+ "created_at" : "2022-11-22T10:22:45Z",
6
+ "file_name" : "motion_capture.mp4",
7
+ "file_type" : "video/mp4",
8
+ "file_size" : 2437112,
9
+ "href" : "/v3.5/motion_captures/b1ae05b7-fb12-47c3-971c-311b56fc8de6",
10
+ "download_href" : "/v3.5/motion_captures/b1ae05b7-fb12-47c3-971c-311b56fc8de6/download"
11
+ }
12
+ ]
13
+ }
@@ -4,7 +4,7 @@
4
4
  "created_at": "2019-11-23T13:50:45Z",
5
5
  "status": "in_progress",
6
6
  "result": "pending",
7
- "href": "/v3.4/reports/6951786-123123-422221",
7
+ "href": "/v3.5/reports/6951786-123123-422221",
8
8
  "breakdown": {},
9
9
  "properties": {}
10
10
  }
@@ -6,7 +6,7 @@
6
6
  "created_at": "2019-11-23T13:50:45Z",
7
7
  "status": "in_progress",
8
8
  "result": "pending",
9
- "href": "/v3.4/reports/6951786-123123-422221",
9
+ "href": "/v3.5/reports/6951786-123123-422221",
10
10
  "breakdown": {},
11
11
  "properties": {}
12
12
  },
@@ -16,7 +16,7 @@
16
16
  "created_at": "2019-11-23T13:50:45Z",
17
17
  "status": "in_progress",
18
18
  "result": "pending",
19
- "href": "/v3.4/reports/6951786-123123-316712",
19
+ "href": "/v3.5/reports/6951786-123123-316712",
20
20
  "breakdown": {},
21
21
  "properties": {}
22
22
  }
@@ -3,7 +3,7 @@
3
3
  "url": "https://webhookendpoint.url",
4
4
  "token": "yV85IsmuYwmjQGlZ",
5
5
  "enabled": true,
6
- "href": "/v3.4/webhooks/fcb73186-0733-4f6f-9c57-d9d5ef979443",
6
+ "href": "/v3.5/webhooks/fcb73186-0733-4f6f-9c57-d9d5ef979443",
7
7
  "environments": [
8
8
  "live"
9
9
  ],
@@ -4,7 +4,7 @@
4
4
  "id": "dd0a89e4-d44e-417a-aec4-01137d01ae59",
5
5
  "url": "https://demo.com",
6
6
  "enabled":false,
7
- "href": "/v3.4/webhooks/dd0a89e4-d44e-417a-aec4-01137d01ae59",
7
+ "href": "/v3.5/webhooks/dd0a89e4-d44e-417a-aec4-01137d01ae59",
8
8
  "environments": [
9
9
  "live"
10
10
  ],
@@ -18,7 +18,7 @@
18
18
  "id": "bfc727a8-f7bf-4073-b123-ed70a70f58e5",
19
19
  "url": "https://demo2.com",
20
20
  "enabled": true,
21
- "href": "/v3.4/webhooks/bfc727a8-f7bf-4073-b123-ed70a70f58e5",
21
+ "href": "/v3.5/webhooks/bfc727a8-f7bf-4073-b123-ed70a70f58e5",
22
22
  "environments": [
23
23
  "live"
24
24
  ],
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: 2.3.0
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Onfido
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-23 00:00:00.000000000 Z
11
+ date: 2022-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -141,6 +141,7 @@ files:
141
141
  - lib/onfido/resources/extraction.rb
142
142
  - lib/onfido/resources/live_photo.rb
143
143
  - lib/onfido/resources/live_video.rb
144
+ - lib/onfido/resources/motion_capture.rb
144
145
  - lib/onfido/resources/report.rb
145
146
  - lib/onfido/resources/sdk_token.rb
146
147
  - lib/onfido/resources/webhook.rb
@@ -153,6 +154,7 @@ files:
153
154
  - spec/integrations/extraction_spec.rb
154
155
  - spec/integrations/live_photo_spec.rb
155
156
  - spec/integrations/live_video_spec.rb
157
+ - spec/integrations/motion_capture_spec.rb
156
158
  - spec/integrations/report_spec.rb
157
159
  - spec/integrations/resource_spec.rb
158
160
  - spec/integrations/sdk_token_spec.rb
@@ -176,6 +178,8 @@ files:
176
178
  - spec/support/fixtures/live_photos.json
177
179
  - spec/support/fixtures/live_video.json
178
180
  - spec/support/fixtures/live_videos.json
181
+ - spec/support/fixtures/motion_capture.json
182
+ - spec/support/fixtures/motion_captures.json
179
183
  - spec/support/fixtures/not_scheduled_for_deletion_error.json
180
184
  - spec/support/fixtures/report.json
181
185
  - spec/support/fixtures/reports.json
@@ -214,6 +218,7 @@ test_files:
214
218
  - spec/integrations/extraction_spec.rb
215
219
  - spec/integrations/live_photo_spec.rb
216
220
  - spec/integrations/live_video_spec.rb
221
+ - spec/integrations/motion_capture_spec.rb
217
222
  - spec/integrations/report_spec.rb
218
223
  - spec/integrations/resource_spec.rb
219
224
  - spec/integrations/sdk_token_spec.rb
@@ -237,6 +242,8 @@ test_files:
237
242
  - spec/support/fixtures/live_photos.json
238
243
  - spec/support/fixtures/live_video.json
239
244
  - spec/support/fixtures/live_videos.json
245
+ - spec/support/fixtures/motion_capture.json
246
+ - spec/support/fixtures/motion_captures.json
240
247
  - spec/support/fixtures/not_scheduled_for_deletion_error.json
241
248
  - spec/support/fixtures/report.json
242
249
  - spec/support/fixtures/reports.json