Class: VerificationSessionData

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/linerb/gen-rb/takagi_chan_types.rb,
lib/linerb/gen-rb/takagi_chan_types.rb

Constant Summary collapse

SESSIONID =
1
METHOD =
2
CALLBACK =
3
NORMALIZEDPHONE =
4
COUNTRYCODE =
5
NATIONALSIGNIFICANTNUMBER =
6
AVAILABLEVERIFICATIONMETHODS =
7
CALLERIDMASK =
8
FIELDS =
{
  SESSIONID => {:type => ::Thrift::Types::STRING, :name => 'sessionId'},
  METHOD => {:type => ::Thrift::Types::I32, :name => 'method', :enum_class => ::J0_a_e_a_b_qt},
  CALLBACK => {:type => ::Thrift::Types::STRING, :name => 'callback'},
  NORMALIZEDPHONE => {:type => ::Thrift::Types::STRING, :name => 'normalizedPhone'},
  COUNTRYCODE => {:type => ::Thrift::Types::STRING, :name => 'countryCode'},
  NATIONALSIGNIFICANTNUMBER => {:type => ::Thrift::Types::STRING, :name => 'nationalSignificantNumber'},
  AVAILABLEVERIFICATIONMETHODS => {:type => ::Thrift::Types::LIST, :name => 'availableVerificationMethods', :element => {:type => ::Thrift::Types::I32, :enum_class => ::J0_a_e_a_b_qt}},
  CALLERIDMASK => {:type => ::Thrift::Types::STRING, :name => 'callerIdMask'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



12282
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 12282

def struct_fields; FIELDS; end

#validateObject



12284
12285
12286
12287
12288
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 12284

def validate
  unless @method.nil? || ::J0_a_e_a_b_qt::VALID_VALUES.include?(@method)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field method!')
  end
end