Class: PurchaseSubscriptionRequest
- Inherits:
-
Object
- Object
- PurchaseSubscriptionRequest
- 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
- BILLINGITEMID =
1
- SUBSCRIPTIONSERVICE =
2
- STORECODE =
3
- STOREORDERID =
4
- FIELDS =
{ BILLINGITEMID => {:type => ::Thrift::Types::STRING, :name => 'billingItemId'}, SUBSCRIPTIONSERVICE => {:type => ::Thrift::Types::I32, :name => 'subscriptionService', :enum_class => ::J0_a_a_b_a_a_v3}, STORECODE => {:type => ::Thrift::Types::I32, :name => 'storeCode', :enum_class => ::J0_a_a_b_a_a_n3}, STOREORDERID => {:type => ::Thrift::Types::STRING, :name => 'storeOrderId'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
9261 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 9261 def struct_fields; FIELDS; end |
#validate ⇒ Object
9263 9264 9265 9266 9267 9268 9269 9270 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 9263 def validate unless @subscriptionService.nil? || ::J0_a_a_b_a_a_v3::VALID_VALUES.include?(@subscriptionService) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field subscriptionService!') end unless @storeCode.nil? || ::J0_a_a_b_a_a_n3::VALID_VALUES.include?(@storeCode) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field storeCode!') end end |