tencentcloud-sdk-billing 3.0.1057 → 3.0.1058

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.
@@ -312,10 +312,10 @@ module TencentCloud
312
312
 
313
313
  attr_accessor :TreeNodeUniqKey, :TreeNodeUniqKeyName, :BillDate, :PayerUin, :OwnerUin, :OperateUin, :BusinessCode, :BusinessCodeName, :PayMode, :PayModeName, :ProjectId, :ProjectName, :RegionId, :RegionName, :ZoneId, :ZoneName, :ResourceId, :ResourceName, :InstanceType, :InstanceTypeName, :SplitItemId, :SplitItemName, :ProductCode, :ProductCodeName, :ActionType, :ActionTypeName, :OrderId, :BillId, :PayTime, :FeeBeginTime, :FeeEndTime, :ComponentCode, :ComponentCodeName, :SinglePrice, :ContractPrice, :SinglePriceUnit, :UsedAmount, :UsedAmountUnit, :TimeSpan, :TimeUnit, :ReserveDetail, :SplitRatio, :TotalCost, :RITimeSpan, :RICost, :SPCost, :Discount, :BlendedDiscount, :RealTotalCost, :CashPayAmount, :VoucherPayAmount, :IncentivePayAmount, :TransferPayAmount, :Tag, :RegionType, :RegionTypeName, :ItemCode, :ItemCodeName, :AssociatedOrder, :PriceInfo, :Formula, :FormulaUrl, :RealTotalMeasure, :DeductedMeasure, :ComponentConfig, :AllocationType, :DiscountObject, :DiscountType, :DiscountContent, :SPDeduction, :SPDeductionRate, :BillMonth
314
314
  extend Gem::Deprecate
315
- deprecate :SplitItemId, :none, 2025, 4
316
- deprecate :SplitItemId=, :none, 2025, 4
317
- deprecate :SplitItemName, :none, 2025, 4
318
- deprecate :SplitItemName=, :none, 2025, 4
315
+ deprecate :SplitItemId, :none, 2025, 5
316
+ deprecate :SplitItemId=, :none, 2025, 5
317
+ deprecate :SplitItemName, :none, 2025, 5
318
+ deprecate :SplitItemName=, :none, 2025, 5
319
319
 
320
320
  def initialize(treenodeuniqkey=nil, treenodeuniqkeyname=nil, billdate=nil, payeruin=nil, owneruin=nil, operateuin=nil, businesscode=nil, businesscodename=nil, paymode=nil, paymodename=nil, projectid=nil, projectname=nil, regionid=nil, regionname=nil, zoneid=nil, zonename=nil, resourceid=nil, resourcename=nil, instancetype=nil, instancetypename=nil, splititemid=nil, splititemname=nil, productcode=nil, productcodename=nil, actiontype=nil, actiontypename=nil, orderid=nil, billid=nil, paytime=nil, feebegintime=nil, feeendtime=nil, componentcode=nil, componentcodename=nil, singleprice=nil, contractprice=nil, singlepriceunit=nil, usedamount=nil, usedamountunit=nil, timespan=nil, timeunit=nil, reservedetail=nil, splitratio=nil, totalcost=nil, ritimespan=nil, ricost=nil, spcost=nil, discount=nil, blendeddiscount=nil, realtotalcost=nil, cashpayamount=nil, voucherpayamount=nil, incentivepayamount=nil, transferpayamount=nil, tag=nil, regiontype=nil, regiontypename=nil, itemcode=nil, itemcodename=nil, associatedorder=nil, priceinfo=nil, formula=nil, formulaurl=nil, realtotalmeasure=nil, deductedmeasure=nil, componentconfig=nil, allocationtype=nil, discountobject=nil, discounttype=nil, discountcontent=nil, spdeduction=nil, spdeductionrate=nil, billmonth=nil)
321
321
  @TreeNodeUniqKey = treenodeuniqkey
@@ -748,6 +748,26 @@ module TencentCloud
748
748
  end
749
749
  end
750
750
 
751
+ # 分摊比例表达式
752
+ class AllocationRationExpression < TencentCloud::Common::AbstractModel
753
+ # @param NodeId: 公摊规则所属分账单元ID
754
+ # @type NodeId: Integer
755
+ # @param Ratio: 分账单元所占公摊比例,按占比分摊传0
756
+ # @type Ratio: Float
757
+
758
+ attr_accessor :NodeId, :Ratio
759
+
760
+ def initialize(nodeid=nil, ratio=nil)
761
+ @NodeId = nodeid
762
+ @Ratio = ratio
763
+ end
764
+
765
+ def deserialize(params)
766
+ @NodeId = params['NodeId']
767
+ @Ratio = params['Ratio']
768
+ end
769
+ end
770
+
751
771
  # 当前资源命中公摊规则信息
752
772
  class AllocationRule < TencentCloud::Common::AbstractModel
753
773
  # @param RuleId: 公摊规则ID
@@ -768,6 +788,147 @@ module TencentCloud
768
788
  end
769
789
  end
770
790
 
791
+ # 分账规则表达式
792
+ class AllocationRuleExpression < TencentCloud::Common::AbstractModel
793
+ # @param RuleKey: RuleKey:分账维度
794
+ # 枚举值:
795
+ # ownerUin - 使用者UIN,
796
+ # operateUin - 操作者UIN,
797
+ # businessCode - 产品一层编码,
798
+ # productCode - 产品二层编码,
799
+ # itemCode - 产品四层编码,
800
+ # projectId - 项目ID,
801
+ # regionId - 地域ID,
802
+ # resourceId - 资源ID,
803
+ # tag - 标签键值对,
804
+ # payMode - 计费模式,
805
+ # instanceType - 实例类型,
806
+ # actionType - 交易类型
807
+ # @type RuleKey: String
808
+ # @param Operator: 分账维度规则
809
+ # 枚举值:
810
+ # in - 是
811
+ # not in - 不是
812
+ # @type Operator: String
813
+ # @param RuleValue: 分账维度值,例如当RuleKey为businessCode时,["p_cbs","p_sqlserver"]表示产品一层是"p_cbs","p_sqlserver"的费用
814
+ # @type RuleValue: Array
815
+ # @param Connectors: 分账逻辑连接词,枚举值如下:
816
+ # and - 且
817
+ # or - 或
818
+ # @type Connectors: String
819
+ # @param Children: 嵌套规则
820
+ # @type Children: Array
821
+
822
+ attr_accessor :RuleKey, :Operator, :RuleValue, :Connectors, :Children
823
+
824
+ def initialize(rulekey=nil, operator=nil, rulevalue=nil, connectors=nil, children=nil)
825
+ @RuleKey = rulekey
826
+ @Operator = operator
827
+ @RuleValue = rulevalue
828
+ @Connectors = connectors
829
+ @Children = children
830
+ end
831
+
832
+ def deserialize(params)
833
+ @RuleKey = params['RuleKey']
834
+ @Operator = params['Operator']
835
+ @RuleValue = params['RuleValue']
836
+ @Connectors = params['Connectors']
837
+ unless params['Children'].nil?
838
+ @Children = []
839
+ params['Children'].each do |i|
840
+ allocationruleexpression_tmp = AllocationRuleExpression.new
841
+ allocationruleexpression_tmp.deserialize(i)
842
+ @Children << allocationruleexpression_tmp
843
+ end
844
+ end
845
+ end
846
+ end
847
+
848
+ # 公摊规则概览
849
+ class AllocationRuleOverview < TencentCloud::Common::AbstractModel
850
+ # @param RuleId: 公摊规则ID
851
+ # @type RuleId: Integer
852
+ # @param RuleName: 公摊规则名称
853
+ # @type RuleName: String
854
+ # @param Type: 公摊策略类型
855
+ # 枚举值:
856
+ # 1 - 自定义分摊占比
857
+ # 2 - 等比分摊
858
+ # 3 - 按占比分摊
859
+ # @type Type: Integer
860
+ # @param UpdateTime: 公摊规则最后更新时间
861
+ # @type UpdateTime: String
862
+ # @param AllocationNode: 分账单元概览
863
+ # @type AllocationNode: Array
864
+
865
+ attr_accessor :RuleId, :RuleName, :Type, :UpdateTime, :AllocationNode
866
+
867
+ def initialize(ruleid=nil, rulename=nil, type=nil, updatetime=nil, allocationnode=nil)
868
+ @RuleId = ruleid
869
+ @RuleName = rulename
870
+ @Type = type
871
+ @UpdateTime = updatetime
872
+ @AllocationNode = allocationnode
873
+ end
874
+
875
+ def deserialize(params)
876
+ @RuleId = params['RuleId']
877
+ @RuleName = params['RuleName']
878
+ @Type = params['Type']
879
+ @UpdateTime = params['UpdateTime']
880
+ unless params['AllocationNode'].nil?
881
+ @AllocationNode = []
882
+ params['AllocationNode'].each do |i|
883
+ allocationunit_tmp = AllocationUnit.new
884
+ allocationunit_tmp.deserialize(i)
885
+ @AllocationNode << allocationunit_tmp
886
+ end
887
+ end
888
+ end
889
+ end
890
+
891
+ # 公摊规则列表
892
+ class AllocationRulesSummary < TencentCloud::Common::AbstractModel
893
+ # @param Name: 新增公摊规则名称
894
+ # @type Name: String
895
+ # @param Type: 公摊策略类型,枚举值如下:
896
+ # 1 - 自定义分摊占比
897
+ # 2 - 等比分摊
898
+ # 3 - 按占比分摊
899
+ # @type Type: Integer
900
+ # @param RuleDetail: 公摊规则表达式
901
+ # @type RuleDetail: :class:`Tencentcloud::Billing.v20180709.models.AllocationRuleExpression`
902
+ # @param RatioDetail: 公摊比例表达式,按占比分摊不传
903
+ # @type RatioDetail: Array
904
+
905
+ attr_accessor :Name, :Type, :RuleDetail, :RatioDetail
906
+
907
+ def initialize(name=nil, type=nil, ruledetail=nil, ratiodetail=nil)
908
+ @Name = name
909
+ @Type = type
910
+ @RuleDetail = ruledetail
911
+ @RatioDetail = ratiodetail
912
+ end
913
+
914
+ def deserialize(params)
915
+ @Name = params['Name']
916
+ @Type = params['Type']
917
+ unless params['RuleDetail'].nil?
918
+ @RuleDetail = AllocationRuleExpression.new
919
+ @RuleDetail.deserialize(params['RuleDetail'])
920
+ end
921
+ unless params['RatioDetail'].nil?
922
+ @RatioDetail = []
923
+ params['RatioDetail'].each do |i|
924
+ allocationrationexpression_tmp = AllocationRationExpression.new
925
+ allocationrationexpression_tmp.deserialize(i)
926
+ @RatioDetail << allocationrationexpression_tmp
927
+ end
928
+ end
929
+ end
930
+ end
931
+
771
932
  # 分账账单趋势图
772
933
  class AllocationStat < TencentCloud::Common::AbstractModel
773
934
  # @param Average: 费用平均信息
@@ -1074,10 +1235,10 @@ module TencentCloud
1074
1235
 
1075
1236
  attr_accessor :TreeNodeUniqKey, :TreeNodeUniqKeyName, :BillDate, :PayerUin, :OwnerUin, :OperateUin, :PayMode, :PayModeName, :ActionType, :ActionTypeName, :BusinessCode, :BusinessCodeName, :ProductCode, :ProductCodeName, :RegionId, :RegionName, :ZoneId, :ZoneName, :InstanceType, :InstanceTypeName, :ResourceId, :ResourceName, :Tag, :ProjectId, :ProjectName, :AllocationType, :TotalCost, :RiTimeSpan, :RiCost, :RealTotalCost, :CashPayAmount, :VoucherPayAmount, :IncentivePayAmount, :TransferPayAmount, :ItemCode, :ItemCodeName, :ComponentCode, :ComponentCodeName, :SplitItemId, :SplitItemName, :FeeBeginTime, :FeeEndTime, :SPCost, :RegionType, :RegionTypeName, :SinglePrice, :ContractPrice, :SinglePriceUnit, :UsedAmount, :UsedAmountUnit, :TimeSpan, :TimeUnit, :ReserveDetail, :RealTotalMeasure, :DeductedMeasure, :Discount, :BlendedDiscount, :PriceInfo, :Formula, :FormulaUrl, :ComponentConfig, :SPDeduction, :SPDeductionRate, :AssociatedOrder, :DiscountObject, :DiscountType, :DiscountContent, :BillMonth
1076
1237
  extend Gem::Deprecate
1077
- deprecate :SplitItemId, :none, 2025, 4
1078
- deprecate :SplitItemId=, :none, 2025, 4
1079
- deprecate :SplitItemName, :none, 2025, 4
1080
- deprecate :SplitItemName=, :none, 2025, 4
1238
+ deprecate :SplitItemId, :none, 2025, 5
1239
+ deprecate :SplitItemId=, :none, 2025, 5
1240
+ deprecate :SplitItemName, :none, 2025, 5
1241
+ deprecate :SplitItemName=, :none, 2025, 5
1081
1242
 
1082
1243
  def initialize(treenodeuniqkey=nil, treenodeuniqkeyname=nil, billdate=nil, payeruin=nil, owneruin=nil, operateuin=nil, paymode=nil, paymodename=nil, actiontype=nil, actiontypename=nil, businesscode=nil, businesscodename=nil, productcode=nil, productcodename=nil, regionid=nil, regionname=nil, zoneid=nil, zonename=nil, instancetype=nil, instancetypename=nil, resourceid=nil, resourcename=nil, tag=nil, projectid=nil, projectname=nil, allocationtype=nil, totalcost=nil, ritimespan=nil, ricost=nil, realtotalcost=nil, cashpayamount=nil, voucherpayamount=nil, incentivepayamount=nil, transferpayamount=nil, itemcode=nil, itemcodename=nil, componentcode=nil, componentcodename=nil, splititemid=nil, splititemname=nil, feebegintime=nil, feeendtime=nil, spcost=nil, regiontype=nil, regiontypename=nil, singleprice=nil, contractprice=nil, singlepriceunit=nil, usedamount=nil, usedamountunit=nil, timespan=nil, timeunit=nil, reservedetail=nil, realtotalmeasure=nil, deductedmeasure=nil, discount=nil, blendeddiscount=nil, priceinfo=nil, formula=nil, formulaurl=nil, componentconfig=nil, spdeduction=nil, spdeductionrate=nil, associatedorder=nil, discountobject=nil, discounttype=nil, discountcontent=nil, billmonth=nil)
1083
1244
  @TreeNodeUniqKey = treenodeuniqkey
@@ -1327,10 +1488,10 @@ module TencentCloud
1327
1488
 
1328
1489
  attr_accessor :TreeNodeUniqKey, :TreeNodeUniqKeyName, :BillDate, :PayerUin, :OwnerUin, :OperateUin, :PayMode, :PayModeName, :ActionType, :ActionTypeName, :BusinessCode, :BusinessCodeName, :ProductCode, :ProductCodeName, :RegionId, :RegionName, :ZoneId, :ZoneName, :InstanceType, :InstanceTypeName, :ResourceId, :ResourceName, :Tag, :ProjectId, :ProjectName, :AllocationType, :TotalCost, :RiTimeSpan, :RiCost, :RealTotalCost, :CashPayAmount, :VoucherPayAmount, :IncentivePayAmount, :TransferPayAmount, :SplitItemId, :SplitItemName, :FeeBeginTime, :FeeEndTime, :SPCost, :RegionType, :RegionTypeName, :ComponentConfig, :SPDeduction, :BillMonth
1329
1490
  extend Gem::Deprecate
1330
- deprecate :SplitItemId, :none, 2025, 4
1331
- deprecate :SplitItemId=, :none, 2025, 4
1332
- deprecate :SplitItemName, :none, 2025, 4
1333
- deprecate :SplitItemName=, :none, 2025, 4
1491
+ deprecate :SplitItemId, :none, 2025, 5
1492
+ deprecate :SplitItemId=, :none, 2025, 5
1493
+ deprecate :SplitItemName, :none, 2025, 5
1494
+ deprecate :SplitItemName=, :none, 2025, 5
1334
1495
 
1335
1496
  def initialize(treenodeuniqkey=nil, treenodeuniqkeyname=nil, billdate=nil, payeruin=nil, owneruin=nil, operateuin=nil, paymode=nil, paymodename=nil, actiontype=nil, actiontypename=nil, businesscode=nil, businesscodename=nil, productcode=nil, productcodename=nil, regionid=nil, regionname=nil, zoneid=nil, zonename=nil, instancetype=nil, instancetypename=nil, resourceid=nil, resourcename=nil, tag=nil, projectid=nil, projectname=nil, allocationtype=nil, totalcost=nil, ritimespan=nil, ricost=nil, realtotalcost=nil, cashpayamount=nil, voucherpayamount=nil, incentivepayamount=nil, transferpayamount=nil, splititemid=nil, splititemname=nil, feebegintime=nil, feeendtime=nil, spcost=nil, regiontype=nil, regiontypename=nil, componentconfig=nil, spdeduction=nil, billmonth=nil)
1336
1497
  @TreeNodeUniqKey = treenodeuniqkey
@@ -1434,6 +1595,41 @@ module TencentCloud
1434
1595
  end
1435
1596
  end
1436
1597
 
1598
+ # 分账目录树
1599
+ class AllocationTree < TencentCloud::Common::AbstractModel
1600
+ # @param Id: 分账单元ID
1601
+ # @type Id: Integer
1602
+ # @param Name: 分账单元名称
1603
+ # @type Name: String
1604
+ # @param TreeNodeUniqKey: 分账单元唯一标识
1605
+ # @type TreeNodeUniqKey: String
1606
+ # @param Children: 子树
1607
+ # @type Children: Array
1608
+
1609
+ attr_accessor :Id, :Name, :TreeNodeUniqKey, :Children
1610
+
1611
+ def initialize(id=nil, name=nil, treenodeuniqkey=nil, children=nil)
1612
+ @Id = id
1613
+ @Name = name
1614
+ @TreeNodeUniqKey = treenodeuniqkey
1615
+ @Children = children
1616
+ end
1617
+
1618
+ def deserialize(params)
1619
+ @Id = params['Id']
1620
+ @Name = params['Name']
1621
+ @TreeNodeUniqKey = params['TreeNodeUniqKey']
1622
+ unless params['Children'].nil?
1623
+ @Children = []
1624
+ params['Children'].each do |i|
1625
+ allocationtree_tmp = AllocationTree.new
1626
+ allocationtree_tmp.deserialize(i)
1627
+ @Children << allocationtree_tmp
1628
+ end
1629
+ end
1630
+ end
1631
+ end
1632
+
1437
1633
  # 当前归属单元信息
1438
1634
  class AllocationTreeNode < TencentCloud::Common::AbstractModel
1439
1635
  # @param TreeNodeUniqKey: 分账单元唯一标识
@@ -1454,6 +1650,26 @@ module TencentCloud
1454
1650
  end
1455
1651
  end
1456
1652
 
1653
+ # 分账单元id和名称
1654
+ class AllocationUnit < TencentCloud::Common::AbstractModel
1655
+ # @param NodeId: 分账单元ID
1656
+ # @type NodeId: Integer
1657
+ # @param TreeNodeUniqKeyName: 分账规则名称
1658
+ # @type TreeNodeUniqKeyName: String
1659
+
1660
+ attr_accessor :NodeId, :TreeNodeUniqKeyName
1661
+
1662
+ def initialize(nodeid=nil, treenodeuniqkeyname=nil)
1663
+ @NodeId = nodeid
1664
+ @TreeNodeUniqKeyName = treenodeuniqkeyname
1665
+ end
1666
+
1667
+ def deserialize(params)
1668
+ @NodeId = params['NodeId']
1669
+ @TreeNodeUniqKeyName = params['TreeNodeUniqKeyName']
1670
+ end
1671
+ end
1672
+
1457
1673
  # 成本分析交易类型复杂类型
1458
1674
  class AnalyseActionTypeDetail < TencentCloud::Common::AbstractModel
1459
1675
  # @param ActionType: 交易类型code
@@ -2283,10 +2499,10 @@ module TencentCloud
2283
2499
 
2284
2500
  attr_accessor :ComponentCodeName, :ItemCodeName, :SinglePrice, :SpecifiedPrice, :PriceUnit, :UsedAmount, :UsedAmountUnit, :RealTotalMeasure, :DeductedMeasure, :TimeSpan, :TimeUnitName, :Cost, :Discount, :ReduceType, :RealCost, :VoucherPayAmount, :CashPayAmount, :IncentivePayAmount, :TransferPayAmount, :ItemCode, :ComponentCode, :ContractPrice, :InstanceType, :RiTimeSpan, :OriginalCostWithRI, :SPDeductionRate, :SPDeduction, :OriginalCostWithSP, :BlendedDiscount, :ComponentConfig
2285
2501
  extend Gem::Deprecate
2286
- deprecate :SpecifiedPrice, :none, 2025, 4
2287
- deprecate :SpecifiedPrice=, :none, 2025, 4
2288
- deprecate :SPDeduction, :none, 2025, 4
2289
- deprecate :SPDeduction=, :none, 2025, 4
2502
+ deprecate :SpecifiedPrice, :none, 2025, 5
2503
+ deprecate :SpecifiedPrice=, :none, 2025, 5
2504
+ deprecate :SPDeduction, :none, 2025, 5
2505
+ deprecate :SPDeduction=, :none, 2025, 5
2290
2506
 
2291
2507
  def initialize(componentcodename=nil, itemcodename=nil, singleprice=nil, specifiedprice=nil, priceunit=nil, usedamount=nil, usedamountunit=nil, realtotalmeasure=nil, deductedmeasure=nil, timespan=nil, timeunitname=nil, cost=nil, discount=nil, reducetype=nil, realcost=nil, voucherpayamount=nil, cashpayamount=nil, incentivepayamount=nil, transferpayamount=nil, itemcode=nil, componentcode=nil, contractprice=nil, instancetype=nil, ritimespan=nil, originalcostwithri=nil, spdeductionrate=nil, spdeduction=nil, originalcostwithsp=nil, blendeddiscount=nil, componentconfig=nil)
2292
2508
  @ComponentCodeName = componentcodename
@@ -2463,8 +2679,8 @@ module TencentCloud
2463
2679
 
2464
2680
  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, :BillMonth
2465
2681
  extend Gem::Deprecate
2466
- deprecate :SPDeduction, :none, 2025, 4
2467
- deprecate :SPDeduction=, :none, 2025, 4
2682
+ deprecate :SPDeduction, :none, 2025, 5
2683
+ deprecate :SPDeduction=, :none, 2025, 5
2468
2684
 
2469
2685
  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, billmonth=nil)
2470
2686
  @BusinessCodeName = businesscodename
@@ -2822,8 +3038,8 @@ module TencentCloud
2822
3038
 
2823
3039
  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, :PayerUin, :OwnerUin, :OperateUin, :BusinessCode, :ProductCode, :RegionId, :InstanceType, :OriginalCostWithRI, :SPDeduction, :OriginalCostWithSP, :BillMonth
2824
3040
  extend Gem::Deprecate
2825
- deprecate :SPDeduction, :none, 2025, 4
2826
- deprecate :SPDeduction=, :none, 2025, 4
3041
+ deprecate :SPDeduction, :none, 2025, 5
3042
+ deprecate :SPDeduction=, :none, 2025, 5
2827
3043
 
2828
3044
  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, payeruin=nil, owneruin=nil, operateuin=nil, businesscode=nil, productcode=nil, regionid=nil, instancetype=nil, originalcostwithri=nil, spdeduction=nil, originalcostwithsp=nil, billmonth=nil)
2829
3045
  @BusinessCodeName = businesscodename
@@ -3947,6 +4163,49 @@ module TencentCloud
3947
4163
  end
3948
4164
  end
3949
4165
 
4166
+ # CreateAllocationRule请求参数结构体
4167
+ class CreateAllocationRuleRequest < TencentCloud::Common::AbstractModel
4168
+ # @param RuleList: 公摊规则列表
4169
+ # @type RuleList: :class:`Tencentcloud::Billing.v20180709.models.AllocationRulesSummary`
4170
+ # @param Month: 月份,不传默认当前月
4171
+ # @type Month: String
4172
+
4173
+ attr_accessor :RuleList, :Month
4174
+
4175
+ def initialize(rulelist=nil, month=nil)
4176
+ @RuleList = rulelist
4177
+ @Month = month
4178
+ end
4179
+
4180
+ def deserialize(params)
4181
+ unless params['RuleList'].nil?
4182
+ @RuleList = AllocationRulesSummary.new
4183
+ @RuleList.deserialize(params['RuleList'])
4184
+ end
4185
+ @Month = params['Month']
4186
+ end
4187
+ end
4188
+
4189
+ # CreateAllocationRule返回参数结构体
4190
+ class CreateAllocationRuleResponse < TencentCloud::Common::AbstractModel
4191
+ # @param Id: 新增公摊规则ID
4192
+ # @type Id: Integer
4193
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4194
+ # @type RequestId: String
4195
+
4196
+ attr_accessor :Id, :RequestId
4197
+
4198
+ def initialize(id=nil, requestid=nil)
4199
+ @Id = id
4200
+ @RequestId = requestid
4201
+ end
4202
+
4203
+ def deserialize(params)
4204
+ @Id = params['Id']
4205
+ @RequestId = params['RequestId']
4206
+ end
4207
+ end
4208
+
3950
4209
  # CreateAllocationTag请求参数结构体
3951
4210
  class CreateAllocationTagRequest < TencentCloud::Common::AbstractModel
3952
4211
  # @param TagKey: 用户分账标签键
@@ -3979,6 +4238,101 @@ module TencentCloud
3979
4238
  end
3980
4239
  end
3981
4240
 
4241
+ # CreateAllocationUnit请求参数结构体
4242
+ class CreateAllocationUnitRequest < TencentCloud::Common::AbstractModel
4243
+ # @param ParentId: 新增分账单元父节点ID
4244
+ # @type ParentId: Integer
4245
+ # @param Name: 新增分账单元名称
4246
+ # @type Name: String
4247
+ # @param Month: 月份,不传默认当前月
4248
+ # @type Month: String
4249
+
4250
+ attr_accessor :ParentId, :Name, :Month
4251
+
4252
+ def initialize(parentid=nil, name=nil, month=nil)
4253
+ @ParentId = parentid
4254
+ @Name = name
4255
+ @Month = month
4256
+ end
4257
+
4258
+ def deserialize(params)
4259
+ @ParentId = params['ParentId']
4260
+ @Name = params['Name']
4261
+ @Month = params['Month']
4262
+ end
4263
+ end
4264
+
4265
+ # CreateAllocationUnit返回参数结构体
4266
+ class CreateAllocationUnitResponse < TencentCloud::Common::AbstractModel
4267
+ # @param Id: 新增分账单元ID
4268
+ # @type Id: Integer
4269
+ # @param TreeNodeUniqKey: 分账单元唯一标识
4270
+ # @type TreeNodeUniqKey: String
4271
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4272
+ # @type RequestId: String
4273
+
4274
+ attr_accessor :Id, :TreeNodeUniqKey, :RequestId
4275
+
4276
+ def initialize(id=nil, treenodeuniqkey=nil, requestid=nil)
4277
+ @Id = id
4278
+ @TreeNodeUniqKey = treenodeuniqkey
4279
+ @RequestId = requestid
4280
+ end
4281
+
4282
+ def deserialize(params)
4283
+ @Id = params['Id']
4284
+ @TreeNodeUniqKey = params['TreeNodeUniqKey']
4285
+ @RequestId = params['RequestId']
4286
+ end
4287
+ end
4288
+
4289
+ # CreateGatherRule请求参数结构体
4290
+ class CreateGatherRuleRequest < TencentCloud::Common::AbstractModel
4291
+ # @param Id: 规则所属分账单元ID
4292
+ # @type Id: Integer
4293
+ # @param RuleList: 归集规则详情
4294
+ # @type RuleList: :class:`Tencentcloud::Billing.v20180709.models.GatherRuleSummary`
4295
+ # @param Month: 月份,不传默认当前月
4296
+ # @type Month: String
4297
+
4298
+ attr_accessor :Id, :RuleList, :Month
4299
+
4300
+ def initialize(id=nil, rulelist=nil, month=nil)
4301
+ @Id = id
4302
+ @RuleList = rulelist
4303
+ @Month = month
4304
+ end
4305
+
4306
+ def deserialize(params)
4307
+ @Id = params['Id']
4308
+ unless params['RuleList'].nil?
4309
+ @RuleList = GatherRuleSummary.new
4310
+ @RuleList.deserialize(params['RuleList'])
4311
+ end
4312
+ @Month = params['Month']
4313
+ end
4314
+ end
4315
+
4316
+ # CreateGatherRule返回参数结构体
4317
+ class CreateGatherRuleResponse < TencentCloud::Common::AbstractModel
4318
+ # @param Id: 归集规则ID
4319
+ # @type Id: Integer
4320
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4321
+ # @type RequestId: String
4322
+
4323
+ attr_accessor :Id, :RequestId
4324
+
4325
+ def initialize(id=nil, requestid=nil)
4326
+ @Id = id
4327
+ @RequestId = requestid
4328
+ end
4329
+
4330
+ def deserialize(params)
4331
+ @Id = params['Id']
4332
+ @RequestId = params['RequestId']
4333
+ end
4334
+ end
4335
+
3982
4336
  # 订单数据对象
3983
4337
  class Deal < TencentCloud::Common::AbstractModel
3984
4338
  # @param OrderId: 订单号
@@ -4115,6 +4469,42 @@ module TencentCloud
4115
4469
  end
4116
4470
  end
4117
4471
 
4472
+ # DeleteAllocationRule请求参数结构体
4473
+ class DeleteAllocationRuleRequest < TencentCloud::Common::AbstractModel
4474
+ # @param RuleId: 所删除公摊规则ID
4475
+ # @type RuleId: Integer
4476
+ # @param Month: 月份,不传默认当前月
4477
+ # @type Month: String
4478
+
4479
+ attr_accessor :RuleId, :Month
4480
+
4481
+ def initialize(ruleid=nil, month=nil)
4482
+ @RuleId = ruleid
4483
+ @Month = month
4484
+ end
4485
+
4486
+ def deserialize(params)
4487
+ @RuleId = params['RuleId']
4488
+ @Month = params['Month']
4489
+ end
4490
+ end
4491
+
4492
+ # DeleteAllocationRule返回参数结构体
4493
+ class DeleteAllocationRuleResponse < TencentCloud::Common::AbstractModel
4494
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4495
+ # @type RequestId: String
4496
+
4497
+ attr_accessor :RequestId
4498
+
4499
+ def initialize(requestid=nil)
4500
+ @RequestId = requestid
4501
+ end
4502
+
4503
+ def deserialize(params)
4504
+ @RequestId = params['RequestId']
4505
+ end
4506
+ end
4507
+
4118
4508
  # DeleteAllocationTag请求参数结构体
4119
4509
  class DeleteAllocationTagRequest < TencentCloud::Common::AbstractModel
4120
4510
  # @param TagKey: 用户分账标签键
@@ -4147,6 +4537,78 @@ module TencentCloud
4147
4537
  end
4148
4538
  end
4149
4539
 
4540
+ # DeleteAllocationUnit请求参数结构体
4541
+ class DeleteAllocationUnitRequest < TencentCloud::Common::AbstractModel
4542
+ # @param Id: 所删除分账单元ID
4543
+ # @type Id: Integer
4544
+ # @param Month: 月份,不传默认当前月
4545
+ # @type Month: String
4546
+
4547
+ attr_accessor :Id, :Month
4548
+
4549
+ def initialize(id=nil, month=nil)
4550
+ @Id = id
4551
+ @Month = month
4552
+ end
4553
+
4554
+ def deserialize(params)
4555
+ @Id = params['Id']
4556
+ @Month = params['Month']
4557
+ end
4558
+ end
4559
+
4560
+ # DeleteAllocationUnit返回参数结构体
4561
+ class DeleteAllocationUnitResponse < TencentCloud::Common::AbstractModel
4562
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4563
+ # @type RequestId: String
4564
+
4565
+ attr_accessor :RequestId
4566
+
4567
+ def initialize(requestid=nil)
4568
+ @RequestId = requestid
4569
+ end
4570
+
4571
+ def deserialize(params)
4572
+ @RequestId = params['RequestId']
4573
+ end
4574
+ end
4575
+
4576
+ # DeleteGatherRule请求参数结构体
4577
+ class DeleteGatherRuleRequest < TencentCloud::Common::AbstractModel
4578
+ # @param RuleId: 所删除归集规则ID
4579
+ # @type RuleId: Integer
4580
+ # @param Month: 月份,不传默认当前月
4581
+ # @type Month: String
4582
+
4583
+ attr_accessor :RuleId, :Month
4584
+
4585
+ def initialize(ruleid=nil, month=nil)
4586
+ @RuleId = ruleid
4587
+ @Month = month
4588
+ end
4589
+
4590
+ def deserialize(params)
4591
+ @RuleId = params['RuleId']
4592
+ @Month = params['Month']
4593
+ end
4594
+ end
4595
+
4596
+ # DeleteGatherRule返回参数结构体
4597
+ class DeleteGatherRuleResponse < TencentCloud::Common::AbstractModel
4598
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4599
+ # @type RequestId: String
4600
+
4601
+ attr_accessor :RequestId
4602
+
4603
+ def initialize(requestid=nil)
4604
+ @RequestId = requestid
4605
+ end
4606
+
4607
+ def deserialize(params)
4608
+ @RequestId = params['RequestId']
4609
+ end
4610
+ end
4611
+
4150
4612
  # DescribeAccountBalance请求参数结构体
4151
4613
  class DescribeAccountBalanceRequest < TencentCloud::Common::AbstractModel
4152
4614
 
@@ -4191,10 +4653,10 @@ module TencentCloud
4191
4653
 
4192
4654
  attr_accessor :Balance, :Uin, :RealBalance, :CashAccountBalance, :IncomeIntoAccountBalance, :PresentAccountBalance, :FreezeAmount, :OweAmount, :IsAllowArrears, :IsCreditLimited, :CreditAmount, :CreditBalance, :RealCreditBalance, :RequestId
4193
4655
  extend Gem::Deprecate
4194
- deprecate :IsAllowArrears, :none, 2025, 4
4195
- deprecate :IsAllowArrears=, :none, 2025, 4
4196
- deprecate :IsCreditLimited, :none, 2025, 4
4197
- deprecate :IsCreditLimited=, :none, 2025, 4
4656
+ deprecate :IsAllowArrears, :none, 2025, 5
4657
+ deprecate :IsAllowArrears=, :none, 2025, 5
4658
+ deprecate :IsCreditLimited, :none, 2025, 5
4659
+ deprecate :IsCreditLimited=, :none, 2025, 5
4198
4660
 
4199
4661
  def initialize(balance=nil, uin=nil, realbalance=nil, cashaccountbalance=nil, incomeintoaccountbalance=nil, presentaccountbalance=nil, freezeamount=nil, oweamount=nil, isallowarrears=nil, iscreditlimited=nil, creditamount=nil, creditbalance=nil, realcreditbalance=nil, requestid=nil)
4200
4662
  @Balance = balance
@@ -4907,40 +5369,180 @@ module TencentCloud
4907
5369
  end
4908
5370
  end
4909
5371
 
4910
- # DescribeAllocationOverview返回参数结构体
4911
- class DescribeAllocationOverviewResponse < TencentCloud::Common::AbstractModel
4912
- # @param RecordNum: 总条数
4913
- # @type RecordNum: Integer
4914
- # @param Total: 分账账单概览金额汇总
4915
- # @type Total: :class:`Tencentcloud::Billing.v20180709.models.AllocationOverviewTotal`
4916
- # @param Detail: 分账概览明细
4917
- # @type Detail: Array
5372
+ # DescribeAllocationOverview返回参数结构体
5373
+ class DescribeAllocationOverviewResponse < TencentCloud::Common::AbstractModel
5374
+ # @param RecordNum: 总条数
5375
+ # @type RecordNum: Integer
5376
+ # @param Total: 分账账单概览金额汇总
5377
+ # @type Total: :class:`Tencentcloud::Billing.v20180709.models.AllocationOverviewTotal`
5378
+ # @param Detail: 分账概览明细
5379
+ # @type Detail: Array
5380
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5381
+ # @type RequestId: String
5382
+
5383
+ attr_accessor :RecordNum, :Total, :Detail, :RequestId
5384
+
5385
+ def initialize(recordnum=nil, total=nil, detail=nil, requestid=nil)
5386
+ @RecordNum = recordnum
5387
+ @Total = total
5388
+ @Detail = detail
5389
+ @RequestId = requestid
5390
+ end
5391
+
5392
+ def deserialize(params)
5393
+ @RecordNum = params['RecordNum']
5394
+ unless params['Total'].nil?
5395
+ @Total = AllocationOverviewTotal.new
5396
+ @Total.deserialize(params['Total'])
5397
+ end
5398
+ unless params['Detail'].nil?
5399
+ @Detail = []
5400
+ params['Detail'].each do |i|
5401
+ allocationoverviewdetail_tmp = AllocationOverviewDetail.new
5402
+ allocationoverviewdetail_tmp.deserialize(i)
5403
+ @Detail << allocationoverviewdetail_tmp
5404
+ end
5405
+ end
5406
+ @RequestId = params['RequestId']
5407
+ end
5408
+ end
5409
+
5410
+ # DescribeAllocationRuleDetail请求参数结构体
5411
+ class DescribeAllocationRuleDetailRequest < TencentCloud::Common::AbstractModel
5412
+ # @param RuleId: 所查询公摊规则ID
5413
+ # @type RuleId: Integer
5414
+ # @param Month: 月份,不传默认当前月
5415
+ # @type Month: String
5416
+
5417
+ attr_accessor :RuleId, :Month
5418
+
5419
+ def initialize(ruleid=nil, month=nil)
5420
+ @RuleId = ruleid
5421
+ @Month = month
5422
+ end
5423
+
5424
+ def deserialize(params)
5425
+ @RuleId = params['RuleId']
5426
+ @Month = params['Month']
5427
+ end
5428
+ end
5429
+
5430
+ # DescribeAllocationRuleDetail返回参数结构体
5431
+ class DescribeAllocationRuleDetailResponse < TencentCloud::Common::AbstractModel
5432
+ # @param Id: 公摊规则ID
5433
+ # @type Id: Integer
5434
+ # @param Uin: 公摊规则所属UIN
5435
+ # @type Uin: String
5436
+ # @param Name: 公摊规则名称
5437
+ # @type Name: String
5438
+ # @param Type: 公摊策略类型,枚举值如下:
5439
+ # 1 - 自定义分摊占比
5440
+ # 2 - 等比分摊
5441
+ # 3 - 按占比分摊
5442
+ # @type Type: Integer
5443
+ # @param RuleDetail: 公摊规则表达式
5444
+ # @type RuleDetail: :class:`Tencentcloud::Billing.v20180709.models.AllocationRuleExpression`
5445
+ # @param RatioDetail: 公摊比例表达式,Type为1和2时返回
5446
+ # @type RatioDetail: Array
5447
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5448
+ # @type RequestId: String
5449
+
5450
+ attr_accessor :Id, :Uin, :Name, :Type, :RuleDetail, :RatioDetail, :RequestId
5451
+
5452
+ def initialize(id=nil, uin=nil, name=nil, type=nil, ruledetail=nil, ratiodetail=nil, requestid=nil)
5453
+ @Id = id
5454
+ @Uin = uin
5455
+ @Name = name
5456
+ @Type = type
5457
+ @RuleDetail = ruledetail
5458
+ @RatioDetail = ratiodetail
5459
+ @RequestId = requestid
5460
+ end
5461
+
5462
+ def deserialize(params)
5463
+ @Id = params['Id']
5464
+ @Uin = params['Uin']
5465
+ @Name = params['Name']
5466
+ @Type = params['Type']
5467
+ unless params['RuleDetail'].nil?
5468
+ @RuleDetail = AllocationRuleExpression.new
5469
+ @RuleDetail.deserialize(params['RuleDetail'])
5470
+ end
5471
+ unless params['RatioDetail'].nil?
5472
+ @RatioDetail = []
5473
+ params['RatioDetail'].each do |i|
5474
+ allocationrationexpression_tmp = AllocationRationExpression.new
5475
+ allocationrationexpression_tmp.deserialize(i)
5476
+ @RatioDetail << allocationrationexpression_tmp
5477
+ end
5478
+ end
5479
+ @RequestId = params['RequestId']
5480
+ end
5481
+ end
5482
+
5483
+ # DescribeAllocationRuleSummary请求参数结构体
5484
+ class DescribeAllocationRuleSummaryRequest < TencentCloud::Common::AbstractModel
5485
+ # @param Limit: 每次获取数据量,最大值1000
5486
+ # @type Limit: Integer
5487
+ # @param Offset: 分页偏移量
5488
+ # @type Offset: Integer
5489
+ # @param Month: 月份,不传默认当前月
5490
+ # @type Month: String
5491
+ # @param Type: 公摊策略类型,用于筛选。
5492
+ # 枚举值如下:
5493
+ # 1 - 自定义分摊占比
5494
+ # 2 - 等比分摊
5495
+ # 3 - 按占比分摊
5496
+ # @type Type: Integer
5497
+ # @param Name: 公摊规则名称或分账单元名称,用于模糊筛选。
5498
+ # @type Name: String
5499
+
5500
+ attr_accessor :Limit, :Offset, :Month, :Type, :Name
5501
+
5502
+ def initialize(limit=nil, offset=nil, month=nil, type=nil, name=nil)
5503
+ @Limit = limit
5504
+ @Offset = offset
5505
+ @Month = month
5506
+ @Type = type
5507
+ @Name = name
5508
+ end
5509
+
5510
+ def deserialize(params)
5511
+ @Limit = params['Limit']
5512
+ @Offset = params['Offset']
5513
+ @Month = params['Month']
5514
+ @Type = params['Type']
5515
+ @Name = params['Name']
5516
+ end
5517
+ end
5518
+
5519
+ # DescribeAllocationRuleSummary返回参数结构体
5520
+ class DescribeAllocationRuleSummaryResponse < TencentCloud::Common::AbstractModel
5521
+ # @param RuleList: 公摊规则表达式
5522
+ # @type RuleList: Array
5523
+ # @param Total: 规则总数
5524
+ # @type Total: Integer
4918
5525
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4919
5526
  # @type RequestId: String
4920
5527
 
4921
- attr_accessor :RecordNum, :Total, :Detail, :RequestId
5528
+ attr_accessor :RuleList, :Total, :RequestId
4922
5529
 
4923
- def initialize(recordnum=nil, total=nil, detail=nil, requestid=nil)
4924
- @RecordNum = recordnum
5530
+ def initialize(rulelist=nil, total=nil, requestid=nil)
5531
+ @RuleList = rulelist
4925
5532
  @Total = total
4926
- @Detail = detail
4927
5533
  @RequestId = requestid
4928
5534
  end
4929
5535
 
4930
5536
  def deserialize(params)
4931
- @RecordNum = params['RecordNum']
4932
- unless params['Total'].nil?
4933
- @Total = AllocationOverviewTotal.new
4934
- @Total.deserialize(params['Total'])
4935
- end
4936
- unless params['Detail'].nil?
4937
- @Detail = []
4938
- params['Detail'].each do |i|
4939
- allocationoverviewdetail_tmp = AllocationOverviewDetail.new
4940
- allocationoverviewdetail_tmp.deserialize(i)
4941
- @Detail << allocationoverviewdetail_tmp
5537
+ unless params['RuleList'].nil?
5538
+ @RuleList = []
5539
+ params['RuleList'].each do |i|
5540
+ allocationruleoverview_tmp = AllocationRuleOverview.new
5541
+ allocationruleoverview_tmp.deserialize(i)
5542
+ @RuleList << allocationruleoverview_tmp
4942
5543
  end
4943
5544
  end
5545
+ @Total = params['Total']
4944
5546
  @RequestId = params['RequestId']
4945
5547
  end
4946
5548
  end
@@ -4992,8 +5594,8 @@ module TencentCloud
4992
5594
 
4993
5595
  attr_accessor :Limit, :Offset, :Month, :PeriodType, :TreeNodeUniqKeys, :SortType, :Sort, :BillDates, :BusinessCodes, :SearchKey
4994
5596
  extend Gem::Deprecate
4995
- deprecate :SearchKey, :none, 2025, 4
4996
- deprecate :SearchKey=, :none, 2025, 4
5597
+ deprecate :SearchKey, :none, 2025, 5
5598
+ deprecate :SearchKey=, :none, 2025, 5
4997
5599
 
4998
5600
  def initialize(limit=nil, offset=nil, month=nil, periodtype=nil, treenodeuniqkeys=nil, sorttype=nil, sort=nil, billdates=nil, businesscodes=nil, searchkey=nil)
4999
5601
  @Limit = limit
@@ -5366,6 +5968,61 @@ module TencentCloud
5366
5968
  end
5367
5969
  end
5368
5970
 
5971
+ # DescribeAllocationTree请求参数结构体
5972
+ class DescribeAllocationTreeRequest < TencentCloud::Common::AbstractModel
5973
+ # @param Month: 月份,不传默认当前月
5974
+ # @type Month: String
5975
+
5976
+ attr_accessor :Month
5977
+
5978
+ def initialize(month=nil)
5979
+ @Month = month
5980
+ end
5981
+
5982
+ def deserialize(params)
5983
+ @Month = params['Month']
5984
+ end
5985
+ end
5986
+
5987
+ # DescribeAllocationTree返回参数结构体
5988
+ class DescribeAllocationTreeResponse < TencentCloud::Common::AbstractModel
5989
+ # @param Id: 分账单元ID
5990
+ # @type Id: Integer
5991
+ # @param Name: 分账单元名称
5992
+ # @type Name: String
5993
+ # @param TreeNodeUniqKey: 分账单元唯一标识
5994
+ # @type TreeNodeUniqKey: String
5995
+ # @param Children: 子树
5996
+ # @type Children: Array
5997
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5998
+ # @type RequestId: String
5999
+
6000
+ attr_accessor :Id, :Name, :TreeNodeUniqKey, :Children, :RequestId
6001
+
6002
+ def initialize(id=nil, name=nil, treenodeuniqkey=nil, children=nil, requestid=nil)
6003
+ @Id = id
6004
+ @Name = name
6005
+ @TreeNodeUniqKey = treenodeuniqkey
6006
+ @Children = children
6007
+ @RequestId = requestid
6008
+ end
6009
+
6010
+ def deserialize(params)
6011
+ @Id = params['Id']
6012
+ @Name = params['Name']
6013
+ @TreeNodeUniqKey = params['TreeNodeUniqKey']
6014
+ unless params['Children'].nil?
6015
+ @Children = []
6016
+ params['Children'].each do |i|
6017
+ allocationtree_tmp = AllocationTree.new
6018
+ allocationtree_tmp.deserialize(i)
6019
+ @Children << allocationtree_tmp
6020
+ end
6021
+ end
6022
+ @RequestId = params['RequestId']
6023
+ end
6024
+ end
6025
+
5369
6026
  # DescribeAllocationTrendByMonth请求参数结构体
5370
6027
  class DescribeAllocationTrendByMonthRequest < TencentCloud::Common::AbstractModel
5371
6028
  # @param Month: 账单月份,格式为2024-02,不传默认当前月
@@ -5431,6 +6088,78 @@ module TencentCloud
5431
6088
  end
5432
6089
  end
5433
6090
 
6091
+ # DescribeAllocationUnitDetail请求参数结构体
6092
+ class DescribeAllocationUnitDetailRequest < TencentCloud::Common::AbstractModel
6093
+ # @param Id: 所查询分账单元Id
6094
+ # @type Id: Integer
6095
+ # @param Month: 月份,不传默认当前月
6096
+ # @type Month: String
6097
+
6098
+ attr_accessor :Id, :Month
6099
+
6100
+ def initialize(id=nil, month=nil)
6101
+ @Id = id
6102
+ @Month = month
6103
+ end
6104
+
6105
+ def deserialize(params)
6106
+ @Id = params['Id']
6107
+ @Month = params['Month']
6108
+ end
6109
+ end
6110
+
6111
+ # DescribeAllocationUnitDetail返回参数结构体
6112
+ class DescribeAllocationUnitDetailResponse < TencentCloud::Common::AbstractModel
6113
+ # @param Id: 分账单元ID
6114
+ # @type Id: Integer
6115
+ # @param Uin: 分账单元所属UIN
6116
+ # @type Uin: String
6117
+ # @param Name: 分账单元名称
6118
+ # @type Name: String
6119
+ # @param ParentId: 分账单元父节点ID
6120
+ # @type ParentId: Integer
6121
+ # @param SourceName: 源组织名称
6122
+ # @type SourceName: String
6123
+ # @param SourceId: 源组织ID
6124
+ # @type SourceId: String
6125
+ # @param Remark: 备注说明
6126
+ # @type Remark: String
6127
+ # @param TreeNodeUniqKey: 分账单元标识
6128
+ # @type TreeNodeUniqKey: String
6129
+ # @param RuleId: 若分账单元设置归集规则,返回归集规则ID,若无分账规则,则不返回
6130
+ # @type RuleId: Integer
6131
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6132
+ # @type RequestId: String
6133
+
6134
+ attr_accessor :Id, :Uin, :Name, :ParentId, :SourceName, :SourceId, :Remark, :TreeNodeUniqKey, :RuleId, :RequestId
6135
+
6136
+ def initialize(id=nil, uin=nil, name=nil, parentid=nil, sourcename=nil, sourceid=nil, remark=nil, treenodeuniqkey=nil, ruleid=nil, requestid=nil)
6137
+ @Id = id
6138
+ @Uin = uin
6139
+ @Name = name
6140
+ @ParentId = parentid
6141
+ @SourceName = sourcename
6142
+ @SourceId = sourceid
6143
+ @Remark = remark
6144
+ @TreeNodeUniqKey = treenodeuniqkey
6145
+ @RuleId = ruleid
6146
+ @RequestId = requestid
6147
+ end
6148
+
6149
+ def deserialize(params)
6150
+ @Id = params['Id']
6151
+ @Uin = params['Uin']
6152
+ @Name = params['Name']
6153
+ @ParentId = params['ParentId']
6154
+ @SourceName = params['SourceName']
6155
+ @SourceId = params['SourceId']
6156
+ @Remark = params['Remark']
6157
+ @TreeNodeUniqKey = params['TreeNodeUniqKey']
6158
+ @RuleId = params['RuleId']
6159
+ @RequestId = params['RequestId']
6160
+ end
6161
+ end
6162
+
5434
6163
  # DescribeBillAdjustInfo请求参数结构体
5435
6164
  class DescribeBillAdjustInfoRequest < TencentCloud::Common::AbstractModel
5436
6165
  # @param Month: 格式:yyyy-MM
@@ -5550,8 +6279,8 @@ module TencentCloud
5550
6279
 
5551
6280
  attr_accessor :Offset, :Limit, :PeriodType, :Month, :BeginTime, :EndTime, :NeedRecordNum, :PayMode, :ResourceId, :ActionType, :ProjectId, :BusinessCode, :Context
5552
6281
  extend Gem::Deprecate
5553
- deprecate :PeriodType, :none, 2025, 4
5554
- deprecate :PeriodType=, :none, 2025, 4
6282
+ deprecate :PeriodType, :none, 2025, 5
6283
+ deprecate :PeriodType=, :none, 2025, 5
5555
6284
 
5556
6285
  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)
5557
6286
  @Offset = offset
@@ -5687,8 +6416,10 @@ module TencentCloud
5687
6416
 
5688
6417
  attr_accessor :Offset, :Limit, :PeriodType, :Month, :BeginTime, :EndTime, :NeedRecordNum, :ProductCode, :PayMode, :ResourceId, :ActionType, :ProjectId, :BusinessCode, :Context, :PayerUin
5689
6418
  extend Gem::Deprecate
5690
- deprecate :PeriodType, :none, 2025, 4
5691
- deprecate :PeriodType=, :none, 2025, 4
6419
+ deprecate :PeriodType, :none, 2025, 5
6420
+ deprecate :PeriodType=, :none, 2025, 5
6421
+ deprecate :ProductCode, :none, 2025, 5
6422
+ deprecate :ProductCode=, :none, 2025, 5
5692
6423
 
5693
6424
  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)
5694
6425
  @Offset = offset
@@ -6010,8 +6741,8 @@ module TencentCloud
6010
6741
 
6011
6742
  attr_accessor :Offset, :Limit, :Month, :PeriodType, :NeedRecordNum, :ActionType, :ResourceId, :PayMode, :BusinessCode, :TagKey, :TagValue
6012
6743
  extend Gem::Deprecate
6013
- deprecate :PeriodType, :none, 2025, 4
6014
- deprecate :PeriodType=, :none, 2025, 4
6744
+ deprecate :PeriodType, :none, 2025, 5
6745
+ deprecate :PeriodType=, :none, 2025, 5
6015
6746
 
6016
6747
  def initialize(offset=nil, limit=nil, month=nil, periodtype=nil, needrecordnum=nil, actiontype=nil, resourceid=nil, paymode=nil, businesscode=nil, tagkey=nil, tagvalue=nil)
6017
6748
  @Offset = offset
@@ -6134,8 +6865,8 @@ module TencentCloud
6134
6865
 
6135
6866
  attr_accessor :Offset, :Limit, :Month, :PeriodType, :NeedRecordNum, :ActionType, :ResourceId, :PayMode, :BusinessCode, :PayerUin, :TagKey, :TagValue
6136
6867
  extend Gem::Deprecate
6137
- deprecate :PeriodType, :none, 2025, 4
6138
- deprecate :PeriodType=, :none, 2025, 4
6868
+ deprecate :PeriodType, :none, 2025, 5
6869
+ deprecate :PeriodType=, :none, 2025, 5
6139
6870
 
6140
6871
  def initialize(offset=nil, limit=nil, month=nil, periodtype=nil, needrecordnum=nil, actiontype=nil, resourceid=nil, paymode=nil, businesscode=nil, payeruin=nil, tagkey=nil, tagvalue=nil)
6141
6872
  @Offset = offset
@@ -7702,6 +8433,61 @@ module TencentCloud
7702
8433
  end
7703
8434
  end
7704
8435
 
8436
+ # DescribeGatherRuleDetail请求参数结构体
8437
+ class DescribeGatherRuleDetailRequest < TencentCloud::Common::AbstractModel
8438
+ # @param Id: 所查询归集规则ID
8439
+ # @type Id: Integer
8440
+ # @param Month: 月份,不传默认当前月
8441
+ # @type Month: String
8442
+
8443
+ attr_accessor :Id, :Month
8444
+
8445
+ def initialize(id=nil, month=nil)
8446
+ @Id = id
8447
+ @Month = month
8448
+ end
8449
+
8450
+ def deserialize(params)
8451
+ @Id = params['Id']
8452
+ @Month = params['Month']
8453
+ end
8454
+ end
8455
+
8456
+ # DescribeGatherRuleDetail返回参数结构体
8457
+ class DescribeGatherRuleDetailResponse < TencentCloud::Common::AbstractModel
8458
+ # @param Id: 归集规则ID
8459
+ # @type Id: Integer
8460
+ # @param Uin: 归集规则所属UIN
8461
+ # @type Uin: String
8462
+ # @param UpdateTime: 归集规则最后更新时间
8463
+ # @type UpdateTime: String
8464
+ # @param RuleDetail: 归集规则详情
8465
+ # @type RuleDetail: :class:`Tencentcloud::Billing.v20180709.models.AllocationRuleExpression`
8466
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8467
+ # @type RequestId: String
8468
+
8469
+ attr_accessor :Id, :Uin, :UpdateTime, :RuleDetail, :RequestId
8470
+
8471
+ def initialize(id=nil, uin=nil, updatetime=nil, ruledetail=nil, requestid=nil)
8472
+ @Id = id
8473
+ @Uin = uin
8474
+ @UpdateTime = updatetime
8475
+ @RuleDetail = ruledetail
8476
+ @RequestId = requestid
8477
+ end
8478
+
8479
+ def deserialize(params)
8480
+ @Id = params['Id']
8481
+ @Uin = params['Uin']
8482
+ @UpdateTime = params['UpdateTime']
8483
+ unless params['RuleDetail'].nil?
8484
+ @RuleDetail = AllocationRuleExpression.new
8485
+ @RuleDetail.deserialize(params['RuleDetail'])
8486
+ end
8487
+ @RequestId = params['RequestId']
8488
+ end
8489
+ end
8490
+
7705
8491
  # DescribeSavingPlanResourceInfo请求参数结构体
7706
8492
  class DescribeSavingPlanResourceInfoRequest < TencentCloud::Common::AbstractModel
7707
8493
  # @param Limit: 数量,最大值为100
@@ -8317,10 +9103,10 @@ module TencentCloud
8317
9103
 
8318
9104
  attr_accessor :PayerUin, :OwnerUin, :OperateUin, :InstanceType, :InstanceTypeName, :ResourceId, :ResourceName, :TreeNodeUniqKey, :TreeNodeUniqKeyName, :RuleId, :RuleName, :BusinessCode, :BusinessCodeName, :ItemCode, :ItemCodeName, :RegionId, :RegionName, :Tag, :RealTotalCost, :CashPayAmount, :VoucherPayAmount, :IncentivePayAmount, :TransferPayAmount, :AllocationType, :BelongTreeNodeUniqKey, :BelongRule, :OtherTreeNodeUniqKeys, :OtherRules, :ProjectId, :ProjectName, :ProductCode, :ProductCodeName, :PayMode, :PayModeName, :ActionType, :ActionTypeName, :SplitItemId, :SplitItemName
8319
9105
  extend Gem::Deprecate
8320
- deprecate :SplitItemId, :none, 2025, 4
8321
- deprecate :SplitItemId=, :none, 2025, 4
8322
- deprecate :SplitItemName, :none, 2025, 4
8323
- deprecate :SplitItemName=, :none, 2025, 4
9106
+ deprecate :SplitItemId, :none, 2025, 5
9107
+ deprecate :SplitItemId=, :none, 2025, 5
9108
+ deprecate :SplitItemName, :none, 2025, 5
9109
+ deprecate :SplitItemName=, :none, 2025, 5
8324
9110
 
8325
9111
  def initialize(payeruin=nil, owneruin=nil, operateuin=nil, instancetype=nil, instancetypename=nil, resourceid=nil, resourcename=nil, treenodeuniqkey=nil, treenodeuniqkeyname=nil, ruleid=nil, rulename=nil, businesscode=nil, businesscodename=nil, itemcode=nil, itemcodename=nil, regionid=nil, regionname=nil, tag=nil, realtotalcost=nil, cashpayamount=nil, voucherpayamount=nil, incentivepayamount=nil, transferpayamount=nil, allocationtype=nil, belongtreenodeuniqkey=nil, belongrule=nil, othertreenodeuniqkeys=nil, otherrules=nil, projectid=nil, projectname=nil, productcode=nil, productcodename=nil, paymode=nil, paymodename=nil, actiontype=nil, actiontypename=nil, splititemid=nil, splititemname=nil)
8326
9112
  @PayerUin = payeruin
@@ -8432,6 +9218,25 @@ module TencentCloud
8432
9218
  end
8433
9219
  end
8434
9220
 
9221
+ # 归集规则列表
9222
+ class GatherRuleSummary < TencentCloud::Common::AbstractModel
9223
+ # @param RuleDetail: 分账规则表达式
9224
+ # @type RuleDetail: :class:`Tencentcloud::Billing.v20180709.models.AllocationRuleExpression`
9225
+
9226
+ attr_accessor :RuleDetail
9227
+
9228
+ def initialize(ruledetail=nil)
9229
+ @RuleDetail = ruledetail
9230
+ end
9231
+
9232
+ def deserialize(params)
9233
+ unless params['RuleDetail'].nil?
9234
+ @RuleDetail = AllocationRuleExpression.new
9235
+ @RuleDetail.deserialize(params['RuleDetail'])
9236
+ end
9237
+ end
9238
+ end
9239
+
8435
9240
  # Json对象
8436
9241
  class JsonObject < TencentCloud::Common::AbstractModel
8437
9242
  # @param Key: key值
@@ -8452,6 +9257,163 @@ module TencentCloud
8452
9257
  end
8453
9258
  end
8454
9259
 
9260
+ # ModifyAllocationRule请求参数结构体
9261
+ class ModifyAllocationRuleRequest < TencentCloud::Common::AbstractModel
9262
+ # @param RuleId: 所编辑公摊规则ID
9263
+ # @type RuleId: Integer
9264
+ # @param Name: 编辑后公摊规则名称
9265
+ # @type Name: String
9266
+ # @param Type: 公摊策略类型,枚举值如下: 1 - 自定义分摊占比 2 - 等比分摊 3 - 按占比分摊
9267
+ # @type Type: Integer
9268
+ # @param RuleDetail: 编辑后公摊规则表达式
9269
+ # @type RuleDetail: :class:`Tencentcloud::Billing.v20180709.models.AllocationRuleExpression`
9270
+ # @param RatioDetail: 编辑后公摊比例表达式
9271
+ # @type RatioDetail: Array
9272
+ # @param Month: 月份,不传默认当前月
9273
+ # @type Month: String
9274
+
9275
+ attr_accessor :RuleId, :Name, :Type, :RuleDetail, :RatioDetail, :Month
9276
+
9277
+ def initialize(ruleid=nil, name=nil, type=nil, ruledetail=nil, ratiodetail=nil, month=nil)
9278
+ @RuleId = ruleid
9279
+ @Name = name
9280
+ @Type = type
9281
+ @RuleDetail = ruledetail
9282
+ @RatioDetail = ratiodetail
9283
+ @Month = month
9284
+ end
9285
+
9286
+ def deserialize(params)
9287
+ @RuleId = params['RuleId']
9288
+ @Name = params['Name']
9289
+ @Type = params['Type']
9290
+ unless params['RuleDetail'].nil?
9291
+ @RuleDetail = AllocationRuleExpression.new
9292
+ @RuleDetail.deserialize(params['RuleDetail'])
9293
+ end
9294
+ unless params['RatioDetail'].nil?
9295
+ @RatioDetail = []
9296
+ params['RatioDetail'].each do |i|
9297
+ allocationrationexpression_tmp = AllocationRationExpression.new
9298
+ allocationrationexpression_tmp.deserialize(i)
9299
+ @RatioDetail << allocationrationexpression_tmp
9300
+ end
9301
+ end
9302
+ @Month = params['Month']
9303
+ end
9304
+ end
9305
+
9306
+ # ModifyAllocationRule返回参数结构体
9307
+ class ModifyAllocationRuleResponse < TencentCloud::Common::AbstractModel
9308
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9309
+ # @type RequestId: String
9310
+
9311
+ attr_accessor :RequestId
9312
+
9313
+ def initialize(requestid=nil)
9314
+ @RequestId = requestid
9315
+ end
9316
+
9317
+ def deserialize(params)
9318
+ @RequestId = params['RequestId']
9319
+ end
9320
+ end
9321
+
9322
+ # ModifyAllocationUnit请求参数结构体
9323
+ class ModifyAllocationUnitRequest < TencentCloud::Common::AbstractModel
9324
+ # @param Id: 所修改分账单元ID
9325
+ # @type Id: Integer
9326
+ # @param Name: 修改后分账单元名称
9327
+ # @type Name: String
9328
+ # @param SourceName: 修改后分账单元源组织名称
9329
+ # @type SourceName: String
9330
+ # @param SourceId: 修改后分账单元源组织ID
9331
+ # @type SourceId: String
9332
+ # @param Remark: 分账单元备注说明
9333
+ # @type Remark: String
9334
+ # @param Month: 月份,不传默认当前月
9335
+ # @type Month: String
9336
+
9337
+ attr_accessor :Id, :Name, :SourceName, :SourceId, :Remark, :Month
9338
+
9339
+ def initialize(id=nil, name=nil, sourcename=nil, sourceid=nil, remark=nil, month=nil)
9340
+ @Id = id
9341
+ @Name = name
9342
+ @SourceName = sourcename
9343
+ @SourceId = sourceid
9344
+ @Remark = remark
9345
+ @Month = month
9346
+ end
9347
+
9348
+ def deserialize(params)
9349
+ @Id = params['Id']
9350
+ @Name = params['Name']
9351
+ @SourceName = params['SourceName']
9352
+ @SourceId = params['SourceId']
9353
+ @Remark = params['Remark']
9354
+ @Month = params['Month']
9355
+ end
9356
+ end
9357
+
9358
+ # ModifyAllocationUnit返回参数结构体
9359
+ class ModifyAllocationUnitResponse < TencentCloud::Common::AbstractModel
9360
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9361
+ # @type RequestId: String
9362
+
9363
+ attr_accessor :RequestId
9364
+
9365
+ def initialize(requestid=nil)
9366
+ @RequestId = requestid
9367
+ end
9368
+
9369
+ def deserialize(params)
9370
+ @RequestId = params['RequestId']
9371
+ end
9372
+ end
9373
+
9374
+ # ModifyGatherRule请求参数结构体
9375
+ class ModifyGatherRuleRequest < TencentCloud::Common::AbstractModel
9376
+ # @param Id: 所编辑归集规则ID
9377
+ # @type Id: Integer
9378
+ # @param RuleDetail: 所编辑分账规则详情
9379
+ # @type RuleDetail: :class:`Tencentcloud::Billing.v20180709.models.AllocationRuleExpression`
9380
+ # @param Month: 月份,不传默认当前月
9381
+ # @type Month: String
9382
+
9383
+ attr_accessor :Id, :RuleDetail, :Month
9384
+
9385
+ def initialize(id=nil, ruledetail=nil, month=nil)
9386
+ @Id = id
9387
+ @RuleDetail = ruledetail
9388
+ @Month = month
9389
+ end
9390
+
9391
+ def deserialize(params)
9392
+ @Id = params['Id']
9393
+ unless params['RuleDetail'].nil?
9394
+ @RuleDetail = AllocationRuleExpression.new
9395
+ @RuleDetail.deserialize(params['RuleDetail'])
9396
+ end
9397
+ @Month = params['Month']
9398
+ end
9399
+ end
9400
+
9401
+ # ModifyGatherRule返回参数结构体
9402
+ class ModifyGatherRuleResponse < TencentCloud::Common::AbstractModel
9403
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9404
+ # @type RequestId: String
9405
+
9406
+ attr_accessor :RequestId
9407
+
9408
+ def initialize(requestid=nil)
9409
+ @RequestId = requestid
9410
+ end
9411
+
9412
+ def deserialize(params)
9413
+ @RequestId = params['RequestId']
9414
+ end
9415
+ end
9416
+
8455
9417
  # PayDeals请求参数结构体
8456
9418
  class PayDealsRequest < TencentCloud::Common::AbstractModel
8457
9419
  # @param OrderIds: 需要支付的一个或者多个子订单号,与BigDealIds字段两者必须且仅传一个参数