lib/onfido/models/check.rb in onfido-3.4.0 vs lib/onfido/models/check.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'
@@ -28,20 +28,21 @@
attr_accessor :tags
# For checks where `applicant_provides_data` is `true`, redirect to this URI when the applicant has submitted their data.
attr_accessor :redirect_uri
+ attr_accessor :privacy_notices_read_consent_given
+
# The unique identifier for the check.
attr_accessor :id
# The date and time when this check was created.
attr_accessor :created_at
# The uri of this resource.
attr_accessor :href
- # The current state of the check in the checking process.
attr_accessor :status
# The overall result of the check, based on the results of the constituent reports.
attr_accessor :result
@@ -55,10 +56,14 @@
attr_accessor :report_ids
# Indicates whether the object was created in the sandbox or not.
attr_accessor :sandbox
+ attr_accessor :paused
+
+ attr_accessor :version
+
class EnumAttributeValidator
attr_reader :datatype
attr_reader :allowable_values
def initialize(datatype, allowable_values)
@@ -85,19 +90,22 @@
:'webhook_ids' => :'webhook_ids',
:'applicant_id' => :'applicant_id',
:'applicant_provides_data' => :'applicant_provides_data',
:'tags' => :'tags',
:'redirect_uri' => :'redirect_uri',
+ :'privacy_notices_read_consent_given' => :'privacy_notices_read_consent_given',
:'id' => :'id',
:'created_at' => :'created_at',
:'href' => :'href',
:'status' => :'status',
:'result' => :'result',
:'form_uri' => :'form_uri',
:'results_uri' => :'results_uri',
:'report_ids' => :'report_ids',
- :'sandbox' => :'sandbox'
+ :'sandbox' => :'sandbox',
+ :'paused' => :'paused',
+ :'version' => :'version'
}
end
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
@@ -110,19 +118,22 @@
:'webhook_ids' => :'Array<String>',
:'applicant_id' => :'String',
:'applicant_provides_data' => :'Boolean',
:'tags' => :'Array<String>',
:'redirect_uri' => :'String',
+ :'privacy_notices_read_consent_given' => :'Boolean',
:'id' => :'String',
:'created_at' => :'Time',
:'href' => :'String',
- :'status' => :'String',
+ :'status' => :'CheckStatus',
:'result' => :'String',
:'form_uri' => :'String',
:'results_uri' => :'String',
:'report_ids' => :'Array<String>',
- :'sandbox' => :'Boolean'
+ :'sandbox' => :'Boolean',
+ :'paused' => :'Boolean',
+ :'version' => :'String'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
@@ -177,10 +188,14 @@
if attributes.key?(:'redirect_uri')
self.redirect_uri = attributes[:'redirect_uri']
end
+ if attributes.key?(:'privacy_notices_read_consent_given')
+ self.privacy_notices_read_consent_given = attributes[:'privacy_notices_read_consent_given']
+ end
+
if attributes.key?(:'id')
self.id = attributes[:'id']
else
self.id = nil
end
@@ -216,10 +231,18 @@
end
if attributes.key?(:'sandbox')
self.sandbox = attributes[:'sandbox']
end
+
+ if attributes.key?(:'paused')
+ self.paused = attributes[:'paused']
+ end
+
+ if attributes.key?(:'version')
+ self.version = attributes[:'version']
+ 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
@@ -240,28 +263,16 @@
# @return true if the model is valid
def valid?
warn '[DEPRECATED] the `valid?` method is obsolete'
return false if @applicant_id.nil?
return false if @id.nil?
- status_validator = EnumAttributeValidator.new('String', ["in_progress", "awaiting_applicant", "complete", "withdrawn", "paused", "reopened", "unknown_default_open_api"])
- return false unless status_validator.valid?(@status)
result_validator = EnumAttributeValidator.new('String', ["clear", "consider", "unknown_default_open_api"])
return false unless result_validator.valid?(@result)
true
end
# Custom attribute writer method checking allowed values (enum).
- # @param [Object] status Object to be assigned
- def status=(status)
- validator = EnumAttributeValidator.new('String', ["in_progress", "awaiting_applicant", "complete", "withdrawn", "paused", "reopened", "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
-
- # Custom attribute writer method checking allowed values (enum).
# @param [Object] result Object to be assigned
def result=(result)
validator = EnumAttributeValidator.new('String', ["clear", "consider", "unknown_default_open_api"])
unless validator.valid?(result)
fail ArgumentError, "invalid value for \"result\", must be one of #{validator.allowable_values}."
@@ -277,19 +288,22 @@
webhook_ids == o.webhook_ids &&
applicant_id == o.applicant_id &&
applicant_provides_data == o.applicant_provides_data &&
tags == o.tags &&
redirect_uri == o.redirect_uri &&
+ privacy_notices_read_consent_given == o.privacy_notices_read_consent_given &&
id == o.id &&
created_at == o.created_at &&
href == o.href &&
status == o.status &&
result == o.result &&
form_uri == o.form_uri &&
results_uri == o.results_uri &&
report_ids == o.report_ids &&
- sandbox == o.sandbox
+ sandbox == o.sandbox &&
+ paused == o.paused &&
+ version == o.version
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -297,10 +311,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [webhook_ids, applicant_id, applicant_provides_data, tags, redirect_uri, id, created_at, href, status, result, form_uri, results_uri, report_ids, sandbox].hash
+ [webhook_ids, applicant_id, applicant_provides_data, tags, redirect_uri, privacy_notices_read_consent_given, id, created_at, href, status, result, form_uri, results_uri, report_ids, sandbox, paused, version].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself