tencentcloud-sdk-trp 3.0.480 → 3.0.482
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 +25 -0
- data/lib/v20210515/models.rb +85 -13
- 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: c071eb3d41e3816c625225e4b58babdb6c7fdab8
|
4
|
+
data.tar.gz: 5155286917bcdb3153b3d6f63826a7ac42671192
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd787d5650cfc7a8baf55df853ee3fbc047c49ced256c82e2c974c701955355f7660fc3314f3db903ae9568b5d077e795d2954fb2646d441f10248d9679d2746
|
7
|
+
data.tar.gz: 96e7801f755840dfbf938923f411df3cbcbb2e58db70cdccb33caeb967172a8e4129fcbc302eaf92e60ddfbf51521b92779c72f8fb67904acf392017cb6b9182
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.482
|
data/lib/v20210515/client.rb
CHANGED
@@ -965,6 +965,31 @@ module TencentCloud
|
|
965
965
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
966
966
|
end
|
967
967
|
|
968
|
+
# 解绑溯源码和批次的关系,让溯源码重置为未关联的状态,以便关联其他批次
|
969
|
+
# 注意:溯源码必须属于指定的批次才会解绑
|
970
|
+
|
971
|
+
# @param request: Request instance for ModifyTraceCodeUnlink.
|
972
|
+
# @type request: :class:`Tencentcloud::trp::V20210515::ModifyTraceCodeUnlinkRequest`
|
973
|
+
# @rtype: :class:`Tencentcloud::trp::V20210515::ModifyTraceCodeUnlinkResponse`
|
974
|
+
def ModifyTraceCodeUnlink(request)
|
975
|
+
body = send_request('ModifyTraceCodeUnlink', request.serialize)
|
976
|
+
response = JSON.parse(body)
|
977
|
+
if response['Response'].key?('Error') == false
|
978
|
+
model = ModifyTraceCodeUnlinkResponse.new
|
979
|
+
model.deserialize(response['Response'])
|
980
|
+
model
|
981
|
+
else
|
982
|
+
code = response['Response']['Error']['Code']
|
983
|
+
message = response['Response']['Error']['Message']
|
984
|
+
reqid = response['Response']['RequestId']
|
985
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
986
|
+
end
|
987
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
988
|
+
raise e
|
989
|
+
rescue StandardError => e
|
990
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
991
|
+
end
|
992
|
+
|
968
993
|
# 修改溯源信息
|
969
994
|
|
970
995
|
# @param request: Request instance for ModifyTraceData.
|
data/lib/v20210515/models.rb
CHANGED
@@ -192,7 +192,7 @@ module TencentCloud
|
|
192
192
|
# @param Amount: 码数
|
193
193
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
194
194
|
# @type Amount: Integer
|
195
|
-
# @param CodeLength:
|
195
|
+
# @param CodeLength: 防伪码长度
|
196
196
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
197
197
|
# @type CodeLength: Integer
|
198
198
|
# @param CodeType: 码类型
|
@@ -362,7 +362,7 @@ module TencentCloud
|
|
362
362
|
# @type ProductId: String
|
363
363
|
# @param BatchType: 批次类型 0:溯源 1:营销
|
364
364
|
# @type BatchType: Integer
|
365
|
-
# @param BatchId: 批次ID
|
365
|
+
# @param BatchId: 批次ID,留空时系统自动生成
|
366
366
|
# @type BatchId: String
|
367
367
|
# @param Remark: 备注
|
368
368
|
# @type Remark: String
|
@@ -370,10 +370,12 @@ module TencentCloud
|
|
370
370
|
# @type MpTpl: String
|
371
371
|
# @param CloneId: 克隆批次ID,同时会复制溯源信息
|
372
372
|
# @type CloneId: String
|
373
|
+
# @param BatchCode: 批次编号,业务字段不判断唯一性
|
374
|
+
# @type BatchCode: String
|
373
375
|
|
374
|
-
attr_accessor :CorpId, :MerchantId, :ProductId, :BatchType, :BatchId, :Remark, :MpTpl, :CloneId
|
376
|
+
attr_accessor :CorpId, :MerchantId, :ProductId, :BatchType, :BatchId, :Remark, :MpTpl, :CloneId, :BatchCode
|
375
377
|
|
376
|
-
def initialize(corpid=nil, merchantid=nil, productid=nil, batchtype=nil, batchid=nil, remark=nil, mptpl=nil, cloneid=nil)
|
378
|
+
def initialize(corpid=nil, merchantid=nil, productid=nil, batchtype=nil, batchid=nil, remark=nil, mptpl=nil, cloneid=nil, batchcode=nil)
|
377
379
|
@CorpId = corpid
|
378
380
|
@MerchantId = merchantid
|
379
381
|
@ProductId = productid
|
@@ -382,6 +384,7 @@ module TencentCloud
|
|
382
384
|
@Remark = remark
|
383
385
|
@MpTpl = mptpl
|
384
386
|
@CloneId = cloneid
|
387
|
+
@BatchCode = batchcode
|
385
388
|
end
|
386
389
|
|
387
390
|
def deserialize(params)
|
@@ -393,6 +396,7 @@ module TencentCloud
|
|
393
396
|
@Remark = params['Remark']
|
394
397
|
@MpTpl = params['MpTpl']
|
395
398
|
@CloneId = params['CloneId']
|
399
|
+
@BatchCode = params['BatchCode']
|
396
400
|
end
|
397
401
|
end
|
398
402
|
|
@@ -436,10 +440,12 @@ module TencentCloud
|
|
436
440
|
# @type PackSpec: Array
|
437
441
|
# @param BatchId: 批次ID,如果传了生码后会同时绑定批次,并激活码
|
438
442
|
# @type BatchId: String
|
443
|
+
# @param SerialType: 是否有流水码 0:无 1:有
|
444
|
+
# @type SerialType: Integer
|
439
445
|
|
440
|
-
attr_accessor :MerchantId, :CodeLength, :CodeType, :Amount, :CorpId, :PackType, :PackLevel, :PackSpec, :BatchId
|
446
|
+
attr_accessor :MerchantId, :CodeLength, :CodeType, :Amount, :CorpId, :PackType, :PackLevel, :PackSpec, :BatchId, :SerialType
|
441
447
|
|
442
|
-
def initialize(merchantid=nil, codelength=nil, codetype=nil, amount=nil, corpid=nil, packtype=nil, packlevel=nil, packspec=nil, batchid=nil)
|
448
|
+
def initialize(merchantid=nil, codelength=nil, codetype=nil, amount=nil, corpid=nil, packtype=nil, packlevel=nil, packspec=nil, batchid=nil, serialtype=nil)
|
443
449
|
@MerchantId = merchantid
|
444
450
|
@CodeLength = codelength
|
445
451
|
@CodeType = codetype
|
@@ -449,6 +455,7 @@ module TencentCloud
|
|
449
455
|
@PackLevel = packlevel
|
450
456
|
@PackSpec = packspec
|
451
457
|
@BatchId = batchid
|
458
|
+
@SerialType = serialtype
|
452
459
|
end
|
453
460
|
|
454
461
|
def deserialize(params)
|
@@ -468,6 +475,7 @@ module TencentCloud
|
|
468
475
|
end
|
469
476
|
end
|
470
477
|
@BatchId = params['BatchId']
|
478
|
+
@SerialType = params['SerialType']
|
471
479
|
end
|
472
480
|
end
|
473
481
|
|
@@ -580,10 +588,12 @@ module TencentCloud
|
|
580
588
|
# @type CodeParts: Array
|
581
589
|
# @param BatchId: 批次ID,如果传了生码后会同时绑定批次,并激活码
|
582
590
|
# @type BatchId: String
|
591
|
+
# @param SerialType: 是否有流水码 0:无 1:有
|
592
|
+
# @type SerialType: Integer
|
583
593
|
|
584
|
-
attr_accessor :MerchantId, :Amount, :CorpId, :PackType, :PackLevel, :PackSpec, :CustomId, :CodeParts, :BatchId
|
594
|
+
attr_accessor :MerchantId, :Amount, :CorpId, :PackType, :PackLevel, :PackSpec, :CustomId, :CodeParts, :BatchId, :SerialType
|
585
595
|
|
586
|
-
def initialize(merchantid=nil, amount=nil, corpid=nil, packtype=nil, packlevel=nil, packspec=nil, customid=nil, codeparts=nil, batchid=nil)
|
596
|
+
def initialize(merchantid=nil, amount=nil, corpid=nil, packtype=nil, packlevel=nil, packspec=nil, customid=nil, codeparts=nil, batchid=nil, serialtype=nil)
|
587
597
|
@MerchantId = merchantid
|
588
598
|
@Amount = amount
|
589
599
|
@CorpId = corpid
|
@@ -593,6 +603,7 @@ module TencentCloud
|
|
593
603
|
@CustomId = customid
|
594
604
|
@CodeParts = codeparts
|
595
605
|
@BatchId = batchid
|
606
|
+
@SerialType = serialtype
|
596
607
|
end
|
597
608
|
|
598
609
|
def deserialize(params)
|
@@ -619,6 +630,7 @@ module TencentCloud
|
|
619
630
|
end
|
620
631
|
end
|
621
632
|
@BatchId = params['BatchId']
|
633
|
+
@SerialType = params['SerialType']
|
622
634
|
end
|
623
635
|
end
|
624
636
|
|
@@ -1492,14 +1504,17 @@ module TencentCloud
|
|
1492
1504
|
# @type Keyword: String
|
1493
1505
|
# @param CorpId: 企业ID
|
1494
1506
|
# @type CorpId: Integer
|
1507
|
+
# @param SerialType: 是否有流水码 0:无 1:有
|
1508
|
+
# @type SerialType: Integer
|
1495
1509
|
|
1496
|
-
attr_accessor :PageSize, :PageNumber, :Keyword, :CorpId
|
1510
|
+
attr_accessor :PageSize, :PageNumber, :Keyword, :CorpId, :SerialType
|
1497
1511
|
|
1498
|
-
def initialize(pagesize=nil, pagenumber=nil, keyword=nil, corpid=nil)
|
1512
|
+
def initialize(pagesize=nil, pagenumber=nil, keyword=nil, corpid=nil, serialtype=nil)
|
1499
1513
|
@PageSize = pagesize
|
1500
1514
|
@PageNumber = pagenumber
|
1501
1515
|
@Keyword = keyword
|
1502
1516
|
@CorpId = corpid
|
1517
|
+
@SerialType = serialtype
|
1503
1518
|
end
|
1504
1519
|
|
1505
1520
|
def deserialize(params)
|
@@ -1507,6 +1522,7 @@ module TencentCloud
|
|
1507
1522
|
@PageNumber = params['PageNumber']
|
1508
1523
|
@Keyword = params['Keyword']
|
1509
1524
|
@CorpId = params['CorpId']
|
1525
|
+
@SerialType = params['SerialType']
|
1510
1526
|
end
|
1511
1527
|
end
|
1512
1528
|
|
@@ -2329,7 +2345,7 @@ module TencentCloud
|
|
2329
2345
|
# @type CorpId: Integer
|
2330
2346
|
# @param Status: 状态 0: 未激活 1: 已激活 -1: 已冻结
|
2331
2347
|
# @type Status: Integer
|
2332
|
-
# @param MpTpl:
|
2348
|
+
# @param MpTpl: 模板ID,或者活动ID
|
2333
2349
|
# @type MpTpl: String
|
2334
2350
|
# @param MerchantId: 商户ID
|
2335
2351
|
# @type MerchantId: String
|
@@ -2337,10 +2353,12 @@ module TencentCloud
|
|
2337
2353
|
# @type ProductId: String
|
2338
2354
|
# @param Remark: 备注
|
2339
2355
|
# @type Remark: String
|
2356
|
+
# @param BatchCode: 批次编码,业务字段不判断唯一性
|
2357
|
+
# @type BatchCode: String
|
2340
2358
|
|
2341
|
-
attr_accessor :BatchId, :CorpId, :Status, :MpTpl, :MerchantId, :ProductId, :Remark
|
2359
|
+
attr_accessor :BatchId, :CorpId, :Status, :MpTpl, :MerchantId, :ProductId, :Remark, :BatchCode
|
2342
2360
|
|
2343
|
-
def initialize(batchid=nil, corpid=nil, status=nil, mptpl=nil, merchantid=nil, productid=nil, remark=nil)
|
2361
|
+
def initialize(batchid=nil, corpid=nil, status=nil, mptpl=nil, merchantid=nil, productid=nil, remark=nil, batchcode=nil)
|
2344
2362
|
@BatchId = batchid
|
2345
2363
|
@CorpId = corpid
|
2346
2364
|
@Status = status
|
@@ -2348,6 +2366,7 @@ module TencentCloud
|
|
2348
2366
|
@MerchantId = merchantid
|
2349
2367
|
@ProductId = productid
|
2350
2368
|
@Remark = remark
|
2369
|
+
@BatchCode = batchcode
|
2351
2370
|
end
|
2352
2371
|
|
2353
2372
|
def deserialize(params)
|
@@ -2358,6 +2377,7 @@ module TencentCloud
|
|
2358
2377
|
@MerchantId = params['MerchantId']
|
2359
2378
|
@ProductId = params['ProductId']
|
2360
2379
|
@Remark = params['Remark']
|
2380
|
+
@BatchCode = params['BatchCode']
|
2361
2381
|
end
|
2362
2382
|
end
|
2363
2383
|
|
@@ -2647,6 +2667,58 @@ module TencentCloud
|
|
2647
2667
|
end
|
2648
2668
|
end
|
2649
2669
|
|
2670
|
+
# ModifyTraceCodeUnlink请求参数结构体
|
2671
|
+
class ModifyTraceCodeUnlinkRequest < TencentCloud::Common::AbstractModel
|
2672
|
+
# @param BatchId: 批次ID
|
2673
|
+
# @type BatchId: String
|
2674
|
+
# @param Codes: 溯源码列表
|
2675
|
+
# @type Codes: Array
|
2676
|
+
# @param CorpId: 企业ID
|
2677
|
+
# @type CorpId: Integer
|
2678
|
+
|
2679
|
+
attr_accessor :BatchId, :Codes, :CorpId
|
2680
|
+
|
2681
|
+
def initialize(batchid=nil, codes=nil, corpid=nil)
|
2682
|
+
@BatchId = batchid
|
2683
|
+
@Codes = codes
|
2684
|
+
@CorpId = corpid
|
2685
|
+
end
|
2686
|
+
|
2687
|
+
def deserialize(params)
|
2688
|
+
@BatchId = params['BatchId']
|
2689
|
+
@Codes = params['Codes']
|
2690
|
+
@CorpId = params['CorpId']
|
2691
|
+
end
|
2692
|
+
end
|
2693
|
+
|
2694
|
+
# ModifyTraceCodeUnlink返回参数结构体
|
2695
|
+
class ModifyTraceCodeUnlinkResponse < TencentCloud::Common::AbstractModel
|
2696
|
+
# @param UnlinkCnt: 成功解绑溯源码的数量
|
2697
|
+
# @type UnlinkCnt: Integer
|
2698
|
+
# @param CodeCnt: 当前批次的码数量
|
2699
|
+
# @type CodeCnt: Integer
|
2700
|
+
# @param BatchId: 批次ID
|
2701
|
+
# @type BatchId: String
|
2702
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2703
|
+
# @type RequestId: String
|
2704
|
+
|
2705
|
+
attr_accessor :UnlinkCnt, :CodeCnt, :BatchId, :RequestId
|
2706
|
+
|
2707
|
+
def initialize(unlinkcnt=nil, codecnt=nil, batchid=nil, requestid=nil)
|
2708
|
+
@UnlinkCnt = unlinkcnt
|
2709
|
+
@CodeCnt = codecnt
|
2710
|
+
@BatchId = batchid
|
2711
|
+
@RequestId = requestid
|
2712
|
+
end
|
2713
|
+
|
2714
|
+
def deserialize(params)
|
2715
|
+
@UnlinkCnt = params['UnlinkCnt']
|
2716
|
+
@CodeCnt = params['CodeCnt']
|
2717
|
+
@BatchId = params['BatchId']
|
2718
|
+
@RequestId = params['RequestId']
|
2719
|
+
end
|
2720
|
+
end
|
2721
|
+
|
2650
2722
|
# ModifyTraceDataRanks请求参数结构体
|
2651
2723
|
class ModifyTraceDataRanksRequest < TencentCloud::Common::AbstractModel
|
2652
2724
|
# @param CorpId: 企业ID
|
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.482
|
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-12-
|
11
|
+
date: 2022-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|