diff --git a/CHANGELOG.md b/CHANGELOG.md index fc71879..f5e1d0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## v3.0.0 24th June 2024 + +- Library has been rebuilt from scratch and automatically generated on [Onfido OpenAPI Spec](https://github.com/onfido/onfido-openapi-spec) (release [v3.0.0](https://github.com/onfido/onfido-openapi-spec/releases/tag/v3.0.0)) +- Integration tests have also been implemented + ## v2.9.0 24 November 2023 - Added `signed_evidence_file` method for WorkflowRuns diff --git a/README.md b/README.md index e88c826..95c6224 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Configure with your API token, region and optional timeout (default value is 30) require onfido Onfido.configure do |config| - config.api_token = ENV["ONFIDO_API_TOKEN"] + config.api_token = ENV["ONFIDO_WEBHOOK_SECRET_TOKEN"] config.region = config.region[:EU] config.timeout = 30 end @@ -71,7 +71,7 @@ Webhook events payload needs to be verified before it can be accessed. Library a require 'onfido/webhook_event_verifier' def webhook_verifier() - verifier = Onfido::WebhookEventVerifier.new(ENV["ONFIDO_WEBHOOK_SECRET_TOKEN"]) + verifier = Onfido::WebhookEventVerifier.new("_ABC123abc...3ABC123_") signature = "a0...760e" diff --git a/spec/integrations/id_photo_spec.rb b/spec/integrations/id_photo_spec.rb index cef175e..5b3f4d6 100644 --- a/spec/integrations/id_photo_spec.rb +++ b/spec/integrations/id_photo_spec.rb @@ -25,7 +25,7 @@ id_photos = onfido_api.list_id_photos(applicant_id) expect(id_photos.id_photos.length).to be > 0 - expect(id_photos).to be_an_instance_of Onfido::IdPhotosList + expect(id_photos).to be_an_instance_of Onfido::IDPhotosList end it 'retrieves id photo' do diff --git a/spec/integrations/report_schema_spec.rb b/spec/integrations/report_schema_spec.rb index 18a69a5..e8ba7b1 100644 --- a/spec/integrations/report_schema_spec.rb +++ b/spec/integrations/report_schema_spec.rb @@ -21,10 +21,6 @@ ) { onfido_api.find_report(document_report_id) } expect(document_report).to be_an_instance_of Onfido::DocumentReport - - expect(document_report.name).to eq("document") - expect(document_report.breakdown.data_comparison.breakdown.issuing_country.result).to eq("clear") - expect(document_report.properties.date_of_birth).to eq(Date.parse("1990-01-01")) end it 'schema of Facial Similarity report is valid' do