Class: CoinUseReservation
- Inherits:
-
Object
- Object
- CoinUseReservation
- 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
- CHANNELID =
1
- SHOPORDERID =
2
- APPSTORECODE =
3
- ITEMS =
4
- COUNTRY =
5
- FIELDS =
{ CHANNELID => {:type => ::Thrift::Types::STRING, :name => 'channelId'}, SHOPORDERID => {:type => ::Thrift::Types::STRING, :name => 'shopOrderId'}, APPSTORECODE => {:type => ::Thrift::Types::I32, :name => 'appStoreCode', :enum_class => ::P0_a_e_a_b_he}, ITEMS => {:type => ::Thrift::Types::LIST, :name => 'items', :element => {:type => ::Thrift::Types::STRUCT, :class => ::CoinUseReservationItem}}, COUNTRY => {:type => ::Thrift::Types::STRING, :name => 'country'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
17287 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 17287 def struct_fields; FIELDS; end |
#validate ⇒ Object
17289 17290 17291 17292 17293 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 17289 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 end |