tencentcloud-sdk-billing 3.0.666 → 3.0.667

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: 29e70e5a9c6460d572ab0cdb43b48c92a90dd33e
4
- data.tar.gz: 20475012c9374d8a616f916257a1198fa5604c91
3
+ metadata.gz: 0ad9675f66c3099218e1bb7edcaa483a0f113d87
4
+ data.tar.gz: 11e76db8127d02b2fc975075563f3c8c8ab4e62b
5
5
  SHA512:
6
- metadata.gz: 79cfd439b7070186642fde11d77e5a8bfaf4de698a423c39ca9eebd31f35d975ac50c91e701a0a7b8a2afa7ca2efa56b591af505c2b392cd556db15ea83777dd
7
- data.tar.gz: 62e7e4f0014c001b41a2938e68c548b4244afdd95c036fa6372d7e2bbc1c8ccfd8f9aef8f839b71defe79b8f0b943033aacd6461d308d55c9d8a569ea301cf15
6
+ metadata.gz: 31aff3d9657141141d080fba655c0329b9874059852652dd39ad954c7cd351005804e28841d67e1994a73ab669d8726ca095447daafb06b1eeb1901719320b7c
7
+ data.tar.gz: ac886e019b2cd73ebf923410caf42076017f6a0d26f88d3eea45c77da7b6c67e78791cdadd547cdac03d9b464c0f13932c75271f2b33853a14f2317de8e436c1
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.666
1
+ 3.0.667
@@ -101,7 +101,7 @@ module TencentCloud
101
101
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
102
  end
103
103
 
104
- # 查询账单明细数据。
104
+ # 获取账单明细数据。
105
105
  # 注意事项:
106
106
  # 1.在请求接口时,由于网络不稳定或其它异常,可能会导致请求失败。如果您遇到这种情况,我们建议您在接口请求失败时,手动发起重试操作,这样可以更好地确保您的接口请求能够成功执行。
107
107
  # 2.对于账单明细数据量级很大(例如每月账单明细量级超过20w)的客户,通过 API 调用账单数据效率较低,建议您开通账单数据存储功能,通过存储桶中获取账单文件进行分析。[账单存储至COS桶](https://cloud.tencent.com/document/product/555/61275)
@@ -128,6 +128,55 @@ module TencentCloud
128
128
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
129
129
  end
130
130
 
131
+ # 成员账号获取管理账号代付账单(费用明细)。
132
+ # 注意事项:在请求接口时,由于网络不稳定或其它异常,可能会导致请求失败。如果您遇到这种情况,我们建议您在接口请求失败时,手动发起重试操作,这样可以更好地确保您的接口请求能够成功执行。
133
+
134
+ # @param request: Request instance for DescribeBillDetailForOrganization.
135
+ # @type request: :class:`Tencentcloud::billing::V20180709::DescribeBillDetailForOrganizationRequest`
136
+ # @rtype: :class:`Tencentcloud::billing::V20180709::DescribeBillDetailForOrganizationResponse`
137
+ def DescribeBillDetailForOrganization(request)
138
+ body = send_request('DescribeBillDetailForOrganization', request.serialize)
139
+ response = JSON.parse(body)
140
+ if response['Response'].key?('Error') == false
141
+ model = DescribeBillDetailForOrganizationResponse.new
142
+ model.deserialize(response['Response'])
143
+ model
144
+ else
145
+ code = response['Response']['Error']['Code']
146
+ message = response['Response']['Error']['Message']
147
+ reqid = response['Response']['RequestId']
148
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
149
+ end
150
+ rescue TencentCloud::Common::TencentCloudSDKException => e
151
+ raise e
152
+ rescue StandardError => e
153
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
154
+ end
155
+
156
+ # 该接口支持通过传参,获取L0-PDF、L1-汇总、L2-资源、L3-明细、账单包、五类账单文件下载链接
157
+
158
+ # @param request: Request instance for DescribeBillDownloadUrl.
159
+ # @type request: :class:`Tencentcloud::billing::V20180709::DescribeBillDownloadUrlRequest`
160
+ # @rtype: :class:`Tencentcloud::billing::V20180709::DescribeBillDownloadUrlResponse`
161
+ def DescribeBillDownloadUrl(request)
162
+ body = send_request('DescribeBillDownloadUrl', request.serialize)
163
+ response = JSON.parse(body)
164
+ if response['Response'].key?('Error') == false
165
+ model = DescribeBillDownloadUrlResponse.new
166
+ model.deserialize(response['Response'])
167
+ model
168
+ else
169
+ code = response['Response']['Error']['Code']
170
+ message = response['Response']['Error']['Message']
171
+ reqid = response['Response']['RequestId']
172
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
173
+ end
174
+ rescue TencentCloud::Common::TencentCloudSDKException => e
175
+ raise e
176
+ rescue StandardError => e
177
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
178
+ end
179
+
131
180
  # 获取收支明细列表,支持翻页和参数过滤
132
181
 
133
182
  # @param request: Request instance for DescribeBillList.
@@ -152,7 +201,7 @@ module TencentCloud
152
201
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
153
202
  end
154
203
 
155
- # 查询账单资源汇总数据
204
+ # 获取账单资源汇总数据
156
205
 
157
206
  # @param request: Request instance for DescribeBillResourceSummary.
158
207
  # @type request: :class:`Tencentcloud::billing::V20180709::DescribeBillResourceSummaryRequest`
@@ -176,6 +225,30 @@ module TencentCloud
176
225
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
177
226
  end
178
227
 
228
+ # 成员账号获取管理账号代付账单(按资源汇总)
229
+
230
+ # @param request: Request instance for DescribeBillResourceSummaryForOrganization.
231
+ # @type request: :class:`Tencentcloud::billing::V20180709::DescribeBillResourceSummaryForOrganizationRequest`
232
+ # @rtype: :class:`Tencentcloud::billing::V20180709::DescribeBillResourceSummaryForOrganizationResponse`
233
+ def DescribeBillResourceSummaryForOrganization(request)
234
+ body = send_request('DescribeBillResourceSummaryForOrganization', request.serialize)
235
+ response = JSON.parse(body)
236
+ if response['Response'].key?('Error') == false
237
+ model = DescribeBillResourceSummaryForOrganizationResponse.new
238
+ model.deserialize(response['Response'])
239
+ model
240
+ else
241
+ code = response['Response']['Error']['Code']
242
+ message = response['Response']['Error']['Message']
243
+ reqid = response['Response']['RequestId']
244
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
245
+ end
246
+ rescue TencentCloud::Common::TencentCloudSDKException => e
247
+ raise e
248
+ rescue StandardError => e
249
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
250
+ end
251
+
179
252
  # 该接口支持通过传参,按照产品、项目、地域、计费模式和标签五个维度获取账单费用明细。
180
253
 
181
254
  # @param request: Request instance for DescribeBillSummary.
@@ -320,6 +393,30 @@ module TencentCloud
320
393
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
321
394
  end
322
395
 
396
+ # 该接口支持通过传参,按照产品、项目、地域、计费模式和标签五个维度获取账单费用明细。
397
+
398
+ # @param request: Request instance for DescribeBillSummaryForOrganization.
399
+ # @type request: :class:`Tencentcloud::billing::V20180709::DescribeBillSummaryForOrganizationRequest`
400
+ # @rtype: :class:`Tencentcloud::billing::V20180709::DescribeBillSummaryForOrganizationResponse`
401
+ def DescribeBillSummaryForOrganization(request)
402
+ body = send_request('DescribeBillSummaryForOrganization', request.serialize)
403
+ response = JSON.parse(body)
404
+ if response['Response'].key?('Error') == false
405
+ model = DescribeBillSummaryForOrganizationResponse.new
406
+ model.deserialize(response['Response'])
407
+ model
408
+ else
409
+ code = response['Response']['Error']['Code']
410
+ message = response['Response']['Error']['Message']
411
+ reqid = response['Response']['RequestId']
412
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
413
+ end
414
+ rescue TencentCloud::Common::TencentCloudSDKException => e
415
+ raise e
416
+ rescue StandardError => e
417
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
418
+ end
419
+
323
420
  # 查询消耗明细
324
421
 
325
422
  # @param request: Request instance for DescribeCostDetail.
@@ -462,6 +462,178 @@ module TencentCloud
462
462
  end
463
463
  end
464
464
 
465
+ # 经销账单资源汇总数据对象
466
+ class BillDistributionResourceSummary < TencentCloud::Common::AbstractModel
467
+ # @param BusinessCodeName: 产品名称:用户所采购的各类云产品,例如:云服务器 CVM
468
+ # @type BusinessCodeName: String
469
+ # @param ProductCodeName: 子产品名称:用户采购的具体产品细分类型,例如:云服务器 CVM-标准型 S1
470
+ # @type ProductCodeName: String
471
+ # @param PayModeName: 计费模式:资源的计费模式,区分为包年包月和按量计费
472
+ # @type PayModeName: String
473
+ # @param ProjectName: 项目名称:资源归属的项目,用户在控制台给资源自主分配项目,未分配则是默认项目
474
+ # @type ProjectName: String
475
+ # @param RegionName: 地域:资源所属地域,如华南地区(广州)
476
+ # @type RegionName: String
477
+ # @param ZoneName: 可用区:资源所属可用区,如广州三区
478
+ # @type ZoneName: String
479
+ # @param ResourceId: 资源 ID:账单中出账对象 ID,不同产品因资源形态不同,资源内容不完全相同,如云服务器 CVM 为对应的实例 ID
480
+ # @type ResourceId: String
481
+ # @param ResourceName: 资源别名:用户在控制台为资源设置的名称,如果未设置,则默认为空
482
+ # @type ResourceName: String
483
+ # @param ActionTypeName: 交易类型:如包年包月新购、包年包月续费、按量计费扣费等类型
484
+ # @type ActionTypeName: String
485
+ # @param OrderId: 订单ID:包年包月计费模式下订购的订单号
486
+ # @type OrderId: String
487
+ # @param PayTime: 扣费时间:结算扣费时间
488
+ # @type PayTime: String
489
+ # @param FeeBeginTime: 开始使用时间:产品服务开始使用时间
490
+ # @type FeeBeginTime: String
491
+ # @param FeeEndTime: 结束使用时间:产品服务结束使用时间
492
+ # @type FeeEndTime: String
493
+ # @param ConfigDesc: 配置描述:该资源下的计费项名称和用量合并展示,仅在资源账单体现
494
+ # @type ConfigDesc: String
495
+ # @param ExtendField1: 扩展字段1:产品对应的扩展属性信息,仅在资源账单体现
496
+ # @type ExtendField1: String
497
+ # @param ExtendField2: 扩展字段2:产品对应的扩展属性信息,仅在资源账单体现
498
+ # @type ExtendField2: String
499
+ # @param TotalCost: 原价:原价 = 组件刊例价 * 组件用量 * 使用时长(如果客户享受一口价/合同价则默认不展示,退费类场景也默认不展示)
500
+ # @type TotalCost: String
501
+ # @param Discount: 折扣率:本资源享受的折扣率(如果客户享受一口价/合同价则默认不展示,退费场景也默认不展示)
502
+ # @type Discount: String
503
+ # @param ReduceType: 优惠类型
504
+ # @type ReduceType: String
505
+ # @param RealTotalCost: 优惠后总价
506
+ # @type RealTotalCost: String
507
+ # @param VoucherPayAmount: 优惠券支出:使用各类优惠券(如代金券、现金券等)支付的金额
508
+ # @type VoucherPayAmount: String
509
+ # @param CashPayAmount: 现金账户支出:通过现金账户支付的金额
510
+ # @type CashPayAmount: String
511
+ # @param IncentivePayAmount: 赠送账户支出:使用赠送金支付的金额
512
+ # @type IncentivePayAmount: String
513
+ # @param TransferPayAmount: 分成金账户支出:通过分成金账户支付的金额
514
+ # 注意:此字段可能返回 null,表示取不到有效值。
515
+ # @type TransferPayAmount: String
516
+ # @param ExtendField3: 扩展字段3:产品对应的扩展属性信息,仅在资源账单体现
517
+ # @type ExtendField3: String
518
+ # @param ExtendField4: 扩展字段4:产品对应的扩展属性信息,仅在资源账单体现
519
+ # @type ExtendField4: String
520
+ # @param ExtendField5: 扩展字段5:产品对应的扩展属性信息,仅在资源账单体现
521
+ # @type ExtendField5: String
522
+ # @param Tags: 标签信息
523
+ # 注意:此字段可能返回 null,表示取不到有效值。
524
+ # @type Tags: Array
525
+ # @param OwnerUin: 使用者UIN:实际使用资源的账号 ID
526
+ # @type OwnerUin: String
527
+ # @param OperateUin: 操作者UIN:操作者账号 ID(预付费资源下单或后付费操作开通资源账号的 ID 或者角色 ID )
528
+ # @type OperateUin: String
529
+ # @param BusinessCode: 产品编码
530
+ # @type BusinessCode: String
531
+ # @param ProductCode: 子产品编码
532
+ # @type ProductCode: String
533
+ # @param RegionId: 地域ID
534
+ # @type RegionId: Integer
535
+ # @param InstanceType: 实例类型:购买的产品服务对应的实例类型,包括资源包、RI、SP、竞价实例。正常的实例展示默认为不展示
536
+ # @type InstanceType: String
537
+ # @param OriginalCostWithRI: 预留实例抵扣组件原价:本产品或服务使用预留实例抵扣的组件原价金额
538
+ # @type OriginalCostWithRI: String
539
+ # @param SPDeduction: 节省计划抵扣金额(已废弃)
540
+ # @type SPDeduction: String
541
+ # @param OriginalCostWithSP: 节省计划抵扣组件原价:节省计划抵扣原价=节省计划包抵扣金额/节省计划抵扣率
542
+ # @type OriginalCostWithSP: String
543
+
544
+ attr_accessor :BusinessCodeName, :ProductCodeName, :PayModeName, :ProjectName, :RegionName, :ZoneName, :ResourceId, :ResourceName, :ActionTypeName, :OrderId, :PayTime, :FeeBeginTime, :FeeEndTime, :ConfigDesc, :ExtendField1, :ExtendField2, :TotalCost, :Discount, :ReduceType, :RealTotalCost, :VoucherPayAmount, :CashPayAmount, :IncentivePayAmount, :TransferPayAmount, :ExtendField3, :ExtendField4, :ExtendField5, :Tags, :OwnerUin, :OperateUin, :BusinessCode, :ProductCode, :RegionId, :InstanceType, :OriginalCostWithRI, :SPDeduction, :OriginalCostWithSP
545
+ extend Gem::Deprecate
546
+ deprecate :SPDeduction, :none, 2023, 9
547
+ deprecate :SPDeduction=, :none, 2023, 9
548
+
549
+ def initialize(businesscodename=nil, productcodename=nil, paymodename=nil, projectname=nil, regionname=nil, zonename=nil, resourceid=nil, resourcename=nil, actiontypename=nil, orderid=nil, paytime=nil, feebegintime=nil, feeendtime=nil, configdesc=nil, extendfield1=nil, extendfield2=nil, totalcost=nil, discount=nil, reducetype=nil, realtotalcost=nil, voucherpayamount=nil, cashpayamount=nil, incentivepayamount=nil, transferpayamount=nil, extendfield3=nil, extendfield4=nil, extendfield5=nil, tags=nil, owneruin=nil, operateuin=nil, businesscode=nil, productcode=nil, regionid=nil, instancetype=nil, originalcostwithri=nil, spdeduction=nil, originalcostwithsp=nil)
550
+ @BusinessCodeName = businesscodename
551
+ @ProductCodeName = productcodename
552
+ @PayModeName = paymodename
553
+ @ProjectName = projectname
554
+ @RegionName = regionname
555
+ @ZoneName = zonename
556
+ @ResourceId = resourceid
557
+ @ResourceName = resourcename
558
+ @ActionTypeName = actiontypename
559
+ @OrderId = orderid
560
+ @PayTime = paytime
561
+ @FeeBeginTime = feebegintime
562
+ @FeeEndTime = feeendtime
563
+ @ConfigDesc = configdesc
564
+ @ExtendField1 = extendfield1
565
+ @ExtendField2 = extendfield2
566
+ @TotalCost = totalcost
567
+ @Discount = discount
568
+ @ReduceType = reducetype
569
+ @RealTotalCost = realtotalcost
570
+ @VoucherPayAmount = voucherpayamount
571
+ @CashPayAmount = cashpayamount
572
+ @IncentivePayAmount = incentivepayamount
573
+ @TransferPayAmount = transferpayamount
574
+ @ExtendField3 = extendfield3
575
+ @ExtendField4 = extendfield4
576
+ @ExtendField5 = extendfield5
577
+ @Tags = tags
578
+ @OwnerUin = owneruin
579
+ @OperateUin = operateuin
580
+ @BusinessCode = businesscode
581
+ @ProductCode = productcode
582
+ @RegionId = regionid
583
+ @InstanceType = instancetype
584
+ @OriginalCostWithRI = originalcostwithri
585
+ @SPDeduction = spdeduction
586
+ @OriginalCostWithSP = originalcostwithsp
587
+ end
588
+
589
+ def deserialize(params)
590
+ @BusinessCodeName = params['BusinessCodeName']
591
+ @ProductCodeName = params['ProductCodeName']
592
+ @PayModeName = params['PayModeName']
593
+ @ProjectName = params['ProjectName']
594
+ @RegionName = params['RegionName']
595
+ @ZoneName = params['ZoneName']
596
+ @ResourceId = params['ResourceId']
597
+ @ResourceName = params['ResourceName']
598
+ @ActionTypeName = params['ActionTypeName']
599
+ @OrderId = params['OrderId']
600
+ @PayTime = params['PayTime']
601
+ @FeeBeginTime = params['FeeBeginTime']
602
+ @FeeEndTime = params['FeeEndTime']
603
+ @ConfigDesc = params['ConfigDesc']
604
+ @ExtendField1 = params['ExtendField1']
605
+ @ExtendField2 = params['ExtendField2']
606
+ @TotalCost = params['TotalCost']
607
+ @Discount = params['Discount']
608
+ @ReduceType = params['ReduceType']
609
+ @RealTotalCost = params['RealTotalCost']
610
+ @VoucherPayAmount = params['VoucherPayAmount']
611
+ @CashPayAmount = params['CashPayAmount']
612
+ @IncentivePayAmount = params['IncentivePayAmount']
613
+ @TransferPayAmount = params['TransferPayAmount']
614
+ @ExtendField3 = params['ExtendField3']
615
+ @ExtendField4 = params['ExtendField4']
616
+ @ExtendField5 = params['ExtendField5']
617
+ unless params['Tags'].nil?
618
+ @Tags = []
619
+ params['Tags'].each do |i|
620
+ billtaginfo_tmp = BillTagInfo.new
621
+ billtaginfo_tmp.deserialize(i)
622
+ @Tags << billtaginfo_tmp
623
+ end
624
+ end
625
+ @OwnerUin = params['OwnerUin']
626
+ @OperateUin = params['OperateUin']
627
+ @BusinessCode = params['BusinessCode']
628
+ @ProductCode = params['ProductCode']
629
+ @RegionId = params['RegionId']
630
+ @InstanceType = params['InstanceType']
631
+ @OriginalCostWithRI = params['OriginalCostWithRI']
632
+ @SPDeduction = params['SPDeduction']
633
+ @OriginalCostWithSP = params['OriginalCostWithSP']
634
+ end
635
+ end
636
+
465
637
  # 账单资源汇总数据对象
466
638
  class BillResourceSummary < TencentCloud::Common::AbstractModel
467
639
  # @param BusinessCodeName: 产品名称:用户所采购的各类云产品,例如:云服务器 CVM
@@ -1843,8 +2015,8 @@ module TencentCloud
1843
2015
  end
1844
2016
  end
1845
2017
 
1846
- # DescribeBillDetail请求参数结构体
1847
- class DescribeBillDetailRequest < TencentCloud::Common::AbstractModel
2018
+ # DescribeBillDetailForOrganization请求参数结构体
2019
+ class DescribeBillDetailForOrganizationRequest < TencentCloud::Common::AbstractModel
1848
2020
  # @param Offset: 分页偏移量,Offset=0表示第一页,如果Limit=100,则Offset=100表示第二页,Offset=200表示第三页,依次类推
1849
2021
  # @type Offset: Integer
1850
2022
  # @param Limit: 数量,最大值为100
@@ -1860,8 +2032,6 @@ module TencentCloud
1860
2032
  # @param NeedRecordNum: 是否需要访问列表的总记录数,用于前端分页
1861
2033
  # 1-表示需要, 0-表示不需要
1862
2034
  # @type NeedRecordNum: Integer
1863
- # @param ProductCode: 已废弃参数,未开放
1864
- # @type ProductCode: String
1865
2035
  # @param PayMode: 付费模式 prePay(表示包年包月)/postPay(表示按时按量)
1866
2036
  # @type PayMode: String
1867
2037
  # @param ResourceId: 查询指定资源信息
@@ -1903,12 +2073,10 @@ module TencentCloud
1903
2073
  # @type BusinessCode: String
1904
2074
  # @param Context: 上一次请求返回的上下文信息,翻页查询Month>=2023-05的月份的数据可加快查询速度,数据量10万级别以上的用户建议使用,查询速度可提升2~10倍
1905
2075
  # @type Context: String
1906
- # @param PayerUin: 支付者的账号 ID(账号 ID 是用户在腾讯云的唯一账号标识),默认查询本账号账单,如集团管理账号需查询成员账号自付的账单,该字段需入参成员账号UIN
1907
- # @type PayerUin: String
1908
2076
 
1909
- attr_accessor :Offset, :Limit, :PeriodType, :Month, :BeginTime, :EndTime, :NeedRecordNum, :ProductCode, :PayMode, :ResourceId, :ActionType, :ProjectId, :BusinessCode, :Context, :PayerUin
2077
+ attr_accessor :Offset, :Limit, :PeriodType, :Month, :BeginTime, :EndTime, :NeedRecordNum, :PayMode, :ResourceId, :ActionType, :ProjectId, :BusinessCode, :Context
1910
2078
 
1911
- def initialize(offset=nil, limit=nil, periodtype=nil, month=nil, begintime=nil, endtime=nil, needrecordnum=nil, productcode=nil, paymode=nil, resourceid=nil, actiontype=nil, projectid=nil, businesscode=nil, context=nil, payeruin=nil)
2079
+ def initialize(offset=nil, limit=nil, periodtype=nil, month=nil, begintime=nil, endtime=nil, needrecordnum=nil, paymode=nil, resourceid=nil, actiontype=nil, projectid=nil, businesscode=nil, context=nil)
1912
2080
  @Offset = offset
1913
2081
  @Limit = limit
1914
2082
  @PeriodType = periodtype
@@ -1916,14 +2084,12 @@ module TencentCloud
1916
2084
  @BeginTime = begintime
1917
2085
  @EndTime = endtime
1918
2086
  @NeedRecordNum = needrecordnum
1919
- @ProductCode = productcode
1920
2087
  @PayMode = paymode
1921
2088
  @ResourceId = resourceid
1922
2089
  @ActionType = actiontype
1923
2090
  @ProjectId = projectid
1924
2091
  @BusinessCode = businesscode
1925
2092
  @Context = context
1926
- @PayerUin = payeruin
1927
2093
  end
1928
2094
 
1929
2095
  def deserialize(params)
@@ -1934,19 +2100,17 @@ module TencentCloud
1934
2100
  @BeginTime = params['BeginTime']
1935
2101
  @EndTime = params['EndTime']
1936
2102
  @NeedRecordNum = params['NeedRecordNum']
1937
- @ProductCode = params['ProductCode']
1938
2103
  @PayMode = params['PayMode']
1939
2104
  @ResourceId = params['ResourceId']
1940
2105
  @ActionType = params['ActionType']
1941
2106
  @ProjectId = params['ProjectId']
1942
2107
  @BusinessCode = params['BusinessCode']
1943
2108
  @Context = params['Context']
1944
- @PayerUin = params['PayerUin']
1945
2109
  end
1946
2110
  end
1947
2111
 
1948
- # DescribeBillDetail返回参数结构体
1949
- class DescribeBillDetailResponse < TencentCloud::Common::AbstractModel
2112
+ # DescribeBillDetailForOrganization返回参数结构体
2113
+ class DescribeBillDetailForOrganizationResponse < TencentCloud::Common::AbstractModel
1950
2114
  # @param DetailSet: 详情列表
1951
2115
  # @type DetailSet: Array
1952
2116
  # @param Total: 总记录数,24小时缓存一次,可能比实际总记录数少
@@ -1971,9 +2135,9 @@ module TencentCloud
1971
2135
  unless params['DetailSet'].nil?
1972
2136
  @DetailSet = []
1973
2137
  params['DetailSet'].each do |i|
1974
- billdetail_tmp = BillDetail.new
1975
- billdetail_tmp.deserialize(i)
1976
- @DetailSet << billdetail_tmp
2138
+ distributionbilldetail_tmp = DistributionBillDetail.new
2139
+ distributionbilldetail_tmp.deserialize(i)
2140
+ @DetailSet << distributionbilldetail_tmp
1977
2141
  end
1978
2142
  end
1979
2143
  @Total = params['Total']
@@ -1982,75 +2146,270 @@ module TencentCloud
1982
2146
  end
1983
2147
  end
1984
2148
 
1985
- # DescribeBillList请求参数结构体
1986
- class DescribeBillListRequest < TencentCloud::Common::AbstractModel
1987
- # @param StartTime: 查询范围的起始时间(包含)时间格式 yyyy-MM-dd HH:mm:ss 开始时间和结束时间差值小于等于六个月
1988
- # @type StartTime: String
1989
- # @param EndTime: 查询范围的结束时间(包含)时间格式 yyyy-MM-dd HH:mm:ss ,开始时间和结束时间差值小于等于六个月
1990
- # @type EndTime: String
1991
- # @param Offset: 翻页偏移量,初始值为0
2149
+ # DescribeBillDetail请求参数结构体
2150
+ class DescribeBillDetailRequest < TencentCloud::Common::AbstractModel
2151
+ # @param Offset: 分页偏移量,Offset=0表示第一页,如果Limit=100,则Offset=100表示第二页,Offset=200表示第三页,依次类推
1992
2152
  # @type Offset: Integer
1993
- # @param Limit: 每页的限制数量
2153
+ # @param Limit: 数量,最大值为100
1994
2154
  # @type Limit: Integer
1995
- # @param PayType: 交易类型: all所有交易类型,recharge充值,return退款,unblock解冻,agentin资金转入,advanced垫付,cash提现,deduct扣费,block冻结,agentout资金转出,repay垫付回款,repayment还款(仅国际信用账户),adj_refund调增(仅国际信用账户),adj_deduct调减(仅国际信用账户)
1996
- # @type PayType: Array
1997
- # @param SubPayType: 扣费模式,
1998
- # 当所选的交易类型为扣费deduct时:
1999
- # all所有扣费类型;trade预付费支付;hour_h按量小时结;hour_d按量日结;hour_m按量月结;decompensate调账扣费;other第三方扣费;panshi 线下项目扣费;offline 线下产品扣费;
2000
-
2001
- # 当所选的交易类型为扣费recharge时:
2002
- # online 在线充值;bank-enterprice 银企直连;offline 线下充值;transfer 分成充值
2003
-
2004
- # 当所选的交易类型为扣费cash时:
2005
- # online 线上提现;offline 线下提现;panshi 赠送金清零
2006
-
2007
- # 当所选的交易类型为扣费advanced时:
2008
- # advanced 垫付充值
2009
-
2010
- # 当所选的交易类型为扣费repay时:
2011
- # panshi 垫付回款
2012
-
2013
- # 当所选的交易类型为扣费block时:
2014
- # other 第三方冻结;hour 按量冻结;month按月冻结
2015
-
2016
- # 当所选的交易类型为扣费return时:
2017
- # compensate 调账补偿;trade 预付费退款
2018
-
2019
- # 当所选的交易类型为扣费unblock时:
2020
- # other 第三方解冻;hour 按量解冻;month 按月解冻
2021
- # @type SubPayType: Array
2022
- # @param WithZeroAmount: 是否返回0元交易金额的交易项,取值:0-不返回,1-返回。不传该参数则不返回
2023
- # @type WithZeroAmount: Integer
2024
-
2025
- attr_accessor :StartTime, :EndTime, :Offset, :Limit, :PayType, :SubPayType, :WithZeroAmount
2026
-
2027
- def initialize(starttime=nil, endtime=nil, offset=nil, limit=nil, paytype=nil, subpaytype=nil, withzeroamount=nil)
2028
- @StartTime = starttime
2029
- @EndTime = endtime
2030
- @Offset = offset
2031
- @Limit = limit
2032
- @PayType = paytype
2033
- @SubPayType = subpaytype
2034
- @WithZeroAmount = withzeroamount
2035
- end
2036
-
2037
- def deserialize(params)
2038
- @StartTime = params['StartTime']
2039
- @EndTime = params['EndTime']
2040
- @Offset = params['Offset']
2041
- @Limit = params['Limit']
2042
- @PayType = params['PayType']
2043
- @SubPayType = params['SubPayType']
2044
- @WithZeroAmount = params['WithZeroAmount']
2045
- end
2046
- end
2047
-
2048
- # DescribeBillList返回参数结构体
2049
- class DescribeBillListResponse < TencentCloud::Common::AbstractModel
2050
- # @param TransactionList: 收支明细列表
2051
- # @type TransactionList: Array
2052
- # @param Total: 总条数
2053
- # @type Total: Integer
2155
+ # @param PeriodType: 周期类型,byUsedTime按计费周期/byPayTime按扣费周期。需要与费用中心该月份账单的周期保持一致。您可前往[账单概览](https://console.cloud.tencent.com/expense/bill/overview)页面顶部查看确认您的账单统计周期类型。
2156
+ # @type PeriodType: String
2157
+ # @param Month: 月份,格式为yyyy-mm,Month和BeginTime&EndTime必传一个,如果有传BeginTime&EndTime则Month字段无效。不能早于开通账单2.0的月份,最多可拉取18个月内的数据。
2158
+ # @type Month: String
2159
+ # @param BeginTime: 周期开始时间,格式为yyyy-mm-dd hh:ii:ss,Month和BeginTime&EndTime必传一个,如果有该字段则Month字段无效。BeginTime和EndTime必须一起传,且为相同月份,不支持跨月查询,查询结果是整月数据。不能早于开通账单2.0的月份,最多可拉取18个月内的数据。
2160
+ # @type BeginTime: String
2161
+ # @param EndTime: 周期结束时间,格式为yyyy-mm-dd hh:ii:ss,Month和BeginTime&EndTime必传一个,如果有该字段则Month字段无效。BeginTime和EndTime必须一起传,且为相同月份,不支持跨月查询,查询结果是整月数据。不能早于开通账单2.0的月份,最多可拉取18个月内的数据。
2162
+ # @type EndTime: String
2163
+ # @param NeedRecordNum: 是否需要访问列表的总记录数,用于前端分页
2164
+ # 1-表示需要, 0-表示不需要
2165
+ # @type NeedRecordNum: Integer
2166
+ # @param ProductCode: 已废弃参数,未开放
2167
+ # @type ProductCode: String
2168
+ # @param PayMode: 付费模式 prePay(表示包年包月)/postPay(表示按时按量)
2169
+ # @type PayMode: String
2170
+ # @param ResourceId: 查询指定资源信息
2171
+ # @type ResourceId: String
2172
+ # @param ActionType: 查询交易类型(请使用交易类型名称入参),入参示例枚举如下:
2173
+ # 包年包月新购
2174
+ # 包年包月续费
2175
+ # 包年包月配置变更
2176
+ # 包年包月退款
2177
+ # 按量计费扣费
2178
+ # 线下项目扣费
2179
+ # 线下产品扣费
2180
+ # 调账扣费
2181
+ # 调账补偿
2182
+ # 按量计费小时结
2183
+ # 按量计费日结
2184
+ # 按量计费月结
2185
+ # 竞价实例小时结
2186
+ # 线下项目调账补偿
2187
+ # 线下产品调账补偿
2188
+ # 优惠扣费
2189
+ # 优惠补偿
2190
+ # 按量计费迁入资源
2191
+ # 按量计费迁出资源
2192
+ # 包年包月迁入资源
2193
+ # 包年包月迁出资源
2194
+ # 预付费用
2195
+ # 小时费用
2196
+ # 预留实例退款
2197
+ # 按量计费冲正
2198
+ # 包年包月转按量
2199
+ # 保底扣款
2200
+ # 节省计划小时费用
2201
+ # @type ActionType: String
2202
+ # @param ProjectId: 项目ID:资源所属项目ID
2203
+ # @type ProjectId: Integer
2204
+ # @param BusinessCode: 产品名称代码
2205
+ # 备注:如需获取当月使用过的BusinessCode,请调用API:<a href="https://cloud.tencent.com/document/product/555/35761">获取产品汇总费用分布</a>
2206
+ # @type BusinessCode: String
2207
+ # @param Context: 上一次请求返回的上下文信息,翻页查询Month>=2023-05的月份的数据可加快查询速度,数据量10万级别以上的用户建议使用,查询速度可提升2~10倍
2208
+ # @type Context: String
2209
+ # @param PayerUin: 支付者的账号 ID(账号 ID 是用户在腾讯云的唯一账号标识),默认查询本账号账单,如集团管理账号需查询成员账号自付的账单,该字段需入参成员账号UIN
2210
+ # @type PayerUin: String
2211
+
2212
+ attr_accessor :Offset, :Limit, :PeriodType, :Month, :BeginTime, :EndTime, :NeedRecordNum, :ProductCode, :PayMode, :ResourceId, :ActionType, :ProjectId, :BusinessCode, :Context, :PayerUin
2213
+
2214
+ def initialize(offset=nil, limit=nil, periodtype=nil, month=nil, begintime=nil, endtime=nil, needrecordnum=nil, productcode=nil, paymode=nil, resourceid=nil, actiontype=nil, projectid=nil, businesscode=nil, context=nil, payeruin=nil)
2215
+ @Offset = offset
2216
+ @Limit = limit
2217
+ @PeriodType = periodtype
2218
+ @Month = month
2219
+ @BeginTime = begintime
2220
+ @EndTime = endtime
2221
+ @NeedRecordNum = needrecordnum
2222
+ @ProductCode = productcode
2223
+ @PayMode = paymode
2224
+ @ResourceId = resourceid
2225
+ @ActionType = actiontype
2226
+ @ProjectId = projectid
2227
+ @BusinessCode = businesscode
2228
+ @Context = context
2229
+ @PayerUin = payeruin
2230
+ end
2231
+
2232
+ def deserialize(params)
2233
+ @Offset = params['Offset']
2234
+ @Limit = params['Limit']
2235
+ @PeriodType = params['PeriodType']
2236
+ @Month = params['Month']
2237
+ @BeginTime = params['BeginTime']
2238
+ @EndTime = params['EndTime']
2239
+ @NeedRecordNum = params['NeedRecordNum']
2240
+ @ProductCode = params['ProductCode']
2241
+ @PayMode = params['PayMode']
2242
+ @ResourceId = params['ResourceId']
2243
+ @ActionType = params['ActionType']
2244
+ @ProjectId = params['ProjectId']
2245
+ @BusinessCode = params['BusinessCode']
2246
+ @Context = params['Context']
2247
+ @PayerUin = params['PayerUin']
2248
+ end
2249
+ end
2250
+
2251
+ # DescribeBillDetail返回参数结构体
2252
+ class DescribeBillDetailResponse < TencentCloud::Common::AbstractModel
2253
+ # @param DetailSet: 详情列表
2254
+ # @type DetailSet: Array
2255
+ # @param Total: 总记录数,24小时缓存一次,可能比实际总记录数少
2256
+ # 注意:此字段可能返回 null,表示取不到有效值。
2257
+ # @type Total: Integer
2258
+ # @param Context: 本次请求的上下文信息,可用于下一次请求的请求参数中,加快查询速度
2259
+ # 注意:此字段可能返回 null,表示取不到有效值。
2260
+ # @type Context: String
2261
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2262
+ # @type RequestId: String
2263
+
2264
+ attr_accessor :DetailSet, :Total, :Context, :RequestId
2265
+
2266
+ def initialize(detailset=nil, total=nil, context=nil, requestid=nil)
2267
+ @DetailSet = detailset
2268
+ @Total = total
2269
+ @Context = context
2270
+ @RequestId = requestid
2271
+ end
2272
+
2273
+ def deserialize(params)
2274
+ unless params['DetailSet'].nil?
2275
+ @DetailSet = []
2276
+ params['DetailSet'].each do |i|
2277
+ billdetail_tmp = BillDetail.new
2278
+ billdetail_tmp.deserialize(i)
2279
+ @DetailSet << billdetail_tmp
2280
+ end
2281
+ end
2282
+ @Total = params['Total']
2283
+ @Context = params['Context']
2284
+ @RequestId = params['RequestId']
2285
+ end
2286
+ end
2287
+
2288
+ # DescribeBillDownloadUrl请求参数结构体
2289
+ class DescribeBillDownloadUrlRequest < TencentCloud::Common::AbstractModel
2290
+ # @param FileType: 账单类型,枚举值
2291
+ # billOverview=L0-PDF账单
2292
+ # billSummary=L1-汇总账单
2293
+ # billResource=L2-资源账单
2294
+ # billDetail=L3-明细账单
2295
+ # billPack=账单包
2296
+ # @type FileType: String
2297
+ # @param Month: 账单月份
2298
+ # 支持的最早开始月份为2021-01
2299
+ # L0-PDF&账单包不支持当月下载,当月账单请在次月1号19:00出账后下载
2300
+ # @type Month: String
2301
+ # @param ChildUin: 下载的账号 ID列表,默认查询本账号账单,如集团管理账号需下载成员账号自付的账单,该字段需入参成员账号UIN
2302
+ # @type ChildUin: Array
2303
+
2304
+ attr_accessor :FileType, :Month, :ChildUin
2305
+
2306
+ def initialize(filetype=nil, month=nil, childuin=nil)
2307
+ @FileType = filetype
2308
+ @Month = month
2309
+ @ChildUin = childuin
2310
+ end
2311
+
2312
+ def deserialize(params)
2313
+ @FileType = params['FileType']
2314
+ @Month = params['Month']
2315
+ @ChildUin = params['ChildUin']
2316
+ end
2317
+ end
2318
+
2319
+ # DescribeBillDownloadUrl返回参数结构体
2320
+ class DescribeBillDownloadUrlResponse < TencentCloud::Common::AbstractModel
2321
+ # @param Ready: 账单文件是否准备就绪,0文件生成中,1文件已生成
2322
+ # @type Ready: Integer
2323
+ # @param DownloadUrl: 账单文件下载链接,有效时长为一小时
2324
+ # 注意:此字段可能返回 null,表示取不到有效值。
2325
+ # @type DownloadUrl: String
2326
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2327
+ # @type RequestId: String
2328
+
2329
+ attr_accessor :Ready, :DownloadUrl, :RequestId
2330
+
2331
+ def initialize(ready=nil, downloadurl=nil, requestid=nil)
2332
+ @Ready = ready
2333
+ @DownloadUrl = downloadurl
2334
+ @RequestId = requestid
2335
+ end
2336
+
2337
+ def deserialize(params)
2338
+ @Ready = params['Ready']
2339
+ @DownloadUrl = params['DownloadUrl']
2340
+ @RequestId = params['RequestId']
2341
+ end
2342
+ end
2343
+
2344
+ # DescribeBillList请求参数结构体
2345
+ class DescribeBillListRequest < TencentCloud::Common::AbstractModel
2346
+ # @param StartTime: 查询范围的起始时间(包含)时间格式 yyyy-MM-dd HH:mm:ss 开始时间和结束时间差值小于等于六个月
2347
+ # @type StartTime: String
2348
+ # @param EndTime: 查询范围的结束时间(包含)时间格式 yyyy-MM-dd HH:mm:ss ,开始时间和结束时间差值小于等于六个月
2349
+ # @type EndTime: String
2350
+ # @param Offset: 翻页偏移量,初始值为0
2351
+ # @type Offset: Integer
2352
+ # @param Limit: 每页的限制数量
2353
+ # @type Limit: Integer
2354
+ # @param PayType: 交易类型: all所有交易类型,recharge充值,return退款,unblock解冻,agentin资金转入,advanced垫付,cash提现,deduct扣费,block冻结,agentout资金转出,repay垫付回款,repayment还款(仅国际信用账户),adj_refund调增(仅国际信用账户),adj_deduct调减(仅国际信用账户)
2355
+ # @type PayType: Array
2356
+ # @param SubPayType: 扣费模式,
2357
+ # 当所选的交易类型为扣费deduct时:
2358
+ # all所有扣费类型;trade预付费支付;hour_h按量小时结;hour_d按量日结;hour_m按量月结;decompensate调账扣费;other第三方扣费;panshi 线下项目扣费;offline 线下产品扣费;
2359
+
2360
+ # 当所选的交易类型为扣费recharge时:
2361
+ # online 在线充值;bank-enterprice 银企直连;offline 线下充值;transfer 分成充值
2362
+
2363
+ # 当所选的交易类型为扣费cash时:
2364
+ # online 线上提现;offline 线下提现;panshi 赠送金清零
2365
+
2366
+ # 当所选的交易类型为扣费advanced时:
2367
+ # advanced 垫付充值
2368
+
2369
+ # 当所选的交易类型为扣费repay时:
2370
+ # panshi 垫付回款
2371
+
2372
+ # 当所选的交易类型为扣费block时:
2373
+ # other 第三方冻结;hour 按量冻结;month按月冻结
2374
+
2375
+ # 当所选的交易类型为扣费return时:
2376
+ # compensate 调账补偿;trade 预付费退款
2377
+
2378
+ # 当所选的交易类型为扣费unblock时:
2379
+ # other 第三方解冻;hour 按量解冻;month 按月解冻
2380
+ # @type SubPayType: Array
2381
+ # @param WithZeroAmount: 是否返回0元交易金额的交易项,取值:0-不返回,1-返回。不传该参数则不返回
2382
+ # @type WithZeroAmount: Integer
2383
+
2384
+ attr_accessor :StartTime, :EndTime, :Offset, :Limit, :PayType, :SubPayType, :WithZeroAmount
2385
+
2386
+ def initialize(starttime=nil, endtime=nil, offset=nil, limit=nil, paytype=nil, subpaytype=nil, withzeroamount=nil)
2387
+ @StartTime = starttime
2388
+ @EndTime = endtime
2389
+ @Offset = offset
2390
+ @Limit = limit
2391
+ @PayType = paytype
2392
+ @SubPayType = subpaytype
2393
+ @WithZeroAmount = withzeroamount
2394
+ end
2395
+
2396
+ def deserialize(params)
2397
+ @StartTime = params['StartTime']
2398
+ @EndTime = params['EndTime']
2399
+ @Offset = params['Offset']
2400
+ @Limit = params['Limit']
2401
+ @PayType = params['PayType']
2402
+ @SubPayType = params['SubPayType']
2403
+ @WithZeroAmount = params['WithZeroAmount']
2404
+ end
2405
+ end
2406
+
2407
+ # DescribeBillList返回参数结构体
2408
+ class DescribeBillListResponse < TencentCloud::Common::AbstractModel
2409
+ # @param TransactionList: 收支明细列表
2410
+ # @type TransactionList: Array
2411
+ # @param Total: 总条数
2412
+ # @type Total: Integer
2054
2413
  # @param ReturnAmount: 退费总额,单位(分)
2055
2414
  # @type ReturnAmount: Float
2056
2415
  # @param RechargeAmount: 充值总额,单位(分)
@@ -2074,44 +2433,163 @@ module TencentCloud
2074
2433
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2075
2434
  # @type RequestId: String
2076
2435
 
2077
- attr_accessor :TransactionList, :Total, :ReturnAmount, :RechargeAmount, :BlockAmount, :UnblockAmount, :DeductAmount, :AgentInAmount, :AdvanceRechargeAmount, :WithdrawAmount, :AgentOutAmount, :AdvancePayAmount, :RequestId
2436
+ attr_accessor :TransactionList, :Total, :ReturnAmount, :RechargeAmount, :BlockAmount, :UnblockAmount, :DeductAmount, :AgentInAmount, :AdvanceRechargeAmount, :WithdrawAmount, :AgentOutAmount, :AdvancePayAmount, :RequestId
2437
+
2438
+ def initialize(transactionlist=nil, total=nil, returnamount=nil, rechargeamount=nil, blockamount=nil, unblockamount=nil, deductamount=nil, agentinamount=nil, advancerechargeamount=nil, withdrawamount=nil, agentoutamount=nil, advancepayamount=nil, requestid=nil)
2439
+ @TransactionList = transactionlist
2440
+ @Total = total
2441
+ @ReturnAmount = returnamount
2442
+ @RechargeAmount = rechargeamount
2443
+ @BlockAmount = blockamount
2444
+ @UnblockAmount = unblockamount
2445
+ @DeductAmount = deductamount
2446
+ @AgentInAmount = agentinamount
2447
+ @AdvanceRechargeAmount = advancerechargeamount
2448
+ @WithdrawAmount = withdrawamount
2449
+ @AgentOutAmount = agentoutamount
2450
+ @AdvancePayAmount = advancepayamount
2451
+ @RequestId = requestid
2452
+ end
2453
+
2454
+ def deserialize(params)
2455
+ unless params['TransactionList'].nil?
2456
+ @TransactionList = []
2457
+ params['TransactionList'].each do |i|
2458
+ billtransactioninfo_tmp = BillTransactionInfo.new
2459
+ billtransactioninfo_tmp.deserialize(i)
2460
+ @TransactionList << billtransactioninfo_tmp
2461
+ end
2462
+ end
2463
+ @Total = params['Total']
2464
+ @ReturnAmount = params['ReturnAmount']
2465
+ @RechargeAmount = params['RechargeAmount']
2466
+ @BlockAmount = params['BlockAmount']
2467
+ @UnblockAmount = params['UnblockAmount']
2468
+ @DeductAmount = params['DeductAmount']
2469
+ @AgentInAmount = params['AgentInAmount']
2470
+ @AdvanceRechargeAmount = params['AdvanceRechargeAmount']
2471
+ @WithdrawAmount = params['WithdrawAmount']
2472
+ @AgentOutAmount = params['AgentOutAmount']
2473
+ @AdvancePayAmount = params['AdvancePayAmount']
2474
+ @RequestId = params['RequestId']
2475
+ end
2476
+ end
2477
+
2478
+ # DescribeBillResourceSummaryForOrganization请求参数结构体
2479
+ class DescribeBillResourceSummaryForOrganizationRequest < TencentCloud::Common::AbstractModel
2480
+ # @param Offset: 分页偏移量,Offset=0表示第一页,如果Limit=100,则Offset=100表示第二页,Offset=200表示第三页,依次类推
2481
+ # @type Offset: Integer
2482
+ # @param Limit: 数量,最大值为1000
2483
+ # @type Limit: Integer
2484
+ # @param Month: 月份,格式为yyyy-mm。不能早于开通账单2.0的月份
2485
+ # @type Month: String
2486
+ # @param PeriodType: 周期类型,byUsedTime按计费周期/byPayTime按扣费周期。需要与费用中心该月份账单的周期保持一致。您可前往[账单概览](https://console.cloud.tencent.com/expense/bill/overview)页面顶部查看确认您的账单统计周期类型。
2487
+ # @type PeriodType: String
2488
+ # @param NeedRecordNum: 是否需要访问列表的总记录数,用于前端分页
2489
+ # 1-表示需要, 0-表示不需要
2490
+ # @type NeedRecordNum: Integer
2491
+ # @param ActionType: 查询交易类型(请使用交易类型名称入参),入参示例枚举如下:
2492
+ # 包年包月新购
2493
+ # 包年包月续费
2494
+ # 包年包月配置变更
2495
+ # 包年包月退款
2496
+ # 按量计费扣费
2497
+ # 线下项目扣费
2498
+ # 线下产品扣费
2499
+ # 调账扣费
2500
+ # 调账补偿
2501
+ # 按量计费小时结
2502
+ # 按量计费日结
2503
+ # 按量计费月结
2504
+ # 竞价实例小时结
2505
+ # 线下项目调账补偿
2506
+ # 线下产品调账补偿
2507
+ # 优惠扣费
2508
+ # 优惠补偿
2509
+ # 按量计费迁入资源
2510
+ # 按量计费迁出资源
2511
+ # 包年包月迁入资源
2512
+ # 包年包月迁出资源
2513
+ # 预付费用
2514
+ # 小时费用
2515
+ # 预留实例退款
2516
+ # 按量计费冲正
2517
+ # 包年包月转按量
2518
+ # 保底扣款
2519
+ # 节省计划小时费用
2520
+ # @type ActionType: String
2521
+ # @param ResourceId: 查询指定资源信息
2522
+ # @type ResourceId: String
2523
+ # @param PayMode: 付费模式 prePay/postPay
2524
+ # @type PayMode: String
2525
+ # @param BusinessCode: 产品名称代码
2526
+ # 备注:如需获取当月使用过的BusinessCode,请调用API:<a href="https://cloud.tencent.com/document/product/555/35761">获取产品汇总费用分布</a>
2527
+ # @type BusinessCode: String
2528
+ # @param TagKey: 分账标签键,用户自定义(支持2021-01以后账单查询)
2529
+ # @type TagKey: String
2530
+ # @param TagValue: 分账标签值,该参数为空表示该标签键下未设置标签值的记录
2531
+ # (支持2021-01以后账单查询)
2532
+ # @type TagValue: String
2533
+
2534
+ attr_accessor :Offset, :Limit, :Month, :PeriodType, :NeedRecordNum, :ActionType, :ResourceId, :PayMode, :BusinessCode, :TagKey, :TagValue
2535
+
2536
+ def initialize(offset=nil, limit=nil, month=nil, periodtype=nil, needrecordnum=nil, actiontype=nil, resourceid=nil, paymode=nil, businesscode=nil, tagkey=nil, tagvalue=nil)
2537
+ @Offset = offset
2538
+ @Limit = limit
2539
+ @Month = month
2540
+ @PeriodType = periodtype
2541
+ @NeedRecordNum = needrecordnum
2542
+ @ActionType = actiontype
2543
+ @ResourceId = resourceid
2544
+ @PayMode = paymode
2545
+ @BusinessCode = businesscode
2546
+ @TagKey = tagkey
2547
+ @TagValue = tagvalue
2548
+ end
2549
+
2550
+ def deserialize(params)
2551
+ @Offset = params['Offset']
2552
+ @Limit = params['Limit']
2553
+ @Month = params['Month']
2554
+ @PeriodType = params['PeriodType']
2555
+ @NeedRecordNum = params['NeedRecordNum']
2556
+ @ActionType = params['ActionType']
2557
+ @ResourceId = params['ResourceId']
2558
+ @PayMode = params['PayMode']
2559
+ @BusinessCode = params['BusinessCode']
2560
+ @TagKey = params['TagKey']
2561
+ @TagValue = params['TagValue']
2562
+ end
2563
+ end
2564
+
2565
+ # DescribeBillResourceSummaryForOrganization返回参数结构体
2566
+ class DescribeBillResourceSummaryForOrganizationResponse < TencentCloud::Common::AbstractModel
2567
+ # @param ResourceSummarySet: 资源汇总列表
2568
+ # @type ResourceSummarySet: Array
2569
+ # @param Total: 资源汇总列表总数,入参NeedRecordNum为0时不返回
2570
+ # 注意:此字段可能返回 null,表示取不到有效值。
2571
+ # @type Total: Integer
2572
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2573
+ # @type RequestId: String
2574
+
2575
+ attr_accessor :ResourceSummarySet, :Total, :RequestId
2078
2576
 
2079
- def initialize(transactionlist=nil, total=nil, returnamount=nil, rechargeamount=nil, blockamount=nil, unblockamount=nil, deductamount=nil, agentinamount=nil, advancerechargeamount=nil, withdrawamount=nil, agentoutamount=nil, advancepayamount=nil, requestid=nil)
2080
- @TransactionList = transactionlist
2577
+ def initialize(resourcesummaryset=nil, total=nil, requestid=nil)
2578
+ @ResourceSummarySet = resourcesummaryset
2081
2579
  @Total = total
2082
- @ReturnAmount = returnamount
2083
- @RechargeAmount = rechargeamount
2084
- @BlockAmount = blockamount
2085
- @UnblockAmount = unblockamount
2086
- @DeductAmount = deductamount
2087
- @AgentInAmount = agentinamount
2088
- @AdvanceRechargeAmount = advancerechargeamount
2089
- @WithdrawAmount = withdrawamount
2090
- @AgentOutAmount = agentoutamount
2091
- @AdvancePayAmount = advancepayamount
2092
2580
  @RequestId = requestid
2093
2581
  end
2094
2582
 
2095
2583
  def deserialize(params)
2096
- unless params['TransactionList'].nil?
2097
- @TransactionList = []
2098
- params['TransactionList'].each do |i|
2099
- billtransactioninfo_tmp = BillTransactionInfo.new
2100
- billtransactioninfo_tmp.deserialize(i)
2101
- @TransactionList << billtransactioninfo_tmp
2584
+ unless params['ResourceSummarySet'].nil?
2585
+ @ResourceSummarySet = []
2586
+ params['ResourceSummarySet'].each do |i|
2587
+ billdistributionresourcesummary_tmp = BillDistributionResourceSummary.new
2588
+ billdistributionresourcesummary_tmp.deserialize(i)
2589
+ @ResourceSummarySet << billdistributionresourcesummary_tmp
2102
2590
  end
2103
2591
  end
2104
2592
  @Total = params['Total']
2105
- @ReturnAmount = params['ReturnAmount']
2106
- @RechargeAmount = params['RechargeAmount']
2107
- @BlockAmount = params['BlockAmount']
2108
- @UnblockAmount = params['UnblockAmount']
2109
- @DeductAmount = params['DeductAmount']
2110
- @AgentInAmount = params['AgentInAmount']
2111
- @AdvanceRechargeAmount = params['AdvanceRechargeAmount']
2112
- @WithdrawAmount = params['WithdrawAmount']
2113
- @AgentOutAmount = params['AgentOutAmount']
2114
- @AdvancePayAmount = params['AdvancePayAmount']
2115
2593
  @RequestId = params['RequestId']
2116
2594
  end
2117
2595
  end
@@ -2552,6 +3030,61 @@ module TencentCloud
2552
3030
  end
2553
3031
  end
2554
3032
 
3033
+ # DescribeBillSummaryForOrganization请求参数结构体
3034
+ class DescribeBillSummaryForOrganizationRequest < TencentCloud::Common::AbstractModel
3035
+ # @param Month: 账单月份,格式为2023-04
3036
+ # @type Month: String
3037
+ # @param GroupType: 账单维度类型,枚举值如下:business、project、region、payMode、tag
3038
+ # @type GroupType: String
3039
+ # @param TagKey: 标签键,GroupType=tag获取标签维度账单时传
3040
+ # @type TagKey: Array
3041
+
3042
+ attr_accessor :Month, :GroupType, :TagKey
3043
+
3044
+ def initialize(month=nil, grouptype=nil, tagkey=nil)
3045
+ @Month = month
3046
+ @GroupType = grouptype
3047
+ @TagKey = tagkey
3048
+ end
3049
+
3050
+ def deserialize(params)
3051
+ @Month = params['Month']
3052
+ @GroupType = params['GroupType']
3053
+ @TagKey = params['TagKey']
3054
+ end
3055
+ end
3056
+
3057
+ # DescribeBillSummaryForOrganization返回参数结构体
3058
+ class DescribeBillSummaryForOrganizationResponse < TencentCloud::Common::AbstractModel
3059
+ # @param Ready: 数据是否准备好,0准备中,1已就绪。(Ready=0,为当前UIN首次进行初始化出账,预计需要5~10分钟出账,请于10分钟后重试即可)
3060
+ # @type Ready: Integer
3061
+ # @param SummaryDetail: 账单多维度汇总消费详情
3062
+ # @type SummaryDetail: Array
3063
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3064
+ # @type RequestId: String
3065
+
3066
+ attr_accessor :Ready, :SummaryDetail, :RequestId
3067
+
3068
+ def initialize(ready=nil, summarydetail=nil, requestid=nil)
3069
+ @Ready = ready
3070
+ @SummaryDetail = summarydetail
3071
+ @RequestId = requestid
3072
+ end
3073
+
3074
+ def deserialize(params)
3075
+ @Ready = params['Ready']
3076
+ unless params['SummaryDetail'].nil?
3077
+ @SummaryDetail = []
3078
+ params['SummaryDetail'].each do |i|
3079
+ summarydetail_tmp = SummaryDetail.new
3080
+ summarydetail_tmp.deserialize(i)
3081
+ @SummaryDetail << summarydetail_tmp
3082
+ end
3083
+ end
3084
+ @RequestId = params['RequestId']
3085
+ end
3086
+ end
3087
+
2555
3088
  # DescribeBillSummary请求参数结构体
2556
3089
  class DescribeBillSummaryRequest < TencentCloud::Common::AbstractModel
2557
3090
  # @param Month: 账单月份,格式为2023-04
@@ -3545,6 +4078,152 @@ module TencentCloud
3545
4078
  end
3546
4079
  end
3547
4080
 
4081
+ # 经销账单明细数据对象
4082
+ class DistributionBillDetail < TencentCloud::Common::AbstractModel
4083
+ # @param BusinessCodeName: 产品名称:用户所采购的各类云产品,例如:云服务器 CVM
4084
+ # @type BusinessCodeName: String
4085
+ # @param ProductCodeName: 子产品名称:用户采购的具体产品细分类型,例如:云服务器 CVM-标准型 S1
4086
+ # @type ProductCodeName: String
4087
+ # @param PayModeName: 计费模式:资源的计费模式,区分为包年包月和按量计费
4088
+ # @type PayModeName: String
4089
+ # @param ProjectName: 项目名称:资源归属的项目,用户在控制台给资源自主分配项目,未分配则是默认项目
4090
+ # @type ProjectName: String
4091
+ # @param RegionName: 地域:资源所属地域,如华南地区(广州)
4092
+ # @type RegionName: String
4093
+ # @param ZoneName: 可用区:资源所属可用区,如广州三区
4094
+ # @type ZoneName: String
4095
+ # @param ResourceId: 资源 ID:账单中出账对象 ID,不同产品因资源形态不同,资源内容不完全相同,如云服务器 CVM 为对应的实例 ID
4096
+ # @type ResourceId: String
4097
+ # @param ResourceName: 资源别名:用户在控制台为资源设置的名称,如果未设置,则默认为空
4098
+ # @type ResourceName: String
4099
+ # @param ActionTypeName: 交易类型,如包年包月新购、包年包月续费、按量计费扣费等类型
4100
+ # @type ActionTypeName: String
4101
+ # @param OrderId: 订单ID:包年包月计费模式下订购的订单号
4102
+ # @type OrderId: String
4103
+ # @param BillId: 交易ID:结算扣费单号
4104
+ # @type BillId: String
4105
+ # @param PayTime: 扣费时间:结算扣费时间
4106
+ # @type PayTime: String
4107
+ # @param FeeBeginTime: 开始使用时间:产品服务开始使用时间
4108
+ # @type FeeBeginTime: String
4109
+ # @param FeeEndTime: 结束使用时间:产品服务结束使用时间
4110
+ # @type FeeEndTime: String
4111
+ # @param ComponentSet: 组件列表
4112
+ # @type ComponentSet: Array
4113
+ # @param OwnerUin: 使用者UIN:实际使用资源的账号 ID
4114
+ # @type OwnerUin: String
4115
+ # @param OperateUin: 操作者UIN:操作者账号 ID(预付费资源下单或后付费操作开通资源账号的 ID 或者角色 ID )
4116
+ # @type OperateUin: String
4117
+ # @param Tags: 标签信息
4118
+ # 注意:此字段可能返回 null,表示取不到有效值。
4119
+ # @type Tags: Array
4120
+ # @param BusinessCode: 产品编码
4121
+ # 注意:此字段可能返回 null,表示取不到有效值。
4122
+ # @type BusinessCode: String
4123
+ # @param ProductCode: 子产品编码
4124
+ # 注意:此字段可能返回 null,表示取不到有效值。
4125
+ # @type ProductCode: String
4126
+ # @param ActionType: 交易类型编码
4127
+ # 注意:此字段可能返回 null,表示取不到有效值。
4128
+ # @type ActionType: String
4129
+ # @param RegionId: 地域ID
4130
+ # 注意:此字段可能返回 null,表示取不到有效值。
4131
+ # @type RegionId: String
4132
+ # @param ProjectId: 项目ID
4133
+ # @type ProjectId: Integer
4134
+ # @param PriceInfo: 价格属性:该组件除单价、时长外的其他影响折扣定价的属性信息
4135
+ # 注意:此字段可能返回 null,表示取不到有效值。
4136
+ # @type PriceInfo: Array
4137
+ # @param AssociatedOrder: 关联交易单据ID:和本笔交易关联单据 ID,如,冲销订单,记录原订单、重结订单,退费单记录对应的原购买订单号
4138
+ # 注意:此字段可能返回 null,表示取不到有效值。
4139
+ # @type AssociatedOrder: :class:`Tencentcloud::Billing.v20180709.models.BillDetailAssociatedOrder`
4140
+ # @param Formula: 计算说明:特殊交易类型计费结算的详细计算说明,如退费及变配
4141
+ # 注意:此字段可能返回 null,表示取不到有效值。
4142
+ # @type Formula: String
4143
+ # @param FormulaUrl: 计费规则:各产品详细的计费规则官网说明链接
4144
+ # 注意:此字段可能返回 null,表示取不到有效值。
4145
+ # @type FormulaUrl: String
4146
+
4147
+ attr_accessor :BusinessCodeName, :ProductCodeName, :PayModeName, :ProjectName, :RegionName, :ZoneName, :ResourceId, :ResourceName, :ActionTypeName, :OrderId, :BillId, :PayTime, :FeeBeginTime, :FeeEndTime, :ComponentSet, :OwnerUin, :OperateUin, :Tags, :BusinessCode, :ProductCode, :ActionType, :RegionId, :ProjectId, :PriceInfo, :AssociatedOrder, :Formula, :FormulaUrl
4148
+
4149
+ def initialize(businesscodename=nil, productcodename=nil, paymodename=nil, projectname=nil, regionname=nil, zonename=nil, resourceid=nil, resourcename=nil, actiontypename=nil, orderid=nil, billid=nil, paytime=nil, feebegintime=nil, feeendtime=nil, componentset=nil, owneruin=nil, operateuin=nil, tags=nil, businesscode=nil, productcode=nil, actiontype=nil, regionid=nil, projectid=nil, priceinfo=nil, associatedorder=nil, formula=nil, formulaurl=nil)
4150
+ @BusinessCodeName = businesscodename
4151
+ @ProductCodeName = productcodename
4152
+ @PayModeName = paymodename
4153
+ @ProjectName = projectname
4154
+ @RegionName = regionname
4155
+ @ZoneName = zonename
4156
+ @ResourceId = resourceid
4157
+ @ResourceName = resourcename
4158
+ @ActionTypeName = actiontypename
4159
+ @OrderId = orderid
4160
+ @BillId = billid
4161
+ @PayTime = paytime
4162
+ @FeeBeginTime = feebegintime
4163
+ @FeeEndTime = feeendtime
4164
+ @ComponentSet = componentset
4165
+ @OwnerUin = owneruin
4166
+ @OperateUin = operateuin
4167
+ @Tags = tags
4168
+ @BusinessCode = businesscode
4169
+ @ProductCode = productcode
4170
+ @ActionType = actiontype
4171
+ @RegionId = regionid
4172
+ @ProjectId = projectid
4173
+ @PriceInfo = priceinfo
4174
+ @AssociatedOrder = associatedorder
4175
+ @Formula = formula
4176
+ @FormulaUrl = formulaurl
4177
+ end
4178
+
4179
+ def deserialize(params)
4180
+ @BusinessCodeName = params['BusinessCodeName']
4181
+ @ProductCodeName = params['ProductCodeName']
4182
+ @PayModeName = params['PayModeName']
4183
+ @ProjectName = params['ProjectName']
4184
+ @RegionName = params['RegionName']
4185
+ @ZoneName = params['ZoneName']
4186
+ @ResourceId = params['ResourceId']
4187
+ @ResourceName = params['ResourceName']
4188
+ @ActionTypeName = params['ActionTypeName']
4189
+ @OrderId = params['OrderId']
4190
+ @BillId = params['BillId']
4191
+ @PayTime = params['PayTime']
4192
+ @FeeBeginTime = params['FeeBeginTime']
4193
+ @FeeEndTime = params['FeeEndTime']
4194
+ unless params['ComponentSet'].nil?
4195
+ @ComponentSet = []
4196
+ params['ComponentSet'].each do |i|
4197
+ billdetailcomponent_tmp = BillDetailComponent.new
4198
+ billdetailcomponent_tmp.deserialize(i)
4199
+ @ComponentSet << billdetailcomponent_tmp
4200
+ end
4201
+ end
4202
+ @OwnerUin = params['OwnerUin']
4203
+ @OperateUin = params['OperateUin']
4204
+ unless params['Tags'].nil?
4205
+ @Tags = []
4206
+ params['Tags'].each do |i|
4207
+ billtaginfo_tmp = BillTagInfo.new
4208
+ billtaginfo_tmp.deserialize(i)
4209
+ @Tags << billtaginfo_tmp
4210
+ end
4211
+ end
4212
+ @BusinessCode = params['BusinessCode']
4213
+ @ProductCode = params['ProductCode']
4214
+ @ActionType = params['ActionType']
4215
+ @RegionId = params['RegionId']
4216
+ @ProjectId = params['ProjectId']
4217
+ @PriceInfo = params['PriceInfo']
4218
+ unless params['AssociatedOrder'].nil?
4219
+ @AssociatedOrder = BillDetailAssociatedOrder.new
4220
+ @AssociatedOrder.deserialize(params['AssociatedOrder'])
4221
+ end
4222
+ @Formula = params['Formula']
4223
+ @FormulaUrl = params['FormulaUrl']
4224
+ end
4225
+ end
4226
+
3548
4227
  # 不适用商品信息
3549
4228
  class ExcludedProducts < TencentCloud::Common::AbstractModel
3550
4229
  # @param GoodsName: 不适用商品名称
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-billing
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.666
4
+ version: 3.0.667
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-09-25 00:00:00.000000000 Z
11
+ date: 2023-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common