Method: Plaid::TransactionsGetRequestOptions#list_invalid_properties

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

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
# File 'lib/plaid/models/transactions_get_request_options.rb', line 158

def list_invalid_properties
  invalid_properties = Array.new
  if !@count.nil? && @count > 500
    invalid_properties.push('invalid value for "count", must be smaller than or equal to 500.')
  end

  if !@count.nil? && @count < 1
    invalid_properties.push('invalid value for "count", must be greater than or equal to 1.')
  end


  if !@offset.nil? && @offset < 0
    invalid_properties.push('invalid value for "offset", must be greater than or equal to 0.')
  end


  if !@days_requested.nil? && @days_requested > 730
    invalid_properties.push('invalid value for "days_requested", must be smaller than or equal to 730.')
  end

  if !@days_requested.nil? && @days_requested < 1
    invalid_properties.push('invalid value for "days_requested", must be greater than or equal to 1.')
  end


  invalid_properties
end