Class: SubscriptionPlan
- Inherits:
-
Object
- Object
- SubscriptionPlan
- 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
- TARGET =
3
- TYPE =
4
- PERIOD =
5
- FREETRIAL =
6
- LOCALIZEDNAME =
7
- PRICE =
8
- AVAILABILITY =
9
- CPID =
10
- NAMEKEY =
11
- TIER =
12
- FIELDS =
{ BILLINGITEMID => {:type => ::Thrift::Types::STRING, :name => 'billingItemId'}, SUBSCRIPTIONSERVICE => {:type => ::Thrift::Types::I32, :name => 'subscriptionService', :enum_class => ::P0_a_a_b_a_a_p3}, TARGET => {:type => ::Thrift::Types::I32, :name => 'target', :enum_class => ::P0_a_a_b_a_a_m3}, TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::P0_a_a_b_a_a_o3}, PERIOD => {:type => ::Thrift::Types::STRING, :name => 'period'}, FREETRIAL => {:type => ::Thrift::Types::STRING, :name => 'freeTrial'}, LOCALIZEDNAME => {:type => ::Thrift::Types::STRING, :name => 'localizedName'}, PRICE => {:type => ::Thrift::Types::STRUCT, :name => 'price', :class => ::Price}, AVAILABILITY => {:type => ::Thrift::Types::I32, :name => 'availability', :enum_class => ::P0_a_a_b_a_a_l3}, CPID => {:type => ::Thrift::Types::STRING, :name => 'cpId'}, NAMEKEY => {:type => ::Thrift::Types::STRING, :name => 'nameKey'}, TIER => {:type => ::Thrift::Types::I32, :name => 'tier', :enum_class => ::P0_a_a_b_a_a_n3} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
11150 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 11150 def struct_fields; FIELDS; end |
#validate ⇒ Object
11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 11152 def validate unless @subscriptionService.nil? || ::P0_a_a_b_a_a_p3::VALID_VALUES.include?(@subscriptionService) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field subscriptionService!') end unless @target.nil? || ::P0_a_a_b_a_a_m3::VALID_VALUES.include?(@target) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field target!') end unless @type.nil? || ::P0_a_a_b_a_a_o3::VALID_VALUES.include?(@type) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!') end unless @availability.nil? || ::P0_a_a_b_a_a_l3::VALID_VALUES.include?(@availability) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field availability!') end unless @tier.nil? || ::P0_a_a_b_a_a_n3::VALID_VALUES.include?(@tier) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field tier!') end end |