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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5034e103f202342b111c75ed70379932fca1cb6170c6db30a624ca6dc9e80cf8
4
- data.tar.gz: e36fe9f6e5d083791e5cb4b11098182804ff5d17a30d760f50943c350d248bdd
3
+ metadata.gz: a851838e4b60556d54bd1fbf71d53f2b8a1b163d96885d1c28d7c61f85bd0e51
4
+ data.tar.gz: 40eb5ef6d9be36de0342c24afaf7485879126471fe3505fedae8fe9aa31305de
5
5
  SHA512:
6
- metadata.gz: 372050d0307a31631856a663fec38d6b23c028b024863e6ff602679a7259e7d32cc948e7d55e37a8f5b9b9281fd2a45903e284f2bbf58b101f67a70113eb65bb
7
- data.tar.gz: 7f6c49fe07d48ca4ec380cc1dbcbeccc5f4f4f113cc91ba3fcbecd9c5a2c32ff94cf6bfc76129b3f2c18abf2ffd3e262fc636e32f548efe1378ed10a43e1a993
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.2.0'
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):
@@ -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.2.0"
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' => :'DocumentPropertiesBarcode',
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
- self.barcode = attributes[:'barcode']
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')
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Onfido
17
- class DocumentPropertiesBarcode
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::DocumentPropertiesBarcode` initialize method"
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::DocumentPropertiesBarcode`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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' => :'DocumentPropertiesBarcode',
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
- self.barcode = attributes[:'barcode']
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')
@@ -11,5 +11,5 @@ Generator version: 7.9.0
11
11
  =end
12
12
 
13
13
  module Onfido
14
- VERSION = '4.2.0'
14
+ VERSION = '4.3.0'
15
15
  end
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/document_properties_barcode'
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::DocumentPropertiesBarcode
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.2.0
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-19 00:00:00.000000000 Z
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/document_properties_barcode.rb
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