lib/onfido/models/task_item.rb in onfido-3.4.0 vs lib/onfido/models/task_item.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'
@@ -16,24 +16,32 @@
module Onfido
class TaskItem
# The identifier for the Task.
attr_accessor :id
+ # The workflow run id the task belongs to.
+ attr_accessor :workflow_run_id
+
# The identifier for the Task Definition.
attr_accessor :task_def_id
+ # The task definition version.
+ attr_accessor :task_def_version
+
# The date and time when the Task was created.
attr_accessor :created_at
# The date and time when the Task was last updated.
attr_accessor :updated_at
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'id' => :'id',
+ :'workflow_run_id' => :'workflow_run_id',
:'task_def_id' => :'task_def_id',
+ :'task_def_version' => :'task_def_version',
:'created_at' => :'created_at',
:'updated_at' => :'updated_at'
}
end
@@ -44,19 +52,22 @@
# Attribute type mapping.
def self.openapi_types
{
:'id' => :'String',
+ :'workflow_run_id' => :'String',
:'task_def_id' => :'String',
+ :'task_def_version' => :'String',
:'created_at' => :'Time',
:'updated_at' => :'Time'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
+ :'task_def_version',
])
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -75,14 +86,22 @@
if attributes.key?(:'id')
self.id = attributes[:'id']
end
+ if attributes.key?(:'workflow_run_id')
+ self.workflow_run_id = attributes[:'workflow_run_id']
+ end
+
if attributes.key?(:'task_def_id')
self.task_def_id = attributes[:'task_def_id']
end
+ if attributes.key?(:'task_def_version')
+ self.task_def_version = attributes[:'task_def_version']
+ end
+
if attributes.key?(:'created_at')
self.created_at = attributes[:'created_at']
end
if attributes.key?(:'updated_at')
@@ -151,11 +170,13 @@
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
id == o.id &&
+ workflow_run_id == o.workflow_run_id &&
task_def_id == o.task_def_id &&
+ task_def_version == o.task_def_version &&
created_at == o.created_at &&
updated_at == o.updated_at
end
# @see the `==` method
@@ -165,10 +186,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [id, task_def_id, created_at, updated_at].hash
+ [id, workflow_run_id, task_def_id, task_def_version, created_at, updated_at].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself