lib/onfido/models/check_shared.rb in onfido-3.4.0 vs lib/onfido/models/check_shared.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,18 +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 + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'webhook_ids' => :'webhook_ids', :'applicant_id' => :'applicant_id', :'applicant_provides_data' => :'applicant_provides_data', :'tags' => :'tags', - :'redirect_uri' => :'redirect_uri' + :'redirect_uri' => :'redirect_uri', + :'privacy_notices_read_consent_given' => :'privacy_notices_read_consent_given' } end # Returns all the JSON keys this model knows about def self.acceptable_attributes @@ -51,11 +54,12 @@ { :'webhook_ids' => :'Array<String>', :'applicant_id' => :'String', :'applicant_provides_data' => :'Boolean', :'tags' => :'Array<String>', - :'redirect_uri' => :'String' + :'redirect_uri' => :'String', + :'privacy_notices_read_consent_given' => :'Boolean' } end # List of attributes with nullable: true def self.openapi_nullable @@ -101,10 +105,14 @@ end 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 end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties @@ -132,11 +140,12 @@ self.class == o.class && 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 + redirect_uri == o.redirect_uri && + privacy_notices_read_consent_given == o.privacy_notices_read_consent_given end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -144,10 +153,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].hash + [webhook_ids, applicant_id, applicant_provides_data, tags, redirect_uri, privacy_notices_read_consent_given].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself