lib/plaid/models/credit_session.rb in plaid-16.0.0 vs lib/plaid/models/credit_session.rb in plaid-17.0.0
- old
+ new
@@ -1,37 +1,41 @@
=begin
#The Plaid API
#The Plaid REST API. Please see https://plaid.com/docs/api for more details.
-The version of the OpenAPI document: 2020-09-14_1.181.1
+The version of the OpenAPI document: 2020-09-14_1.197.3
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.1.1
=end
require 'date'
require 'time'
module Plaid
- # Metadata and results for a link session
+ # Metadata and results for a Link session
class CreditSession
- # The unique identifier associated with the Link Session.
+ # The unique identifier associated with the Link session. This identifier matches the `link_session_id` returned in the onSuccess/onExit callbacks.
attr_accessor :link_session_id
- # The time when the link session started
+ # The time when the Link session started
attr_accessor :session_start_time
attr_accessor :results
+ # The set of errors that occurred during the Link session.
+ attr_accessor :errors
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'link_session_id' => :'link_session_id',
:'session_start_time' => :'session_start_time',
- :'results' => :'results'
+ :'results' => :'results',
+ :'errors' => :'errors'
}
end
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
@@ -41,11 +45,12 @@
# Attribute type mapping.
def self.openapi_types
{
:'link_session_id' => :'String',
:'session_start_time' => :'Time',
- :'results' => :'CreditSessionResults'
+ :'results' => :'CreditSessionResults',
+ :'errors' => :'Array<CreditSessionError>'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
@@ -77,10 +82,16 @@
end
if attributes.key?(:'results')
self.results = attributes[:'results']
end
+
+ if attributes.key?(:'errors')
+ if (value = attributes[:'errors']).is_a?(Array)
+ self.errors = value
+ end
+ 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
@@ -99,11 +110,12 @@
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
link_session_id == o.link_session_id &&
session_start_time == o.session_start_time &&
- results == o.results
+ results == o.results &&
+ errors == o.errors
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -111,10 +123,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [link_session_id, session_start_time, results].hash
+ [link_session_id, session_start_time, results, errors].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself