Class: TencentCloud::Cpdp::V20190820::MerchantClassificationId

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190820/models.rb

Overview

商户分类

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code = nil, name = nil, parent = nil) ⇒ MerchantClassificationId

Returns a new instance of MerchantClassificationId.



11541
11542
11543
11544
11545
# File 'lib/v20190820/models.rb', line 11541

def initialize(code=nil, name=nil, parent=nil)
  @Code = code
  @Name = name
  @Parent = parent
end

Instance Attribute Details

#CodeObject

Parameters:

  • Code:

    分类编号

  • Name:

    分类名称

  • Parent:

    父级编号(0为一级编号,大于0为父级分类编号)



11539
11540
11541
# File 'lib/v20190820/models.rb', line 11539

def Code
  @Code
end

#NameObject

Parameters:

  • Code:

    分类编号

  • Name:

    分类名称

  • Parent:

    父级编号(0为一级编号,大于0为父级分类编号)



11539
11540
11541
# File 'lib/v20190820/models.rb', line 11539

def Name
  @Name
end

#ParentObject

Parameters:

  • Code:

    分类编号

  • Name:

    分类名称

  • Parent:

    父级编号(0为一级编号,大于0为父级分类编号)



11539
11540
11541
# File 'lib/v20190820/models.rb', line 11539

def Parent
  @Parent
end

Instance Method Details

#deserialize(params) ⇒ Object



11547
11548
11549
11550
11551
# File 'lib/v20190820/models.rb', line 11547

def deserialize(params)
  @Code = params['Code']
  @Name = params['Name']
  @Parent = params['Parent']
end