tencentcloud-sdk-trp 3.0.429 → 3.0.430
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 +251 -22
- 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: d88c550718818b66b2b2a67382cff9cea23b2cbb
|
4
|
+
data.tar.gz: cd2f7f03581b61254a492ba00befd806565ffe9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c643485b4090e6d53fe67c901452d585f1d18d8ff2a0ee4622efa828bf448b5a4d7a51e4c7bc7ffa9ed9c0e6ed6baa1a5756653d5bd56c17d8511102b8fdf12
|
7
|
+
data.tar.gz: 17e0d191c42a30a49ebc91613e32550dafd48035c9513b9998cfe930933246121d7c7a47b5ff722f4c8ac073fe44f2618b60bbea60a4ea1f40599904d53783bf
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.430
|
data/lib/v20210515/client.rb
CHANGED
@@ -677,6 +677,30 @@ module TencentCloud
|
|
677
677
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
678
678
|
end
|
679
679
|
|
680
|
+
# 查询临时Token,主要用于上传接口
|
681
|
+
|
682
|
+
# @param request: Request instance for DescribeTmpToken.
|
683
|
+
# @type request: :class:`Tencentcloud::trp::V20210515::DescribeTmpTokenRequest`
|
684
|
+
# @rtype: :class:`Tencentcloud::trp::V20210515::DescribeTmpTokenResponse`
|
685
|
+
def DescribeTmpToken(request)
|
686
|
+
body = send_request('DescribeTmpToken', request.serialize)
|
687
|
+
response = JSON.parse(body)
|
688
|
+
if response['Response'].key?('Error') == false
|
689
|
+
model = DescribeTmpTokenResponse.new
|
690
|
+
model.deserialize(response['Response'])
|
691
|
+
model
|
692
|
+
else
|
693
|
+
code = response['Response']['Error']['Code']
|
694
|
+
message = response['Response']['Error']['Message']
|
695
|
+
reqid = response['Response']['RequestId']
|
696
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
697
|
+
end
|
698
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
699
|
+
raise e
|
700
|
+
rescue StandardError => e
|
701
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
702
|
+
end
|
703
|
+
|
680
704
|
# 查询二维码信息
|
681
705
|
|
682
706
|
# @param request: Request instance for DescribeTraceCodeById.
|
data/lib/v20210515/models.rb
CHANGED
@@ -52,7 +52,7 @@ module TencentCloud
|
|
52
52
|
# @param CorpId: 企业ID
|
53
53
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
54
54
|
# @type CorpId: Integer
|
55
|
-
# @param BatchCode:
|
55
|
+
# @param BatchCode: 批次编码(未使用)
|
56
56
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
57
57
|
# @type BatchCode: String
|
58
58
|
# @param CodeCnt: 码数量
|
@@ -73,7 +73,7 @@ module TencentCloud
|
|
73
73
|
# @param MpTpl: 微信模板
|
74
74
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
75
75
|
# @type MpTpl: String
|
76
|
-
# @param Status:
|
76
|
+
# @param Status: 批次状态 0: 未激活 1: 已激活 -1: 已冻结
|
77
77
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
78
78
|
# @type Status: Integer
|
79
79
|
# @param CreateTime: 创建时间
|
@@ -163,6 +163,125 @@ module TencentCloud
|
|
163
163
|
end
|
164
164
|
end
|
165
165
|
|
166
|
+
# 码包类型
|
167
|
+
class CodePack < TencentCloud::Common::AbstractModel
|
168
|
+
# @param PackId: 码id
|
169
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
170
|
+
# @type PackId: String
|
171
|
+
# @param CorpId: 企业id
|
172
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
173
|
+
# @type CorpId: Integer
|
174
|
+
# @param MerchantId: 商户id
|
175
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
176
|
+
# @type MerchantId: String
|
177
|
+
# @param CreateTime: 创建时间
|
178
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
179
|
+
# @type CreateTime: String
|
180
|
+
# @param UpdateTime: 更新时间
|
181
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
182
|
+
# @type UpdateTime: String
|
183
|
+
# @param Status: 状态
|
184
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
185
|
+
# @type Status: String
|
186
|
+
# @param Log: 记录
|
187
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
188
|
+
# @type Log: String
|
189
|
+
# @param CreateUser: 创建人
|
190
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
191
|
+
# @type CreateUser: String
|
192
|
+
# @param Amount: 码数
|
193
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
194
|
+
# @type Amount: Integer
|
195
|
+
# @param CodeLength: 码长度
|
196
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
197
|
+
# @type CodeLength: Integer
|
198
|
+
# @param CodeType: 码类型
|
199
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
200
|
+
# @type CodeType: String
|
201
|
+
# @param Cipher: 是否暗码
|
202
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
203
|
+
# @type Cipher: Integer
|
204
|
+
# @param TextUrl: 文字码地址
|
205
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
206
|
+
# @type TextUrl: String
|
207
|
+
# @param PackUrl: 二维码地址
|
208
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
209
|
+
# @type PackUrl: String
|
210
|
+
# @param MerchantName: 商户名
|
211
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
212
|
+
# @type MerchantName: String
|
213
|
+
# @param RuleType: 码规则类型 0: 默认, 1: 自定义
|
214
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
215
|
+
# @type RuleType: Integer
|
216
|
+
# @param CustomId: 自定义码规则ID
|
217
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
218
|
+
# @type CustomId: String
|
219
|
+
# @param PackType: 码包类型 0: 普通码包 1: 层级码包
|
220
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
221
|
+
# @type PackType: Integer
|
222
|
+
# @param PackLevel: 生码层级
|
223
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
224
|
+
# @type PackLevel: Integer
|
225
|
+
# @param PackSpec: 层级码配置
|
226
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
227
|
+
# @type PackSpec: Array
|
228
|
+
|
229
|
+
attr_accessor :PackId, :CorpId, :MerchantId, :CreateTime, :UpdateTime, :Status, :Log, :CreateUser, :Amount, :CodeLength, :CodeType, :Cipher, :TextUrl, :PackUrl, :MerchantName, :RuleType, :CustomId, :PackType, :PackLevel, :PackSpec
|
230
|
+
|
231
|
+
def initialize(packid=nil, corpid=nil, merchantid=nil, createtime=nil, updatetime=nil, status=nil, log=nil, createuser=nil, amount=nil, codelength=nil, codetype=nil, cipher=nil, texturl=nil, packurl=nil, merchantname=nil, ruletype=nil, customid=nil, packtype=nil, packlevel=nil, packspec=nil)
|
232
|
+
@PackId = packid
|
233
|
+
@CorpId = corpid
|
234
|
+
@MerchantId = merchantid
|
235
|
+
@CreateTime = createtime
|
236
|
+
@UpdateTime = updatetime
|
237
|
+
@Status = status
|
238
|
+
@Log = log
|
239
|
+
@CreateUser = createuser
|
240
|
+
@Amount = amount
|
241
|
+
@CodeLength = codelength
|
242
|
+
@CodeType = codetype
|
243
|
+
@Cipher = cipher
|
244
|
+
@TextUrl = texturl
|
245
|
+
@PackUrl = packurl
|
246
|
+
@MerchantName = merchantname
|
247
|
+
@RuleType = ruletype
|
248
|
+
@CustomId = customid
|
249
|
+
@PackType = packtype
|
250
|
+
@PackLevel = packlevel
|
251
|
+
@PackSpec = packspec
|
252
|
+
end
|
253
|
+
|
254
|
+
def deserialize(params)
|
255
|
+
@PackId = params['PackId']
|
256
|
+
@CorpId = params['CorpId']
|
257
|
+
@MerchantId = params['MerchantId']
|
258
|
+
@CreateTime = params['CreateTime']
|
259
|
+
@UpdateTime = params['UpdateTime']
|
260
|
+
@Status = params['Status']
|
261
|
+
@Log = params['Log']
|
262
|
+
@CreateUser = params['CreateUser']
|
263
|
+
@Amount = params['Amount']
|
264
|
+
@CodeLength = params['CodeLength']
|
265
|
+
@CodeType = params['CodeType']
|
266
|
+
@Cipher = params['Cipher']
|
267
|
+
@TextUrl = params['TextUrl']
|
268
|
+
@PackUrl = params['PackUrl']
|
269
|
+
@MerchantName = params['MerchantName']
|
270
|
+
@RuleType = params['RuleType']
|
271
|
+
@CustomId = params['CustomId']
|
272
|
+
@PackType = params['PackType']
|
273
|
+
@PackLevel = params['PackLevel']
|
274
|
+
unless params['PackSpec'].nil?
|
275
|
+
@PackSpec = []
|
276
|
+
params['PackSpec'].each do |i|
|
277
|
+
packspec_tmp = PackSpec.new
|
278
|
+
packspec_tmp.deserialize(i)
|
279
|
+
@PackSpec << packspec_tmp
|
280
|
+
end
|
281
|
+
end
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
166
285
|
# 码段配置
|
167
286
|
class CodePart < TencentCloud::Common::AbstractModel
|
168
287
|
# @param Name: 码段名称
|
@@ -346,14 +465,16 @@ module TencentCloud
|
|
346
465
|
# @type PackType: Integer
|
347
466
|
# @param PackLevel: 码包层级
|
348
467
|
# @type PackLevel: Integer
|
349
|
-
# @param PackSpec: 层级码包规则
|
468
|
+
# @param PackSpec: 层级码包规则
|
350
469
|
# @type PackSpec: Array
|
351
|
-
# @param CustomId: 码规则ID,
|
470
|
+
# @param CustomId: 码规则ID, 和CodeParts二选一必填
|
352
471
|
# @type CustomId: String
|
472
|
+
# @param CodeParts: 码段配置,和CustomId二选一必填
|
473
|
+
# @type CodeParts: Array
|
353
474
|
|
354
|
-
attr_accessor :MerchantId, :Amount, :CorpId, :PackType, :PackLevel, :PackSpec, :CustomId
|
475
|
+
attr_accessor :MerchantId, :Amount, :CorpId, :PackType, :PackLevel, :PackSpec, :CustomId, :CodeParts
|
355
476
|
|
356
|
-
def initialize(merchantid=nil, amount=nil, corpid=nil, packtype=nil, packlevel=nil, packspec=nil, customid=nil)
|
477
|
+
def initialize(merchantid=nil, amount=nil, corpid=nil, packtype=nil, packlevel=nil, packspec=nil, customid=nil, codeparts=nil)
|
357
478
|
@MerchantId = merchantid
|
358
479
|
@Amount = amount
|
359
480
|
@CorpId = corpid
|
@@ -361,6 +482,7 @@ module TencentCloud
|
|
361
482
|
@PackLevel = packlevel
|
362
483
|
@PackSpec = packspec
|
363
484
|
@CustomId = customid
|
485
|
+
@CodeParts = codeparts
|
364
486
|
end
|
365
487
|
|
366
488
|
def deserialize(params)
|
@@ -378,6 +500,14 @@ module TencentCloud
|
|
378
500
|
end
|
379
501
|
end
|
380
502
|
@CustomId = params['CustomId']
|
503
|
+
unless params['CodeParts'].nil?
|
504
|
+
@CodeParts = []
|
505
|
+
params['CodeParts'].each do |i|
|
506
|
+
codepart_tmp = CodePart.new
|
507
|
+
codepart_tmp.deserialize(i)
|
508
|
+
@CodeParts << codepart_tmp
|
509
|
+
end
|
510
|
+
end
|
381
511
|
end
|
382
512
|
end
|
383
513
|
|
@@ -1171,16 +1301,21 @@ module TencentCloud
|
|
1171
1301
|
|
1172
1302
|
# DescribeCodePackStatus返回参数结构体
|
1173
1303
|
class DescribeCodePackStatusResponse < TencentCloud::Common::AbstractModel
|
1304
|
+
# @param Status: 码包状态 init: 初始化, pending: 执行中, done: 完成, error: 失败
|
1305
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1306
|
+
# @type Status: String
|
1174
1307
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1175
1308
|
# @type RequestId: String
|
1176
1309
|
|
1177
|
-
attr_accessor :RequestId
|
1310
|
+
attr_accessor :Status, :RequestId
|
1178
1311
|
|
1179
|
-
def initialize(requestid=nil)
|
1312
|
+
def initialize(status=nil, requestid=nil)
|
1313
|
+
@Status = status
|
1180
1314
|
@RequestId = requestid
|
1181
1315
|
end
|
1182
1316
|
|
1183
1317
|
def deserialize(params)
|
1318
|
+
@Status = params['Status']
|
1184
1319
|
@RequestId = params['RequestId']
|
1185
1320
|
end
|
1186
1321
|
end
|
@@ -1210,18 +1345,28 @@ module TencentCloud
|
|
1210
1345
|
# @param Url: 文字码包地址
|
1211
1346
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1212
1347
|
# @type Url: String
|
1348
|
+
# @param ImgUrl: 图片码包地址,可能为空
|
1349
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1350
|
+
# @type ImgUrl: String
|
1351
|
+
# @param FileKey: 文字码包Key,用于上传导入
|
1352
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1353
|
+
# @type FileKey: String
|
1213
1354
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1214
1355
|
# @type RequestId: String
|
1215
1356
|
|
1216
|
-
attr_accessor :Url, :RequestId
|
1357
|
+
attr_accessor :Url, :ImgUrl, :FileKey, :RequestId
|
1217
1358
|
|
1218
|
-
def initialize(url=nil, requestid=nil)
|
1359
|
+
def initialize(url=nil, imgurl=nil, filekey=nil, requestid=nil)
|
1219
1360
|
@Url = url
|
1361
|
+
@ImgUrl = imgurl
|
1362
|
+
@FileKey = filekey
|
1220
1363
|
@RequestId = requestid
|
1221
1364
|
end
|
1222
1365
|
|
1223
1366
|
def deserialize(params)
|
1224
1367
|
@Url = params['Url']
|
1368
|
+
@ImgUrl = params['ImgUrl']
|
1369
|
+
@FileKey = params['FileKey']
|
1225
1370
|
@RequestId = params['RequestId']
|
1226
1371
|
end
|
1227
1372
|
end
|
@@ -1256,16 +1401,33 @@ module TencentCloud
|
|
1256
1401
|
|
1257
1402
|
# DescribeCodePacks返回参数结构体
|
1258
1403
|
class DescribeCodePacksResponse < TencentCloud::Common::AbstractModel
|
1404
|
+
# @param CodePacks: 码列表
|
1405
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1406
|
+
# @type CodePacks: Array
|
1407
|
+
# @param TotalCount: 总数
|
1408
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1409
|
+
# @type TotalCount: Integer
|
1259
1410
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1260
1411
|
# @type RequestId: String
|
1261
1412
|
|
1262
|
-
attr_accessor :RequestId
|
1413
|
+
attr_accessor :CodePacks, :TotalCount, :RequestId
|
1263
1414
|
|
1264
|
-
def initialize(requestid=nil)
|
1415
|
+
def initialize(codepacks=nil, totalcount=nil, requestid=nil)
|
1416
|
+
@CodePacks = codepacks
|
1417
|
+
@TotalCount = totalcount
|
1265
1418
|
@RequestId = requestid
|
1266
1419
|
end
|
1267
1420
|
|
1268
1421
|
def deserialize(params)
|
1422
|
+
unless params['CodePacks'].nil?
|
1423
|
+
@CodePacks = []
|
1424
|
+
params['CodePacks'].each do |i|
|
1425
|
+
codepack_tmp = CodePack.new
|
1426
|
+
codepack_tmp.deserialize(i)
|
1427
|
+
@CodePacks << codepack_tmp
|
1428
|
+
end
|
1429
|
+
end
|
1430
|
+
@TotalCount = params['TotalCount']
|
1269
1431
|
@RequestId = params['RequestId']
|
1270
1432
|
end
|
1271
1433
|
end
|
@@ -1453,16 +1615,21 @@ module TencentCloud
|
|
1453
1615
|
|
1454
1616
|
# DescribeJobFileUrl返回参数结构体
|
1455
1617
|
class DescribeJobFileUrlResponse < TencentCloud::Common::AbstractModel
|
1618
|
+
# @param Url: 码包地址
|
1619
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1620
|
+
# @type Url: String
|
1456
1621
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1457
1622
|
# @type RequestId: String
|
1458
1623
|
|
1459
|
-
attr_accessor :RequestId
|
1624
|
+
attr_accessor :Url, :RequestId
|
1460
1625
|
|
1461
|
-
def initialize(requestid=nil)
|
1626
|
+
def initialize(url=nil, requestid=nil)
|
1627
|
+
@Url = url
|
1462
1628
|
@RequestId = requestid
|
1463
1629
|
end
|
1464
1630
|
|
1465
1631
|
def deserialize(params)
|
1632
|
+
@Url = params['Url']
|
1466
1633
|
@RequestId = params['RequestId']
|
1467
1634
|
end
|
1468
1635
|
end
|
@@ -1685,6 +1852,43 @@ module TencentCloud
|
|
1685
1852
|
end
|
1686
1853
|
end
|
1687
1854
|
|
1855
|
+
# DescribeTmpToken请求参数结构体
|
1856
|
+
class DescribeTmpTokenRequest < TencentCloud::Common::AbstractModel
|
1857
|
+
# @param CorpId: 企业ID
|
1858
|
+
# @type CorpId: Integer
|
1859
|
+
|
1860
|
+
attr_accessor :CorpId
|
1861
|
+
|
1862
|
+
def initialize(corpid=nil)
|
1863
|
+
@CorpId = corpid
|
1864
|
+
end
|
1865
|
+
|
1866
|
+
def deserialize(params)
|
1867
|
+
@CorpId = params['CorpId']
|
1868
|
+
end
|
1869
|
+
end
|
1870
|
+
|
1871
|
+
# DescribeTmpToken返回参数结构体
|
1872
|
+
class DescribeTmpTokenResponse < TencentCloud::Common::AbstractModel
|
1873
|
+
# @param Token: 临时token
|
1874
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1875
|
+
# @type Token: String
|
1876
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1877
|
+
# @type RequestId: String
|
1878
|
+
|
1879
|
+
attr_accessor :Token, :RequestId
|
1880
|
+
|
1881
|
+
def initialize(token=nil, requestid=nil)
|
1882
|
+
@Token = token
|
1883
|
+
@RequestId = requestid
|
1884
|
+
end
|
1885
|
+
|
1886
|
+
def deserialize(params)
|
1887
|
+
@Token = params['Token']
|
1888
|
+
@RequestId = params['RequestId']
|
1889
|
+
end
|
1890
|
+
end
|
1891
|
+
|
1688
1892
|
# DescribeTraceCodeById请求参数结构体
|
1689
1893
|
class DescribeTraceCodeByIdRequest < TencentCloud::Common::AbstractModel
|
1690
1894
|
# @param CorpId: 企业ID
|
@@ -2440,14 +2644,18 @@ module TencentCloud
|
|
2440
2644
|
# @param CustomId: 码规则ID
|
2441
2645
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
2442
2646
|
# @type CustomId: String
|
2647
|
+
# @param CodeParts: 码段配置
|
2648
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2649
|
+
# @type CodeParts: Array
|
2443
2650
|
|
2444
|
-
attr_accessor :Level, :Rate, :Amount, :CustomId
|
2651
|
+
attr_accessor :Level, :Rate, :Amount, :CustomId, :CodeParts
|
2445
2652
|
|
2446
|
-
def initialize(level=nil, rate=nil, amount=nil, customid=nil)
|
2653
|
+
def initialize(level=nil, rate=nil, amount=nil, customid=nil, codeparts=nil)
|
2447
2654
|
@Level = level
|
2448
2655
|
@Rate = rate
|
2449
2656
|
@Amount = amount
|
2450
2657
|
@CustomId = customid
|
2658
|
+
@CodeParts = codeparts
|
2451
2659
|
end
|
2452
2660
|
|
2453
2661
|
def deserialize(params)
|
@@ -2455,6 +2663,14 @@ module TencentCloud
|
|
2455
2663
|
@Rate = params['Rate']
|
2456
2664
|
@Amount = params['Amount']
|
2457
2665
|
@CustomId = params['CustomId']
|
2666
|
+
unless params['CodeParts'].nil?
|
2667
|
+
@CodeParts = []
|
2668
|
+
params['CodeParts'].each do |i|
|
2669
|
+
codepart_tmp = CodePart.new
|
2670
|
+
codepart_tmp.deserialize(i)
|
2671
|
+
@CodeParts << codepart_tmp
|
2672
|
+
end
|
2673
|
+
end
|
2458
2674
|
end
|
2459
2675
|
end
|
2460
2676
|
|
@@ -2625,13 +2841,13 @@ module TencentCloud
|
|
2625
2841
|
# @param CorpId: 企业ID
|
2626
2842
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
2627
2843
|
# @type CorpId: Integer
|
2628
|
-
# @param Type: 0
|
2844
|
+
# @param Type: 码类型 0: 批次, 1: 码, 2: 生产任务
|
2629
2845
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
2630
2846
|
# @type Type: Integer
|
2631
|
-
# @param Code:
|
2847
|
+
# @param Code: 码值,跟码类型一一对应
|
2632
2848
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
2633
2849
|
# @type Code: String
|
2634
|
-
# @param Rank:
|
2850
|
+
# @param Rank: 排序,在Phase相同情况下,值越小排名靠前
|
2635
2851
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
2636
2852
|
# @type Rank: Integer
|
2637
2853
|
# @param Phase: 溯源阶段 0:商品 1:通用 2:物流
|
@@ -2655,13 +2871,19 @@ module TencentCloud
|
|
2655
2871
|
# @param ChainTime: 上链时间
|
2656
2872
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
2657
2873
|
# @type ChainTime: String
|
2658
|
-
# @param ChainData:
|
2874
|
+
# @param ChainData: 上链数据
|
2659
2875
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
2660
2876
|
# @type ChainData: :class:`Tencentcloud::Trp.v20210515.models.ChainData`
|
2877
|
+
# @param PhaseData: 溯源阶段配置
|
2878
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2879
|
+
# @type PhaseData: :class:`Tencentcloud::Trp.v20210515.models.PhaseData`
|
2880
|
+
# @param Status: 溯源阶段状态 0: 无效, 1: 有效
|
2881
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2882
|
+
# @type Status: Integer
|
2661
2883
|
|
2662
|
-
attr_accessor :TraceId, :CorpId, :Type, :Code, :Rank, :Phase, :PhaseName, :TraceTime, :TraceItems, :CreateTime, :ChainStatus, :ChainTime, :ChainData
|
2884
|
+
attr_accessor :TraceId, :CorpId, :Type, :Code, :Rank, :Phase, :PhaseName, :TraceTime, :TraceItems, :CreateTime, :ChainStatus, :ChainTime, :ChainData, :PhaseData, :Status
|
2663
2885
|
|
2664
|
-
def initialize(traceid=nil, corpid=nil, type=nil, code=nil, rank=nil, phase=nil, phasename=nil, tracetime=nil, traceitems=nil, createtime=nil, chainstatus=nil, chaintime=nil, chaindata=nil)
|
2886
|
+
def initialize(traceid=nil, corpid=nil, type=nil, code=nil, rank=nil, phase=nil, phasename=nil, tracetime=nil, traceitems=nil, createtime=nil, chainstatus=nil, chaintime=nil, chaindata=nil, phasedata=nil, status=nil)
|
2665
2887
|
@TraceId = traceid
|
2666
2888
|
@CorpId = corpid
|
2667
2889
|
@Type = type
|
@@ -2675,6 +2897,8 @@ module TencentCloud
|
|
2675
2897
|
@ChainStatus = chainstatus
|
2676
2898
|
@ChainTime = chaintime
|
2677
2899
|
@ChainData = chaindata
|
2900
|
+
@PhaseData = phasedata
|
2901
|
+
@Status = status
|
2678
2902
|
end
|
2679
2903
|
|
2680
2904
|
def deserialize(params)
|
@@ -2701,6 +2925,11 @@ module TencentCloud
|
|
2701
2925
|
@ChainData = ChainData.new
|
2702
2926
|
@ChainData.deserialize(params['ChainData'])
|
2703
2927
|
end
|
2928
|
+
unless params['PhaseData'].nil?
|
2929
|
+
@PhaseData = PhaseData.new
|
2930
|
+
@PhaseData.deserialize(params['PhaseData'])
|
2931
|
+
end
|
2932
|
+
@Status = params['Status']
|
2704
2933
|
end
|
2705
2934
|
end
|
2706
2935
|
|
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.430
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|