onfido 5.2.0 → 5.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: d9d1b25944b1a8260f459e08ea5fa12d445303f25066e75736c3d305ec77b52f
4
- data.tar.gz: 700a5d91654fe610c6b95f206edf1d85366e06dd24ce9ff84fd95c8e89cc6cb1
3
+ metadata.gz: 89d4e3b1ff4f2b746cd887bf6c5851d871ddab48f848c02c2e321d168e8124bf
4
+ data.tar.gz: 8e7d37918c9e9751113dd8e390e69cc92e7e5847bd48cc8426e5084a32fecfb8
5
5
  SHA512:
6
- metadata.gz: 93a5c47f5302b73dd9666f85741c7c199731e9d6bb703b169d2dd3ec02521fac1fb1c5b1e0ee2402fe279e4e4d66b026ddc591e756dcf2d3da6c59a6c2ee589d
7
- data.tar.gz: 683b92367a3e2ca427c7dbebbb5847927f45d61437786d78dd916d323e42fcebf78966196dc779a32998a6179ec3b49c1a089fb2dd9437c0856b4b9b80bcd9ae
6
+ metadata.gz: d60100dd4e03fe9cdc6cf890251940c5a532c94bbf059cfd3e7669f3cb348388ef2757c116d7720fdb568c32630c9a08a41598dfc48a84591c74e6a57b5cb810
7
+ data.tar.gz: d7bddea0dcbcc52d7afd6467aed32e0dc3c7ce062f7acd5dd5947481ed8e7d0506c68a918e48c50379337894f93c0f699eefbe24fbbfdb29d91bea71f9d5ae60
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## v5.2.0 5th June 2025
4
+
5
+ - Release based on Onfido OpenAPI spec version [v5.2.0](https://github.com/onfido/onfido-openapi-spec/releases/tag/v5.2.0):
6
+ - [BIO-7260] Add report configuration (including use_case) to checks
7
+
3
8
  ## v5.1.1 19th May 2025
4
9
 
5
10
  - Release based on Onfido OpenAPI spec version [v5.1.1](https://github.com/onfido/onfido-openapi-spec/releases/tag/v5.1.1):
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.2.0'
17
+ gem 'onfido', '~> 5.3.0'
18
18
  ```
19
19
 
20
20
  Configure with your API token, region and optional timeout (default value is 30):
@@ -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.2.0"
38
+ @user_agent = "onfido-ruby/5.3.0"
39
39
  @default_headers = {
40
40
  'Content-Type' => 'application/json',
41
41
  'User-Agent' => @user_agent
@@ -117,6 +117,9 @@ module Onfido
117
117
  # Comma-separated vehicle classes that the user is qualified for
118
118
  attr_accessor :raw_vehicle_classes
119
119
 
120
+ # True if the user is not qualified to drive a manual transmission
121
+ attr_accessor :manual_transmission_restriction
122
+
120
123
  # Detailed classes/categories information
121
124
  attr_accessor :vehicle_class_details
122
125
 
@@ -196,6 +199,7 @@ module Onfido
196
199
  :'restricted_licence' => :'restricted_licence',
197
200
  :'raw_licence_category' => :'raw_licence_category',
198
201
  :'raw_vehicle_classes' => :'raw_vehicle_classes',
202
+ :'manual_transmission_restriction' => :'manual_transmission_restriction',
199
203
  :'vehicle_class_details' => :'vehicle_class_details',
200
204
  :'passenger_vehicle' => :'passenger_vehicle'
201
205
  }
@@ -258,6 +262,7 @@ module Onfido
258
262
  :'restricted_licence' => :'Boolean',
259
263
  :'raw_licence_category' => :'String',
260
264
  :'raw_vehicle_classes' => :'String',
265
+ :'manual_transmission_restriction' => :'Boolean',
261
266
  :'vehicle_class_details' => :'Array<DocumentWithDriverVerificationReportAllOfPropertiesAllOfVehicleClassDetailsInner>',
262
267
  :'passenger_vehicle' => :'DocumentWithDriverVerificationReportAllOfPropertiesAllOfPassengerVehicle'
263
268
  }
@@ -493,6 +498,10 @@ module Onfido
493
498
  self.raw_vehicle_classes = attributes[:'raw_vehicle_classes']
494
499
  end
495
500
 
501
+ if attributes.key?(:'manual_transmission_restriction')
502
+ self.manual_transmission_restriction = attributes[:'manual_transmission_restriction']
503
+ end
504
+
496
505
  if attributes.key?(:'vehicle_class_details')
497
506
  if (value = attributes[:'vehicle_class_details']).is_a?(Array)
498
507
  self.vehicle_class_details = value
@@ -609,6 +618,7 @@ module Onfido
609
618
  restricted_licence == o.restricted_licence &&
610
619
  raw_licence_category == o.raw_licence_category &&
611
620
  raw_vehicle_classes == o.raw_vehicle_classes &&
621
+ manual_transmission_restriction == o.manual_transmission_restriction &&
612
622
  vehicle_class_details == o.vehicle_class_details &&
613
623
  passenger_vehicle == o.passenger_vehicle
614
624
  end
@@ -622,7 +632,7 @@ module Onfido
622
632
  # Calculates hash code according to all attributes.
623
633
  # @return [Integer] Hash code
624
634
  def hash
625
- [date_of_birth, date_of_expiry, personal_number, document_numbers, document_type, first_name, middle_name, last_name, gender, issuing_country, nationality, issuing_state, issuing_date, categorisation, mrz_line1, mrz_line2, mrz_line3, address, place_of_birth, spouse_name, widow_name, alias_name, issuing_authority, remarks, civil_state, expatriation, father_name, mother_name, religion, type_of_permit, version_number, document_subtype, profession, security_document_number, tax_number, nist_identity_evidence_strength, has_issuance_confirmation, real_id_compliance, security_tier, address_lines, barcode, nfc, driving_licence_information, document_classification, extracted_data, drivers_licence, restricted_licence, raw_licence_category, raw_vehicle_classes, vehicle_class_details, passenger_vehicle].hash
635
+ [date_of_birth, date_of_expiry, personal_number, document_numbers, document_type, first_name, middle_name, last_name, gender, issuing_country, nationality, issuing_state, issuing_date, categorisation, mrz_line1, mrz_line2, mrz_line3, address, place_of_birth, spouse_name, widow_name, alias_name, issuing_authority, remarks, civil_state, expatriation, father_name, mother_name, religion, type_of_permit, version_number, document_subtype, profession, security_document_number, tax_number, nist_identity_evidence_strength, has_issuance_confirmation, real_id_compliance, security_tier, address_lines, barcode, nfc, driving_licence_information, document_classification, extracted_data, drivers_licence, restricted_licence, raw_licence_category, raw_vehicle_classes, manual_transmission_restriction, vehicle_class_details, passenger_vehicle].hash
626
636
  end
627
637
 
628
638
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.11.0
11
11
  =end
12
12
 
13
13
  module Onfido
14
- VERSION = '5.2.0'
14
+ VERSION = '5.3.0'
15
15
  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.2.0
4
+ version: 5.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: 2025-06-05 00:00:00.000000000 Z
11
+ date: 2025-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -493,34 +493,34 @@ specification_version: 4
493
493
  summary: The official Ruby library for integrating with the Onfido API.
494
494
  test_files:
495
495
  - spec/classic_webhook_event_verifier_spec.rb
496
- - spec/integrations/report_schema_spec.rb
497
- - spec/integrations/extraction_spec.rb
496
+ - spec/integrations/sdk_token_spec.rb
497
+ - spec/integrations/qualified_electronic_signature_spec.rb
498
+ - spec/integrations/applicant_spec.rb
499
+ - spec/integrations/webhook_spec.rb
498
500
  - spec/integrations/workflow_run_spec.rb
499
501
  - spec/integrations/live_photo_spec.rb
500
- - spec/integrations/watchlist_monitor_spec.rb
501
- - spec/integrations/sdk_token_spec.rb
502
- - spec/integrations/document_spec.rb
502
+ - spec/integrations/extraction_spec.rb
503
+ - spec/integrations/live_video_spec.rb
503
504
  - spec/integrations/tasks_spec.rb
505
+ - spec/integrations/document_spec.rb
506
+ - spec/integrations/watchlist_monitor_spec.rb
507
+ - spec/integrations/id_photo_spec.rb
508
+ - spec/integrations/motion_capture_spec.rb
509
+ - spec/integrations/workflow_run_output_spec.rb
510
+ - spec/integrations/check_spec.rb
511
+ - spec/integrations/report_spec.rb
504
512
  - spec/integrations/media/sample_driving_licence.png
505
513
  - spec/integrations/media/sample_photo.png
506
- - spec/integrations/workflow_run_output_spec.rb
507
- - spec/integrations/id_photo_spec.rb
514
+ - spec/integrations/report_schema_spec.rb
508
515
  - spec/integrations/address_picker_spec.rb
509
- - spec/integrations/live_video_spec.rb
510
- - spec/integrations/qualified_electronic_signature_spec.rb
511
- - spec/integrations/report_spec.rb
512
- - spec/integrations/check_spec.rb
513
- - spec/integrations/webhook_spec.rb
514
- - spec/integrations/applicant_spec.rb
515
- - spec/integrations/motion_capture_spec.rb
516
- - spec/media/studio_webhook_event_with_list_in_output.json
517
516
  - spec/media/studio_webhook_event_with_object_in_output.json
517
+ - spec/media/studio_webhook_event_with_list_in_output.json
518
+ - spec/shared_contexts/with_onfido.rb
519
+ - spec/shared_contexts/with_document.rb
518
520
  - spec/shared_contexts/with_check.rb
519
521
  - spec/shared_contexts/with_applicant.rb
520
- - spec/shared_contexts/with_live_photo.rb
521
- - spec/shared_contexts/with_onfido.rb
522
522
  - spec/shared_contexts/with_workflow_run.rb
523
- - spec/shared_contexts/with_document.rb
523
+ - spec/shared_contexts/with_live_photo.rb
524
524
  - spec/shared_examples/file_examples.rb
525
525
  - spec/spec_helper.rb
526
526
  - spec/studio_webhook_event_verifier_spec.rb