Class: PaymentFlowTypeInfo
- Inherits:
-
Object
- Object
- PaymentFlowTypeInfo
- 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
- FLOWTYPE =
1
- AUTHTYPE =
2
- HANDLEABLEOPS =
3
- CUSTOMS =
4
- FIELDS =
{ FLOWTYPE => {:type => ::Thrift::Types::I32, :name => 'flowType', :enum_class => ::G_a_b_z0_a_d_b1}, AUTHTYPE => {:type => ::Thrift::Types::I32, :name => 'authType', :enum_class => ::G_a_b_z0_a_d_f0}, HANDLEABLEOPS => {:type => ::Thrift::Types::MAP, :name => 'handleableOps', :key => {:type => ::Thrift::Types::I32, :enum_class => ::G_a_b_z0_a_d_r1}, :value => {:type => ::Thrift::Types::STRING}}, CUSTOMS => {:type => ::Thrift::Types::LIST, :name => 'customs', :element => {:type => ::Thrift::Types::STRUCT, :class => ::PaymentFlowTypeCustom}} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
7784 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 7784 def struct_fields; FIELDS; end |
#validate ⇒ Object
7786 7787 7788 7789 7790 7791 7792 7793 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 7786 def validate unless @flowType.nil? || ::G_a_b_z0_a_d_b1::VALID_VALUES.include?(@flowType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field flowType!') end unless @authType.nil? || ::G_a_b_z0_a_d_f0::VALID_VALUES.include?(@authType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field authType!') end end |