Class: CoinPurchaseReservation
- Inherits:
-
Object
- Object
- CoinPurchaseReservation
- 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 => ::P0_a_e_a_b_he}, LANGUAGE => {:type => ::Thrift::Types::STRING, :name => 'language'}, PGCODE => {:type => ::Thrift::Types::I32, :name => 'pgCode', :enum_class => ::P0_a_e_a_b_fe}, REDIRECTURL => {:type => ::Thrift::Types::STRING, :name => 'redirectUrl'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
14039 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 14039 def struct_fields; FIELDS; end |
#validate ⇒ Object
14041 14042 14043 14044 14045 14046 14047 14048 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 14041 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 |