lib/onfido/models/workflow_run_response.rb in onfido-3.2.0 vs lib/onfido/models/workflow_run_response.rb in onfido-3.3.0
- old
+ new
@@ -33,10 +33,13 @@
# The reasons the Workflow Run outcome was reached. Configurable when creating the Workflow version.
attr_accessor :reasons
attr_accessor :error
+ # Client token to use when loading this workflow run in the Onfido SDK.
+ attr_accessor :sdk_token
+
class EnumAttributeValidator
attr_reader :datatype
attr_reader :allowable_values
def initialize(datatype, allowable_values)
@@ -64,11 +67,12 @@
:'workflow_version_id' => :'workflow_version_id',
:'dashboard_url' => :'dashboard_url',
:'status' => :'status',
:'output' => :'output',
:'reasons' => :'reasons',
- :'error' => :'error'
+ :'error' => :'error',
+ :'sdk_token' => :'sdk_token'
}
end
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
@@ -82,17 +86,19 @@
:'workflow_version_id' => :'Integer',
:'dashboard_url' => :'String',
:'status' => :'String',
:'output' => :'Object',
:'reasons' => :'Array<String>',
- :'error' => :'WorkflowRunResponseError'
+ :'error' => :'WorkflowRunResponseError',
+ :'sdk_token' => :'String'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
+ :'sdk_token'
])
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -138,10 +144,14 @@
end
if attributes.key?(:'error')
self.error = attributes[:'error']
end
+
+ if attributes.key?(:'sdk_token')
+ self.sdk_token = attributes[:'sdk_token']
+ end
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properties with the reasons
def list_invalid_properties
@@ -183,11 +193,12 @@
workflow_version_id == o.workflow_version_id &&
dashboard_url == o.dashboard_url &&
status == o.status &&
output == o.output &&
reasons == o.reasons &&
- error == o.error
+ error == o.error &&
+ sdk_token == o.sdk_token
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -195,10 +206,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [id, workflow_version_id, dashboard_url, status, output, reasons, error].hash
+ [id, workflow_version_id, dashboard_url, status, output, reasons, error, sdk_token].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself