Class: TencentCloud::Irp::V20220805::ReportGoodsInfoRequest

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

Overview

ReportGoodsInfo请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, goodslist = nil) ⇒ ReportGoodsInfoRequest

Returns a new instance of ReportGoodsInfoRequest.



999
1000
1001
1002
# File 'lib/v20220805/models.rb', line 999

def initialize(instanceid=nil, goodslist=nil)
  @InstanceId = instanceid
  @GoodsList = goodslist
end

Instance Attribute Details

#GoodsListObject

Parameters:

  • InstanceId:

    实例ID,在控制台获取

  • GoodsList:

    上报的商品数组,一次数量不超过50



997
998
999
# File 'lib/v20220805/models.rb', line 997

def GoodsList
  @GoodsList
end

#InstanceIdObject

Parameters:

  • InstanceId:

    实例ID,在控制台获取

  • GoodsList:

    上报的商品数组,一次数量不超过50



997
998
999
# File 'lib/v20220805/models.rb', line 997

def InstanceId
  @InstanceId
end

Instance Method Details

#deserialize(params) ⇒ Object



1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
# File 'lib/v20220805/models.rb', line 1004

def deserialize(params)
  @InstanceId = params['InstanceId']
  unless params['GoodsList'].nil?
    @GoodsList = []
    params['GoodsList'].each do |i|
      goodsinfo_tmp = GoodsInfo.new
      goodsinfo_tmp.deserialize(i)
      @GoodsList << goodsinfo_tmp
    end
  end
end