Class: PaymentTransactionHistoryInfo
- Inherits:
-
Object
- Object
- PaymentTransactionHistoryInfo
- 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
- MESSAGE =
1
- TYPE =
2
- CREATEDDATE =
3
- DESTINATION =
4
- FIELDS =
{ MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}, TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::G_a_c_u0_a_d_t7}, CREATEDDATE => {:type => ::Thrift::Types::I64, :name => 'createdDate'}, DESTINATION => {:type => ::Thrift::Types::I32, :name => 'destination', :enum_class => ::G_a_c_u0_a_d_g1} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
6073 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 6073 def struct_fields; FIELDS; end |
#validate ⇒ Object
6075 6076 6077 6078 6079 6080 6081 6082 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 6075 def validate unless @type.nil? || ::G_a_c_u0_a_d_t7::VALID_VALUES.include?(@type) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!') end unless @destination.nil? || ::G_a_c_u0_a_d_g1::VALID_VALUES.include?(@destination) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field destination!') end end |