tencentcloud-sdk-trp 3.0.551 → 3.0.553
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 +96 -0
- data/lib/v20210515/models.rb +229 -0
- 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: 919d1776989dfa9ee4500adfbc3a5a4f155f129d
|
4
|
+
data.tar.gz: 4ce00860f50be0d126ee0c395dd755ac7be92dd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd438ee966218c3642968e165c60eb8168b2a19d4425451f57231a139e35668b173777a4515d76c0606e51518b164df321e4a64fe766b182e7975b69fca556c3
|
7
|
+
data.tar.gz: 74ea5b99b87e8b1f5a1b68496db5b5d7d52384e92c83c9d039dc6e813954f67add2f6411c0a6e830eb4cdfc5af270ab84ab69f855c21e40c3b5e58214e57b8b0
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.553
|
data/lib/v20210515/client.rb
CHANGED
@@ -29,6 +29,30 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 接收客户侧的用户已授权的号码。
|
33
|
+
|
34
|
+
# @param request: Request instance for AuthorizedTransfer.
|
35
|
+
# @type request: :class:`Tencentcloud::trp::V20210515::AuthorizedTransferRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::trp::V20210515::AuthorizedTransferResponse`
|
37
|
+
def AuthorizedTransfer(request)
|
38
|
+
body = send_request('AuthorizedTransfer', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = AuthorizedTransferResponse.new
|
42
|
+
model.deserialize(response['Response'])
|
43
|
+
model
|
44
|
+
else
|
45
|
+
code = response['Response']['Error']['Code']
|
46
|
+
message = response['Response']['Error']['Message']
|
47
|
+
reqid = response['Response']['RequestId']
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
+
end
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
+
raise e
|
52
|
+
rescue StandardError => e
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
+
end
|
55
|
+
|
32
56
|
# 新增批次
|
33
57
|
|
34
58
|
# @param request: Request instance for CreateCodeBatch.
|
@@ -846,6 +870,30 @@ module TencentCloud
|
|
846
870
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
847
871
|
end
|
848
872
|
|
873
|
+
# 查询溯源ID查溯源信息,通常溯源信息跟生产批次绑定,即一个批次的所有溯源信息都是一样的
|
874
|
+
|
875
|
+
# @param request: Request instance for DescribeTraceDataById.
|
876
|
+
# @type request: :class:`Tencentcloud::trp::V20210515::DescribeTraceDataByIdRequest`
|
877
|
+
# @rtype: :class:`Tencentcloud::trp::V20210515::DescribeTraceDataByIdResponse`
|
878
|
+
def DescribeTraceDataById(request)
|
879
|
+
body = send_request('DescribeTraceDataById', request.serialize)
|
880
|
+
response = JSON.parse(body)
|
881
|
+
if response['Response'].key?('Error') == false
|
882
|
+
model = DescribeTraceDataByIdResponse.new
|
883
|
+
model.deserialize(response['Response'])
|
884
|
+
model
|
885
|
+
else
|
886
|
+
code = response['Response']['Error']['Code']
|
887
|
+
message = response['Response']['Error']['Message']
|
888
|
+
reqid = response['Response']['RequestId']
|
889
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
890
|
+
end
|
891
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
892
|
+
raise e
|
893
|
+
rescue StandardError => e
|
894
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
895
|
+
end
|
896
|
+
|
849
897
|
# 查询溯源信息,通常溯源信息跟生产批次绑定,即一个批次的所有溯源信息都是一样的
|
850
898
|
|
851
899
|
# @param request: Request instance for DescribeTraceDataList.
|
@@ -870,6 +918,30 @@ module TencentCloud
|
|
870
918
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
871
919
|
end
|
872
920
|
|
921
|
+
# 接收客户反馈的各环节数据
|
922
|
+
|
923
|
+
# @param request: Request instance for EffectFeedback.
|
924
|
+
# @type request: :class:`Tencentcloud::trp::V20210515::EffectFeedbackRequest`
|
925
|
+
# @rtype: :class:`Tencentcloud::trp::V20210515::EffectFeedbackResponse`
|
926
|
+
def EffectFeedback(request)
|
927
|
+
body = send_request('EffectFeedback', request.serialize)
|
928
|
+
response = JSON.parse(body)
|
929
|
+
if response['Response'].key?('Error') == false
|
930
|
+
model = EffectFeedbackResponse.new
|
931
|
+
model.deserialize(response['Response'])
|
932
|
+
model
|
933
|
+
else
|
934
|
+
code = response['Response']['Error']['Code']
|
935
|
+
message = response['Response']['Error']['Message']
|
936
|
+
reqid = response['Response']['RequestId']
|
937
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
938
|
+
end
|
939
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
940
|
+
raise e
|
941
|
+
rescue StandardError => e
|
942
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
943
|
+
end
|
944
|
+
|
873
945
|
# 修改批次
|
874
946
|
|
875
947
|
# @param request: Request instance for ModifyCodeBatch.
|
@@ -1087,6 +1159,30 @@ module TencentCloud
|
|
1087
1159
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1088
1160
|
end
|
1089
1161
|
|
1162
|
+
# 接收离线筛选包回执,用于效果统计和分析。
|
1163
|
+
|
1164
|
+
# @param request: Request instance for ReportBatchCallbackStatus.
|
1165
|
+
# @type request: :class:`Tencentcloud::trp::V20210515::ReportBatchCallbackStatusRequest`
|
1166
|
+
# @rtype: :class:`Tencentcloud::trp::V20210515::ReportBatchCallbackStatusResponse`
|
1167
|
+
def ReportBatchCallbackStatus(request)
|
1168
|
+
body = send_request('ReportBatchCallbackStatus', request.serialize)
|
1169
|
+
response = JSON.parse(body)
|
1170
|
+
if response['Response'].key?('Error') == false
|
1171
|
+
model = ReportBatchCallbackStatusResponse.new
|
1172
|
+
model.deserialize(response['Response'])
|
1173
|
+
model
|
1174
|
+
else
|
1175
|
+
code = response['Response']['Error']['Code']
|
1176
|
+
message = response['Response']['Error']['Message']
|
1177
|
+
reqid = response['Response']['RequestId']
|
1178
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1179
|
+
end
|
1180
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1181
|
+
raise e
|
1182
|
+
rescue StandardError => e
|
1183
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1184
|
+
end
|
1185
|
+
|
1090
1186
|
|
1091
1187
|
end
|
1092
1188
|
end
|
data/lib/v20210515/models.rb
CHANGED
@@ -17,6 +17,48 @@
|
|
17
17
|
module TencentCloud
|
18
18
|
module Trp
|
19
19
|
module V20210515
|
20
|
+
# AuthorizedTransfer请求参数结构体
|
21
|
+
class AuthorizedTransferRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param BusinessSecurityData: 业务加密入参。
|
23
|
+
# @type BusinessSecurityData: :class:`Tencentcloud::Trp.v20210515.models.InputEncryptData`
|
24
|
+
|
25
|
+
attr_accessor :BusinessSecurityData
|
26
|
+
|
27
|
+
def initialize(businesssecuritydata=nil)
|
28
|
+
@BusinessSecurityData = businesssecuritydata
|
29
|
+
end
|
30
|
+
|
31
|
+
def deserialize(params)
|
32
|
+
unless params['BusinessSecurityData'].nil?
|
33
|
+
@BusinessSecurityData = InputEncryptData.new
|
34
|
+
@BusinessSecurityData.deserialize(params['BusinessSecurityData'])
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
# AuthorizedTransfer返回参数结构体
|
40
|
+
class AuthorizedTransferResponse < TencentCloud::Common::AbstractModel
|
41
|
+
# @param Data: 业务出参。
|
42
|
+
# @type Data: :class:`Tencentcloud::Trp.v20210515.models.OutputAuthorizedTransfer`
|
43
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
44
|
+
# @type RequestId: String
|
45
|
+
|
46
|
+
attr_accessor :Data, :RequestId
|
47
|
+
|
48
|
+
def initialize(data=nil, requestid=nil)
|
49
|
+
@Data = data
|
50
|
+
@RequestId = requestid
|
51
|
+
end
|
52
|
+
|
53
|
+
def deserialize(params)
|
54
|
+
unless params['Data'].nil?
|
55
|
+
@Data = OutputAuthorizedTransfer.new
|
56
|
+
@Data.deserialize(params['Data'])
|
57
|
+
end
|
58
|
+
@RequestId = params['RequestId']
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
20
62
|
# 上链数据
|
21
63
|
class ChainData < TencentCloud::Common::AbstractModel
|
22
64
|
# @param BlockHash: 区块hash
|
@@ -2315,6 +2357,49 @@ module TencentCloud
|
|
2315
2357
|
end
|
2316
2358
|
end
|
2317
2359
|
|
2360
|
+
# DescribeTraceDataById请求参数结构体
|
2361
|
+
class DescribeTraceDataByIdRequest < TencentCloud::Common::AbstractModel
|
2362
|
+
# @param Id: 溯源ID
|
2363
|
+
# @type Id: String
|
2364
|
+
# @param CorpId: 企业ID
|
2365
|
+
# @type CorpId: Integer
|
2366
|
+
|
2367
|
+
attr_accessor :Id, :CorpId
|
2368
|
+
|
2369
|
+
def initialize(id=nil, corpid=nil)
|
2370
|
+
@Id = id
|
2371
|
+
@CorpId = corpid
|
2372
|
+
end
|
2373
|
+
|
2374
|
+
def deserialize(params)
|
2375
|
+
@Id = params['Id']
|
2376
|
+
@CorpId = params['CorpId']
|
2377
|
+
end
|
2378
|
+
end
|
2379
|
+
|
2380
|
+
# DescribeTraceDataById返回参数结构体
|
2381
|
+
class DescribeTraceDataByIdResponse < TencentCloud::Common::AbstractModel
|
2382
|
+
# @param TraceData: 无
|
2383
|
+
# @type TraceData: :class:`Tencentcloud::Trp.v20210515.models.TraceData`
|
2384
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2385
|
+
# @type RequestId: String
|
2386
|
+
|
2387
|
+
attr_accessor :TraceData, :RequestId
|
2388
|
+
|
2389
|
+
def initialize(tracedata=nil, requestid=nil)
|
2390
|
+
@TraceData = tracedata
|
2391
|
+
@RequestId = requestid
|
2392
|
+
end
|
2393
|
+
|
2394
|
+
def deserialize(params)
|
2395
|
+
unless params['TraceData'].nil?
|
2396
|
+
@TraceData = TraceData.new
|
2397
|
+
@TraceData.deserialize(params['TraceData'])
|
2398
|
+
end
|
2399
|
+
@RequestId = params['RequestId']
|
2400
|
+
end
|
2401
|
+
end
|
2402
|
+
|
2318
2403
|
# DescribeTraceDataList请求参数结构体
|
2319
2404
|
class DescribeTraceDataListRequest < TencentCloud::Common::AbstractModel
|
2320
2405
|
# @param CorpId: 企业ID
|
@@ -2386,6 +2471,48 @@ module TencentCloud
|
|
2386
2471
|
end
|
2387
2472
|
end
|
2388
2473
|
|
2474
|
+
# EffectFeedback请求参数结构体
|
2475
|
+
class EffectFeedbackRequest < TencentCloud::Common::AbstractModel
|
2476
|
+
# @param BusinessSecurityData: 业务加密入参。
|
2477
|
+
# @type BusinessSecurityData: :class:`Tencentcloud::Trp.v20210515.models.InputEncryptData`
|
2478
|
+
|
2479
|
+
attr_accessor :BusinessSecurityData
|
2480
|
+
|
2481
|
+
def initialize(businesssecuritydata=nil)
|
2482
|
+
@BusinessSecurityData = businesssecuritydata
|
2483
|
+
end
|
2484
|
+
|
2485
|
+
def deserialize(params)
|
2486
|
+
unless params['BusinessSecurityData'].nil?
|
2487
|
+
@BusinessSecurityData = InputEncryptData.new
|
2488
|
+
@BusinessSecurityData.deserialize(params['BusinessSecurityData'])
|
2489
|
+
end
|
2490
|
+
end
|
2491
|
+
end
|
2492
|
+
|
2493
|
+
# EffectFeedback返回参数结构体
|
2494
|
+
class EffectFeedbackResponse < TencentCloud::Common::AbstractModel
|
2495
|
+
# @param Data: 业务出参。
|
2496
|
+
# @type Data: :class:`Tencentcloud::Trp.v20210515.models.OutputAuthorizedTransfer`
|
2497
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2498
|
+
# @type RequestId: String
|
2499
|
+
|
2500
|
+
attr_accessor :Data, :RequestId
|
2501
|
+
|
2502
|
+
def initialize(data=nil, requestid=nil)
|
2503
|
+
@Data = data
|
2504
|
+
@RequestId = requestid
|
2505
|
+
end
|
2506
|
+
|
2507
|
+
def deserialize(params)
|
2508
|
+
unless params['Data'].nil?
|
2509
|
+
@Data = OutputAuthorizedTransfer.new
|
2510
|
+
@Data.deserialize(params['Data'])
|
2511
|
+
end
|
2512
|
+
@RequestId = params['RequestId']
|
2513
|
+
end
|
2514
|
+
end
|
2515
|
+
|
2389
2516
|
# 预留字段
|
2390
2517
|
class Ext < TencentCloud::Common::AbstractModel
|
2391
2518
|
|
@@ -2397,6 +2524,39 @@ module TencentCloud
|
|
2397
2524
|
end
|
2398
2525
|
end
|
2399
2526
|
|
2527
|
+
# 业务加密入参
|
2528
|
+
class InputEncryptData < TencentCloud::Common::AbstractModel
|
2529
|
+
# @param EncryptMethod: 加密方式,0:AES加密;
|
2530
|
+
# @type EncryptMethod: Integer
|
2531
|
+
# @param EncryptMode: 加密算法中的块处理模式,1:CBC模式; 目前只支持CBC模式
|
2532
|
+
# @type EncryptMode: Integer
|
2533
|
+
# @param PaddingType: 填充模式,0:ZeroPadding;1:PKCS5Padding;2:
|
2534
|
+
# PKCS7Padding。
|
2535
|
+
# @type PaddingType: Integer
|
2536
|
+
# @param EncryptData: 加密数据,将AuthorizedData结构体数组(数组最大长度不超过20)序列化成JSON字符串,对得到的字符串加密并填充到该字段。
|
2537
|
+
# @type EncryptData: String
|
2538
|
+
# @param IsAuthorized: 用户是否授权,本接口取值:1,已授权。
|
2539
|
+
# @type IsAuthorized: Integer
|
2540
|
+
|
2541
|
+
attr_accessor :EncryptMethod, :EncryptMode, :PaddingType, :EncryptData, :IsAuthorized
|
2542
|
+
|
2543
|
+
def initialize(encryptmethod=nil, encryptmode=nil, paddingtype=nil, encryptdata=nil, isauthorized=nil)
|
2544
|
+
@EncryptMethod = encryptmethod
|
2545
|
+
@EncryptMode = encryptmode
|
2546
|
+
@PaddingType = paddingtype
|
2547
|
+
@EncryptData = encryptdata
|
2548
|
+
@IsAuthorized = isauthorized
|
2549
|
+
end
|
2550
|
+
|
2551
|
+
def deserialize(params)
|
2552
|
+
@EncryptMethod = params['EncryptMethod']
|
2553
|
+
@EncryptMode = params['EncryptMode']
|
2554
|
+
@PaddingType = params['PaddingType']
|
2555
|
+
@EncryptData = params['EncryptData']
|
2556
|
+
@IsAuthorized = params['IsAuthorized']
|
2557
|
+
end
|
2558
|
+
end
|
2559
|
+
|
2400
2560
|
# 通用调度任务
|
2401
2561
|
class Job < TencentCloud::Common::AbstractModel
|
2402
2562
|
# @param JobId: 调度ID
|
@@ -3011,6 +3171,33 @@ module TencentCloud
|
|
3011
3171
|
end
|
3012
3172
|
end
|
3013
3173
|
|
3174
|
+
# 业务出参
|
3175
|
+
class OutputAuthorizedTransfer < TencentCloud::Common::AbstractModel
|
3176
|
+
# @param Code: 推送状态,0表示成功。
|
3177
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3178
|
+
# @type Code: Integer
|
3179
|
+
# @param Message: 错误码。
|
3180
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3181
|
+
# @type Message: String
|
3182
|
+
# @param Value: 错误信息描述。
|
3183
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3184
|
+
# @type Value: String
|
3185
|
+
|
3186
|
+
attr_accessor :Code, :Message, :Value
|
3187
|
+
|
3188
|
+
def initialize(code=nil, message=nil, value=nil)
|
3189
|
+
@Code = code
|
3190
|
+
@Message = message
|
3191
|
+
@Value = value
|
3192
|
+
end
|
3193
|
+
|
3194
|
+
def deserialize(params)
|
3195
|
+
@Code = params['Code']
|
3196
|
+
@Message = params['Message']
|
3197
|
+
@Value = params['Value']
|
3198
|
+
end
|
3199
|
+
end
|
3200
|
+
|
3014
3201
|
# 层级码配置
|
3015
3202
|
class PackSpec < TencentCloud::Common::AbstractModel
|
3016
3203
|
# @param Level: 层级
|
@@ -3232,6 +3419,48 @@ module TencentCloud
|
|
3232
3419
|
end
|
3233
3420
|
end
|
3234
3421
|
|
3422
|
+
# ReportBatchCallbackStatus请求参数结构体
|
3423
|
+
class ReportBatchCallbackStatusRequest < TencentCloud::Common::AbstractModel
|
3424
|
+
# @param BusinessSecurityData: 业务加密入参。
|
3425
|
+
# @type BusinessSecurityData: :class:`Tencentcloud::Trp.v20210515.models.InputEncryptData`
|
3426
|
+
|
3427
|
+
attr_accessor :BusinessSecurityData
|
3428
|
+
|
3429
|
+
def initialize(businesssecuritydata=nil)
|
3430
|
+
@BusinessSecurityData = businesssecuritydata
|
3431
|
+
end
|
3432
|
+
|
3433
|
+
def deserialize(params)
|
3434
|
+
unless params['BusinessSecurityData'].nil?
|
3435
|
+
@BusinessSecurityData = InputEncryptData.new
|
3436
|
+
@BusinessSecurityData.deserialize(params['BusinessSecurityData'])
|
3437
|
+
end
|
3438
|
+
end
|
3439
|
+
end
|
3440
|
+
|
3441
|
+
# ReportBatchCallbackStatus返回参数结构体
|
3442
|
+
class ReportBatchCallbackStatusResponse < TencentCloud::Common::AbstractModel
|
3443
|
+
# @param Data: 业务出参。
|
3444
|
+
# @type Data: :class:`Tencentcloud::Trp.v20210515.models.OutputAuthorizedTransfer`
|
3445
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3446
|
+
# @type RequestId: String
|
3447
|
+
|
3448
|
+
attr_accessor :Data, :RequestId
|
3449
|
+
|
3450
|
+
def initialize(data=nil, requestid=nil)
|
3451
|
+
@Data = data
|
3452
|
+
@RequestId = requestid
|
3453
|
+
end
|
3454
|
+
|
3455
|
+
def deserialize(params)
|
3456
|
+
unless params['Data'].nil?
|
3457
|
+
@Data = OutputAuthorizedTransfer.new
|
3458
|
+
@Data.deserialize(params['Data'])
|
3459
|
+
end
|
3460
|
+
@RequestId = params['RequestId']
|
3461
|
+
end
|
3462
|
+
end
|
3463
|
+
|
3235
3464
|
# 扫码明细
|
3236
3465
|
class ScanLog < TencentCloud::Common::AbstractModel
|
3237
3466
|
# @param LogId: 行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.553
|
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-04-
|
11
|
+
date: 2023-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|