tencentcloud-sdk-trp 3.0.428 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b3245b249fbaab100a6b8281f1500c3137d5534
4
- data.tar.gz: 87c93e35b1ee24deccb22853cbb544d3e647b0fa
3
+ metadata.gz: d88c550718818b66b2b2a67382cff9cea23b2cbb
4
+ data.tar.gz: cd2f7f03581b61254a492ba00befd806565ffe9e
5
5
  SHA512:
6
- metadata.gz: e544bc910ea8eacc1c4c684a2e4da0ae4d2fcda3c820bede518c48209bcf2ca2ce9b4d12799542603a301ad7ceb5d7a719b1f795b74f465df20bcd73d563f1b5
7
- data.tar.gz: 18760bc8319f3ddc89c50a9bfc89fa2ebcbc80d4d664b075699d08a31a05b1df279eb4275ca0935b1a4503d2f0f64916c0dcd058888023cff7ab0bf87f71b0c2
6
+ metadata.gz: 2c643485b4090e6d53fe67c901452d585f1d18d8ff2a0ee4622efa828bf448b5a4d7a51e4c7bc7ffa9ed9c0e6ed6baa1a5756653d5bd56c17d8511102b8fdf12
7
+ data.tar.gz: 17e0d191c42a30a49ebc91613e32550dafd48035c9513b9998cfe930933246121d7c7a47b5ff722f4c8ac073fe44f2618b60bbea60a4ea1f40599904d53783bf
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.428
1
+ 3.0.430
@@ -77,6 +77,54 @@ module TencentCloud
77
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
78
  end
79
79
 
80
+ # 生成自定义码包
81
+
82
+ # @param request: Request instance for CreateCustomPack.
83
+ # @type request: :class:`Tencentcloud::trp::V20210515::CreateCustomPackRequest`
84
+ # @rtype: :class:`Tencentcloud::trp::V20210515::CreateCustomPackResponse`
85
+ def CreateCustomPack(request)
86
+ body = send_request('CreateCustomPack', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = CreateCustomPackResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
104
+ # 新建自定义码规则
105
+
106
+ # @param request: Request instance for CreateCustomRule.
107
+ # @type request: :class:`Tencentcloud::trp::V20210515::CreateCustomRuleRequest`
108
+ # @rtype: :class:`Tencentcloud::trp::V20210515::CreateCustomRuleResponse`
109
+ def CreateCustomRule(request)
110
+ body = send_request('CreateCustomRule', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = CreateCustomRuleResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
80
128
  # 新建商户
81
129
 
82
130
  # @param request: Request instance for CreateMerchant.
@@ -173,6 +221,30 @@ module TencentCloud
173
221
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
222
  end
175
223
 
224
+ # 异步导入激活码包,如果是第三方码包,需要域名跟配置的匹配
225
+
226
+ # @param request: Request instance for CreateTraceCodesAsync.
227
+ # @type request: :class:`Tencentcloud::trp::V20210515::CreateTraceCodesAsyncRequest`
228
+ # @rtype: :class:`Tencentcloud::trp::V20210515::CreateTraceCodesAsyncResponse`
229
+ def CreateTraceCodesAsync(request)
230
+ body = send_request('CreateTraceCodesAsync', request.serialize)
231
+ response = JSON.parse(body)
232
+ if response['Response'].key?('Error') == false
233
+ model = CreateTraceCodesAsyncResponse.new
234
+ model.deserialize(response['Response'])
235
+ model
236
+ else
237
+ code = response['Response']['Error']['Code']
238
+ message = response['Response']['Error']['Message']
239
+ reqid = response['Response']['RequestId']
240
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
241
+ end
242
+ rescue TencentCloud::Common::TencentCloudSDKException => e
243
+ raise e
244
+ rescue StandardError => e
245
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
+ end
247
+
176
248
  # 新增溯源信息
177
249
 
178
250
  # @param request: Request instance for CreateTraceData.
@@ -341,6 +413,54 @@ module TencentCloud
341
413
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
414
  end
343
415
 
416
+ # 查询码包状态
417
+
418
+ # @param request: Request instance for DescribeCodePackStatus.
419
+ # @type request: :class:`Tencentcloud::trp::V20210515::DescribeCodePackStatusRequest`
420
+ # @rtype: :class:`Tencentcloud::trp::V20210515::DescribeCodePackStatusResponse`
421
+ def DescribeCodePackStatus(request)
422
+ body = send_request('DescribeCodePackStatus', request.serialize)
423
+ response = JSON.parse(body)
424
+ if response['Response'].key?('Error') == false
425
+ model = DescribeCodePackStatusResponse.new
426
+ model.deserialize(response['Response'])
427
+ model
428
+ else
429
+ code = response['Response']['Error']['Code']
430
+ message = response['Response']['Error']['Message']
431
+ reqid = response['Response']['RequestId']
432
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
433
+ end
434
+ rescue TencentCloud::Common::TencentCloudSDKException => e
435
+ raise e
436
+ rescue StandardError => e
437
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
438
+ end
439
+
440
+ # 查询码包地址
441
+
442
+ # @param request: Request instance for DescribeCodePackUrl.
443
+ # @type request: :class:`Tencentcloud::trp::V20210515::DescribeCodePackUrlRequest`
444
+ # @rtype: :class:`Tencentcloud::trp::V20210515::DescribeCodePackUrlResponse`
445
+ def DescribeCodePackUrl(request)
446
+ body = send_request('DescribeCodePackUrl', request.serialize)
447
+ response = JSON.parse(body)
448
+ if response['Response'].key?('Error') == false
449
+ model = DescribeCodePackUrlResponse.new
450
+ model.deserialize(response['Response'])
451
+ model
452
+ else
453
+ code = response['Response']['Error']['Code']
454
+ message = response['Response']['Error']['Message']
455
+ reqid = response['Response']['RequestId']
456
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
457
+ end
458
+ rescue TencentCloud::Common::TencentCloudSDKException => e
459
+ raise e
460
+ rescue StandardError => e
461
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
462
+ end
463
+
344
464
  # 查询码包列表
345
465
 
346
466
  # @param request: Request instance for DescribeCodePacks.
@@ -389,6 +509,78 @@ module TencentCloud
389
509
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
390
510
  end
391
511
 
512
+ # 查自定义码规则
513
+
514
+ # @param request: Request instance for DescribeCustomRuleById.
515
+ # @type request: :class:`Tencentcloud::trp::V20210515::DescribeCustomRuleByIdRequest`
516
+ # @rtype: :class:`Tencentcloud::trp::V20210515::DescribeCustomRuleByIdResponse`
517
+ def DescribeCustomRuleById(request)
518
+ body = send_request('DescribeCustomRuleById', request.serialize)
519
+ response = JSON.parse(body)
520
+ if response['Response'].key?('Error') == false
521
+ model = DescribeCustomRuleByIdResponse.new
522
+ model.deserialize(response['Response'])
523
+ model
524
+ else
525
+ code = response['Response']['Error']['Code']
526
+ message = response['Response']['Error']['Message']
527
+ reqid = response['Response']['RequestId']
528
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
529
+ end
530
+ rescue TencentCloud::Common::TencentCloudSDKException => e
531
+ raise e
532
+ rescue StandardError => e
533
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
534
+ end
535
+
536
+ # 查自定义码规则列表
537
+
538
+ # @param request: Request instance for DescribeCustomRules.
539
+ # @type request: :class:`Tencentcloud::trp::V20210515::DescribeCustomRulesRequest`
540
+ # @rtype: :class:`Tencentcloud::trp::V20210515::DescribeCustomRulesResponse`
541
+ def DescribeCustomRules(request)
542
+ body = send_request('DescribeCustomRules', request.serialize)
543
+ response = JSON.parse(body)
544
+ if response['Response'].key?('Error') == false
545
+ model = DescribeCustomRulesResponse.new
546
+ model.deserialize(response['Response'])
547
+ model
548
+ else
549
+ code = response['Response']['Error']['Code']
550
+ message = response['Response']['Error']['Message']
551
+ reqid = response['Response']['RequestId']
552
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
553
+ end
554
+ rescue TencentCloud::Common::TencentCloudSDKException => e
555
+ raise e
556
+ rescue StandardError => e
557
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
558
+ end
559
+
560
+ # 获取异步任务的输出地址
561
+
562
+ # @param request: Request instance for DescribeJobFileUrl.
563
+ # @type request: :class:`Tencentcloud::trp::V20210515::DescribeJobFileUrlRequest`
564
+ # @rtype: :class:`Tencentcloud::trp::V20210515::DescribeJobFileUrlResponse`
565
+ def DescribeJobFileUrl(request)
566
+ body = send_request('DescribeJobFileUrl', request.serialize)
567
+ response = JSON.parse(body)
568
+ if response['Response'].key?('Error') == false
569
+ model = DescribeJobFileUrlResponse.new
570
+ model.deserialize(response['Response'])
571
+ model
572
+ else
573
+ code = response['Response']['Error']['Code']
574
+ message = response['Response']['Error']['Message']
575
+ reqid = response['Response']['RequestId']
576
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
577
+ end
578
+ rescue TencentCloud::Common::TencentCloudSDKException => e
579
+ raise e
580
+ rescue StandardError => e
581
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
+ end
583
+
392
584
  # 查询商户信息
393
585
 
394
586
  # @param request: Request instance for DescribeMerchantById.
@@ -485,6 +677,30 @@ module TencentCloud
485
677
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
486
678
  end
487
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
+
488
704
  # 查询二维码信息
489
705
 
490
706
  # @param request: Request instance for DescribeTraceCodeById.
@@ -581,6 +797,54 @@ module TencentCloud
581
797
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
798
  end
583
799
 
800
+ # 修改自定义码规则
801
+
802
+ # @param request: Request instance for ModifyCustomRule.
803
+ # @type request: :class:`Tencentcloud::trp::V20210515::ModifyCustomRuleRequest`
804
+ # @rtype: :class:`Tencentcloud::trp::V20210515::ModifyCustomRuleResponse`
805
+ def ModifyCustomRule(request)
806
+ body = send_request('ModifyCustomRule', request.serialize)
807
+ response = JSON.parse(body)
808
+ if response['Response'].key?('Error') == false
809
+ model = ModifyCustomRuleResponse.new
810
+ model.deserialize(response['Response'])
811
+ model
812
+ else
813
+ code = response['Response']['Error']['Code']
814
+ message = response['Response']['Error']['Message']
815
+ reqid = response['Response']['RequestId']
816
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
817
+ end
818
+ rescue TencentCloud::Common::TencentCloudSDKException => e
819
+ raise e
820
+ rescue StandardError => e
821
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
822
+ end
823
+
824
+ # 更新自定义码规则状态
825
+
826
+ # @param request: Request instance for ModifyCustomRuleStatus.
827
+ # @type request: :class:`Tencentcloud::trp::V20210515::ModifyCustomRuleStatusRequest`
828
+ # @rtype: :class:`Tencentcloud::trp::V20210515::ModifyCustomRuleStatusResponse`
829
+ def ModifyCustomRuleStatus(request)
830
+ body = send_request('ModifyCustomRuleStatus', request.serialize)
831
+ response = JSON.parse(body)
832
+ if response['Response'].key?('Error') == false
833
+ model = ModifyCustomRuleStatusResponse.new
834
+ model.deserialize(response['Response'])
835
+ model
836
+ else
837
+ code = response['Response']['Error']['Code']
838
+ message = response['Response']['Error']['Message']
839
+ reqid = response['Response']['RequestId']
840
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
841
+ end
842
+ rescue TencentCloud::Common::TencentCloudSDKException => e
843
+ raise e
844
+ rescue StandardError => e
845
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
846
+ end
847
+
584
848
  # 编辑商户
585
849
 
586
850
  # @param request: Request instance for ModifyMerchant.
@@ -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,161 @@ 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
+
285
+ # 码段配置
286
+ class CodePart < TencentCloud::Common::AbstractModel
287
+ # @param Name: 码段名称
288
+ # 注意:此字段可能返回 null,表示取不到有效值。
289
+ # @type Name: String
290
+ # @param Type: 码段类型
291
+ # 注意:此字段可能返回 null,表示取不到有效值。
292
+ # @type Type: String
293
+ # @param Value: 码段内容
294
+ # 注意:此字段可能返回 null,表示取不到有效值。
295
+ # @type Value: String
296
+ # @param Length: 码段长度
297
+ # @type Length: Integer
298
+ # @param Ext: 扩展字段
299
+ # 注意:此字段可能返回 null,表示取不到有效值。
300
+ # @type Ext: String
301
+
302
+ attr_accessor :Name, :Type, :Value, :Length, :Ext
303
+
304
+ def initialize(name=nil, type=nil, value=nil, length=nil, ext=nil)
305
+ @Name = name
306
+ @Type = type
307
+ @Value = value
308
+ @Length = length
309
+ @Ext = ext
310
+ end
311
+
312
+ def deserialize(params)
313
+ @Name = params['Name']
314
+ @Type = params['Type']
315
+ @Value = params['Value']
316
+ @Length = params['Length']
317
+ @Ext = params['Ext']
318
+ end
319
+ end
320
+
166
321
  # CreateCodeBatch请求参数结构体
167
322
  class CreateCodeBatchRequest < TencentCloud::Common::AbstractModel
168
323
  # @param CorpId: 企业ID
@@ -298,6 +453,144 @@ module TencentCloud
298
453
  end
299
454
  end
300
455
 
456
+ # CreateCustomPack请求参数结构体
457
+ class CreateCustomPackRequest < TencentCloud::Common::AbstractModel
458
+ # @param MerchantId: 商户ID
459
+ # @type MerchantId: String
460
+ # @param Amount: 生码数量, 普通码包时必填
461
+ # @type Amount: Integer
462
+ # @param CorpId: 企业ID
463
+ # @type CorpId: Integer
464
+ # @param PackType: 码包类型 0: 普通码包 1: 层级码包
465
+ # @type PackType: Integer
466
+ # @param PackLevel: 码包层级
467
+ # @type PackLevel: Integer
468
+ # @param PackSpec: 层级码包规则
469
+ # @type PackSpec: Array
470
+ # @param CustomId: 码规则ID, 和CodeParts二选一必填
471
+ # @type CustomId: String
472
+ # @param CodeParts: 码段配置,和CustomId二选一必填
473
+ # @type CodeParts: Array
474
+
475
+ attr_accessor :MerchantId, :Amount, :CorpId, :PackType, :PackLevel, :PackSpec, :CustomId, :CodeParts
476
+
477
+ def initialize(merchantid=nil, amount=nil, corpid=nil, packtype=nil, packlevel=nil, packspec=nil, customid=nil, codeparts=nil)
478
+ @MerchantId = merchantid
479
+ @Amount = amount
480
+ @CorpId = corpid
481
+ @PackType = packtype
482
+ @PackLevel = packlevel
483
+ @PackSpec = packspec
484
+ @CustomId = customid
485
+ @CodeParts = codeparts
486
+ end
487
+
488
+ def deserialize(params)
489
+ @MerchantId = params['MerchantId']
490
+ @Amount = params['Amount']
491
+ @CorpId = params['CorpId']
492
+ @PackType = params['PackType']
493
+ @PackLevel = params['PackLevel']
494
+ unless params['PackSpec'].nil?
495
+ @PackSpec = []
496
+ params['PackSpec'].each do |i|
497
+ packspec_tmp = PackSpec.new
498
+ packspec_tmp.deserialize(i)
499
+ @PackSpec << packspec_tmp
500
+ end
501
+ end
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
511
+ end
512
+ end
513
+
514
+ # CreateCustomPack返回参数结构体
515
+ class CreateCustomPackResponse < TencentCloud::Common::AbstractModel
516
+ # @param PackId: 码包ID
517
+ # @type PackId: String
518
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
519
+ # @type RequestId: String
520
+
521
+ attr_accessor :PackId, :RequestId
522
+
523
+ def initialize(packid=nil, requestid=nil)
524
+ @PackId = packid
525
+ @RequestId = requestid
526
+ end
527
+
528
+ def deserialize(params)
529
+ @PackId = params['PackId']
530
+ @RequestId = params['RequestId']
531
+ end
532
+ end
533
+
534
+ # CreateCustomRule请求参数结构体
535
+ class CreateCustomRuleRequest < TencentCloud::Common::AbstractModel
536
+ # @param Name: 规则名称
537
+ # @type Name: String
538
+ # @param MerchantId: 商户ID
539
+ # @type MerchantId: String
540
+ # @param CodeLength: 码长度
541
+ # @type CodeLength: Integer
542
+ # @param CodeParts: 码段配置
543
+ # @type CodeParts: Array
544
+ # @param CorpId: 企业ID
545
+ # @type CorpId: Integer
546
+
547
+ attr_accessor :Name, :MerchantId, :CodeLength, :CodeParts, :CorpId
548
+
549
+ def initialize(name=nil, merchantid=nil, codelength=nil, codeparts=nil, corpid=nil)
550
+ @Name = name
551
+ @MerchantId = merchantid
552
+ @CodeLength = codelength
553
+ @CodeParts = codeparts
554
+ @CorpId = corpid
555
+ end
556
+
557
+ def deserialize(params)
558
+ @Name = params['Name']
559
+ @MerchantId = params['MerchantId']
560
+ @CodeLength = params['CodeLength']
561
+ unless params['CodeParts'].nil?
562
+ @CodeParts = []
563
+ params['CodeParts'].each do |i|
564
+ codepart_tmp = CodePart.new
565
+ codepart_tmp.deserialize(i)
566
+ @CodeParts << codepart_tmp
567
+ end
568
+ end
569
+ @CorpId = params['CorpId']
570
+ end
571
+ end
572
+
573
+ # CreateCustomRule返回参数结构体
574
+ class CreateCustomRuleResponse < TencentCloud::Common::AbstractModel
575
+ # @param CustomId: 码规则ID
576
+ # 注意:此字段可能返回 null,表示取不到有效值。
577
+ # @type CustomId: String
578
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
579
+ # @type RequestId: String
580
+
581
+ attr_accessor :CustomId, :RequestId
582
+
583
+ def initialize(customid=nil, requestid=nil)
584
+ @CustomId = customid
585
+ @RequestId = requestid
586
+ end
587
+
588
+ def deserialize(params)
589
+ @CustomId = params['CustomId']
590
+ @RequestId = params['RequestId']
591
+ end
592
+ end
593
+
301
594
  # CreateMerchant请求参数结构体
302
595
  class CreateMerchantRequest < TencentCloud::Common::AbstractModel
303
596
  # @param Name: 商户名称
@@ -459,6 +752,51 @@ module TencentCloud
459
752
  end
460
753
  end
461
754
 
755
+ # CreateTraceCodesAsync请求参数结构体
756
+ class CreateTraceCodesAsyncRequest < TencentCloud::Common::AbstractModel
757
+ # @param CorpId: 企业ID
758
+ # @type CorpId: Integer
759
+ # @param BatchId: 批次ID
760
+ # @type BatchId: String
761
+ # @param FileKey: 上传文件Key,仅支持 csv 或者 zip 类型
762
+ # @type FileKey: String
763
+
764
+ attr_accessor :CorpId, :BatchId, :FileKey
765
+
766
+ def initialize(corpid=nil, batchid=nil, filekey=nil)
767
+ @CorpId = corpid
768
+ @BatchId = batchid
769
+ @FileKey = filekey
770
+ end
771
+
772
+ def deserialize(params)
773
+ @CorpId = params['CorpId']
774
+ @BatchId = params['BatchId']
775
+ @FileKey = params['FileKey']
776
+ end
777
+ end
778
+
779
+ # CreateTraceCodesAsync返回参数结构体
780
+ class CreateTraceCodesAsyncResponse < TencentCloud::Common::AbstractModel
781
+ # @param BatchId: 批次ID
782
+ # 注意:此字段可能返回 null,表示取不到有效值。
783
+ # @type BatchId: String
784
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
785
+ # @type RequestId: String
786
+
787
+ attr_accessor :BatchId, :RequestId
788
+
789
+ def initialize(batchid=nil, requestid=nil)
790
+ @BatchId = batchid
791
+ @RequestId = requestid
792
+ end
793
+
794
+ def deserialize(params)
795
+ @BatchId = params['BatchId']
796
+ @RequestId = params['RequestId']
797
+ end
798
+ end
799
+
462
800
  # CreateTraceCodes请求参数结构体
463
801
  class CreateTraceCodesRequest < TencentCloud::Common::AbstractModel
464
802
  # @param BatchId: 批次ID
@@ -604,6 +942,64 @@ module TencentCloud
604
942
  end
605
943
  end
606
944
 
945
+ # 码规则
946
+ class CustomRule < TencentCloud::Common::AbstractModel
947
+ # @param CustomId: 码规则ID
948
+ # @type CustomId: String
949
+ # @param Name: 码规则名
950
+ # 注意:此字段可能返回 null,表示取不到有效值。
951
+ # @type Name: String
952
+ # @param CorpId: 企业ID
953
+ # 注意:此字段可能返回 null,表示取不到有效值。
954
+ # @type CorpId: Integer
955
+ # @param MerchantId: 商户ID
956
+ # 注意:此字段可能返回 null,表示取不到有效值。
957
+ # @type MerchantId: String
958
+ # @param CodeLength: 码ID长度
959
+ # @type CodeLength: Integer
960
+ # @param Status: 规则状态
961
+ # @type Status: Integer
962
+ # @param CodeParts: 码段配置
963
+ # @type CodeParts: Array
964
+ # @param CreateTime: 创建时间
965
+ # @type CreateTime: String
966
+ # @param UpdateTime: 更新时间
967
+ # @type UpdateTime: String
968
+
969
+ attr_accessor :CustomId, :Name, :CorpId, :MerchantId, :CodeLength, :Status, :CodeParts, :CreateTime, :UpdateTime
970
+
971
+ def initialize(customid=nil, name=nil, corpid=nil, merchantid=nil, codelength=nil, status=nil, codeparts=nil, createtime=nil, updatetime=nil)
972
+ @CustomId = customid
973
+ @Name = name
974
+ @CorpId = corpid
975
+ @MerchantId = merchantid
976
+ @CodeLength = codelength
977
+ @Status = status
978
+ @CodeParts = codeparts
979
+ @CreateTime = createtime
980
+ @UpdateTime = updatetime
981
+ end
982
+
983
+ def deserialize(params)
984
+ @CustomId = params['CustomId']
985
+ @Name = params['Name']
986
+ @CorpId = params['CorpId']
987
+ @MerchantId = params['MerchantId']
988
+ @CodeLength = params['CodeLength']
989
+ @Status = params['Status']
990
+ unless params['CodeParts'].nil?
991
+ @CodeParts = []
992
+ params['CodeParts'].each do |i|
993
+ codepart_tmp = CodePart.new
994
+ codepart_tmp.deserialize(i)
995
+ @CodeParts << codepart_tmp
996
+ end
997
+ end
998
+ @CreateTime = params['CreateTime']
999
+ @UpdateTime = params['UpdateTime']
1000
+ end
1001
+ end
1002
+
607
1003
  # DeleteCodeBatch请求参数结构体
608
1004
  class DeleteCodeBatchRequest < TencentCloud::Common::AbstractModel
609
1005
  # @param CorpId: 企业ID
@@ -850,35 +1246,127 @@ module TencentCloud
850
1246
  end
851
1247
  end
852
1248
 
853
- # DescribeCodeBatchs返回参数结构体
854
- class DescribeCodeBatchsResponse < TencentCloud::Common::AbstractModel
855
- # @param CodeBatchs: 批次列表
1249
+ # DescribeCodeBatchs返回参数结构体
1250
+ class DescribeCodeBatchsResponse < TencentCloud::Common::AbstractModel
1251
+ # @param CodeBatchs: 批次列表
1252
+ # 注意:此字段可能返回 null,表示取不到有效值。
1253
+ # @type CodeBatchs: Array
1254
+ # @param TotalCount: 总条数
1255
+ # 注意:此字段可能返回 null,表示取不到有效值。
1256
+ # @type TotalCount: Integer
1257
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1258
+ # @type RequestId: String
1259
+
1260
+ attr_accessor :CodeBatchs, :TotalCount, :RequestId
1261
+
1262
+ def initialize(codebatchs=nil, totalcount=nil, requestid=nil)
1263
+ @CodeBatchs = codebatchs
1264
+ @TotalCount = totalcount
1265
+ @RequestId = requestid
1266
+ end
1267
+
1268
+ def deserialize(params)
1269
+ unless params['CodeBatchs'].nil?
1270
+ @CodeBatchs = []
1271
+ params['CodeBatchs'].each do |i|
1272
+ codebatch_tmp = CodeBatch.new
1273
+ codebatch_tmp.deserialize(i)
1274
+ @CodeBatchs << codebatch_tmp
1275
+ end
1276
+ end
1277
+ @TotalCount = params['TotalCount']
1278
+ @RequestId = params['RequestId']
1279
+ end
1280
+ end
1281
+
1282
+ # DescribeCodePackStatus请求参数结构体
1283
+ class DescribeCodePackStatusRequest < TencentCloud::Common::AbstractModel
1284
+ # @param PackId: 码包ID
1285
+ # @type PackId: String
1286
+ # @param CorpId: 企业ID
1287
+ # @type CorpId: Integer
1288
+
1289
+ attr_accessor :PackId, :CorpId
1290
+
1291
+ def initialize(packid=nil, corpid=nil)
1292
+ @PackId = packid
1293
+ @CorpId = corpid
1294
+ end
1295
+
1296
+ def deserialize(params)
1297
+ @PackId = params['PackId']
1298
+ @CorpId = params['CorpId']
1299
+ end
1300
+ end
1301
+
1302
+ # DescribeCodePackStatus返回参数结构体
1303
+ class DescribeCodePackStatusResponse < TencentCloud::Common::AbstractModel
1304
+ # @param Status: 码包状态 init: 初始化, pending: 执行中, done: 完成, error: 失败
1305
+ # 注意:此字段可能返回 null,表示取不到有效值。
1306
+ # @type Status: String
1307
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1308
+ # @type RequestId: String
1309
+
1310
+ attr_accessor :Status, :RequestId
1311
+
1312
+ def initialize(status=nil, requestid=nil)
1313
+ @Status = status
1314
+ @RequestId = requestid
1315
+ end
1316
+
1317
+ def deserialize(params)
1318
+ @Status = params['Status']
1319
+ @RequestId = params['RequestId']
1320
+ end
1321
+ end
1322
+
1323
+ # DescribeCodePackUrl请求参数结构体
1324
+ class DescribeCodePackUrlRequest < TencentCloud::Common::AbstractModel
1325
+ # @param PackId: 码包ID
1326
+ # @type PackId: String
1327
+ # @param CorpId: 企业ID
1328
+ # @type CorpId: Integer
1329
+
1330
+ attr_accessor :PackId, :CorpId
1331
+
1332
+ def initialize(packid=nil, corpid=nil)
1333
+ @PackId = packid
1334
+ @CorpId = corpid
1335
+ end
1336
+
1337
+ def deserialize(params)
1338
+ @PackId = params['PackId']
1339
+ @CorpId = params['CorpId']
1340
+ end
1341
+ end
1342
+
1343
+ # DescribeCodePackUrl返回参数结构体
1344
+ class DescribeCodePackUrlResponse < TencentCloud::Common::AbstractModel
1345
+ # @param Url: 文字码包地址
856
1346
  # 注意:此字段可能返回 null,表示取不到有效值。
857
- # @type CodeBatchs: Array
858
- # @param TotalCount: 总条数
1347
+ # @type Url: String
1348
+ # @param ImgUrl: 图片码包地址,可能为空
859
1349
  # 注意:此字段可能返回 null,表示取不到有效值。
860
- # @type TotalCount: Integer
1350
+ # @type ImgUrl: String
1351
+ # @param FileKey: 文字码包Key,用于上传导入
1352
+ # 注意:此字段可能返回 null,表示取不到有效值。
1353
+ # @type FileKey: String
861
1354
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
862
1355
  # @type RequestId: String
863
1356
 
864
- attr_accessor :CodeBatchs, :TotalCount, :RequestId
1357
+ attr_accessor :Url, :ImgUrl, :FileKey, :RequestId
865
1358
 
866
- def initialize(codebatchs=nil, totalcount=nil, requestid=nil)
867
- @CodeBatchs = codebatchs
868
- @TotalCount = totalcount
1359
+ def initialize(url=nil, imgurl=nil, filekey=nil, requestid=nil)
1360
+ @Url = url
1361
+ @ImgUrl = imgurl
1362
+ @FileKey = filekey
869
1363
  @RequestId = requestid
870
1364
  end
871
1365
 
872
1366
  def deserialize(params)
873
- unless params['CodeBatchs'].nil?
874
- @CodeBatchs = []
875
- params['CodeBatchs'].each do |i|
876
- codebatch_tmp = CodeBatch.new
877
- codebatch_tmp.deserialize(i)
878
- @CodeBatchs << codebatch_tmp
879
- end
880
- end
881
- @TotalCount = params['TotalCount']
1367
+ @Url = params['Url']
1368
+ @ImgUrl = params['ImgUrl']
1369
+ @FileKey = params['FileKey']
882
1370
  @RequestId = params['RequestId']
883
1371
  end
884
1372
  end
@@ -913,16 +1401,33 @@ module TencentCloud
913
1401
 
914
1402
  # DescribeCodePacks返回参数结构体
915
1403
  class DescribeCodePacksResponse < TencentCloud::Common::AbstractModel
1404
+ # @param CodePacks: 码列表
1405
+ # 注意:此字段可能返回 null,表示取不到有效值。
1406
+ # @type CodePacks: Array
1407
+ # @param TotalCount: 总数
1408
+ # 注意:此字段可能返回 null,表示取不到有效值。
1409
+ # @type TotalCount: Integer
916
1410
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
917
1411
  # @type RequestId: String
918
1412
 
919
- attr_accessor :RequestId
1413
+ attr_accessor :CodePacks, :TotalCount, :RequestId
920
1414
 
921
- def initialize(requestid=nil)
1415
+ def initialize(codepacks=nil, totalcount=nil, requestid=nil)
1416
+ @CodePacks = codepacks
1417
+ @TotalCount = totalcount
922
1418
  @RequestId = requestid
923
1419
  end
924
1420
 
925
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']
926
1431
  @RequestId = params['RequestId']
927
1432
  end
928
1433
  end
@@ -975,6 +1480,160 @@ module TencentCloud
975
1480
  end
976
1481
  end
977
1482
 
1483
+ # DescribeCustomRuleById请求参数结构体
1484
+ class DescribeCustomRuleByIdRequest < TencentCloud::Common::AbstractModel
1485
+ # @param CustomId: 码规则ID
1486
+ # @type CustomId: String
1487
+ # @param CorpId: 企业ID
1488
+ # @type CorpId: Integer
1489
+
1490
+ attr_accessor :CustomId, :CorpId
1491
+
1492
+ def initialize(customid=nil, corpid=nil)
1493
+ @CustomId = customid
1494
+ @CorpId = corpid
1495
+ end
1496
+
1497
+ def deserialize(params)
1498
+ @CustomId = params['CustomId']
1499
+ @CorpId = params['CorpId']
1500
+ end
1501
+ end
1502
+
1503
+ # DescribeCustomRuleById返回参数结构体
1504
+ class DescribeCustomRuleByIdResponse < TencentCloud::Common::AbstractModel
1505
+ # @param CustomRule: 码规则信息
1506
+ # 注意:此字段可能返回 null,表示取不到有效值。
1507
+ # @type CustomRule: :class:`Tencentcloud::Trp.v20210515.models.CustomRule`
1508
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1509
+ # @type RequestId: String
1510
+
1511
+ attr_accessor :CustomRule, :RequestId
1512
+
1513
+ def initialize(customrule=nil, requestid=nil)
1514
+ @CustomRule = customrule
1515
+ @RequestId = requestid
1516
+ end
1517
+
1518
+ def deserialize(params)
1519
+ unless params['CustomRule'].nil?
1520
+ @CustomRule = CustomRule.new
1521
+ @CustomRule.deserialize(params['CustomRule'])
1522
+ end
1523
+ @RequestId = params['RequestId']
1524
+ end
1525
+ end
1526
+
1527
+ # DescribeCustomRules请求参数结构体
1528
+ class DescribeCustomRulesRequest < TencentCloud::Common::AbstractModel
1529
+ # @param Keyword: 搜索关键字
1530
+ # @type Keyword: String
1531
+ # @param PageSize: 条数
1532
+ # @type PageSize: Integer
1533
+ # @param PageNumber: 页数
1534
+ # @type PageNumber: Integer
1535
+ # @param CorpId: 企业ID
1536
+ # @type CorpId: Integer
1537
+ # @param Status: 码规则状态 0:未生效 1:已生效 -1:已失效
1538
+ # @type Status: Integer
1539
+ # @param MerchantId: 商户ID
1540
+ # @type MerchantId: String
1541
+
1542
+ attr_accessor :Keyword, :PageSize, :PageNumber, :CorpId, :Status, :MerchantId
1543
+
1544
+ def initialize(keyword=nil, pagesize=nil, pagenumber=nil, corpid=nil, status=nil, merchantid=nil)
1545
+ @Keyword = keyword
1546
+ @PageSize = pagesize
1547
+ @PageNumber = pagenumber
1548
+ @CorpId = corpid
1549
+ @Status = status
1550
+ @MerchantId = merchantid
1551
+ end
1552
+
1553
+ def deserialize(params)
1554
+ @Keyword = params['Keyword']
1555
+ @PageSize = params['PageSize']
1556
+ @PageNumber = params['PageNumber']
1557
+ @CorpId = params['CorpId']
1558
+ @Status = params['Status']
1559
+ @MerchantId = params['MerchantId']
1560
+ end
1561
+ end
1562
+
1563
+ # DescribeCustomRules返回参数结构体
1564
+ class DescribeCustomRulesResponse < TencentCloud::Common::AbstractModel
1565
+ # @param CustomRules: 码规则列表
1566
+ # 注意:此字段可能返回 null,表示取不到有效值。
1567
+ # @type CustomRules: Array
1568
+ # @param TotalCount: 总数
1569
+ # 注意:此字段可能返回 null,表示取不到有效值。
1570
+ # @type TotalCount: Integer
1571
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1572
+ # @type RequestId: String
1573
+
1574
+ attr_accessor :CustomRules, :TotalCount, :RequestId
1575
+
1576
+ def initialize(customrules=nil, totalcount=nil, requestid=nil)
1577
+ @CustomRules = customrules
1578
+ @TotalCount = totalcount
1579
+ @RequestId = requestid
1580
+ end
1581
+
1582
+ def deserialize(params)
1583
+ unless params['CustomRules'].nil?
1584
+ @CustomRules = []
1585
+ params['CustomRules'].each do |i|
1586
+ customrule_tmp = CustomRule.new
1587
+ customrule_tmp.deserialize(i)
1588
+ @CustomRules << customrule_tmp
1589
+ end
1590
+ end
1591
+ @TotalCount = params['TotalCount']
1592
+ @RequestId = params['RequestId']
1593
+ end
1594
+ end
1595
+
1596
+ # DescribeJobFileUrl请求参数结构体
1597
+ class DescribeJobFileUrlRequest < TencentCloud::Common::AbstractModel
1598
+ # @param JobId: 调度ID
1599
+ # @type JobId: Integer
1600
+ # @param CorpId: 企业ID
1601
+ # @type CorpId: Integer
1602
+
1603
+ attr_accessor :JobId, :CorpId
1604
+
1605
+ def initialize(jobid=nil, corpid=nil)
1606
+ @JobId = jobid
1607
+ @CorpId = corpid
1608
+ end
1609
+
1610
+ def deserialize(params)
1611
+ @JobId = params['JobId']
1612
+ @CorpId = params['CorpId']
1613
+ end
1614
+ end
1615
+
1616
+ # DescribeJobFileUrl返回参数结构体
1617
+ class DescribeJobFileUrlResponse < TencentCloud::Common::AbstractModel
1618
+ # @param Url: 码包地址
1619
+ # 注意:此字段可能返回 null,表示取不到有效值。
1620
+ # @type Url: String
1621
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1622
+ # @type RequestId: String
1623
+
1624
+ attr_accessor :Url, :RequestId
1625
+
1626
+ def initialize(url=nil, requestid=nil)
1627
+ @Url = url
1628
+ @RequestId = requestid
1629
+ end
1630
+
1631
+ def deserialize(params)
1632
+ @Url = params['Url']
1633
+ @RequestId = params['RequestId']
1634
+ end
1635
+ end
1636
+
978
1637
  # DescribeMerchantById请求参数结构体
979
1638
  class DescribeMerchantByIdRequest < TencentCloud::Common::AbstractModel
980
1639
  # @param MerchantId: 商户标识码
@@ -1193,6 +1852,43 @@ module TencentCloud
1193
1852
  end
1194
1853
  end
1195
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
+
1196
1892
  # DescribeTraceCodeById请求参数结构体
1197
1893
  class DescribeTraceCodeByIdRequest < TencentCloud::Common::AbstractModel
1198
1894
  # @param CorpId: 企业ID
@@ -1513,6 +2209,107 @@ module TencentCloud
1513
2209
  end
1514
2210
  end
1515
2211
 
2212
+ # ModifyCustomRule请求参数结构体
2213
+ class ModifyCustomRuleRequest < TencentCloud::Common::AbstractModel
2214
+ # @param CustomId: 码规则ID
2215
+ # @type CustomId: String
2216
+ # @param Name: 规则名称
2217
+ # @type Name: String
2218
+ # @param CodeLength: 码长度
2219
+ # @type CodeLength: Integer
2220
+ # @param CodeParts: 码段配置
2221
+ # @type CodeParts: Array
2222
+ # @param CorpId: 企业ID
2223
+ # @type CorpId: Integer
2224
+
2225
+ attr_accessor :CustomId, :Name, :CodeLength, :CodeParts, :CorpId
2226
+
2227
+ def initialize(customid=nil, name=nil, codelength=nil, codeparts=nil, corpid=nil)
2228
+ @CustomId = customid
2229
+ @Name = name
2230
+ @CodeLength = codelength
2231
+ @CodeParts = codeparts
2232
+ @CorpId = corpid
2233
+ end
2234
+
2235
+ def deserialize(params)
2236
+ @CustomId = params['CustomId']
2237
+ @Name = params['Name']
2238
+ @CodeLength = params['CodeLength']
2239
+ unless params['CodeParts'].nil?
2240
+ @CodeParts = []
2241
+ params['CodeParts'].each do |i|
2242
+ codepart_tmp = CodePart.new
2243
+ codepart_tmp.deserialize(i)
2244
+ @CodeParts << codepart_tmp
2245
+ end
2246
+ end
2247
+ @CorpId = params['CorpId']
2248
+ end
2249
+ end
2250
+
2251
+ # ModifyCustomRule返回参数结构体
2252
+ class ModifyCustomRuleResponse < TencentCloud::Common::AbstractModel
2253
+ # @param CustomId: 码规则ID
2254
+ # 注意:此字段可能返回 null,表示取不到有效值。
2255
+ # @type CustomId: String
2256
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2257
+ # @type RequestId: String
2258
+
2259
+ attr_accessor :CustomId, :RequestId
2260
+
2261
+ def initialize(customid=nil, requestid=nil)
2262
+ @CustomId = customid
2263
+ @RequestId = requestid
2264
+ end
2265
+
2266
+ def deserialize(params)
2267
+ @CustomId = params['CustomId']
2268
+ @RequestId = params['RequestId']
2269
+ end
2270
+ end
2271
+
2272
+ # ModifyCustomRuleStatus请求参数结构体
2273
+ class ModifyCustomRuleStatusRequest < TencentCloud::Common::AbstractModel
2274
+ # @param CustomId: 码规则ID
2275
+ # @type CustomId: String
2276
+ # @param Status: 码规则状态 0:未生效 1:已生效 -1:已失效
2277
+ # @type Status: Integer
2278
+
2279
+ attr_accessor :CustomId, :Status
2280
+
2281
+ def initialize(customid=nil, status=nil)
2282
+ @CustomId = customid
2283
+ @Status = status
2284
+ end
2285
+
2286
+ def deserialize(params)
2287
+ @CustomId = params['CustomId']
2288
+ @Status = params['Status']
2289
+ end
2290
+ end
2291
+
2292
+ # ModifyCustomRuleStatus返回参数结构体
2293
+ class ModifyCustomRuleStatusResponse < TencentCloud::Common::AbstractModel
2294
+ # @param CustomId: 码规则ID
2295
+ # 注意:此字段可能返回 null,表示取不到有效值。
2296
+ # @type CustomId: String
2297
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2298
+ # @type RequestId: String
2299
+
2300
+ attr_accessor :CustomId, :RequestId
2301
+
2302
+ def initialize(customid=nil, requestid=nil)
2303
+ @CustomId = customid
2304
+ @RequestId = requestid
2305
+ end
2306
+
2307
+ def deserialize(params)
2308
+ @CustomId = params['CustomId']
2309
+ @RequestId = params['RequestId']
2310
+ end
2311
+ end
2312
+
1516
2313
  # ModifyMerchant请求参数结构体
1517
2314
  class ModifyMerchantRequest < TencentCloud::Common::AbstractModel
1518
2315
  # @param Name: 商户名称
@@ -1847,14 +2644,18 @@ module TencentCloud
1847
2644
  # @param CustomId: 码规则ID
1848
2645
  # 注意:此字段可能返回 null,表示取不到有效值。
1849
2646
  # @type CustomId: String
2647
+ # @param CodeParts: 码段配置
2648
+ # 注意:此字段可能返回 null,表示取不到有效值。
2649
+ # @type CodeParts: Array
1850
2650
 
1851
- attr_accessor :Level, :Rate, :Amount, :CustomId
2651
+ attr_accessor :Level, :Rate, :Amount, :CustomId, :CodeParts
1852
2652
 
1853
- def initialize(level=nil, rate=nil, amount=nil, customid=nil)
2653
+ def initialize(level=nil, rate=nil, amount=nil, customid=nil, codeparts=nil)
1854
2654
  @Level = level
1855
2655
  @Rate = rate
1856
2656
  @Amount = amount
1857
2657
  @CustomId = customid
2658
+ @CodeParts = codeparts
1858
2659
  end
1859
2660
 
1860
2661
  def deserialize(params)
@@ -1862,6 +2663,14 @@ module TencentCloud
1862
2663
  @Rate = params['Rate']
1863
2664
  @Amount = params['Amount']
1864
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
1865
2674
  end
1866
2675
  end
1867
2676
 
@@ -2032,13 +2841,13 @@ module TencentCloud
2032
2841
  # @param CorpId: 企业ID
2033
2842
  # 注意:此字段可能返回 null,表示取不到有效值。
2034
2843
  # @type CorpId: Integer
2035
- # @param Type: 0
2844
+ # @param Type: 码类型 0: 批次, 1: 码, 2: 生产任务
2036
2845
  # 注意:此字段可能返回 null,表示取不到有效值。
2037
2846
  # @type Type: Integer
2038
- # @param Code:
2847
+ # @param Code: 码值,跟码类型一一对应
2039
2848
  # 注意:此字段可能返回 null,表示取不到有效值。
2040
2849
  # @type Code: String
2041
- # @param Rank: 排序
2850
+ # @param Rank: 排序,在Phase相同情况下,值越小排名靠前
2042
2851
  # 注意:此字段可能返回 null,表示取不到有效值。
2043
2852
  # @type Rank: Integer
2044
2853
  # @param Phase: 溯源阶段 0:商品 1:通用 2:物流
@@ -2062,13 +2871,19 @@ module TencentCloud
2062
2871
  # @param ChainTime: 上链时间
2063
2872
  # 注意:此字段可能返回 null,表示取不到有效值。
2064
2873
  # @type ChainTime: String
2065
- # @param ChainData:
2874
+ # @param ChainData: 上链数据
2066
2875
  # 注意:此字段可能返回 null,表示取不到有效值。
2067
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
2068
2883
 
2069
- 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
2070
2885
 
2071
- 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)
2072
2887
  @TraceId = traceid
2073
2888
  @CorpId = corpid
2074
2889
  @Type = type
@@ -2082,6 +2897,8 @@ module TencentCloud
2082
2897
  @ChainStatus = chainstatus
2083
2898
  @ChainTime = chaintime
2084
2899
  @ChainData = chaindata
2900
+ @PhaseData = phasedata
2901
+ @Status = status
2085
2902
  end
2086
2903
 
2087
2904
  def deserialize(params)
@@ -2108,6 +2925,11 @@ module TencentCloud
2108
2925
  @ChainData = ChainData.new
2109
2926
  @ChainData.deserialize(params['ChainData'])
2110
2927
  end
2928
+ unless params['PhaseData'].nil?
2929
+ @PhaseData = PhaseData.new
2930
+ @PhaseData.deserialize(params['PhaseData'])
2931
+ end
2932
+ @Status = params['Status']
2111
2933
  end
2112
2934
  end
2113
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.428
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-14 00:00:00.000000000 Z
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