lib/v20180709/models.rb in tencentcloud-sdk-billing-3.0.640 vs lib/v20180709/models.rb in tencentcloud-sdk-billing-3.0.641
- old
+ new
@@ -143,17 +143,26 @@
# @param RegionId: 地域ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RegionId: String
# @param ProjectId: 项目ID
# @type ProjectId: Integer
- # @param PriceInfo: 价格属性
+ # @param PriceInfo: 价格属性:该组件除单价、时长外的其他影响折扣定价的属性信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PriceInfo: Array
+ # @param AssociatedOrder: 关联交易单据ID:和本笔交易关联单据 ID,如,冲销订单,记录原订单、重结订单,退费单记录对应的原购买订单号
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type AssociatedOrder: :class:`Tencentcloud::Billing.v20180709.models.BillDetailAssociatedOrder`
+ # @param Formula: 计算说明:特殊交易类型计费结算的详细计算说明,如退费及变配
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type Formula: String
+ # @param FormulaUrl: 计费规则:各产品详细的计费规则官网说明链接
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type FormulaUrl: String
- attr_accessor :BusinessCodeName, :ProductCodeName, :PayModeName, :ProjectName, :RegionName, :ZoneName, :ResourceId, :ResourceName, :ActionTypeName, :OrderId, :BillId, :PayTime, :FeeBeginTime, :FeeEndTime, :ComponentSet, :PayerUin, :OwnerUin, :OperateUin, :Tags, :BusinessCode, :ProductCode, :ActionType, :RegionId, :ProjectId, :PriceInfo
+ attr_accessor :BusinessCodeName, :ProductCodeName, :PayModeName, :ProjectName, :RegionName, :ZoneName, :ResourceId, :ResourceName, :ActionTypeName, :OrderId, :BillId, :PayTime, :FeeBeginTime, :FeeEndTime, :ComponentSet, :PayerUin, :OwnerUin, :OperateUin, :Tags, :BusinessCode, :ProductCode, :ActionType, :RegionId, :ProjectId, :PriceInfo, :AssociatedOrder, :Formula, :FormulaUrl
- 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, payeruin=nil, owneruin=nil, operateuin=nil, tags=nil, businesscode=nil, productcode=nil, actiontype=nil, regionid=nil, projectid=nil, priceinfo=nil)
+ 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, payeruin=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)
@BusinessCodeName = businesscodename
@ProductCodeName = productcodename
@PayModeName = paymodename
@ProjectName = projectname
@RegionName = regionname
@@ -175,10 +184,13 @@
@ProductCode = productcode
@ActionType = actiontype
@RegionId = regionid
@ProjectId = projectid
@PriceInfo = priceinfo
+ @AssociatedOrder = associatedorder
+ @Formula = formula
+ @FormulaUrl = formulaurl
end
def deserialize(params)
@BusinessCodeName = params['BusinessCodeName']
@ProductCodeName = params['ProductCodeName']
@@ -217,13 +229,61 @@
@ProductCode = params['ProductCode']
@ActionType = params['ActionType']
@RegionId = params['RegionId']
@ProjectId = params['ProjectId']
@PriceInfo = params['PriceInfo']
+ unless params['AssociatedOrder'].nil?
+ @AssociatedOrder = BillDetailAssociatedOrder.new
+ @AssociatedOrder.deserialize(params['AssociatedOrder'])
+ end
+ @Formula = params['Formula']
+ @FormulaUrl = params['FormulaUrl']
end
end
+ # 明细账单关联单据信息
+ class BillDetailAssociatedOrder < TencentCloud::Common::AbstractModel
+ # @param PrepayPurchase: 新购订单
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type PrepayPurchase: String
+ # @param PrepayRenew: 续费订单
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type PrepayRenew: String
+ # @param PrepayModifyUp: 升配订单
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type PrepayModifyUp: String
+ # @param ReverseOrder: 冲销订单
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type ReverseOrder: String
+ # @param NewOrder: 优惠调整后订单
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type NewOrder: String
+ # @param Original: 优惠调整前订单
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type Original: String
+
+ attr_accessor :PrepayPurchase, :PrepayRenew, :PrepayModifyUp, :ReverseOrder, :NewOrder, :Original
+
+ def initialize(prepaypurchase=nil, prepayrenew=nil, prepaymodifyup=nil, reverseorder=nil, neworder=nil, original=nil)
+ @PrepayPurchase = prepaypurchase
+ @PrepayRenew = prepayrenew
+ @PrepayModifyUp = prepaymodifyup
+ @ReverseOrder = reverseorder
+ @NewOrder = neworder
+ @Original = original
+ end
+
+ def deserialize(params)
+ @PrepayPurchase = params['PrepayPurchase']
+ @PrepayRenew = params['PrepayRenew']
+ @PrepayModifyUp = params['PrepayModifyUp']
+ @ReverseOrder = params['ReverseOrder']
+ @NewOrder = params['NewOrder']
+ @Original = params['Original']
+ end
+ end
+
# 账单明细组件对象
class BillDetailComponent < TencentCloud::Common::AbstractModel
# @param ComponentCodeName: 组件类型:用户购买的产品或服务对应的组件大类,例如:云服务器 CVM 的组件:CPU、内存等
# @type ComponentCodeName: String
# @param ItemCodeName: 组件名称:用户购买的产品或服务,所包含的具体组件
@@ -293,19 +353,22 @@
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OriginalCostWithSP: String
# @param BlendedDiscount: 混合折扣率:综合各类折扣抵扣信息后的最终折扣率,混合折扣率 = 优惠后总价 / 组件原价
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BlendedDiscount: String
+ # @param ComponentConfig: 配置描述:资源配置规格信息
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type ComponentConfig: Array
- 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
+ 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
extend Gem::Deprecate
deprecate :SpecifiedPrice, :none, 2023, 8
deprecate :SpecifiedPrice=, :none, 2023, 8
deprecate :SPDeduction, :none, 2023, 8
deprecate :SPDeduction=, :none, 2023, 8
- 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)
+ 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)
@ComponentCodeName = componentcodename
@ItemCodeName = itemcodename
@SinglePrice = singleprice
@SpecifiedPrice = specifiedprice
@PriceUnit = priceunit
@@ -331,10 +394,11 @@
@OriginalCostWithRI = originalcostwithri
@SPDeductionRate = spdeductionrate
@SPDeduction = spdeduction
@OriginalCostWithSP = originalcostwithsp
@BlendedDiscount = blendeddiscount
+ @ComponentConfig = componentconfig
end
def deserialize(params)
@ComponentCodeName = params['ComponentCodeName']
@ItemCodeName = params['ItemCodeName']
@@ -363,13 +427,43 @@
@OriginalCostWithRI = params['OriginalCostWithRI']
@SPDeductionRate = params['SPDeductionRate']
@SPDeduction = params['SPDeduction']
@OriginalCostWithSP = params['OriginalCostWithSP']
@BlendedDiscount = params['BlendedDiscount']
+ unless params['ComponentConfig'].nil?
+ @ComponentConfig = []
+ params['ComponentConfig'].each do |i|
+ billdetailcomponentconfig_tmp = BillDetailComponentConfig.new
+ billdetailcomponentconfig_tmp.deserialize(i)
+ @ComponentConfig << billdetailcomponentconfig_tmp
+ end
+ end
end
end
+ # 明细账单配置描述结构
+ class BillDetailComponentConfig < TencentCloud::Common::AbstractModel
+ # @param Name: 配置描述名称
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type Name: String
+ # @param Value: 配置描述值
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type Value: String
+
+ attr_accessor :Name, :Value
+
+ def initialize(name=nil, value=nil)
+ @Name = name
+ @Value = value
+ end
+
+ def deserialize(params)
+ @Name = params['Name']
+ @Value = params['Value']
+ end
+ end
+
# 账单资源汇总数据对象
class BillResourceSummary < TencentCloud::Common::AbstractModel
# @param BusinessCodeName: 产品名称:用户所采购的各类云产品,例如:云服务器 CVM
# @type BusinessCodeName: String
# @param ProductCodeName: 子产品名称:用户采购的具体产品细分类型,例如:云服务器 CVM-标准型 S1
@@ -1693,19 +1787,19 @@
# @type Limit: Integer
# @param PeriodType: 周期类型,byUsedTime按计费周期/byPayTime按扣费周期。需要与费用中心该月份账单的周期保持一致。您可前往[账单概览](https://console.cloud.tencent.com/expense/bill/overview)页面顶部查看确认您的账单统计周期类型。
# @type PeriodType: String
# @param Month: 月份,格式为yyyy-mm,Month和BeginTime&EndTime必传一个,如果有传BeginTime&EndTime则Month字段无效。不能早于开通账单2.0的月份,最多可拉取18个月内的数据。
# @type Month: String
- # @param BeginTime: 周期开始时间,格式为yyyy-mm-dd hh:ii:ss,Month和BeginTime&EndTime必传一个,如果有该字段则Month字段无效。BeginTime和EndTime必须一起传。不能早于开通账单2.0的月份,最多可拉取18个月内的数据。(不支持跨月查询)
+ # @param BeginTime: 周期开始时间,格式为yyyy-mm-dd hh:ii:ss,Month和BeginTime&EndTime必传一个,如果有该字段则Month字段无效。BeginTime和EndTime必须一起传,且为相同月份,不支持跨月查询,查询结果是整月数据。不能早于开通账单2.0的月份,最多可拉取18个月内的数据。
# @type BeginTime: String
- # @param EndTime: 周期结束时间,格式为yyyy-mm-dd hh:ii:ss,Month和BeginTime&EndTime必传一个,如果有该字段则Month字段无效。BeginTime和EndTime必须一起传。不能早于开通账单2.0的月份,最多可拉取18个月内的数据。(不支持跨月查询)
+ # @param EndTime: 周期结束时间,格式为yyyy-mm-dd hh:ii:ss,Month和BeginTime&EndTime必传一个,如果有该字段则Month字段无效。BeginTime和EndTime必须一起传,且为相同月份,不支持跨月查询,查询结果是整月数据。不能早于开通账单2.0的月份,最多可拉取18个月内的数据。
# @type EndTime: String
# @param NeedRecordNum: 是否需要访问列表的总记录数,用于前端分页
# 1-表示需要, 0-表示不需要
# @type NeedRecordNum: Integer
# @param ProductCode: 已废弃参数,未开放
# @type ProductCode: String
- # @param PayMode: 付费模式 prePay/postPay
+ # @param PayMode: 付费模式 prePay(表示包年包月)/postPay(表示按时按量)
# @type PayMode: String
# @param ResourceId: 查询指定资源信息
# @type ResourceId: String
# @param ActionType: 查询交易类型(请使用交易类型名称入参),入参示例枚举如下:
# 包年包月新购