lib/plaid/models/ach_class.rb in plaid-14.3.0 vs lib/plaid/models/ach_class.rb in plaid-14.4.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.33.0 +The version of the OpenAPI document: 2020-09-14_1.34.1 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.0 =end @@ -40,11 +40,13 @@ # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) - constantValues = ACHClass.constants.select { |c| ACHClass::const_get(c) == value } - raise "Invalid ENUM value #{value} for class #ACHClass" if constantValues.empty? + # We do not validate that the value is one of the enums set in the OpenAPI + # file because we want to be able to add to our list of enums without + # breaking this client library. value end end + end