lib/plaid/models/reporting_information.rb in plaid-20.0.0 vs lib/plaid/models/reporting_information.rb in plaid-21.0.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.385.1 +The version of the OpenAPI document: 2020-09-14_1.391.1 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.1.1 +OpenAPI Generator version: 6.1.0 =end require 'date' require 'time' @@ -112,9 +112,10 @@ # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) self.class.openapi_types.each_pair do |key, type| if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) self.send("#{key}=", nil) elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute