lib/onfido/models/workflow_run_response.rb in onfido-3.4.0 vs lib/onfido/models/workflow_run_response.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' @@ -31,10 +31,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 @@ -83,14 +84,14 @@ def self.openapi_types { :'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 @@ -167,22 +168,10 @@ # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? warn '[DEPRECATED] the `valid?` method is obsolete' 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 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)