lib/onfido/models/workflow_run.rb in onfido-3.4.0 vs lib/onfido/models/workflow_run.rb in onfido-4.0.0
- old
+ new
@@ -4,11 +4,11 @@
#The Onfido API (v3.6)
The version of the OpenAPI document: v3.6
Generated by: https://openapi-generator.tech
-Generator version: 7.6.0
+Generator version: 7.9.0
=end
require 'date'
require 'time'
@@ -25,10 +25,11 @@
attr_accessor :tags
# Customer-provided user identifier.
attr_accessor :customer_user_id
+ # Object for the configuration of the Workflow Run link.
attr_accessor :link
# The date and time when the Workflow Run was created.
attr_accessor :created_at
@@ -51,10 +52,11 @@
attr_accessor :output
# The reasons the Workflow Run outcome was reached. Configurable when creating the Workflow version.
attr_accessor :reasons
+ # Error object. Only set when the Workflow Run status is 'error'.
attr_accessor :error
# Client token to use when loading this workflow run in the Onfido SDK.
attr_accessor :sdk_token
@@ -111,20 +113,20 @@
{
:'applicant_id' => :'String',
:'workflow_id' => :'String',
:'tags' => :'Array<String>',
:'customer_user_id' => :'String',
- :'link' => :'WorkflowRunSharedLink',
+ :'link' => :'WorkflowRunLink',
:'created_at' => :'Time',
:'updated_at' => :'Time',
:'id' => :'String',
:'workflow_version_id' => :'Integer',
:'dashboard_url' => :'String',
- :'status' => :'String',
+ :'status' => :'WorkflowRunStatus',
:'output' => :'Object',
:'reasons' => :'Array<String>',
- :'error' => :'WorkflowRunResponseError',
+ :'error' => :'WorkflowRunError',
:'sdk_token' => :'String'
}
end
# List of attributes with nullable: true
@@ -264,12 +266,10 @@
return false if @applicant_id.nil?
return false if @workflow_id.nil?
return false if !@tags.nil? && @tags.length > 30
return false if !@customer_user_id.nil? && @customer_user_id.to_s.length > 256
return false if @id.nil?
- status_validator = EnumAttributeValidator.new('String', ["awaiting_input", "processing", "abandoned", "error", "approved", "review", "declined", "unknown_default_open_api"])
- return false unless status_validator.valid?(@status)
true
end
# Custom attribute writer method with validation
# @param [Object] tags Value to be assigned
@@ -291,19 +291,9 @@
if customer_user_id.to_s.length > 256
fail ArgumentError, 'invalid value for "customer_user_id", the character length must be smaller than or equal to 256.'
end
@customer_user_id = customer_user_id
- end
-
- # Custom attribute writer method checking allowed values (enum).
- # @param [Object] status Object to be assigned
- def status=(status)
- validator = EnumAttributeValidator.new('String', ["awaiting_input", "processing", "abandoned", "error", "approved", "review", "declined", "unknown_default_open_api"])
- unless validator.valid?(status)
- fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
- end
- @status = status
end
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)