Method: TransferZero::Transaction#list_invalid_properties

Defined in:
lib/transferzero-sdk/models/transaction.rb

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
# File 'lib/transferzero-sdk/models/transaction.rb', line 194

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

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

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

  invalid_properties
end