/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ namespace TencentCloud.Billing.V20180709.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class BillDetailComponent : AbstractModel { /// /// 组件类型:资源组件类型的名称,如内存、硬盘等 /// [JsonProperty("ComponentCodeName")] public string ComponentCodeName{ get; set; } /// /// 组件名称:资源组件的名称,如云数据库MySQL-内存等 /// [JsonProperty("ItemCodeName")] public string ItemCodeName{ get; set; } /// /// 组件刊例价:资源组件的原始价格,保持原始粒度 /// [JsonProperty("SinglePrice")] public string SinglePrice{ get; set; } /// /// 组件指定价 /// [JsonProperty("SpecifiedPrice")] public string SpecifiedPrice{ get; set; } /// /// 价格单位 /// [JsonProperty("PriceUnit")] public string PriceUnit{ get; set; } /// /// 组件用量 /// [JsonProperty("UsedAmount")] public string UsedAmount{ get; set; } /// /// 组件用量单位 /// [JsonProperty("UsedAmountUnit")] public string UsedAmountUnit{ get; set; } /// /// 使用时长 /// [JsonProperty("TimeSpan")] public string TimeSpan{ get; set; } /// /// 时长单位 /// [JsonProperty("TimeUnitName")] public string TimeUnitName{ get; set; } /// /// 组件原价 /// [JsonProperty("Cost")] public string Cost{ get; set; } /// /// 折扣率 /// [JsonProperty("Discount")] public string Discount{ get; set; } /// /// 优惠类型 /// [JsonProperty("ReduceType")] public string ReduceType{ get; set; } /// /// 优惠后总价 /// [JsonProperty("RealCost")] public string RealCost{ get; set; } /// /// 代金券支付金额 /// [JsonProperty("VoucherPayAmount")] public string VoucherPayAmount{ get; set; } /// /// 现金支付金额 /// [JsonProperty("CashPayAmount")] public string CashPayAmount{ get; set; } /// /// 赠送账户支付金额 /// [JsonProperty("IncentivePayAmount")] public string IncentivePayAmount{ get; set; } /// /// 组件类型代码(未开放的字段) /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ItemCode")] public string ItemCode{ get; set; } /// /// 组件名称代码(未开放的字段) /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ComponentCode")] public string ComponentCode{ get; set; } /// /// 合同价 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ContractPrice")] public string ContractPrice{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "ComponentCodeName", this.ComponentCodeName); this.SetParamSimple(map, prefix + "ItemCodeName", this.ItemCodeName); this.SetParamSimple(map, prefix + "SinglePrice", this.SinglePrice); this.SetParamSimple(map, prefix + "SpecifiedPrice", this.SpecifiedPrice); this.SetParamSimple(map, prefix + "PriceUnit", this.PriceUnit); this.SetParamSimple(map, prefix + "UsedAmount", this.UsedAmount); this.SetParamSimple(map, prefix + "UsedAmountUnit", this.UsedAmountUnit); this.SetParamSimple(map, prefix + "TimeSpan", this.TimeSpan); this.SetParamSimple(map, prefix + "TimeUnitName", this.TimeUnitName); this.SetParamSimple(map, prefix + "Cost", this.Cost); this.SetParamSimple(map, prefix + "Discount", this.Discount); this.SetParamSimple(map, prefix + "ReduceType", this.ReduceType); this.SetParamSimple(map, prefix + "RealCost", this.RealCost); this.SetParamSimple(map, prefix + "VoucherPayAmount", this.VoucherPayAmount); this.SetParamSimple(map, prefix + "CashPayAmount", this.CashPayAmount); this.SetParamSimple(map, prefix + "IncentivePayAmount", this.IncentivePayAmount); this.SetParamSimple(map, prefix + "ItemCode", this.ItemCode); this.SetParamSimple(map, prefix + "ComponentCode", this.ComponentCode); this.SetParamSimple(map, prefix + "ContractPrice", this.ContractPrice); } } }