tencentcloud-sdk-trp 3.0.496 → 3.0.498
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210515/client.rb +48 -0
- data/lib/v20210515/models.rb +258 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6eef99bb9489c4cd7b696d23c216a086cfe4938c
|
4
|
+
data.tar.gz: 72e812fbba8a09512d7e3314add6ccb0a7bc9be9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 424e1ffbd5a96c3bca8a0b263b023e8883ad463d3eb841b976488e27e7c62e7641f9372c32c8e027258422c604b38cc05f7f679867528c711d837afc75a4c65b
|
7
|
+
data.tar.gz: ce5f35da3ef81ea2f01c4f80a1d19bc4056a5c6be294bac5153ab9123b8f9a890f2694fa7e9b9ba414ef58b838173d13a5d5023aa60b1982b974774a783bc52c
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.498
|
data/lib/v20210515/client.rb
CHANGED
@@ -725,6 +725,54 @@ module TencentCloud
|
|
725
725
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
726
726
|
end
|
727
727
|
|
728
|
+
# 查询扫码日志明细
|
729
|
+
|
730
|
+
# @param request: Request instance for DescribeScanLogs.
|
731
|
+
# @type request: :class:`Tencentcloud::trp::V20210515::DescribeScanLogsRequest`
|
732
|
+
# @rtype: :class:`Tencentcloud::trp::V20210515::DescribeScanLogsResponse`
|
733
|
+
def DescribeScanLogs(request)
|
734
|
+
body = send_request('DescribeScanLogs', request.serialize)
|
735
|
+
response = JSON.parse(body)
|
736
|
+
if response['Response'].key?('Error') == false
|
737
|
+
model = DescribeScanLogsResponse.new
|
738
|
+
model.deserialize(response['Response'])
|
739
|
+
model
|
740
|
+
else
|
741
|
+
code = response['Response']['Error']['Code']
|
742
|
+
message = response['Response']['Error']['Message']
|
743
|
+
reqid = response['Response']['RequestId']
|
744
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
745
|
+
end
|
746
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
747
|
+
raise e
|
748
|
+
rescue StandardError => e
|
749
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
750
|
+
end
|
751
|
+
|
752
|
+
# 查询某个批次被扫码的统计列表,没有被扫过的不会返回
|
753
|
+
|
754
|
+
# @param request: Request instance for DescribeScanStats.
|
755
|
+
# @type request: :class:`Tencentcloud::trp::V20210515::DescribeScanStatsRequest`
|
756
|
+
# @rtype: :class:`Tencentcloud::trp::V20210515::DescribeScanStatsResponse`
|
757
|
+
def DescribeScanStats(request)
|
758
|
+
body = send_request('DescribeScanStats', request.serialize)
|
759
|
+
response = JSON.parse(body)
|
760
|
+
if response['Response'].key?('Error') == false
|
761
|
+
model = DescribeScanStatsResponse.new
|
762
|
+
model.deserialize(response['Response'])
|
763
|
+
model
|
764
|
+
else
|
765
|
+
code = response['Response']['Error']['Code']
|
766
|
+
message = response['Response']['Error']['Message']
|
767
|
+
reqid = response['Response']['RequestId']
|
768
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
769
|
+
end
|
770
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
771
|
+
raise e
|
772
|
+
rescue StandardError => e
|
773
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
774
|
+
end
|
775
|
+
|
728
776
|
# 查询临时Token,主要用于上传接口
|
729
777
|
|
730
778
|
# @param request: Request instance for DescribeTmpToken.
|
data/lib/v20210515/models.rb
CHANGED
@@ -2040,6 +2040,124 @@ module TencentCloud
|
|
2040
2040
|
end
|
2041
2041
|
end
|
2042
2042
|
|
2043
|
+
# DescribeScanLogs请求参数结构体
|
2044
|
+
class DescribeScanLogsRequest < TencentCloud::Common::AbstractModel
|
2045
|
+
# @param Code: 码
|
2046
|
+
# @type Code: String
|
2047
|
+
# @param CorpId: 企业ID
|
2048
|
+
# @type CorpId: Integer
|
2049
|
+
|
2050
|
+
attr_accessor :Code, :CorpId
|
2051
|
+
|
2052
|
+
def initialize(code=nil, corpid=nil)
|
2053
|
+
@Code = code
|
2054
|
+
@CorpId = corpid
|
2055
|
+
end
|
2056
|
+
|
2057
|
+
def deserialize(params)
|
2058
|
+
@Code = params['Code']
|
2059
|
+
@CorpId = params['CorpId']
|
2060
|
+
end
|
2061
|
+
end
|
2062
|
+
|
2063
|
+
# DescribeScanLogs返回参数结构体
|
2064
|
+
class DescribeScanLogsResponse < TencentCloud::Common::AbstractModel
|
2065
|
+
# @param Products: 【弃用】
|
2066
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2067
|
+
# @type Products: Array
|
2068
|
+
# @param TotalCount: 条数
|
2069
|
+
# @type TotalCount: Integer
|
2070
|
+
# @param ScanLogs: 扫描记录
|
2071
|
+
# @type ScanLogs: Array
|
2072
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2073
|
+
# @type RequestId: String
|
2074
|
+
|
2075
|
+
attr_accessor :Products, :TotalCount, :ScanLogs, :RequestId
|
2076
|
+
|
2077
|
+
def initialize(products=nil, totalcount=nil, scanlogs=nil, requestid=nil)
|
2078
|
+
@Products = products
|
2079
|
+
@TotalCount = totalcount
|
2080
|
+
@ScanLogs = scanlogs
|
2081
|
+
@RequestId = requestid
|
2082
|
+
end
|
2083
|
+
|
2084
|
+
def deserialize(params)
|
2085
|
+
unless params['Products'].nil?
|
2086
|
+
@Products = []
|
2087
|
+
params['Products'].each do |i|
|
2088
|
+
scanlog_tmp = ScanLog.new
|
2089
|
+
scanlog_tmp.deserialize(i)
|
2090
|
+
@Products << scanlog_tmp
|
2091
|
+
end
|
2092
|
+
end
|
2093
|
+
@TotalCount = params['TotalCount']
|
2094
|
+
unless params['ScanLogs'].nil?
|
2095
|
+
@ScanLogs = []
|
2096
|
+
params['ScanLogs'].each do |i|
|
2097
|
+
scanlog_tmp = ScanLog.new
|
2098
|
+
scanlog_tmp.deserialize(i)
|
2099
|
+
@ScanLogs << scanlog_tmp
|
2100
|
+
end
|
2101
|
+
end
|
2102
|
+
@RequestId = params['RequestId']
|
2103
|
+
end
|
2104
|
+
end
|
2105
|
+
|
2106
|
+
# DescribeScanStats请求参数结构体
|
2107
|
+
class DescribeScanStatsRequest < TencentCloud::Common::AbstractModel
|
2108
|
+
# @param BatchId: 批次ID
|
2109
|
+
# @type BatchId: String
|
2110
|
+
# @param CorpId: 企业ID
|
2111
|
+
# @type CorpId: Integer
|
2112
|
+
# @param PageSize: 分页数量
|
2113
|
+
# @type PageSize: Integer
|
2114
|
+
# @param PageNumber: 当前分页
|
2115
|
+
# @type PageNumber: Integer
|
2116
|
+
|
2117
|
+
attr_accessor :BatchId, :CorpId, :PageSize, :PageNumber
|
2118
|
+
|
2119
|
+
def initialize(batchid=nil, corpid=nil, pagesize=nil, pagenumber=nil)
|
2120
|
+
@BatchId = batchid
|
2121
|
+
@CorpId = corpid
|
2122
|
+
@PageSize = pagesize
|
2123
|
+
@PageNumber = pagenumber
|
2124
|
+
end
|
2125
|
+
|
2126
|
+
def deserialize(params)
|
2127
|
+
@BatchId = params['BatchId']
|
2128
|
+
@CorpId = params['CorpId']
|
2129
|
+
@PageSize = params['PageSize']
|
2130
|
+
@PageNumber = params['PageNumber']
|
2131
|
+
end
|
2132
|
+
end
|
2133
|
+
|
2134
|
+
# DescribeScanStats返回参数结构体
|
2135
|
+
class DescribeScanStatsResponse < TencentCloud::Common::AbstractModel
|
2136
|
+
# @param ScanStats: 统计记录
|
2137
|
+
# @type ScanStats: Array
|
2138
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2139
|
+
# @type RequestId: String
|
2140
|
+
|
2141
|
+
attr_accessor :ScanStats, :RequestId
|
2142
|
+
|
2143
|
+
def initialize(scanstats=nil, requestid=nil)
|
2144
|
+
@ScanStats = scanstats
|
2145
|
+
@RequestId = requestid
|
2146
|
+
end
|
2147
|
+
|
2148
|
+
def deserialize(params)
|
2149
|
+
unless params['ScanStats'].nil?
|
2150
|
+
@ScanStats = []
|
2151
|
+
params['ScanStats'].each do |i|
|
2152
|
+
scanstat_tmp = ScanStat.new
|
2153
|
+
scanstat_tmp.deserialize(i)
|
2154
|
+
@ScanStats << scanstat_tmp
|
2155
|
+
end
|
2156
|
+
end
|
2157
|
+
@RequestId = params['RequestId']
|
2158
|
+
end
|
2159
|
+
end
|
2160
|
+
|
2043
2161
|
# DescribeTmpToken请求参数结构体
|
2044
2162
|
class DescribeTmpTokenRequest < TencentCloud::Common::AbstractModel
|
2045
2163
|
# @param CorpId: 企业ID
|
@@ -3102,6 +3220,146 @@ module TencentCloud
|
|
3102
3220
|
end
|
3103
3221
|
end
|
3104
3222
|
|
3223
|
+
# 扫码明细
|
3224
|
+
class ScanLog < TencentCloud::Common::AbstractModel
|
3225
|
+
# @param LogId: 行ID
|
3226
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3227
|
+
# @type LogId: Integer
|
3228
|
+
# @param Openid: 微信openid
|
3229
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3230
|
+
# @type Openid: String
|
3231
|
+
# @param Nickname: 微信昵称
|
3232
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3233
|
+
# @type Nickname: String
|
3234
|
+
# @param CreateTime: 创建时间
|
3235
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3236
|
+
# @type CreateTime: String
|
3237
|
+
# @param Code: 码
|
3238
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3239
|
+
# @type Code: String
|
3240
|
+
# @param CorpId: 企业ID
|
3241
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3242
|
+
# @type CorpId: Integer
|
3243
|
+
# @param MerchantId: 商户ID
|
3244
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3245
|
+
# @type MerchantId: String
|
3246
|
+
# @param ProductId: 商品ID
|
3247
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3248
|
+
# @type ProductId: String
|
3249
|
+
# @param Ip: ip地址
|
3250
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3251
|
+
# @type Ip: String
|
3252
|
+
# @param Country: 国家
|
3253
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3254
|
+
# @type Country: String
|
3255
|
+
# @param Province: 省份
|
3256
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3257
|
+
# @type Province: String
|
3258
|
+
# @param City: 城市
|
3259
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3260
|
+
# @type City: String
|
3261
|
+
# @param District: 县/区
|
3262
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3263
|
+
# @type District: String
|
3264
|
+
# @param Unionid: 微信 unionid
|
3265
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3266
|
+
# @type Unionid: String
|
3267
|
+
# @param First: 首次扫码 0:否, 1:是
|
3268
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3269
|
+
# @type First: Integer
|
3270
|
+
# @param BatchId: 批次ID
|
3271
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3272
|
+
# @type BatchId: String
|
3273
|
+
|
3274
|
+
attr_accessor :LogId, :Openid, :Nickname, :CreateTime, :Code, :CorpId, :MerchantId, :ProductId, :Ip, :Country, :Province, :City, :District, :Unionid, :First, :BatchId
|
3275
|
+
|
3276
|
+
def initialize(logid=nil, openid=nil, nickname=nil, createtime=nil, code=nil, corpid=nil, merchantid=nil, productid=nil, ip=nil, country=nil, province=nil, city=nil, district=nil, unionid=nil, first=nil, batchid=nil)
|
3277
|
+
@LogId = logid
|
3278
|
+
@Openid = openid
|
3279
|
+
@Nickname = nickname
|
3280
|
+
@CreateTime = createtime
|
3281
|
+
@Code = code
|
3282
|
+
@CorpId = corpid
|
3283
|
+
@MerchantId = merchantid
|
3284
|
+
@ProductId = productid
|
3285
|
+
@Ip = ip
|
3286
|
+
@Country = country
|
3287
|
+
@Province = province
|
3288
|
+
@City = city
|
3289
|
+
@District = district
|
3290
|
+
@Unionid = unionid
|
3291
|
+
@First = first
|
3292
|
+
@BatchId = batchid
|
3293
|
+
end
|
3294
|
+
|
3295
|
+
def deserialize(params)
|
3296
|
+
@LogId = params['LogId']
|
3297
|
+
@Openid = params['Openid']
|
3298
|
+
@Nickname = params['Nickname']
|
3299
|
+
@CreateTime = params['CreateTime']
|
3300
|
+
@Code = params['Code']
|
3301
|
+
@CorpId = params['CorpId']
|
3302
|
+
@MerchantId = params['MerchantId']
|
3303
|
+
@ProductId = params['ProductId']
|
3304
|
+
@Ip = params['Ip']
|
3305
|
+
@Country = params['Country']
|
3306
|
+
@Province = params['Province']
|
3307
|
+
@City = params['City']
|
3308
|
+
@District = params['District']
|
3309
|
+
@Unionid = params['Unionid']
|
3310
|
+
@First = params['First']
|
3311
|
+
@BatchId = params['BatchId']
|
3312
|
+
end
|
3313
|
+
end
|
3314
|
+
|
3315
|
+
# 扫码统计
|
3316
|
+
class ScanStat < TencentCloud::Common::AbstractModel
|
3317
|
+
# @param Code: 安心码
|
3318
|
+
# @type Code: String
|
3319
|
+
# @param CorpId: 企业ID
|
3320
|
+
# @type CorpId: Integer
|
3321
|
+
# @param MerchantId: 商户ID
|
3322
|
+
# @type MerchantId: String
|
3323
|
+
# @param ProductId: 产品ID
|
3324
|
+
# @type ProductId: String
|
3325
|
+
# @param BatchId: 批次ID
|
3326
|
+
# @type BatchId: String
|
3327
|
+
# @param Pv: 扫码次数
|
3328
|
+
# @type Pv: Integer
|
3329
|
+
# @param Uv: 扫码人数
|
3330
|
+
# @type Uv: Integer
|
3331
|
+
# @param CreateTime: 创建时间
|
3332
|
+
# @type CreateTime: String
|
3333
|
+
# @param UpdateTime: 更新时间
|
3334
|
+
# @type UpdateTime: String
|
3335
|
+
|
3336
|
+
attr_accessor :Code, :CorpId, :MerchantId, :ProductId, :BatchId, :Pv, :Uv, :CreateTime, :UpdateTime
|
3337
|
+
|
3338
|
+
def initialize(code=nil, corpid=nil, merchantid=nil, productid=nil, batchid=nil, pv=nil, uv=nil, createtime=nil, updatetime=nil)
|
3339
|
+
@Code = code
|
3340
|
+
@CorpId = corpid
|
3341
|
+
@MerchantId = merchantid
|
3342
|
+
@ProductId = productid
|
3343
|
+
@BatchId = batchid
|
3344
|
+
@Pv = pv
|
3345
|
+
@Uv = uv
|
3346
|
+
@CreateTime = createtime
|
3347
|
+
@UpdateTime = updatetime
|
3348
|
+
end
|
3349
|
+
|
3350
|
+
def deserialize(params)
|
3351
|
+
@Code = params['Code']
|
3352
|
+
@CorpId = params['CorpId']
|
3353
|
+
@MerchantId = params['MerchantId']
|
3354
|
+
@ProductId = params['ProductId']
|
3355
|
+
@BatchId = params['BatchId']
|
3356
|
+
@Pv = params['Pv']
|
3357
|
+
@Uv = params['Uv']
|
3358
|
+
@CreateTime = params['CreateTime']
|
3359
|
+
@UpdateTime = params['UpdateTime']
|
3360
|
+
end
|
3361
|
+
end
|
3362
|
+
|
3105
3363
|
# 溯源码
|
3106
3364
|
class TraceCode < TencentCloud::Common::AbstractModel
|
3107
3365
|
# @param Code: 二维码
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-trp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.498
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|