lib/plaid/models/warning.rb in plaid-33.0.0 vs lib/plaid/models/warning.rb in plaid-34.0.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.575.0
+The version of the OpenAPI document: 2020-09-14_1.586.4
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.3.0
=end
@@ -70,10 +70,11 @@
end
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
+ :'cause'
])
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -113,24 +114,19 @@
if @warning_code.nil?
invalid_properties.push('invalid value for "warning_code", warning_code cannot be nil.')
end
- if @cause.nil?
- invalid_properties.push('invalid value for "cause", cause cannot be nil.')
- end
-
invalid_properties
end
# Check to see if the all the properties in the model are valid
# @return true if the model is valid
def valid?
return false if @warning_type.nil?
return false if @warning_code.nil?
warning_code_validator = EnumAttributeValidator.new('String', ["OWNERS_UNAVAILABLE", "INVESTMENTS_UNAVAILABLE", "TRANSACTIONS_UNAVAILABLE"])
return false unless warning_code_validator.valid?(@warning_code)
- return false if @cause.nil?
true
end
# Custom attribute writer method checking allowed values (enum).
# @param [Object] warning_code Object to be assigned