Class: VerificationSessionData
- Inherits:
-
Object
- Object
- VerificationSessionData
- 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 => ::P0_a_e_a_b_pt}, 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 => ::P0_a_e_a_b_pt}}, CALLERIDMASK => {:type => ::Thrift::Types::STRING, :name => 'callerIdMask'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
16653 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16653 def struct_fields; FIELDS; end |
#validate ⇒ Object
16655 16656 16657 16658 16659 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16655 def validate unless @method.nil? || ::P0_a_e_a_b_pt::VALID_VALUES.include?(@method) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field method!') end end |