Class: CoinPurchaseReservation

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

PRODUCTID =
1
COUNTRY =
2
CURRENCY =
3
PRICE =
4
APPSTORECODE =
5
LANGUAGE =
6
PGCODE =
7
REDIRECTURL =
8
FIELDS =
{
  PRODUCTID => {:type => ::Thrift::Types::STRING, :name => 'productId'},
  COUNTRY => {:type => ::Thrift::Types::STRING, :name => 'country'},
  CURRENCY => {:type => ::Thrift::Types::STRING, :name => 'currency'},
  PRICE => {:type => ::Thrift::Types::STRING, :name => 'price'},
  APPSTORECODE => {:type => ::Thrift::Types::I32, :name => 'appStoreCode', :enum_class => ::J0_a_e_a_b_ge},
  LANGUAGE => {:type => ::Thrift::Types::STRING, :name => 'language'},
  PGCODE => {:type => ::Thrift::Types::I32, :name => 'pgCode', :enum_class => ::J0_a_e_a_b_ee},
  REDIRECTURL => {:type => ::Thrift::Types::STRING, :name => 'redirectUrl'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



12767
12768
12769
12770
12771
12772
12773
12774
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 12767

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