lib/plaid/models/counterparty.rb in plaid-17.1.0 vs lib/plaid/models/counterparty.rb in plaid-17.2.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.205.3
+The version of the OpenAPI document: 2020-09-14_1.210.4
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.1.1
=end
@@ -19,15 +19,23 @@
# The name of the counterparty, such as the merchant or the financial institution, as extracted by Plaid from the raw description.
attr_accessor :name
attr_accessor :type
+ # The website associated with the counterparty.
+ attr_accessor :website
+
+ # The URL of a logo associated with the counterparty, if available. The logo is formatted as a 100x100 pixel PNG file.
+ attr_accessor :logo_url
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'name' => :'name',
- :'type' => :'type'
+ :'type' => :'type',
+ :'website' => :'website',
+ :'logo_url' => :'logo_url'
}
end
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
@@ -36,17 +44,21 @@
# Attribute type mapping.
def self.openapi_types
{
:'name' => :'String',
- :'type' => :'CounterpartyType'
+ :'type' => :'CounterpartyType',
+ :'website' => :'String',
+ :'logo_url' => :'String'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
+ :'website',
+ :'logo_url'
])
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -68,10 +80,18 @@
end
if attributes.key?(:'type')
self.type = attributes[:'type']
end
+
+ if attributes.key?(:'website')
+ self.website = attributes[:'website']
+ end
+
+ if attributes.key?(:'logo_url')
+ self.logo_url = attributes[:'logo_url']
+ 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 +119,13 @@
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
name == o.name &&
- type == o.type
+ type == o.type &&
+ website == o.website &&
+ logo_url == o.logo_url
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -111,10 +133,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [name, type].hash
+ [name, type, website, logo_url].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself