Method: TinkoffInvestClient::OperationTrade#list_invalid_properties

Defined in:
lib/tinkoff_invest_client/models/operation_trade.rb

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/tinkoff_invest_client/models/operation_trade.rb', line 92

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

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

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

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

  invalid_properties
end