/* * 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 Deal : AbstractModel { /// /// 订单号 /// [JsonProperty("OrderId")] public string OrderId{ get; set; } /// /// 订单状态 /// [JsonProperty("Status")] public long? Status{ get; set; } /// /// 支付者 /// [JsonProperty("Payer")] public string Payer{ get; set; } /// /// 创建时间 /// [JsonProperty("CreateTime")] public string CreateTime{ get; set; } /// /// 创建人 /// [JsonProperty("Creator")] public string Creator{ get; set; } /// /// 实际支付金额(分) /// [JsonProperty("RealTotalCost")] public long? RealTotalCost{ get; set; } /// /// 代金券抵扣金额(分) /// [JsonProperty("VoucherDecline")] public long? VoucherDecline{ get; set; } /// /// 项目ID /// [JsonProperty("ProjectId")] public long? ProjectId{ get; set; } /// /// 产品分类ID /// [JsonProperty("GoodsCategoryId")] public long? GoodsCategoryId{ get; set; } /// /// 产品详情 /// [JsonProperty("ProductInfo")] public ProductInfo[] ProductInfo{ get; set; } /// /// 时长 /// [JsonProperty("TimeSpan")] public float? TimeSpan{ get; set; } /// /// 时间单位 /// [JsonProperty("TimeUnit")] public string TimeUnit{ get; set; } /// /// 货币单位 /// [JsonProperty("Currency")] public string Currency{ get; set; } /// /// 折扣率 /// [JsonProperty("Policy")] public float? Policy{ get; set; } /// /// 单价(分) /// [JsonProperty("Price")] public float? Price{ get; set; } /// /// 原价(分) /// [JsonProperty("TotalCost")] public float? TotalCost{ get; set; } /// /// 产品编码 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ProductCode")] public string ProductCode{ get; set; } /// /// 子产品编码 /// [JsonProperty("SubProductCode")] public string SubProductCode{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "OrderId", this.OrderId); this.SetParamSimple(map, prefix + "Status", this.Status); this.SetParamSimple(map, prefix + "Payer", this.Payer); this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime); this.SetParamSimple(map, prefix + "Creator", this.Creator); this.SetParamSimple(map, prefix + "RealTotalCost", this.RealTotalCost); this.SetParamSimple(map, prefix + "VoucherDecline", this.VoucherDecline); this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId); this.SetParamSimple(map, prefix + "GoodsCategoryId", this.GoodsCategoryId); this.SetParamArrayObj(map, prefix + "ProductInfo.", this.ProductInfo); this.SetParamSimple(map, prefix + "TimeSpan", this.TimeSpan); this.SetParamSimple(map, prefix + "TimeUnit", this.TimeUnit); this.SetParamSimple(map, prefix + "Currency", this.Currency); this.SetParamSimple(map, prefix + "Policy", this.Policy); this.SetParamSimple(map, prefix + "Price", this.Price); this.SetParamSimple(map, prefix + "TotalCost", this.TotalCost); this.SetParamSimple(map, prefix + "ProductCode", this.ProductCode); this.SetParamSimple(map, prefix + "SubProductCode", this.SubProductCode); } } }