Method: Wire4Client::AccountReassigned#list_invalid_properties

Defined in:
lib/wire4_client/models/account_reassigned.rb

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
# File 'lib/wire4_client/models/account_reassigned.rb', line 169

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

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

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

  if !@numeric_reference_spei.nil? && @numeric_reference_spei.to_s.length > 7
    invalid_properties.push('invalid value for "numeric_reference_spei", the character length must be smaller than or equal to 7.')
  end

  if !@numeric_reference_spei.nil? && @numeric_reference_spei.to_s.length < 1
    invalid_properties.push('invalid value for "numeric_reference_spei", the character length must be great than or equal to 1.')
  end

  if !@numeric_reference_spei.nil? && @numeric_reference_spei !~ Regexp.new(/[0-9][0-9]*/)
    invalid_properties.push('invalid value for "numeric_reference_spei", must conform to the pattern /[0-9][0-9]*/.')
  end

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

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

  invalid_properties
end