tencentcloud-sdk-trp 3.0.466 → 3.0.467

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: 029ea6a188618c749c8835b49ebd71d234e6f092
4
- data.tar.gz: 4989d9e945fe574cca56e37eb03fe56984dbb74d
3
+ metadata.gz: 1eda6283f16564326621bcdefea58e873ccd0cfc
4
+ data.tar.gz: a236aca4deba92112ca9ec4ea0503a11bfe0efe7
5
5
  SHA512:
6
- metadata.gz: 2262099cb118b3f687689b4fd232ed88c1cd2bdcd06745f2e3b2460d209371b92e9b12ca4ffcf69f8461f51ed98c04ca1dbe68bcf9e0c19156ff250bea51a841
7
- data.tar.gz: e7bd9d5b132f11e7c239d4a476cf19b33b942d1f28ee028974e30b14c02ae706c50f068681a4b3b32d9e334b8ba8292686af855e61bbf939dff90a83c833b4fc
6
+ metadata.gz: 5c058bb165dbd3f36807fe0cd438d9299d567f852df4bed191834321286863eea524017ca8dae05671ba309061af75748053363b89f960056a7f4c0a389402fe
7
+ data.tar.gz: b5411a553eaa93a1decc19dfbce8e7a72e2b5850a033a1686ad7b4a1e7346dfd81f4fc3fd11c357981b55ad1937554178f9c41fbacb7e1e77b410d0da8b7517e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.466
1
+ 3.0.467
@@ -533,6 +533,30 @@ module TencentCloud
533
533
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
534
534
  end
535
535
 
536
+ # 查询渠道商下属企业额度使用情况
537
+
538
+ # @param request: Request instance for DescribeCorpQuotas.
539
+ # @type request: :class:`Tencentcloud::trp::V20210515::DescribeCorpQuotasRequest`
540
+ # @rtype: :class:`Tencentcloud::trp::V20210515::DescribeCorpQuotasResponse`
541
+ def DescribeCorpQuotas(request)
542
+ body = send_request('DescribeCorpQuotas', request.serialize)
543
+ response = JSON.parse(body)
544
+ if response['Response'].key?('Error') == false
545
+ model = DescribeCorpQuotasResponse.new
546
+ model.deserialize(response['Response'])
547
+ model
548
+ else
549
+ code = response['Response']['Error']['Code']
550
+ message = response['Response']['Error']['Message']
551
+ reqid = response['Response']['RequestId']
552
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
553
+ end
554
+ rescue TencentCloud::Common::TencentCloudSDKException => e
555
+ raise e
556
+ rescue StandardError => e
557
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
558
+ end
559
+
536
560
  # 查自定义码规则
537
561
 
538
562
  # @param request: Request instance for DescribeCustomRuleById.
@@ -318,6 +318,40 @@ module TencentCloud
318
318
  end
319
319
  end
320
320
 
321
+ # 渠道商的子企业额度使用情况
322
+ class CorpQuota < TencentCloud::Common::AbstractModel
323
+ # @param CorpId: 企业ID
324
+ # @type CorpId: Integer
325
+ # @param CorpName: 企业名称
326
+ # @type CorpName: String
327
+ # @param Quota: 额度
328
+ # @type Quota: :class:`Tencentcloud::Trp.v20210515.models.Quota`
329
+ # @param UsageQuota: 额度使用量
330
+ # @type UsageQuota: :class:`Tencentcloud::Trp.v20210515.models.UsageQuota`
331
+
332
+ attr_accessor :CorpId, :CorpName, :Quota, :UsageQuota
333
+
334
+ def initialize(corpid=nil, corpname=nil, quota=nil, usagequota=nil)
335
+ @CorpId = corpid
336
+ @CorpName = corpname
337
+ @Quota = quota
338
+ @UsageQuota = usagequota
339
+ end
340
+
341
+ def deserialize(params)
342
+ @CorpId = params['CorpId']
343
+ @CorpName = params['CorpName']
344
+ unless params['Quota'].nil?
345
+ @Quota = Quota.new
346
+ @Quota.deserialize(params['Quota'])
347
+ end
348
+ unless params['UsageQuota'].nil?
349
+ @UsageQuota = UsageQuota.new
350
+ @UsageQuota.deserialize(params['UsageQuota'])
351
+ end
352
+ end
353
+ end
354
+
321
355
  # CreateCodeBatch请求参数结构体
322
356
  class CreateCodeBatchRequest < TencentCloud::Common::AbstractModel
323
357
  # @param CorpId: 企业ID
@@ -1557,6 +1591,67 @@ module TencentCloud
1557
1591
  end
1558
1592
  end
1559
1593
 
1594
+ # DescribeCorpQuotas请求参数结构体
1595
+ class DescribeCorpQuotasRequest < TencentCloud::Common::AbstractModel
1596
+ # @param AgentId: 渠道商ID,不要传
1597
+ # @type AgentId: Integer
1598
+ # @param PageNumber: 页数
1599
+ # @type PageNumber: Integer
1600
+ # @param PageSize: 每页数量
1601
+ # @type PageSize: Integer
1602
+ # @param Keyword: 搜索企业ID
1603
+ # @type Keyword: String
1604
+
1605
+ attr_accessor :AgentId, :PageNumber, :PageSize, :Keyword
1606
+
1607
+ def initialize(agentid=nil, pagenumber=nil, pagesize=nil, keyword=nil)
1608
+ @AgentId = agentid
1609
+ @PageNumber = pagenumber
1610
+ @PageSize = pagesize
1611
+ @Keyword = keyword
1612
+ end
1613
+
1614
+ def deserialize(params)
1615
+ @AgentId = params['AgentId']
1616
+ @PageNumber = params['PageNumber']
1617
+ @PageSize = params['PageSize']
1618
+ @Keyword = params['Keyword']
1619
+ end
1620
+ end
1621
+
1622
+ # DescribeCorpQuotas返回参数结构体
1623
+ class DescribeCorpQuotasResponse < TencentCloud::Common::AbstractModel
1624
+ # @param CorpQuotas: 子企业额度使用情况
1625
+ # 注意:此字段可能返回 null,表示取不到有效值。
1626
+ # @type CorpQuotas: Array
1627
+ # @param Total: 记录总数量
1628
+ # 注意:此字段可能返回 null,表示取不到有效值。
1629
+ # @type Total: Integer
1630
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1631
+ # @type RequestId: String
1632
+
1633
+ attr_accessor :CorpQuotas, :Total, :RequestId
1634
+
1635
+ def initialize(corpquotas=nil, total=nil, requestid=nil)
1636
+ @CorpQuotas = corpquotas
1637
+ @Total = total
1638
+ @RequestId = requestid
1639
+ end
1640
+
1641
+ def deserialize(params)
1642
+ unless params['CorpQuotas'].nil?
1643
+ @CorpQuotas = []
1644
+ params['CorpQuotas'].each do |i|
1645
+ corpquota_tmp = CorpQuota.new
1646
+ corpquota_tmp.deserialize(i)
1647
+ @CorpQuotas << corpquota_tmp
1648
+ end
1649
+ end
1650
+ @Total = params['Total']
1651
+ @RequestId = params['RequestId']
1652
+ end
1653
+ end
1654
+
1560
1655
  # DescribeCustomRuleById请求参数结构体
1561
1656
  class DescribeCustomRuleByIdRequest < TencentCloud::Common::AbstractModel
1562
1657
  # @param CustomId: 码规则ID
@@ -2858,6 +2953,83 @@ module TencentCloud
2858
2953
  end
2859
2954
  end
2860
2955
 
2956
+ # 企业配额信息
2957
+ class Quota < TencentCloud::Common::AbstractModel
2958
+ # @param StartTime: 服务开始时间
2959
+ # 注意:此字段可能返回 null,表示取不到有效值。
2960
+ # @type StartTime: String
2961
+ # @param EndTime: 服务结束时间
2962
+ # 注意:此字段可能返回 null,表示取不到有效值。
2963
+ # @type EndTime: String
2964
+ # @param QuotaId: 配额ID
2965
+ # 注意:此字段可能返回 null,表示取不到有效值。
2966
+ # @type QuotaId: Integer
2967
+ # @param CorpId: 企业ID
2968
+ # 注意:此字段可能返回 null,表示取不到有效值。
2969
+ # @type CorpId: Integer
2970
+ # @param Services: 开通服务
2971
+ # 注意:此字段可能返回 null,表示取不到有效值。
2972
+ # @type Services: Array
2973
+ # @param FactoryQuota: 工厂配额
2974
+ # 注意:此字段可能返回 null,表示取不到有效值。
2975
+ # @type FactoryQuota: Integer
2976
+ # @param ItemQuota: 产品配额
2977
+ # 注意:此字段可能返回 null,表示取不到有效值。
2978
+ # @type ItemQuota: Integer
2979
+ # @param TrackQuota: 溯源码配额
2980
+ # 注意:此字段可能返回 null,表示取不到有效值。
2981
+ # @type TrackQuota: Integer
2982
+ # @param SaleQuota: 销售码配额
2983
+ # 注意:此字段可能返回 null,表示取不到有效值。
2984
+ # @type SaleQuota: Integer
2985
+ # @param ChainQuota: 上链配额
2986
+ # 注意:此字段可能返回 null,表示取不到有效值。
2987
+ # @type ChainQuota: Integer
2988
+ # @param RiskQuota: 风控配额
2989
+ # 注意:此字段可能返回 null,表示取不到有效值。
2990
+ # @type RiskQuota: Integer
2991
+ # @param TrackType: 溯源类型
2992
+ # 注意:此字段可能返回 null,表示取不到有效值。
2993
+ # @type TrackType: Integer
2994
+ # @param Version: 开通版本 basic standard enterprise
2995
+ # 注意:此字段可能返回 null,表示取不到有效值。
2996
+ # @type Version: String
2997
+
2998
+ attr_accessor :StartTime, :EndTime, :QuotaId, :CorpId, :Services, :FactoryQuota, :ItemQuota, :TrackQuota, :SaleQuota, :ChainQuota, :RiskQuota, :TrackType, :Version
2999
+
3000
+ def initialize(starttime=nil, endtime=nil, quotaid=nil, corpid=nil, services=nil, factoryquota=nil, itemquota=nil, trackquota=nil, salequota=nil, chainquota=nil, riskquota=nil, tracktype=nil, version=nil)
3001
+ @StartTime = starttime
3002
+ @EndTime = endtime
3003
+ @QuotaId = quotaid
3004
+ @CorpId = corpid
3005
+ @Services = services
3006
+ @FactoryQuota = factoryquota
3007
+ @ItemQuota = itemquota
3008
+ @TrackQuota = trackquota
3009
+ @SaleQuota = salequota
3010
+ @ChainQuota = chainquota
3011
+ @RiskQuota = riskquota
3012
+ @TrackType = tracktype
3013
+ @Version = version
3014
+ end
3015
+
3016
+ def deserialize(params)
3017
+ @StartTime = params['StartTime']
3018
+ @EndTime = params['EndTime']
3019
+ @QuotaId = params['QuotaId']
3020
+ @CorpId = params['CorpId']
3021
+ @Services = params['Services']
3022
+ @FactoryQuota = params['FactoryQuota']
3023
+ @ItemQuota = params['ItemQuota']
3024
+ @TrackQuota = params['TrackQuota']
3025
+ @SaleQuota = params['SaleQuota']
3026
+ @ChainQuota = params['ChainQuota']
3027
+ @RiskQuota = params['RiskQuota']
3028
+ @TrackType = params['TrackType']
3029
+ @Version = params['Version']
3030
+ end
3031
+ end
3032
+
2861
3033
  # 溯源码
2862
3034
  class TraceCode < TencentCloud::Common::AbstractModel
2863
3035
  # @param Code: 二维码
@@ -3075,6 +3247,58 @@ module TencentCloud
3075
3247
  end
3076
3248
  end
3077
3249
 
3250
+ # 付费信息使用量
3251
+ class UsageQuota < TencentCloud::Common::AbstractModel
3252
+ # @param CorpId: 企业ID
3253
+ # 注意:此字段可能返回 null,表示取不到有效值。
3254
+ # @type CorpId: Integer
3255
+ # @param FactoryCnt: 商户配额
3256
+ # 注意:此字段可能返回 null,表示取不到有效值。
3257
+ # @type FactoryCnt: Integer
3258
+ # @param ItemCnt: 商品数量
3259
+ # 注意:此字段可能返回 null,表示取不到有效值。
3260
+ # @type ItemCnt: Integer
3261
+ # @param TrackCnt: 溯源码量
3262
+ # 注意:此字段可能返回 null,表示取不到有效值。
3263
+ # @type TrackCnt: Integer
3264
+ # @param SaleCnt: 营销码额度
3265
+ # 注意:此字段可能返回 null,表示取不到有效值。
3266
+ # @type SaleCnt: Integer
3267
+ # @param ChainCnt: 区块链上链次数
3268
+ # 注意:此字段可能返回 null,表示取不到有效值。
3269
+ # @type ChainCnt: Integer
3270
+ # @param RiskCnt: 营销风控次数
3271
+ # 注意:此字段可能返回 null,表示取不到有效值。
3272
+ # @type RiskCnt: Integer
3273
+ # @param UpdateTime: 时间
3274
+ # 注意:此字段可能返回 null,表示取不到有效值。
3275
+ # @type UpdateTime: String
3276
+
3277
+ attr_accessor :CorpId, :FactoryCnt, :ItemCnt, :TrackCnt, :SaleCnt, :ChainCnt, :RiskCnt, :UpdateTime
3278
+
3279
+ def initialize(corpid=nil, factorycnt=nil, itemcnt=nil, trackcnt=nil, salecnt=nil, chaincnt=nil, riskcnt=nil, updatetime=nil)
3280
+ @CorpId = corpid
3281
+ @FactoryCnt = factorycnt
3282
+ @ItemCnt = itemcnt
3283
+ @TrackCnt = trackcnt
3284
+ @SaleCnt = salecnt
3285
+ @ChainCnt = chaincnt
3286
+ @RiskCnt = riskcnt
3287
+ @UpdateTime = updatetime
3288
+ end
3289
+
3290
+ def deserialize(params)
3291
+ @CorpId = params['CorpId']
3292
+ @FactoryCnt = params['FactoryCnt']
3293
+ @ItemCnt = params['ItemCnt']
3294
+ @TrackCnt = params['TrackCnt']
3295
+ @SaleCnt = params['SaleCnt']
3296
+ @ChainCnt = params['ChainCnt']
3297
+ @RiskCnt = params['RiskCnt']
3298
+ @UpdateTime = params['UpdateTime']
3299
+ end
3300
+ end
3301
+
3078
3302
  end
3079
3303
  end
3080
3304
  end
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.466
4
+ version: 3.0.467
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-06 00:00:00.000000000 Z
11
+ date: 2022-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common