From 19e16a803a1671bbe474cadc086248ce1f476956 Mon Sep 17 00:00:00 2001 From: dvacca-onfido <134616519+dvacca-onfido@users.noreply.github.com> Date: Fri, 17 Oct 2025 14:19:09 +0000 Subject: [PATCH] Upgrade after onfido-openapi-spec change dbd43ed --- .release.json | 8 ++++---- README.md | 2 +- lib/onfido/api/default_api.rb | 3 +++ lib/onfido/api_client.rb | 2 +- lib/onfido/models/proof_of_address_properties.rb | 4 ++-- .../models/webhook_event_payload_resource.rb | 14 +++++++++++++- lib/onfido/version.rb | 2 +- 7 files changed, 25 insertions(+), 10 deletions(-) diff --git a/.release.json b/.release.json index 123cbd2..1b287d2 100644 --- a/.release.json +++ b/.release.json @@ -1,9 +1,9 @@ { "source": { "repo_url": "https://github.com/onfido/onfido-openapi-spec", - "short_sha": "c80d3b5", - "long_sha": "c80d3b513a15bb67ec316709884b890ab2f47121", - "version": "v5.5.0" + "short_sha": "dbd43ed", + "long_sha": "dbd43ed035dc8ddaf611883e77370114f21534e5", + "version": "v5.6.0" }, - "release": "v5.5.0" + "release": "v5.6.0" } diff --git a/README.md b/README.md index 3b4499b..2e1c64e 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ This version uses Onfido API v3.6. Refer to our [API versioning guide](https://d ### Installation ```ruby -gem 'onfido', '~> 5.5.0' +gem 'onfido', '~> 5.6.0' ``` Configure with your API token, region and optional timeout (default value is 30): diff --git a/lib/onfido/api/default_api.rb b/lib/onfido/api/default_api.rb index 93245eb..fcfffc2 100644 --- a/lib/onfido/api/default_api.rb +++ b/lib/onfido/api/default_api.rb @@ -3645,6 +3645,7 @@ def list_webhooks_with_http_info(opts = {}) # @option opts [Time] :created_at_lt A ISO-8601 date to filter results with a created date less than (before) the one provided. # @option opts [String] :sort A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'. (default to 'desc') # @option opts [String] :applicant_id the applicant's id. + # @option opts [Array] :tags A list of tags to filter the results. # @return [Array] def list_workflow_runs(opts = {}) data, _status_code, _headers = list_workflow_runs_with_http_info(opts) @@ -3660,6 +3661,7 @@ def list_workflow_runs(opts = {}) # @option opts [Time] :created_at_lt A ISO-8601 date to filter results with a created date less than (before) the one provided. # @option opts [String] :sort A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'. (default to 'desc') # @option opts [String] :applicant_id the applicant's id. + # @option opts [Array] :tags A list of tags to filter the results. # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers def list_workflow_runs_with_http_info(opts = {}) if @api_client.config.debugging @@ -3680,6 +3682,7 @@ def list_workflow_runs_with_http_info(opts = {}) query_params[:'created_at_lt'] = opts[:'created_at_lt'] if !opts[:'created_at_lt'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? query_params[:'applicant_id'] = opts[:'applicant_id'] if !opts[:'applicant_id'].nil? + query_params[:'tags'] = @api_client.build_collection_param(opts[:'tags'], :csv) if !opts[:'tags'].nil? # header parameters header_params = opts[:header_params] || {} diff --git a/lib/onfido/api_client.rb b/lib/onfido/api_client.rb index 5f477dd..32d3f5a 100644 --- a/lib/onfido/api_client.rb +++ b/lib/onfido/api_client.rb @@ -35,7 +35,7 @@ class ApiClient # @option config [Configuration] Configuration for initializing the object, default to Configuration.default def initialize(config = Configuration.default) @config = config - @user_agent = "onfido-ruby/5.5.0" + @user_agent = "onfido-ruby/5.6.0" @default_headers = { 'Content-Type' => 'application/json', 'User-Agent' => @user_agent diff --git a/lib/onfido/models/proof_of_address_properties.rb b/lib/onfido/models/proof_of_address_properties.rb index 1cf2c30..fd86c19 100644 --- a/lib/onfido/models/proof_of_address_properties.rb +++ b/lib/onfido/models/proof_of_address_properties.rb @@ -160,7 +160,7 @@ def list_invalid_properties # @return true if the model is valid def valid? warn '[DEPRECATED] the `valid?` method is obsolete' - 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"]) + 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"]) return false unless document_type_validator.valid?(@document_type) true end @@ -168,7 +168,7 @@ def valid? # Custom attribute writer method checking allowed values (enum). # @param [Object] document_type Object to be assigned def document_type=(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"]) + 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"]) unless validator.valid?(document_type) fail ArgumentError, "invalid value for \"document_type\", must be one of #{validator.allowable_values}." end diff --git a/lib/onfido/models/webhook_event_payload_resource.rb b/lib/onfido/models/webhook_event_payload_resource.rb index fa3792a..cdd812d 100644 --- a/lib/onfido/models/webhook_event_payload_resource.rb +++ b/lib/onfido/models/webhook_event_payload_resource.rb @@ -54,6 +54,9 @@ class WebhookEventPayloadResource # The reasons the Workflow Run outcome was reached. Configurable when creating the Workflow Version. attr_accessor :reasons + # A list of tags associated with the Workflow Run. + attr_accessor :tags + # Object for the configuration of the Workflow Run link. attr_accessor :link @@ -79,6 +82,7 @@ def self.attribute_map :'input' => :'input', :'output' => :'output', :'reasons' => :'reasons', + :'tags' => :'tags', :'link' => :'link', :'error' => :'error', :'customer_user_id' => :'customer_user_id' @@ -106,6 +110,7 @@ def self.openapi_types :'input' => :'Object', :'output' => :'Object', :'reasons' => :'Array', + :'tags' => :'Array', :'link' => :'WorkflowRunLink', :'error' => :'WorkflowRunError', :'customer_user_id' => :'String' @@ -189,6 +194,12 @@ def initialize(attributes = {}) end end + if attributes.key?(:'tags') + if (value = attributes[:'tags']).is_a?(Array) + self.tags = value + end + end + if attributes.key?(:'link') self.link = attributes[:'link'] end @@ -275,6 +286,7 @@ def ==(o) input == o.input && output == o.output && reasons == o.reasons && + tags == o.tags && link == o.link && error == o.error && customer_user_id == o.customer_user_id @@ -289,7 +301,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [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 + [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, tags, link, error, customer_user_id].hash end # Builds the object from hash diff --git a/lib/onfido/version.rb b/lib/onfido/version.rb index a7d24c1..e929657 100644 --- a/lib/onfido/version.rb +++ b/lib/onfido/version.rb @@ -11,5 +11,5 @@ =end module Onfido - VERSION = '5.5.0' + VERSION = '5.6.0' end