lib/plaid/models/warning.rb in plaid-17.4.0 vs lib/plaid/models/warning.rb in plaid-18.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.334.0 +The version of the OpenAPI document: 2020-09-14_1.343.0 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.1.1 =end @@ -17,11 +17,11 @@ # It is possible for an Asset Report to be returned with missing account owner information. In such cases, the Asset Report will contain warning data in the response, indicating why obtaining the owner information failed. class Warning # The warning type, which will always be `ASSET_REPORT_WARNING` attr_accessor :warning_type - # The warning code identifies a specific kind of warning. Currently, the only possible warning code is `OWNERS_UNAVAILABLE`, which indicates that account-owner information is not available. + # The warning code identifies a specific kind of warning. `OWNERS_UNAVAILABLE` indicates that account-owner information is not available.`INVESTMENTS_UNAVAILABLE` indicates that Investments specific information is not available. `TRANSACTIONS_UNAVAILABLE` indicates that transactions information associated with Credit and Depository accounts are unavailable. attr_accessor :warning_code attr_accessor :cause class EnumAttributeValidator @@ -125,19 +125,19 @@ # 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"]) + 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 def warning_code=(warning_code) - validator = EnumAttributeValidator.new('String', ["OWNERS_UNAVAILABLE"]) + validator = EnumAttributeValidator.new('String', ["OWNERS_UNAVAILABLE", "INVESTMENTS_UNAVAILABLE", "TRANSACTIONS_UNAVAILABLE"]) unless validator.valid?(warning_code) fail ArgumentError, "invalid value for \"warning_code\", must be one of #{validator.allowable_values}." end @warning_code = warning_code end