Class: SubscriptionStatus
- Inherits:
-
Object
- Object
- SubscriptionStatus
- 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
- PERIOD =
3
- LOCALIZEDNAME =
4
- FREETRIAL =
5
- EXPIRED =
6
- VALIDUNTIL =
7
- STICKERSLOTCOUNT =
8
- TARGET =
9
- TYPE =
10
- STORECODE =
11
- NAMEKEY =
12
- TIER =
13
- FIELDS =
{ BILLINGITEMID => {:type => ::Thrift::Types::STRING, :name => 'billingItemId'}, SUBSCRIPTIONSERVICE => {:type => ::Thrift::Types::I32, :name => 'subscriptionService', :enum_class => ::J0_a_a_b_a_a_v3}, PERIOD => {:type => ::Thrift::Types::STRING, :name => 'period'}, LOCALIZEDNAME => {:type => ::Thrift::Types::STRING, :name => 'localizedName'}, FREETRIAL => {:type => ::Thrift::Types::BOOL, :name => 'freeTrial'}, EXPIRED => {:type => ::Thrift::Types::BOOL, :name => 'expired'}, VALIDUNTIL => {:type => ::Thrift::Types::I64, :name => 'validUntil'}, STICKERSLOTCOUNT => {:type => ::Thrift::Types::I32, :name => 'stickerSlotCount'}, TARGET => {:type => ::Thrift::Types::I32, :name => 'target', :enum_class => ::J0_a_a_b_a_a_s3}, TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::J0_a_a_b_a_a_u3}, STORECODE => {:type => ::Thrift::Types::I32, :name => 'storeCode', :enum_class => ::J0_a_a_b_a_a_n3}, NAMEKEY => {:type => ::Thrift::Types::STRING, :name => 'nameKey'}, TIER => {:type => ::Thrift::Types::I32, :name => 'tier', :enum_class => ::J0_a_a_b_a_a_t3} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
10414 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 10414 def struct_fields; FIELDS; end |
#validate ⇒ Object
10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 10416 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 @target.nil? || ::J0_a_a_b_a_a_s3::VALID_VALUES.include?(@target) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field target!') end unless @type.nil? || ::J0_a_a_b_a_a_u3::VALID_VALUES.include?(@type) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!') 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 unless @tier.nil? || ::J0_a_a_b_a_a_t3::VALID_VALUES.include?(@tier) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field tier!') end end |