Class: PaidCallBalance

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

PRODUCTTYPE =
1
PRODUCTNAME =
2
UNIT =
3
LIMITEDPAIDBALANCE =
4
LIMITEDFREEBALANCE =
5
UNLIMITEDPAIDBALANCE =
6
UNLIMITEDFREEBALANCE =
7
STARTTIME =
8
ENDTIME =
9
AUTOPAYENABLED =
10
FIELDS =
{
  PRODUCTTYPE => {:type => ::Thrift::Types::I32, :name => 'productType', :enum_class => ::P0_a_e_a_b_yd},
  PRODUCTNAME => {:type => ::Thrift::Types::STRING, :name => 'productName'},
  UNIT => {:type => ::Thrift::Types::STRING, :name => 'unit'},
  LIMITEDPAIDBALANCE => {:type => ::Thrift::Types::I32, :name => 'limitedPaidBalance'},
  LIMITEDFREEBALANCE => {:type => ::Thrift::Types::I32, :name => 'limitedFreeBalance'},
  UNLIMITEDPAIDBALANCE => {:type => ::Thrift::Types::I32, :name => 'unlimitedPaidBalance'},
  UNLIMITEDFREEBALANCE => {:type => ::Thrift::Types::I32, :name => 'unlimitedFreeBalance'},
  STARTTIME => {:type => ::Thrift::Types::I64, :name => 'startTime'},
  ENDTIME => {:type => ::Thrift::Types::I64, :name => 'endTime'},
  AUTOPAYENABLED => {:type => ::Thrift::Types::BOOL, :name => 'autopayEnabled'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



16192
16193
16194
16195
16196
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16192

def validate
  unless @productType.nil? || ::P0_a_e_a_b_yd::VALID_VALUES.include?(@productType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field productType!')
  end
end