Class: TencentCloud::Trp::V20210515::Product
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Trp::V20210515::Product
- Defined in:
- lib/v20210515/models.rb
Overview
商品信息
Instance Attribute Summary collapse
- #CertState ⇒ Object
- #CorpId ⇒ Object
- #CreateTime ⇒ Object
- #Ext ⇒ Object
- #Logo ⇒ Object
- #MerchantId ⇒ Object
- #MerchantName ⇒ Object
- #Name ⇒ Object
- #ProductCode ⇒ Object
- #ProductId ⇒ Object
- #Remark ⇒ Object
- #Specification ⇒ Object
- #UpdateTime ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(merchantid = nil, name = nil, productid = nil, corpid = nil, productcode = nil, specification = nil, remark = nil, logo = nil, createtime = nil, updatetime = nil, ext = nil, merchantname = nil, certstate = nil) ⇒ Product
constructor
A new instance of Product.
Constructor Details
#initialize(merchantid = nil, name = nil, productid = nil, corpid = nil, productcode = nil, specification = nil, remark = nil, logo = nil, createtime = nil, updatetime = nil, ext = nil, merchantname = nil, certstate = nil) ⇒ Product
Returns a new instance of Product.
3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 |
# File 'lib/v20210515/models.rb', line 3925 def initialize(merchantid=nil, name=nil, productid=nil, corpid=nil, productcode=nil, specification=nil, remark=nil, logo=nil, createtime=nil, updatetime=nil, ext=nil, merchantname=nil, certstate=nil) @MerchantId = merchantid @Name = name @ProductId = productid @CorpId = corpid @ProductCode = productcode @Specification = specification @Remark = remark @Logo = logo @CreateTime = createtime @UpdateTime = updatetime @Ext = ext @MerchantName = merchantname @CertState = certstate end |
Instance Attribute Details
#CertState ⇒ Object
3923 3924 3925 |
# File 'lib/v20210515/models.rb', line 3923 def CertState @CertState end |
#CorpId ⇒ Object
3923 3924 3925 |
# File 'lib/v20210515/models.rb', line 3923 def CorpId @CorpId end |
#CreateTime ⇒ Object
3923 3924 3925 |
# File 'lib/v20210515/models.rb', line 3923 def CreateTime @CreateTime end |
#Ext ⇒ Object
3923 3924 3925 |
# File 'lib/v20210515/models.rb', line 3923 def Ext @Ext end |
#Logo ⇒ Object
3923 3924 3925 |
# File 'lib/v20210515/models.rb', line 3923 def Logo @Logo end |
#MerchantId ⇒ Object
3923 3924 3925 |
# File 'lib/v20210515/models.rb', line 3923 def MerchantId @MerchantId end |
#MerchantName ⇒ Object
3923 3924 3925 |
# File 'lib/v20210515/models.rb', line 3923 def MerchantName @MerchantName end |
#Name ⇒ Object
3923 3924 3925 |
# File 'lib/v20210515/models.rb', line 3923 def Name @Name end |
#ProductCode ⇒ Object
3923 3924 3925 |
# File 'lib/v20210515/models.rb', line 3923 def ProductCode @ProductCode end |
#ProductId ⇒ Object
3923 3924 3925 |
# File 'lib/v20210515/models.rb', line 3923 def ProductId @ProductId end |
#Remark ⇒ Object
3923 3924 3925 |
# File 'lib/v20210515/models.rb', line 3923 def Remark @Remark end |
#Specification ⇒ Object
3923 3924 3925 |
# File 'lib/v20210515/models.rb', line 3923 def Specification @Specification end |
#UpdateTime ⇒ Object
3923 3924 3925 |
# File 'lib/v20210515/models.rb', line 3923 def UpdateTime @UpdateTime end |
Instance Method Details
#deserialize(params) ⇒ Object
3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 |
# File 'lib/v20210515/models.rb', line 3941 def deserialize(params) @MerchantId = params['MerchantId'] @Name = params['Name'] @ProductId = params['ProductId'] @CorpId = params['CorpId'] @ProductCode = params['ProductCode'] @Specification = params['Specification'] @Remark = params['Remark'] @Logo = params['Logo'] @CreateTime = params['CreateTime'] @UpdateTime = params['UpdateTime'] unless params['Ext'].nil? @Ext = Ext.new @Ext.deserialize(params['Ext']) end @MerchantName = params['MerchantName'] @CertState = params['CertState'] end |