Class: ChangeSubscriptionRequest

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
STORECODE =
3
FIELDS =
{
  BILLINGITEMID => {:type => ::Thrift::Types::STRING, :name => 'billingItemId'},
  SUBSCRIPTIONSERVICE => {:type => ::Thrift::Types::I32, :name => 'subscriptionService', :enum_class => ::P0_a_a_b_a_a_p3},
  STORECODE => {:type => ::Thrift::Types::I32, :name => 'storeCode', :enum_class => ::P0_a_a_b_a_a_h3}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



11484
11485
11486
11487
11488
11489
11490
11491
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 11484

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 @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
end