Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .release.json
Original file line number Diff line number Diff line change
@@ -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"
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
3 changes: 3 additions & 0 deletions lib/onfido/api/default_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>] :tags A list of tags to filter the results.
# @return [Array<WorkflowRun>]
def list_workflow_runs(opts = {})
data, _status_code, _headers = list_workflow_runs_with_http_info(opts)
Expand All @@ -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 &#39;desc&#39; or &#39;asc&#39; that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to &#39;desc&#39;. (default to 'desc')
# @option opts [String] :applicant_id the applicant&#39;s id.
# @option opts [Array<String>] :tags A list of tags to filter the results.
# @return [Array<(Array<WorkflowRun>, Integer, Hash)>] Array<WorkflowRun> data, response status code and response headers
def list_workflow_runs_with_http_info(opts = {})
if @api_client.config.debugging
Expand All @@ -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] || {}
Expand Down
2 changes: 1 addition & 1 deletion lib/onfido/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/onfido/models/proof_of_address_properties.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,15 @@ 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

# 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
Expand Down
14 changes: 13 additions & 1 deletion lib/onfido/models/webhook_event_payload_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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'
Expand Down Expand Up @@ -106,6 +110,7 @@ def self.openapi_types
:'input' => :'Object',
:'output' => :'Object',
:'reasons' => :'Array<String>',
:'tags' => :'Array<String>',
:'link' => :'WorkflowRunLink',
:'error' => :'WorkflowRunError',
:'customer_user_id' => :'String'
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/onfido/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
=end

module Onfido
VERSION = '5.5.0'
VERSION = '5.6.0'
end