Class: GetCoinProductsRequest

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

APPSTORECODE =
1
COUNTRY =
2
LANGUAGE =
3
PGCODE =
4
FIELDS =
{
  APPSTORECODE => {:type => ::Thrift::Types::I32, :name => 'appStoreCode', :enum_class => ::P0_a_e_a_b_he},
  COUNTRY => {:type => ::Thrift::Types::STRING, :name => 'country'},
  LANGUAGE => {:type => ::Thrift::Types::STRING, :name => 'language'},
  PGCODE => {:type => ::Thrift::Types::I32, :name => 'pgCode', :optional => true, :enum_class => ::P0_a_e_a_b_fe}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



14069
14070
14071
14072
14073
14074
14075
14076
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 14069

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