onfido 4.2.0 → 4.3.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 +6 -0
- data/README.md +1 -1
- data/lib/onfido/api_client.rb +1 -1
- data/lib/onfido/models/document_properties.rb +4 -2
- data/lib/onfido/models/{document_properties_barcode.rb → document_properties_barcode_inner.rb} +3 -3
- data/lib/onfido/models/document_with_driver_verification_report_all_of_properties.rb +4 -2
- data/lib/onfido/version.rb +1 -1
- data/lib/onfido.rb +1 -1
- data/spec/integrations/report_schema_spec.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a851838e4b60556d54bd1fbf71d53f2b8a1b163d96885d1c28d7c61f85bd0e51
|
4
|
+
data.tar.gz: 40eb5ef6d9be36de0342c24afaf7485879126471fe3505fedae8fe9aa31305de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d446fff108b5090493aa73017b958c76ad520cb734f43611eec05e947f7936ea4bcb02bf9f932598d26b3fd3bd0b85b50330a696560e19371a3fb69e531a7fb9
|
7
|
+
data.tar.gz: af4b4da542c2f8fa7da2af5f173d7cfde397f56d92708cf5405d6cabec77c54cbca38863549e1f62194ca8ecede384ff7ab44db0bdb7a06e430df56fac80ef54
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## v4.2.0 19th November 2024
|
4
|
+
|
5
|
+
- Release based on Onfido OpenAPI spec version [v4.2.0](https://github.com/onfido/onfido-openapi-spec/releases/tag/v4.2.0):
|
6
|
+
- feat: add new fields to facial similarity report objects
|
7
|
+
- [CAT-1552] Add missing document types
|
8
|
+
|
3
9
|
## v4.1.0 8th November 2024
|
4
10
|
|
5
11
|
- Release based on Onfido OpenAPI spec version [v4.1.0](https://github.com/onfido/onfido-openapi-spec/releases/tag/v4.1.0):
|
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, '~> 4.
|
17
|
+
gem onfido, '~> 4.3.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
@@ -34,7 +34,7 @@ module Onfido
|
|
34
34
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
35
35
|
def initialize(config = Configuration.default)
|
36
36
|
@config = config
|
37
|
-
@user_agent = "onfido-ruby/4.
|
37
|
+
@user_agent = "onfido-ruby/4.3.0"
|
38
38
|
@default_headers = {
|
39
39
|
'Content-Type' => 'application/json',
|
40
40
|
'User-Agent' => @user_agent
|
@@ -226,7 +226,7 @@ module Onfido
|
|
226
226
|
:'real_id_compliance' => :'Boolean',
|
227
227
|
:'security_tier' => :'String',
|
228
228
|
:'address_lines' => :'DocumentPropertiesAddressLines',
|
229
|
-
:'barcode' => :'
|
229
|
+
:'barcode' => :'Array<DocumentPropertiesBarcodeInner>',
|
230
230
|
:'nfc' => :'DocumentPropertiesNfc',
|
231
231
|
:'driving_licence_information' => :'DocumentPropertiesDrivingLicenceInformation',
|
232
232
|
:'document_classification' => :'DocumentPropertiesDocumentClassification',
|
@@ -418,7 +418,9 @@ module Onfido
|
|
418
418
|
end
|
419
419
|
|
420
420
|
if attributes.key?(:'barcode')
|
421
|
-
|
421
|
+
if (value = attributes[:'barcode']).is_a?(Array)
|
422
|
+
self.barcode = value
|
423
|
+
end
|
422
424
|
end
|
423
425
|
|
424
426
|
if attributes.key?(:'nfc')
|
data/lib/onfido/models/{document_properties_barcode.rb → document_properties_barcode_inner.rb}
RENAMED
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module Onfido
|
17
|
-
class
|
17
|
+
class DocumentPropertiesBarcodeInner
|
18
18
|
attr_accessor :first_name
|
19
19
|
|
20
20
|
attr_accessor :middle_name
|
@@ -114,13 +114,13 @@ module Onfido
|
|
114
114
|
# @param [Hash] attributes Model attributes in the form of hash
|
115
115
|
def initialize(attributes = {})
|
116
116
|
if (!attributes.is_a?(Hash))
|
117
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Onfido::
|
117
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Onfido::DocumentPropertiesBarcodeInner` initialize method"
|
118
118
|
end
|
119
119
|
|
120
120
|
# check to see if the attribute exists and convert string to symbol for hash key
|
121
121
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
122
122
|
if (!self.class.attribute_map.key?(k.to_sym))
|
123
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::
|
123
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Onfido::DocumentPropertiesBarcodeInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
124
124
|
end
|
125
125
|
h[k.to_sym] = v
|
126
126
|
}
|
@@ -249,7 +249,7 @@ module Onfido
|
|
249
249
|
:'real_id_compliance' => :'Boolean',
|
250
250
|
:'security_tier' => :'String',
|
251
251
|
:'address_lines' => :'DocumentPropertiesAddressLines',
|
252
|
-
:'barcode' => :'
|
252
|
+
:'barcode' => :'Array<DocumentPropertiesBarcodeInner>',
|
253
253
|
:'nfc' => :'DocumentPropertiesNfc',
|
254
254
|
:'driving_licence_information' => :'DocumentPropertiesDrivingLicenceInformation',
|
255
255
|
:'document_classification' => :'DocumentPropertiesDocumentClassification',
|
@@ -454,7 +454,9 @@ module Onfido
|
|
454
454
|
end
|
455
455
|
|
456
456
|
if attributes.key?(:'barcode')
|
457
|
-
|
457
|
+
if (value = attributes[:'barcode']).is_a?(Array)
|
458
|
+
self.barcode = value
|
459
|
+
end
|
458
460
|
end
|
459
461
|
|
460
462
|
if attributes.key?(:'nfc')
|
data/lib/onfido/version.rb
CHANGED
data/lib/onfido.rb
CHANGED
@@ -92,7 +92,7 @@ require 'onfido/models/document_iq_reasons'
|
|
92
92
|
require 'onfido/models/document_odp_reasons'
|
93
93
|
require 'onfido/models/document_properties'
|
94
94
|
require 'onfido/models/document_properties_address_lines'
|
95
|
-
require 'onfido/models/
|
95
|
+
require 'onfido/models/document_properties_barcode_inner'
|
96
96
|
require 'onfido/models/document_properties_document_classification'
|
97
97
|
require 'onfido/models/document_properties_document_numbers_inner'
|
98
98
|
require 'onfido/models/document_properties_driving_licence_information'
|
@@ -55,8 +55,8 @@ describe Onfido::Report do
|
|
55
55
|
) { onfido_api.find_report(report_id) }
|
56
56
|
|
57
57
|
expect(report).to be_an_instance_of Onfido::DocumentWithAddressInformationReport
|
58
|
-
expect(report.properties.barcode).to be_an_instance_of Onfido::
|
59
|
-
expect(report.properties.barcode.document_type).to eq("driving_licence")
|
58
|
+
expect(report.properties.barcode[0]).to be_an_instance_of Onfido::DocumentPropertiesBarcodeInner
|
59
|
+
expect(report.properties.barcode[0].document_type).to eq("driving_licence")
|
60
60
|
end
|
61
61
|
end
|
62
62
|
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: 4.
|
4
|
+
version: 4.3.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: 2024-11-
|
11
|
+
date: 2024-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -213,7 +213,7 @@ files:
|
|
213
213
|
- lib/onfido/models/document_odp_reasons.rb
|
214
214
|
- lib/onfido/models/document_properties.rb
|
215
215
|
- lib/onfido/models/document_properties_address_lines.rb
|
216
|
-
- lib/onfido/models/
|
216
|
+
- lib/onfido/models/document_properties_barcode_inner.rb
|
217
217
|
- lib/onfido/models/document_properties_document_classification.rb
|
218
218
|
- lib/onfido/models/document_properties_document_numbers_inner.rb
|
219
219
|
- lib/onfido/models/document_properties_driving_licence_information.rb
|