lib/plaid/models/counterparty.rb in plaid-24.0.0 vs lib/plaid/models/counterparty.rb in plaid-24.2.0

- old
+ new

@@ -1,14 +1,14 @@ =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.470.1 +The version of the OpenAPI document: 2020-09-14_1.474.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.1.0 +OpenAPI Generator version: 6.3.0 =end require 'date' require 'time' @@ -30,9 +30,31 @@ # The URL of a logo associated with the counterparty, if available. The logo will always be 100×100 pixel PNG file. 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 + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'name' => :'name',