Class: TencentCloud::Trp::V20210515::CreateProductRequest

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

Overview

CreateProduct请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, merchantid = nil, remark = nil, merchantname = nil, specification = nil, logo = nil, corpid = nil, ext = nil) ⇒ CreateProductRequest

Returns a new instance of CreateProductRequest.



1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
# File 'lib/v20210515/models.rb', line 1036

def initialize(name=nil, merchantid=nil, remark=nil, merchantname=nil, specification=nil, =nil, corpid=nil, ext=nil)
  @Name = name
  @MerchantId = merchantid
  @Remark = remark
  @MerchantName = merchantname
  @Specification = specification
  @Logo = 
  @CorpId = corpid
  @Ext = ext
end

Instance Attribute Details

#CorpIdObject

Parameters:

  • Name:

    商品名称

  • MerchantId:

    商户ID

  • Remark:

    备注

  • MerchantName:

    商户名称

  • Specification:

    商品规格

  • Logo:

    商品图片

  • CorpId:

    企业ID

  • Ext:

    预留字段



1034
1035
1036
# File 'lib/v20210515/models.rb', line 1034

def CorpId
  @CorpId
end

#ExtObject

Parameters:

  • Name:

    商品名称

  • MerchantId:

    商户ID

  • Remark:

    备注

  • MerchantName:

    商户名称

  • Specification:

    商品规格

  • Logo:

    商品图片

  • CorpId:

    企业ID

  • Ext:

    预留字段



1034
1035
1036
# File 'lib/v20210515/models.rb', line 1034

def Ext
  @Ext
end

#LogoObject

Parameters:

  • Name:

    商品名称

  • MerchantId:

    商户ID

  • Remark:

    备注

  • MerchantName:

    商户名称

  • Specification:

    商品规格

  • Logo:

    商品图片

  • CorpId:

    企业ID

  • Ext:

    预留字段



1034
1035
1036
# File 'lib/v20210515/models.rb', line 1034

def Logo
  @Logo
end

#MerchantIdObject

Parameters:

  • Name:

    商品名称

  • MerchantId:

    商户ID

  • Remark:

    备注

  • MerchantName:

    商户名称

  • Specification:

    商品规格

  • Logo:

    商品图片

  • CorpId:

    企业ID

  • Ext:

    预留字段



1034
1035
1036
# File 'lib/v20210515/models.rb', line 1034

def MerchantId
  @MerchantId
end

#MerchantNameObject

Parameters:

  • Name:

    商品名称

  • MerchantId:

    商户ID

  • Remark:

    备注

  • MerchantName:

    商户名称

  • Specification:

    商品规格

  • Logo:

    商品图片

  • CorpId:

    企业ID

  • Ext:

    预留字段



1034
1035
1036
# File 'lib/v20210515/models.rb', line 1034

def MerchantName
  @MerchantName
end

#NameObject

Parameters:

  • Name:

    商品名称

  • MerchantId:

    商户ID

  • Remark:

    备注

  • MerchantName:

    商户名称

  • Specification:

    商品规格

  • Logo:

    商品图片

  • CorpId:

    企业ID

  • Ext:

    预留字段



1034
1035
1036
# File 'lib/v20210515/models.rb', line 1034

def Name
  @Name
end

#RemarkObject

Parameters:

  • Name:

    商品名称

  • MerchantId:

    商户ID

  • Remark:

    备注

  • MerchantName:

    商户名称

  • Specification:

    商品规格

  • Logo:

    商品图片

  • CorpId:

    企业ID

  • Ext:

    预留字段



1034
1035
1036
# File 'lib/v20210515/models.rb', line 1034

def Remark
  @Remark
end

#SpecificationObject

Parameters:

  • Name:

    商品名称

  • MerchantId:

    商户ID

  • Remark:

    备注

  • MerchantName:

    商户名称

  • Specification:

    商品规格

  • Logo:

    商品图片

  • CorpId:

    企业ID

  • Ext:

    预留字段



1034
1035
1036
# File 'lib/v20210515/models.rb', line 1034

def Specification
  @Specification
end

Instance Method Details

#deserialize(params) ⇒ Object



1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
# File 'lib/v20210515/models.rb', line 1047

def deserialize(params)
  @Name = params['Name']
  @MerchantId = params['MerchantId']
  @Remark = params['Remark']
  @MerchantName = params['MerchantName']
  @Specification = params['Specification']
  @Logo = params['Logo']
  @CorpId = params['CorpId']
  unless params['Ext'].nil?
    @Ext = Ext.new
    @Ext.deserialize(params['Ext'])
  end
end