lib/plaid/models/beacon_audit_trail.rb in plaid-25.0.0 vs lib/plaid/models/beacon_audit_trail.rb in plaid-26.0.0
- old
+ new
@@ -1,11 +1,11 @@
=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.496.2
+The version of the OpenAPI document: 2020-09-14_1.503.0
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.3.0
=end
@@ -19,10 +19,13 @@
attr_accessor :source
# ID of the associated user.
attr_accessor :dashboard_user_id
+ # An ISO8601 formatted timestamp.
+ attr_accessor :timestamp
+
class EnumAttributeValidator
attr_reader :datatype
attr_reader :allowable_values
def initialize(datatype, allowable_values)
@@ -45,11 +48,12 @@
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'source' => :'source',
- :'dashboard_user_id' => :'dashboard_user_id'
+ :'dashboard_user_id' => :'dashboard_user_id',
+ :'timestamp' => :'timestamp'
}
end
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
@@ -58,18 +62,19 @@
# Attribute type mapping.
def self.openapi_types
{
:'source' => :'BeaconAuditTrailSource',
- :'dashboard_user_id' => :'String'
+ :'dashboard_user_id' => :'String',
+ :'timestamp' => :'Time'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
- :'dashboard_user_id'
+ :'dashboard_user_id',
])
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -91,37 +96,47 @@
end
if attributes.key?(:'dashboard_user_id')
self.dashboard_user_id = attributes[:'dashboard_user_id']
end
+
+ if attributes.key?(:'timestamp')
+ self.timestamp = attributes[:'timestamp']
+ 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
invalid_properties = Array.new
if @source.nil?
invalid_properties.push('invalid value for "source", source cannot be nil.')
end
+ if @timestamp.nil?
+ invalid_properties.push('invalid value for "timestamp", timestamp cannot be nil.')
+ end
+
invalid_properties
end
# Check to see if the all the properties in the model are valid
# @return true if the model is valid
def valid?
return false if @source.nil?
+ return false if @timestamp.nil?
true
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 &&
source == o.source &&
- dashboard_user_id == o.dashboard_user_id
+ dashboard_user_id == o.dashboard_user_id &&
+ timestamp == o.timestamp
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -129,10 +144,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [source, dashboard_user_id].hash
+ [source, dashboard_user_id, timestamp].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself