tencentcloud-sdk-trp 3.0.604 → 3.0.606

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: 5c3c7900936ffa061b9f121395b7b0a55b66fd8f
4
- data.tar.gz: 273ffb02e7b88af83be4f67fc961583c34d2817c
3
+ metadata.gz: 058e7cf53916bb9ba657ada83201e53e610f4718
4
+ data.tar.gz: 3aece25b77f7a4c7b989df5a8b46611c10dedf93
5
5
  SHA512:
6
- metadata.gz: 950947b1a1091b7566d00d2fb06c14d05205af61617995ddcd330eaa3db6a7e0e1cc2d33486eaca23b18f5c0878593c9eaa530da516e716dd90989fb5188f451
7
- data.tar.gz: 8b7d03cf1ebc0100564703c1b09f22b00d3c30996fd8fff5a9262991394d32dfbb2ed72f4596a69989f66dbf4c8a67158539d9fb9cd0a07726518275cc2c846a
6
+ metadata.gz: 15e8215b391d7c144d0ff2de1c37b3aaa9c01057e77740549d927293ff01c542d6d717f14323ba77dd024f8b663bf2da4f42d14e09289ba8adca7f74f14bb290
7
+ data.tar.gz: e7e6f6d9e69cad6b66a77fc4b68ac6e724bea9ddd78bc17c30b208703a4f83d7571ae3f3b6d69e57983fea3dedaff50297b828562c49c770dff00d94d0b6139c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.604
1
+ 3.0.606
@@ -773,6 +773,30 @@ module TencentCloud
773
773
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
774
774
  end
775
775
 
776
+ # 支持增量查询扫码日志,通常提供给数据同步使用,调用时需要指定从哪一行开始查询数据
777
+
778
+ # @param request: Request instance for DescribeRawScanLogs.
779
+ # @type request: :class:`Tencentcloud::trp::V20210515::DescribeRawScanLogsRequest`
780
+ # @rtype: :class:`Tencentcloud::trp::V20210515::DescribeRawScanLogsResponse`
781
+ def DescribeRawScanLogs(request)
782
+ body = send_request('DescribeRawScanLogs', request.serialize)
783
+ response = JSON.parse(body)
784
+ if response['Response'].key?('Error') == false
785
+ model = DescribeRawScanLogsResponse.new
786
+ model.deserialize(response['Response'])
787
+ model
788
+ else
789
+ code = response['Response']['Error']['Code']
790
+ message = response['Response']['Error']['Message']
791
+ reqid = response['Response']['RequestId']
792
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
793
+ end
794
+ rescue TencentCloud::Common::TencentCloudSDKException => e
795
+ raise e
796
+ rescue StandardError => e
797
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
798
+ end
799
+
776
800
  # 查询扫码日志明细
777
801
 
778
802
  # @param request: Request instance for DescribeScanLogs.
@@ -2226,6 +2226,63 @@ module TencentCloud
2226
2226
  end
2227
2227
  end
2228
2228
 
2229
+ # DescribeRawScanLogs请求参数结构体
2230
+ class DescribeRawScanLogsRequest < TencentCloud::Common::AbstractModel
2231
+ # @param CorpId: 企业ID, 默认为当前企业
2232
+ # 如果有渠道权限,可以传 0 会查渠道下所有的企业
2233
+ # @type CorpId: Integer
2234
+ # @param PageSize: 分页数量,默认为 100,最大为 1000
2235
+ # @type PageSize: Integer
2236
+ # @param PageNumber: 当前分页,默认为 1
2237
+ # @type PageNumber: Integer
2238
+ # @param AfterLogId: 从哪个日志后查询
2239
+ # 即: LogId > $AfterLogId
2240
+ # @type AfterLogId: Integer
2241
+
2242
+ attr_accessor :CorpId, :PageSize, :PageNumber, :AfterLogId
2243
+
2244
+ def initialize(corpid=nil, pagesize=nil, pagenumber=nil, afterlogid=nil)
2245
+ @CorpId = corpid
2246
+ @PageSize = pagesize
2247
+ @PageNumber = pagenumber
2248
+ @AfterLogId = afterlogid
2249
+ end
2250
+
2251
+ def deserialize(params)
2252
+ @CorpId = params['CorpId']
2253
+ @PageSize = params['PageSize']
2254
+ @PageNumber = params['PageNumber']
2255
+ @AfterLogId = params['AfterLogId']
2256
+ end
2257
+ end
2258
+
2259
+ # DescribeRawScanLogs返回参数结构体
2260
+ class DescribeRawScanLogsResponse < TencentCloud::Common::AbstractModel
2261
+ # @param ScanLogs: 原始扫码日志
2262
+ # @type ScanLogs: Array
2263
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2264
+ # @type RequestId: String
2265
+
2266
+ attr_accessor :ScanLogs, :RequestId
2267
+
2268
+ def initialize(scanlogs=nil, requestid=nil)
2269
+ @ScanLogs = scanlogs
2270
+ @RequestId = requestid
2271
+ end
2272
+
2273
+ def deserialize(params)
2274
+ unless params['ScanLogs'].nil?
2275
+ @ScanLogs = []
2276
+ params['ScanLogs'].each do |i|
2277
+ rawscanlog_tmp = RawScanLog.new
2278
+ rawscanlog_tmp.deserialize(i)
2279
+ @ScanLogs << rawscanlog_tmp
2280
+ end
2281
+ end
2282
+ @RequestId = params['RequestId']
2283
+ end
2284
+ end
2285
+
2229
2286
  # DescribeScanLogs请求参数结构体
2230
2287
  class DescribeScanLogsRequest < TencentCloud::Common::AbstractModel
2231
2288
  # @param CorpId: 企业ID
@@ -2271,8 +2328,8 @@ module TencentCloud
2271
2328
 
2272
2329
  attr_accessor :Products, :TotalCount, :ScanLogs, :RequestId
2273
2330
  extend Gem::Deprecate
2274
- deprecate :Products, :none, 2023, 6
2275
- deprecate :Products=, :none, 2023, 6
2331
+ deprecate :Products, :none, 2023, 7
2332
+ deprecate :Products=, :none, 2023, 7
2276
2333
 
2277
2334
  def initialize(products=nil, totalcount=nil, scanlogs=nil, requestid=nil)
2278
2335
  @Products = products
@@ -3589,6 +3646,69 @@ module TencentCloud
3589
3646
  end
3590
3647
  end
3591
3648
 
3649
+ # 原始扫码日志
3650
+ class RawScanLog < TencentCloud::Common::AbstractModel
3651
+ # @param LogId: 日志ID
3652
+ # @type LogId: Integer
3653
+ # @param Openid: 微信小程序openid
3654
+ # 注意:此字段可能返回 null,表示取不到有效值。
3655
+ # @type Openid: String
3656
+ # @param CreateTime: 扫码时间
3657
+ # @type CreateTime: String
3658
+ # @param Code: 溯源码
3659
+ # @type Code: String
3660
+ # @param CorpId: 企业ID
3661
+ # @type CorpId: Integer
3662
+ # @param MerchantId: 商户ID
3663
+ # 注意:此字段可能返回 null,表示取不到有效值。
3664
+ # @type MerchantId: String
3665
+ # @param ProductId: 商品ID
3666
+ # 注意:此字段可能返回 null,表示取不到有效值。
3667
+ # @type ProductId: String
3668
+ # @param BatchId: 批次ID
3669
+ # 注意:此字段可能返回 null,表示取不到有效值。
3670
+ # @type BatchId: String
3671
+ # @param Province: 省份
3672
+ # 注意:此字段可能返回 null,表示取不到有效值。
3673
+ # @type Province: String
3674
+ # @param City: 地市
3675
+ # 注意:此字段可能返回 null,表示取不到有效值。
3676
+ # @type City: String
3677
+ # @param District: 区/县
3678
+ # 注意:此字段可能返回 null,表示取不到有效值。
3679
+ # @type District: String
3680
+
3681
+ attr_accessor :LogId, :Openid, :CreateTime, :Code, :CorpId, :MerchantId, :ProductId, :BatchId, :Province, :City, :District
3682
+
3683
+ def initialize(logid=nil, openid=nil, createtime=nil, code=nil, corpid=nil, merchantid=nil, productid=nil, batchid=nil, province=nil, city=nil, district=nil)
3684
+ @LogId = logid
3685
+ @Openid = openid
3686
+ @CreateTime = createtime
3687
+ @Code = code
3688
+ @CorpId = corpid
3689
+ @MerchantId = merchantid
3690
+ @ProductId = productid
3691
+ @BatchId = batchid
3692
+ @Province = province
3693
+ @City = city
3694
+ @District = district
3695
+ end
3696
+
3697
+ def deserialize(params)
3698
+ @LogId = params['LogId']
3699
+ @Openid = params['Openid']
3700
+ @CreateTime = params['CreateTime']
3701
+ @Code = params['Code']
3702
+ @CorpId = params['CorpId']
3703
+ @MerchantId = params['MerchantId']
3704
+ @ProductId = params['ProductId']
3705
+ @BatchId = params['BatchId']
3706
+ @Province = params['Province']
3707
+ @City = params['City']
3708
+ @District = params['District']
3709
+ end
3710
+ end
3711
+
3592
3712
  # ReportBatchCallbackStatus请求参数结构体
3593
3713
  class ReportBatchCallbackStatusRequest < TencentCloud::Common::AbstractModel
3594
3714
  # @param BusinessSecurityData: 业务加密入参。
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.604
4
+ version: 3.0.606
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-07-03 00:00:00.000000000 Z
11
+ date: 2023-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,8 +33,8 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/v20210515/models.rb
37
36
  - lib/v20210515/client.rb
37
+ - lib/v20210515/models.rb
38
38
  - lib/tencentcloud-sdk-trp.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby