Method: OpenapiClient::FraudRegistrationDevice#list_invalid_properties

Defined in:
lib/openapi_client/models/fraud_registration_device.rb

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
# File 'lib/openapi_client/models/fraud_registration_device.rb', line 180

def list_invalid_properties
  invalid_properties = Array.new
  if @device_type.nil?
    invalid_properties.push('invalid value for "device_type", device_type cannot be nil.')
  end

  if @device_id.nil?
    invalid_properties.push('invalid value for "device_id", device_id cannot be nil.')
  end

  pattern = Regexp.new(/^(?!\s*$).+/)
  if @device_id !~ pattern
    invalid_properties.push("invalid value for \"device_id\", must conform to the pattern #{pattern}.")
  end

  invalid_properties
end