Method: Plaid::ConsumerReportUserIdentity#list_invalid_properties
- Defined in:
- lib/plaid/models/consumer_report_user_identity.rb
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 |
# File 'lib/plaid/models/consumer_report_user_identity.rb', line 138 def list_invalid_properties invalid_properties = Array.new if @first_name.nil? invalid_properties.push('invalid value for "first_name", first_name cannot be nil.') end if @last_name.nil? invalid_properties.push('invalid value for "last_name", last_name cannot be nil.') end if @phone_numbers.nil? invalid_properties.push('invalid value for "phone_numbers", phone_numbers cannot be nil.') end if @emails.nil? invalid_properties.push('invalid value for "emails", emails cannot be nil.') end if !@ssn_last_4.nil? && @ssn_last_4.to_s.length > 4 invalid_properties.push('invalid value for "ssn_last_4", the character length must be smaller than or equal to 4.') end if !@ssn_last_4.nil? && @ssn_last_4.to_s.length < 4 invalid_properties.push('invalid value for "ssn_last_4", the character length must be great than or equal to 4.') end if @primary_address.nil? invalid_properties.push('invalid value for "primary_address", primary_address cannot be nil.') end invalid_properties end |