Method: DocSpring::SubmissionDataRequest#list_invalid_properties

Defined in:
lib/docspring/models/submission_data_request.rb

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
# File 'lib/docspring/models/submission_data_request.rb', line 310

def list_invalid_properties
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
  invalid_properties = Array.new
  if @sort_order.nil?
    invalid_properties.push('invalid value for "sort_order", sort_order cannot be nil.')
  end

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

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

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

  invalid_properties
end