Method: FuseClient::GetInvestmentTransactionsRequest#list_invalid_properties

Defined in:
lib/fuse_client/models/get_investment_transactions_request.rb

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



114
115
116
117
118
119
120
121
122
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
# File 'lib/fuse_client/models/get_investment_transactions_request.rb', line 114

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

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

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

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

  if @page < 1
    invalid_properties.push('invalid value for "page", must be greater than or equal to 1.')
  end

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

  if @records_per_page > 100
    invalid_properties.push('invalid value for "records_per_page", must be smaller than or equal to 100.')
  end

  if @records_per_page < 10
    invalid_properties.push('invalid value for "records_per_page", must be greater than or equal to 10.')
  end

  invalid_properties
end