lib/plaid/models/counterparty.rb in plaid-24.2.0 vs lib/plaid/models/counterparty.rb in plaid-24.3.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.474.0
+The version of the OpenAPI document: 2020-09-14_1.482.3
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.3.0
=end
@@ -31,10 +31,13 @@
attr_accessor :logo_url
# A description of how confident we are that the provided counterparty is involved in the transaction. `VERY_HIGH`: We recognize this counterparty and we are more than 98% confident that it is involved in this transaction. `HIGH`: We recognize this counterparty and we are more than 90% confident that it is involved in this transaction. `MEDIUM`: We are moderately confident that this counterparty was involved in this transaction, but some details may differ from our records. `LOW`: We didn’t find a matching counterparty in our records, so we are returning a cleansed name parsed out of the request description. `UNKNOWN`: We don’t know the confidence level for this counterparty.
attr_accessor :confidence_level
+ # The phone number associated with the primary_counterparty in E. 164 format. If there is a location match (i.e. a street address is returned in the location object), the phone number will be location specific.
+ attr_accessor :phone_number
+
class EnumAttributeValidator
attr_reader :datatype
attr_reader :allowable_values
def initialize(datatype, allowable_values)
@@ -61,11 +64,12 @@
:'name' => :'name',
:'entity_id' => :'entity_id',
:'type' => :'type',
:'website' => :'website',
:'logo_url' => :'logo_url',
- :'confidence_level' => :'confidence_level'
+ :'confidence_level' => :'confidence_level',
+ :'phone_number' => :'phone_number'
}
end
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
@@ -78,21 +82,23 @@
:'name' => :'String',
:'entity_id' => :'String',
:'type' => :'CounterpartyType',
:'website' => :'String',
:'logo_url' => :'String',
- :'confidence_level' => :'String'
+ :'confidence_level' => :'String',
+ :'phone_number' => :'String'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
:'entity_id',
:'website',
:'logo_url',
- :'confidence_level'
+ :'confidence_level',
+ :'phone_number'
])
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -130,10 +136,14 @@
end
if attributes.key?(:'confidence_level')
self.confidence_level = attributes[:'confidence_level']
end
+
+ if attributes.key?(:'phone_number')
+ self.phone_number = attributes[:'phone_number']
+ 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
@@ -165,11 +175,12 @@
name == o.name &&
entity_id == o.entity_id &&
type == o.type &&
website == o.website &&
logo_url == o.logo_url &&
- confidence_level == o.confidence_level
+ confidence_level == o.confidence_level &&
+ phone_number == o.phone_number
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -177,10 +188,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [name, entity_id, type, website, logo_url, confidence_level].hash
+ [name, entity_id, type, website, logo_url, confidence_level, phone_number].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself