tencentcloud-sdk-trp 3.0.732 → 3.0.733
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210515/client.rb +24 -0
- data/lib/v20210515/models.rb +125 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7b7924d6e5173bfea7dfadd15e9809678b234d5
|
4
|
+
data.tar.gz: d6d4aa093c063b2249c29f54b667d96ca5b37a37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1215490408a4d8e7f5ba57fd098fc1e06198e813d2f36f7dd54a970927e5467f87baaf62672feceec01143861db422f57de9c83d1a86549326ace5124de3a837
|
7
|
+
data.tar.gz: c3aacf5ee499f4b9c43b5425d4aeeca69ce71cdd80678165ad722615ef5d9313623b4db9f78e938358be0ebca80e35fcb4be7155c4fabb3da0fa8677e48734c3
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.733
|
data/lib/v20210515/client.rb
CHANGED
@@ -751,6 +751,30 @@ module TencentCloud
|
|
751
751
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
752
752
|
end
|
753
753
|
|
754
|
+
# 查询安心计划二维码扫码记录
|
755
|
+
|
756
|
+
# @param request: Request instance for DescribePlanQRCodeScanRecords.
|
757
|
+
# @type request: :class:`Tencentcloud::trp::V20210515::DescribePlanQRCodeScanRecordsRequest`
|
758
|
+
# @rtype: :class:`Tencentcloud::trp::V20210515::DescribePlanQRCodeScanRecordsResponse`
|
759
|
+
def DescribePlanQRCodeScanRecords(request)
|
760
|
+
body = send_request('DescribePlanQRCodeScanRecords', request.serialize)
|
761
|
+
response = JSON.parse(body)
|
762
|
+
if response['Response'].key?('Error') == false
|
763
|
+
model = DescribePlanQRCodeScanRecordsResponse.new
|
764
|
+
model.deserialize(response['Response'])
|
765
|
+
model
|
766
|
+
else
|
767
|
+
code = response['Response']['Error']['Code']
|
768
|
+
message = response['Response']['Error']['Message']
|
769
|
+
reqid = response['Response']['RequestId']
|
770
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
771
|
+
end
|
772
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
773
|
+
raise e
|
774
|
+
rescue StandardError => e
|
775
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
776
|
+
end
|
777
|
+
|
754
778
|
# 查询安心计划二维码列表
|
755
779
|
|
756
780
|
# @param request: Request instance for DescribePlanQRCodes.
|
data/lib/v20210515/models.rb
CHANGED
@@ -208,6 +208,9 @@ module TencentCloud
|
|
208
208
|
# @type Attrs: Array
|
209
209
|
|
210
210
|
attr_accessor :BatchId, :CorpId, :BatchCode, :CodeCnt, :MerchantId, :ProductId, :BatchType, :Remark, :MpTpl, :Status, :CreateTime, :UpdateTime, :MerchantName, :ProductName, :Ext, :TplName, :Job, :ProductionDate, :ValidDate, :Attrs
|
211
|
+
extend Gem::Deprecate
|
212
|
+
deprecate :Ext, :none, 2023, 12
|
213
|
+
deprecate :Ext=, :none, 2023, 12
|
211
214
|
|
212
215
|
def initialize(batchid=nil, corpid=nil, batchcode=nil, codecnt=nil, merchantid=nil, productid=nil, batchtype=nil, remark=nil, mptpl=nil, status=nil, createtime=nil, updatetime=nil, merchantname=nil, productname=nil, ext=nil, tplname=nil, job=nil, productiondate=nil, validdate=nil, attrs=nil)
|
213
216
|
@BatchId = batchid
|
@@ -2234,6 +2237,69 @@ module TencentCloud
|
|
2234
2237
|
end
|
2235
2238
|
end
|
2236
2239
|
|
2240
|
+
# DescribePlanQRCodeScanRecords请求参数结构体
|
2241
|
+
class DescribePlanQRCodeScanRecordsRequest < TencentCloud::Common::AbstractModel
|
2242
|
+
# @param StartTime: 开始时间
|
2243
|
+
# @type StartTime: String
|
2244
|
+
# @param EndTime: 结束时间
|
2245
|
+
# @type EndTime: String
|
2246
|
+
# @param PageNo: 页码
|
2247
|
+
# @type PageNo: Integer
|
2248
|
+
# @param PageSize: 页大小
|
2249
|
+
# @type PageSize: Integer
|
2250
|
+
|
2251
|
+
attr_accessor :StartTime, :EndTime, :PageNo, :PageSize
|
2252
|
+
|
2253
|
+
def initialize(starttime=nil, endtime=nil, pageno=nil, pagesize=nil)
|
2254
|
+
@StartTime = starttime
|
2255
|
+
@EndTime = endtime
|
2256
|
+
@PageNo = pageno
|
2257
|
+
@PageSize = pagesize
|
2258
|
+
end
|
2259
|
+
|
2260
|
+
def deserialize(params)
|
2261
|
+
@StartTime = params['StartTime']
|
2262
|
+
@EndTime = params['EndTime']
|
2263
|
+
@PageNo = params['PageNo']
|
2264
|
+
@PageSize = params['PageSize']
|
2265
|
+
end
|
2266
|
+
end
|
2267
|
+
|
2268
|
+
# DescribePlanQRCodeScanRecords返回参数结构体
|
2269
|
+
class DescribePlanQRCodeScanRecordsResponse < TencentCloud::Common::AbstractModel
|
2270
|
+
# @param Ret: 返回码
|
2271
|
+
# @type Ret: Integer
|
2272
|
+
# @param Total: 总数
|
2273
|
+
# @type Total: Integer
|
2274
|
+
# @param Data: 数据
|
2275
|
+
# @type Data: Array
|
2276
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2277
|
+
# @type RequestId: String
|
2278
|
+
|
2279
|
+
attr_accessor :Ret, :Total, :Data, :RequestId
|
2280
|
+
|
2281
|
+
def initialize(ret=nil, total=nil, data=nil, requestid=nil)
|
2282
|
+
@Ret = ret
|
2283
|
+
@Total = total
|
2284
|
+
@Data = data
|
2285
|
+
@RequestId = requestid
|
2286
|
+
end
|
2287
|
+
|
2288
|
+
def deserialize(params)
|
2289
|
+
@Ret = params['Ret']
|
2290
|
+
@Total = params['Total']
|
2291
|
+
unless params['Data'].nil?
|
2292
|
+
@Data = []
|
2293
|
+
params['Data'].each do |i|
|
2294
|
+
planqrcoderecord_tmp = PlanQRCodeRecord.new
|
2295
|
+
planqrcoderecord_tmp.deserialize(i)
|
2296
|
+
@Data << planqrcoderecord_tmp
|
2297
|
+
end
|
2298
|
+
end
|
2299
|
+
@RequestId = params['RequestId']
|
2300
|
+
end
|
2301
|
+
end
|
2302
|
+
|
2237
2303
|
# DescribePlanQRCodes请求参数结构体
|
2238
2304
|
class DescribePlanQRCodesRequest < TencentCloud::Common::AbstractModel
|
2239
2305
|
# @param PlanId: 计划ID
|
@@ -2520,8 +2586,8 @@ module TencentCloud
|
|
2520
2586
|
|
2521
2587
|
attr_accessor :Products, :TotalCount, :ScanLogs, :RequestId
|
2522
2588
|
extend Gem::Deprecate
|
2523
|
-
deprecate :Products, :none, 2023,
|
2524
|
-
deprecate :Products=, :none, 2023,
|
2589
|
+
deprecate :Products, :none, 2023, 12
|
2590
|
+
deprecate :Products=, :none, 2023, 12
|
2525
2591
|
|
2526
2592
|
def initialize(products=nil, totalcount=nil, scanlogs=nil, requestid=nil)
|
2527
2593
|
@Products = products
|
@@ -2926,12 +2992,21 @@ module TencentCloud
|
|
2926
2992
|
|
2927
2993
|
# 预留字段
|
2928
2994
|
class Ext < TencentCloud::Common::AbstractModel
|
2995
|
+
# @param Value: 字符串
|
2996
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2997
|
+
# @type Value: String
|
2929
2998
|
|
2999
|
+
attr_accessor :Value
|
3000
|
+
extend Gem::Deprecate
|
3001
|
+
deprecate :Value, :none, 2023, 12
|
3002
|
+
deprecate :Value=, :none, 2023, 12
|
2930
3003
|
|
2931
|
-
def initialize()
|
3004
|
+
def initialize(value=nil)
|
3005
|
+
@Value = value
|
2932
3006
|
end
|
2933
3007
|
|
2934
3008
|
def deserialize(params)
|
3009
|
+
@Value = params['Value']
|
2935
3010
|
end
|
2936
3011
|
end
|
2937
3012
|
|
@@ -3722,6 +3797,53 @@ module TencentCloud
|
|
3722
3797
|
end
|
3723
3798
|
end
|
3724
3799
|
|
3800
|
+
# 安心计划二维码扫码记录
|
3801
|
+
class PlanQRCodeRecord < TencentCloud::Common::AbstractModel
|
3802
|
+
# @param Url: 二维码
|
3803
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3804
|
+
# @type Url: String
|
3805
|
+
# @param OpenId: OpenID
|
3806
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3807
|
+
# @type OpenId: String
|
3808
|
+
# @param ScanTime: 扫码时间
|
3809
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3810
|
+
# @type ScanTime: String
|
3811
|
+
# @param Ip: IP 地址
|
3812
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3813
|
+
# @type Ip: String
|
3814
|
+
# @param Country: 国家
|
3815
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3816
|
+
# @type Country: String
|
3817
|
+
# @param Province: 省份
|
3818
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3819
|
+
# @type Province: String
|
3820
|
+
# @param City: 城市
|
3821
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3822
|
+
# @type City: String
|
3823
|
+
|
3824
|
+
attr_accessor :Url, :OpenId, :ScanTime, :Ip, :Country, :Province, :City
|
3825
|
+
|
3826
|
+
def initialize(url=nil, openid=nil, scantime=nil, ip=nil, country=nil, province=nil, city=nil)
|
3827
|
+
@Url = url
|
3828
|
+
@OpenId = openid
|
3829
|
+
@ScanTime = scantime
|
3830
|
+
@Ip = ip
|
3831
|
+
@Country = country
|
3832
|
+
@Province = province
|
3833
|
+
@City = city
|
3834
|
+
end
|
3835
|
+
|
3836
|
+
def deserialize(params)
|
3837
|
+
@Url = params['Url']
|
3838
|
+
@OpenId = params['OpenId']
|
3839
|
+
@ScanTime = params['ScanTime']
|
3840
|
+
@Ip = params['Ip']
|
3841
|
+
@Country = params['Country']
|
3842
|
+
@Province = params['Province']
|
3843
|
+
@City = params['City']
|
3844
|
+
end
|
3845
|
+
end
|
3846
|
+
|
3725
3847
|
# 商品信息
|
3726
3848
|
class Product < TencentCloud::Common::AbstractModel
|
3727
3849
|
# @param MerchantId: 商户标识码
|