tencentcloud-sdk-trp 3.0.605 → 3.0.607

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: 9fd8a2a134e3d0f8b66b638e597744664914ce10
4
- data.tar.gz: 1c301b137cfc1ae7f344ebc39ba5df230306e5de
3
+ metadata.gz: 6c986f9078405ee8b240a7cd0e846dca505042f2
4
+ data.tar.gz: 1ab239fc168fb9acd36f5adbc7e76141e7675a6d
5
5
  SHA512:
6
- metadata.gz: 0450ea5cb3ef7eb4c1e8d3742830dbfacc589350a4102bf26e006b9b963d53ba1973f5a6d46d9992fb97380ff40a61d37a3ce8c8452074d0bfd903cd20be60ea
7
- data.tar.gz: 260a2d555ccafe510b484b3ab297779dd4cfc3ea719bcd622718e769ea2a931ea4bfa97021dc6e4db81f1fc943ce6894b214c78ec9fb58430d4102c7440144f2
6
+ metadata.gz: c3af933707e819349eed8c9b78318b0a3534778806974be552af26930e141d9beee410ef0aacc9e0dc08374f55ea0074d024ac5319d4b7c0f8bd00017f189e5e
7
+ data.tar.gz: 79bb4ec3bd6b006054608be8b4ac895ebf3dd008837902ff2fb9d67633d9fd01534f80ccbe8068ca8257b89fec8b4125f137bb6bfce76ff3cdfebb98d86a0337
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.605
1
+ 3.0.607
@@ -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.605
4
+ version: 3.0.607
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-04 00:00:00.000000000 Z
11
+ date: 2023-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common