Class: SubscriptionStatus

Inherits:
Object
  • Object
show all
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 => ::P0_a_a_b_a_a_p3},
  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 => ::P0_a_a_b_a_a_m3},
  TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::P0_a_a_b_a_a_o3},
  STORECODE => {:type => ::Thrift::Types::I32, :name => 'storeCode', :enum_class => ::P0_a_a_b_a_a_h3},
  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_fieldsObject



11408
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 11408

def struct_fields; FIELDS; end

#validateObject



11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 11410

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 @storeCode.nil? || ::P0_a_a_b_a_a_h3::VALID_VALUES.include?(@storeCode)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field storeCode!')
  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