tencentcloud-sdk-trp 3.0.672 → 3.0.674

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2fdcc904e0eacc464606126de10483a93e8aa149
4
- data.tar.gz: ca708be0e5813a48ee6e80dfd7db1d1474ac7074
3
+ metadata.gz: 33c4847f2ab1b44cdc035e0588f9b661b7078405
4
+ data.tar.gz: 8cccbd5f5ed13f936d245e69678405961754437e
5
5
  SHA512:
6
- metadata.gz: d4db51b09bc15246f00f0d3a2139005807c51386f2210bc082682b89eab01b8d147057f09d8676172ae5fc5ca581b8b689a74756026b2e170f881b6393cd3119
7
- data.tar.gz: 4ce5eda642567b087a0edbdad08001f3544b90249063f40648d392865095294d70656b1e9a7fe8c253387e325fb94165291daec3dfffbe4335423f91a531d13c
6
+ metadata.gz: 0ffee4bd66566ef72e137fb6c19c2953fc77eb0d26ece6a324f525bbf16cc7b786c9cc0a65bc60e3056f69626da51ebf60409e03b0cef798e4c0247ff5ba8f51
7
+ data.tar.gz: 3e23f0d9944a13f681bb7e36846bdb6cadc294416a617835f36f4c2fe069c9201b92f181ee2005ccf3dcf58d0e75bfe12e61a557e04e6d8435b0de3f0a518f0e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.672
1
+ 3.0.674
@@ -463,6 +463,32 @@ module TencentCloud
463
463
 
464
464
  # 查询批次列表
465
465
 
466
+ # @param request: Request instance for DescribeCodeBatches.
467
+ # @type request: :class:`Tencentcloud::trp::V20210515::DescribeCodeBatchesRequest`
468
+ # @rtype: :class:`Tencentcloud::trp::V20210515::DescribeCodeBatchesResponse`
469
+ def DescribeCodeBatches(request)
470
+ body = send_request('DescribeCodeBatches', request.serialize)
471
+ response = JSON.parse(body)
472
+ if response['Response'].key?('Error') == false
473
+ model = DescribeCodeBatchesResponse.new
474
+ model.deserialize(response['Response'])
475
+ model
476
+ else
477
+ code = response['Response']['Error']['Code']
478
+ message = response['Response']['Error']['Message']
479
+ reqid = response['Response']['RequestId']
480
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
481
+ end
482
+ rescue TencentCloud::Common::TencentCloudSDKException => e
483
+ raise e
484
+ rescue StandardError => e
485
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
486
+ end
487
+
488
+ # 查询批次列表
489
+
490
+ # 旧版接口已经弃用,新业务请使用用新版的接口 DescribeCodeBatches
491
+
466
492
  # @param request: Request instance for DescribeCodeBatchs.
467
493
  # @type request: :class:`Tencentcloud::trp::V20210515::DescribeCodeBatchsRequest`
468
494
  # @rtype: :class:`Tencentcloud::trp::V20210515::DescribeCodeBatchsResponse`
@@ -1553,6 +1553,77 @@ module TencentCloud
1553
1553
  end
1554
1554
  end
1555
1555
 
1556
+ # DescribeCodeBatches请求参数结构体
1557
+ class DescribeCodeBatchesRequest < TencentCloud::Common::AbstractModel
1558
+ # @param MerchantId: 查询商户ID
1559
+ # @type MerchantId: String
1560
+ # @param ProductId: 查询商品ID
1561
+ # @type ProductId: String
1562
+ # @param Keyword: 查询关键字
1563
+ # @type Keyword: String
1564
+ # @param PageSize: 条数
1565
+ # @type PageSize: Integer
1566
+ # @param PageNumber: 页数
1567
+ # @type PageNumber: Integer
1568
+ # @param BatchType: 批次类型 0:溯源 1:营销
1569
+ # @type BatchType: String
1570
+ # @param CorpId: 企业ID
1571
+ # @type CorpId: Integer
1572
+
1573
+ attr_accessor :MerchantId, :ProductId, :Keyword, :PageSize, :PageNumber, :BatchType, :CorpId
1574
+
1575
+ def initialize(merchantid=nil, productid=nil, keyword=nil, pagesize=nil, pagenumber=nil, batchtype=nil, corpid=nil)
1576
+ @MerchantId = merchantid
1577
+ @ProductId = productid
1578
+ @Keyword = keyword
1579
+ @PageSize = pagesize
1580
+ @PageNumber = pagenumber
1581
+ @BatchType = batchtype
1582
+ @CorpId = corpid
1583
+ end
1584
+
1585
+ def deserialize(params)
1586
+ @MerchantId = params['MerchantId']
1587
+ @ProductId = params['ProductId']
1588
+ @Keyword = params['Keyword']
1589
+ @PageSize = params['PageSize']
1590
+ @PageNumber = params['PageNumber']
1591
+ @BatchType = params['BatchType']
1592
+ @CorpId = params['CorpId']
1593
+ end
1594
+ end
1595
+
1596
+ # DescribeCodeBatches返回参数结构体
1597
+ class DescribeCodeBatchesResponse < TencentCloud::Common::AbstractModel
1598
+ # @param CodeBatches: 批次列表
1599
+ # @type CodeBatches: Array
1600
+ # @param TotalCount: 总条数
1601
+ # @type TotalCount: Integer
1602
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1603
+ # @type RequestId: String
1604
+
1605
+ attr_accessor :CodeBatches, :TotalCount, :RequestId
1606
+
1607
+ def initialize(codebatches=nil, totalcount=nil, requestid=nil)
1608
+ @CodeBatches = codebatches
1609
+ @TotalCount = totalcount
1610
+ @RequestId = requestid
1611
+ end
1612
+
1613
+ def deserialize(params)
1614
+ unless params['CodeBatches'].nil?
1615
+ @CodeBatches = []
1616
+ params['CodeBatches'].each do |i|
1617
+ codebatch_tmp = CodeBatch.new
1618
+ codebatch_tmp.deserialize(i)
1619
+ @CodeBatches << codebatch_tmp
1620
+ end
1621
+ end
1622
+ @TotalCount = params['TotalCount']
1623
+ @RequestId = params['RequestId']
1624
+ end
1625
+ end
1626
+
1556
1627
  # DescribeCodeBatchs请求参数结构体
1557
1628
  class DescribeCodeBatchsRequest < TencentCloud::Common::AbstractModel
1558
1629
  # @param MerchantId: 查询商户ID
@@ -2382,8 +2453,8 @@ module TencentCloud
2382
2453
 
2383
2454
  attr_accessor :Products, :TotalCount, :ScanLogs, :RequestId
2384
2455
  extend Gem::Deprecate
2385
- deprecate :Products, :none, 2023, 9
2386
- deprecate :Products=, :none, 2023, 9
2456
+ deprecate :Products, :none, 2023, 10
2457
+ deprecate :Products=, :none, 2023, 10
2387
2458
 
2388
2459
  def initialize(products=nil, totalcount=nil, scanlogs=nil, requestid=nil)
2389
2460
  @Products = products
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.672
4
+ version: 3.0.674
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-10-09 00:00:00.000000000 Z
11
+ date: 2023-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common