Class: PaymentTransactionHistoryInfo

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

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_b_z0_a_d_t7},
  CREATEDDATE => {:type => ::Thrift::Types::I64, :name => 'createdDate'},
  DESTINATION => {:type => ::Thrift::Types::I32, :name => 'destination', :enum_class => ::G_a_b_z0_a_d_g1}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



7639
7640
7641
7642
7643
7644
7645
7646
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 7639

def validate
  unless @type.nil? || ::G_a_b_z0_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_b_z0_a_d_g1::VALID_VALUES.include?(@destination)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field destination!')
  end
end