Method: ClickSendClient::AccountVerify#list_invalid_properties

Defined in:
lib/clicksend_client/models/account_verify.rb

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/clicksend_client/models/account_verify.rb', line 68

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

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

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

  invalid_properties
end