Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .release.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"source": {
"repo_url": "https://github.com/onfido/onfido-openapi-spec",
"short_sha": "a7eaf30",
"long_sha": "a7eaf30fce5180699dc937d49d1c602a5ae1fa74",
"short_sha": "5bda1d2",
"long_sha": "5bda1d2f01afcb4aef0a10f2783e5b5372670bd6",
"version": "v6.2.0"
},
"release": "v6.3.0"
Expand Down
32 changes: 16 additions & 16 deletions lib/onfido/models/invalidated_biometric_token_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@

module Onfido
class InvalidatedBiometricTokenResponse
attr_accessor :biometric_token
attr_accessor :biometric_tokens

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'biometric_token' => :'biometric_token'
:'biometric_tokens' => :'biometric_tokens'
}
end

Expand All @@ -37,7 +37,7 @@ def self.acceptable_attributes
# Attribute type mapping.
def self.openapi_types
{
:'biometric_token' => :'InvalidatedBiometricTokenSummary'
:'biometric_tokens' => :'InvalidatedBiometricTokenSummary'
}
end

Expand All @@ -63,10 +63,10 @@ def initialize(attributes = {})
h[k.to_sym] = v
}

if attributes.key?(:'biometric_token')
self.biometric_token = attributes[:'biometric_token']
if attributes.key?(:'biometric_tokens')
self.biometric_tokens = attributes[:'biometric_tokens']
else
self.biometric_token = nil
self.biometric_tokens = nil
end
end

Expand All @@ -75,8 +75,8 @@ def initialize(attributes = {})
def list_invalid_properties
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
invalid_properties = Array.new
if @biometric_token.nil?
invalid_properties.push('invalid value for "biometric_token", biometric_token cannot be nil.')
if @biometric_tokens.nil?
invalid_properties.push('invalid value for "biometric_tokens", biometric_tokens cannot be nil.')
end

invalid_properties
Expand All @@ -86,26 +86,26 @@ def list_invalid_properties
# @return true if the model is valid
def valid?
warn '[DEPRECATED] the `valid?` method is obsolete'
return false if @biometric_token.nil?
return false if @biometric_tokens.nil?
true
end

# Custom attribute writer method with validation
# @param [Object] biometric_token Value to be assigned
def biometric_token=(biometric_token)
if biometric_token.nil?
fail ArgumentError, 'biometric_token cannot be nil'
# @param [Object] biometric_tokens Value to be assigned
def biometric_tokens=(biometric_tokens)
if biometric_tokens.nil?
fail ArgumentError, 'biometric_tokens cannot be nil'
end

@biometric_token = biometric_token
@biometric_tokens = biometric_tokens
end

# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
biometric_token == o.biometric_token
biometric_tokens == o.biometric_tokens
end

# @see the `==` method
Expand All @@ -117,7 +117,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[biometric_token].hash
[biometric_tokens].hash
end

# Builds the object from hash
Expand Down
Loading