Method: Plaid::IssueResolvedWebhook#list_invalid_properties

Defined in:
lib/plaid/models/issue_resolved_webhook.rb

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# File 'lib/plaid/models/issue_resolved_webhook.rb', line 123

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

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

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

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

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

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

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

  invalid_properties
end