Method: Plaid::ConsumerReportUserIdentity#valid?
- Defined in:
- lib/plaid/models/consumer_report_user_identity.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
174 175 176 177 178 179 180 181 182 183 |
# File 'lib/plaid/models/consumer_report_user_identity.rb', line 174 def valid? return false if @first_name.nil? return false if @last_name.nil? return false if @phone_numbers.nil? return false if @emails.nil? return false if !@ssn_last_4.nil? && @ssn_last_4.to_s.length > 4 return false if !@ssn_last_4.nil? && @ssn_last_4.to_s.length < 4 return false if @primary_address.nil? true end |