onfido 5.5.0 → 5.6.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile +0 -2
- data/README.md +1 -1
- data/lib/onfido/api_client.rb +1 -1
- data/lib/onfido/models/extraction_document_classification.rb +2 -2
- data/lib/onfido/models/proof_of_address_properties.rb +2 -2
- data/lib/onfido/models/webhook_event_payload_resource.rb +14 -4
- data/lib/onfido/version.rb +1 -1
- data/onfido.gemspec +1 -1
- metadata +22 -22
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 64d5f592bf0aa8a4fbea4bddf86de25c7b1a1341fbfee3066bae162fff656139
|
|
4
|
+
data.tar.gz: 93f9faf94388a9d161068c2220b3ec2cf2813cefa1b3c6bf9974ef1652fcee3b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6b21fc206f619a85cd0422fd72dac56b953dcdf8f0270f32bfd276dc8cde052a27bb047bf8abe48571ab2f024a6bf24adcfa05d8831227a4cf23755bc4804329
|
|
7
|
+
data.tar.gz: 36edbbc7bec1113b35ba8d8974ddd57d70a25f307333c737c8d0d88576192e687b9ffe671d414662fe965405c05f9fb889b540713f9431a09d7b1a41c0782134
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v5.5.0 22nd September 2025
|
|
4
|
+
|
|
5
|
+
- Release based on Onfido OpenAPI spec version [v5.5.0](https://github.com/onfido/onfido-openapi-spec/releases/tag/v5.5.0):
|
|
6
|
+
- [SIG-3128] Add ssn breakdowns to IDR enhanced report
|
|
7
|
+
|
|
3
8
|
## v5.4.0 28th July 2025
|
|
4
9
|
|
|
5
10
|
- Release based on Onfido OpenAPI spec version [v5.4.0](https://github.com/onfido/onfido-openapi-spec/releases/tag/v5.4.0):
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -14,7 +14,7 @@ This version uses Onfido API v3.6. Refer to our [API versioning guide](https://d
|
|
|
14
14
|
### Installation
|
|
15
15
|
|
|
16
16
|
```ruby
|
|
17
|
-
gem 'onfido', '~> 5.
|
|
17
|
+
gem 'onfido', '~> 5.6.0'
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
Configure with your API token, region and optional timeout (default value is 30):
|
data/lib/onfido/api_client.rb
CHANGED
|
@@ -35,7 +35,7 @@ module Onfido
|
|
|
35
35
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
|
36
36
|
def initialize(config = Configuration.default)
|
|
37
37
|
@config = config
|
|
38
|
-
@user_agent = "onfido-ruby/5.
|
|
38
|
+
@user_agent = "onfido-ruby/5.6.0"
|
|
39
39
|
@default_headers = {
|
|
40
40
|
'Content-Type' => 'application/json',
|
|
41
41
|
'User-Agent' => @user_agent
|
|
@@ -133,7 +133,7 @@ module Onfido
|
|
|
133
133
|
# @return true if the model is valid
|
|
134
134
|
def valid?
|
|
135
135
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
136
|
-
subtype_validator = EnumAttributeValidator.new('String', ["full", "not_full", "provisional", "unknown_default_open_api"])
|
|
136
|
+
subtype_validator = EnumAttributeValidator.new('String', ["SPE", "ali", "alien", "com", "commercial", "dom", "domestic", "full", "not_full", "full driving licence", "heavy_vehicle", "learner", "minor (u21 or u18)", "mot", "mul", "provisional", "provisional driving licence", "ser", "spe", "special", "standard", "tem", "u21", "unknown_default_open_api"])
|
|
137
137
|
return false unless subtype_validator.valid?(@subtype)
|
|
138
138
|
true
|
|
139
139
|
end
|
|
@@ -141,7 +141,7 @@ module Onfido
|
|
|
141
141
|
# Custom attribute writer method checking allowed values (enum).
|
|
142
142
|
# @param [Object] subtype Object to be assigned
|
|
143
143
|
def subtype=(subtype)
|
|
144
|
-
validator = EnumAttributeValidator.new('String', ["full", "not_full", "provisional", "unknown_default_open_api"])
|
|
144
|
+
validator = EnumAttributeValidator.new('String', ["SPE", "ali", "alien", "com", "commercial", "dom", "domestic", "full", "not_full", "full driving licence", "heavy_vehicle", "learner", "minor (u21 or u18)", "mot", "mul", "provisional", "provisional driving licence", "ser", "spe", "special", "standard", "tem", "u21", "unknown_default_open_api"])
|
|
145
145
|
unless validator.valid?(subtype)
|
|
146
146
|
fail ArgumentError, "invalid value for \"subtype\", must be one of #{validator.allowable_values}."
|
|
147
147
|
end
|
|
@@ -160,7 +160,7 @@ module Onfido
|
|
|
160
160
|
# @return true if the model is valid
|
|
161
161
|
def valid?
|
|
162
162
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
163
|
-
document_type_validator = EnumAttributeValidator.new('String', ["bank_building_society_statement", "utility_bill", "council_tax", "benefit_letters", "mortgage_statement", "mobile_phone_bill", "general_letter", "insurance_statement", "pension_property_statement_letter", "identity_document_with_address", "exchange_house_statement", "unknown_default_open_api"])
|
|
163
|
+
document_type_validator = EnumAttributeValidator.new('String', ["bank_building_society_statement", "utility_bill", "council_tax", "benefit_letters", "mortgage_statement", "mobile_phone_bill", "general_letter", "insurance_statement", "pension_property_statement_letter", "identity_document_with_address", "exchange_house_statement", "accommodation_tenancy_certificate", "address_certificate", "electricity_bill", "gas_bill", "internet_bill", "phone_bill", "water_bill", "unknown_default_open_api"])
|
|
164
164
|
return false unless document_type_validator.valid?(@document_type)
|
|
165
165
|
true
|
|
166
166
|
end
|
|
@@ -168,7 +168,7 @@ module Onfido
|
|
|
168
168
|
# Custom attribute writer method checking allowed values (enum).
|
|
169
169
|
# @param [Object] document_type Object to be assigned
|
|
170
170
|
def document_type=(document_type)
|
|
171
|
-
validator = EnumAttributeValidator.new('String', ["bank_building_society_statement", "utility_bill", "council_tax", "benefit_letters", "mortgage_statement", "mobile_phone_bill", "general_letter", "insurance_statement", "pension_property_statement_letter", "identity_document_with_address", "exchange_house_statement", "unknown_default_open_api"])
|
|
171
|
+
validator = EnumAttributeValidator.new('String', ["bank_building_society_statement", "utility_bill", "council_tax", "benefit_letters", "mortgage_statement", "mobile_phone_bill", "general_letter", "insurance_statement", "pension_property_statement_letter", "identity_document_with_address", "exchange_house_statement", "accommodation_tenancy_certificate", "address_certificate", "electricity_bill", "gas_bill", "internet_bill", "phone_bill", "water_bill", "unknown_default_open_api"])
|
|
172
172
|
unless validator.valid?(document_type)
|
|
173
173
|
fail ArgumentError, "invalid value for \"document_type\", must be one of #{validator.allowable_values}."
|
|
174
174
|
end
|
|
@@ -63,6 +63,9 @@ module Onfido
|
|
|
63
63
|
# Customer-provided user identifier.
|
|
64
64
|
attr_accessor :customer_user_id
|
|
65
65
|
|
|
66
|
+
# Pre-signed URL to download the timeline file for the Workflow Run.
|
|
67
|
+
attr_accessor :timeline_file_download_url
|
|
68
|
+
|
|
66
69
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
67
70
|
def self.attribute_map
|
|
68
71
|
{
|
|
@@ -81,7 +84,8 @@ module Onfido
|
|
|
81
84
|
:'reasons' => :'reasons',
|
|
82
85
|
:'link' => :'link',
|
|
83
86
|
:'error' => :'error',
|
|
84
|
-
:'customer_user_id' => :'customer_user_id'
|
|
87
|
+
:'customer_user_id' => :'customer_user_id',
|
|
88
|
+
:'timeline_file_download_url' => :'timeline_file_download_url'
|
|
85
89
|
}
|
|
86
90
|
end
|
|
87
91
|
|
|
@@ -108,7 +112,8 @@ module Onfido
|
|
|
108
112
|
:'reasons' => :'Array<String>',
|
|
109
113
|
:'link' => :'WorkflowRunLink',
|
|
110
114
|
:'error' => :'WorkflowRunError',
|
|
111
|
-
:'customer_user_id' => :'String'
|
|
115
|
+
:'customer_user_id' => :'String',
|
|
116
|
+
:'timeline_file_download_url' => :'String'
|
|
112
117
|
}
|
|
113
118
|
end
|
|
114
119
|
|
|
@@ -200,6 +205,10 @@ module Onfido
|
|
|
200
205
|
if attributes.key?(:'customer_user_id')
|
|
201
206
|
self.customer_user_id = attributes[:'customer_user_id']
|
|
202
207
|
end
|
|
208
|
+
|
|
209
|
+
if attributes.key?(:'timeline_file_download_url')
|
|
210
|
+
self.timeline_file_download_url = attributes[:'timeline_file_download_url']
|
|
211
|
+
end
|
|
203
212
|
end
|
|
204
213
|
|
|
205
214
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -277,7 +286,8 @@ module Onfido
|
|
|
277
286
|
reasons == o.reasons &&
|
|
278
287
|
link == o.link &&
|
|
279
288
|
error == o.error &&
|
|
280
|
-
customer_user_id == o.customer_user_id
|
|
289
|
+
customer_user_id == o.customer_user_id &&
|
|
290
|
+
timeline_file_download_url == o.timeline_file_download_url
|
|
281
291
|
end
|
|
282
292
|
|
|
283
293
|
# @see the `==` method
|
|
@@ -289,7 +299,7 @@ module Onfido
|
|
|
289
299
|
# Calculates hash code according to all attributes.
|
|
290
300
|
# @return [Integer] Hash code
|
|
291
301
|
def hash
|
|
292
|
-
[id, applicant_id, created_at, updated_at, dashboard_url, workflow_id, workflow_run_id, workflow_version_id, task_def_id, task_def_version, input, output, reasons, link, error, customer_user_id].hash
|
|
302
|
+
[id, applicant_id, created_at, updated_at, dashboard_url, workflow_id, workflow_run_id, workflow_version_id, task_def_id, task_def_version, input, output, reasons, link, error, customer_user_id, timeline_file_download_url].hash
|
|
293
303
|
end
|
|
294
304
|
|
|
295
305
|
# Builds the object from hash
|
data/lib/onfido/version.rb
CHANGED
data/onfido.gemspec
CHANGED
|
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
|
|
|
29
29
|
s.metadata = {}
|
|
30
30
|
|
|
31
31
|
s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 3.0'
|
|
32
|
-
s.add_runtime_dependency 'faraday-follow_redirects', '~> 0.
|
|
32
|
+
s.add_runtime_dependency 'faraday-follow_redirects', '~> 0.5'
|
|
33
33
|
s.add_runtime_dependency 'faraday-multipart'
|
|
34
34
|
s.add_runtime_dependency 'marcel'
|
|
35
35
|
s.add_runtime_dependency 'openssl'
|
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.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-01-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -36,14 +36,14 @@ dependencies:
|
|
|
36
36
|
requirements:
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 0.
|
|
39
|
+
version: '0.5'
|
|
40
40
|
type: :runtime
|
|
41
41
|
prerelease: false
|
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
|
43
43
|
requirements:
|
|
44
44
|
- - "~>"
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: 0.
|
|
46
|
+
version: '0.5'
|
|
47
47
|
- !ruby/object:Gem::Dependency
|
|
48
48
|
name: faraday-multipart
|
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -498,35 +498,35 @@ specification_version: 4
|
|
|
498
498
|
summary: The official Ruby library for integrating with the Onfido API.
|
|
499
499
|
test_files:
|
|
500
500
|
- spec/classic_webhook_event_verifier_spec.rb
|
|
501
|
-
- spec/integrations/id_photo_spec.rb
|
|
502
|
-
- spec/integrations/extraction_spec.rb
|
|
503
|
-
- spec/integrations/check_spec.rb
|
|
504
|
-
- spec/integrations/address_picker_spec.rb
|
|
505
|
-
- spec/integrations/live_photo_spec.rb
|
|
506
|
-
- spec/integrations/live_video_spec.rb
|
|
507
|
-
- spec/integrations/sdk_token_spec.rb
|
|
508
|
-
- spec/integrations/document_spec.rb
|
|
509
501
|
- spec/integrations/tasks_spec.rb
|
|
510
|
-
- spec/integrations/
|
|
511
|
-
- spec/integrations/
|
|
502
|
+
- spec/integrations/workflow_run_output_spec.rb
|
|
503
|
+
- spec/integrations/watchlist_monitor_spec.rb
|
|
512
504
|
- spec/integrations/media/sample_photo.png
|
|
513
505
|
- spec/integrations/media/sample_driving_licence.png
|
|
514
|
-
- spec/integrations/
|
|
506
|
+
- spec/integrations/id_photo_spec.rb
|
|
507
|
+
- spec/integrations/advanced_electronic_signature_spec.rb
|
|
515
508
|
- spec/integrations/applicant_spec.rb
|
|
516
|
-
- spec/integrations/
|
|
509
|
+
- spec/integrations/qualified_electronic_signature_spec.rb
|
|
517
510
|
- spec/integrations/motion_capture_spec.rb
|
|
511
|
+
- spec/integrations/document_spec.rb
|
|
512
|
+
- spec/integrations/sdk_token_spec.rb
|
|
513
|
+
- spec/integrations/workflow_run_spec.rb
|
|
518
514
|
- spec/integrations/webhook_spec.rb
|
|
519
|
-
- spec/integrations/
|
|
520
|
-
- spec/integrations/workflow_run_output_spec.rb
|
|
515
|
+
- spec/integrations/report_spec.rb
|
|
521
516
|
- spec/integrations/report_schema_spec.rb
|
|
522
|
-
- spec/
|
|
517
|
+
- spec/integrations/live_photo_spec.rb
|
|
518
|
+
- spec/integrations/address_picker_spec.rb
|
|
519
|
+
- spec/integrations/check_spec.rb
|
|
520
|
+
- spec/integrations/extraction_spec.rb
|
|
521
|
+
- spec/integrations/live_video_spec.rb
|
|
523
522
|
- spec/media/studio_webhook_event_with_list_in_output.json
|
|
524
|
-
- spec/
|
|
525
|
-
- spec/shared_contexts/with_check.rb
|
|
526
|
-
- spec/shared_contexts/with_document.rb
|
|
523
|
+
- spec/media/studio_webhook_event_with_object_in_output.json
|
|
527
524
|
- spec/shared_contexts/with_onfido.rb
|
|
528
525
|
- spec/shared_contexts/with_workflow_run.rb
|
|
526
|
+
- spec/shared_contexts/with_applicant.rb
|
|
529
527
|
- spec/shared_contexts/with_live_photo.rb
|
|
528
|
+
- spec/shared_contexts/with_document.rb
|
|
529
|
+
- spec/shared_contexts/with_check.rb
|
|
530
530
|
- spec/shared_examples/file_examples.rb
|
|
531
531
|
- spec/spec_helper.rb
|
|
532
532
|
- spec/studio_webhook_event_verifier_spec.rb
|