117 lines
5.7 KiB
C#
117 lines
5.7 KiB
C#
/*
|
||
* 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.Batch.V20170312.Models
|
||
{
|
||
using Newtonsoft.Json;
|
||
using System.Collections.Generic;
|
||
using TencentCloud.Common;
|
||
|
||
public class ItemPrice : AbstractModel
|
||
{
|
||
|
||
/// <summary>
|
||
/// 后续合计费用的原价,后付费模式使用,单位:元。<br><li>如返回了其他时间区间项,如UnitPriceSecondStep,则本项代表时间区间在(0, 96)小时;若未返回其他时间区间项,则本项代表全时段,即(0, ∞)小时
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("UnitPrice")]
|
||
public float? UnitPrice{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 后续计价单元,后付费模式使用,可取值范围: <br><li>HOUR:表示计价单元是按每小时来计算。当前涉及该计价单元的场景有:实例按小时后付费(POSTPAID_BY_HOUR)、带宽按小时后付费(BANDWIDTH_POSTPAID_BY_HOUR):<br><li>GB:表示计价单元是按每GB来计算。当前涉及该计价单元的场景有:流量按小时后付费(TRAFFIC_POSTPAID_BY_HOUR)。
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("ChargeUnit")]
|
||
public string ChargeUnit{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 预支合计费用的原价,预付费模式使用,单位:元。
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("OriginalPrice")]
|
||
public float? OriginalPrice{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 预支合计费用的折扣价,预付费模式使用,单位:元。
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("DiscountPrice")]
|
||
public float? DiscountPrice{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 折扣,如20代表2折
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("Discount")]
|
||
public ulong? Discount{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 后续合计费用的折扣价,后付费模式使用,单位:元<br><li>如返回了其他时间区间项,如UnitPriceDiscountSecondStep,则本项代表时间区间在(0, 96)小时;若未返回其他时间区间项,则本项代表全时段,即(0, ∞)小时
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("UnitPriceDiscount")]
|
||
public float? UnitPriceDiscount{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 使用时间区间在(96, 360)小时的后续合计费用的原价,后付费模式使用,单位:元。
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("UnitPriceSecondStep")]
|
||
public float? UnitPriceSecondStep{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 使用时间区间在(96, 360)小时的后续合计费用的折扣价,后付费模式使用,单位:元
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("UnitPriceDiscountSecondStep")]
|
||
public float? UnitPriceDiscountSecondStep{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 使用时间区间在(360, ∞)小时的后续合计费用的原价,后付费模式使用,单位:元。
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("UnitPriceThirdStep")]
|
||
public float? UnitPriceThirdStep{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 使用时间区间在(360, ∞)小时的后续合计费用的折扣价,后付费模式使用,单位:元
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("UnitPriceDiscountThirdStep")]
|
||
public float? UnitPriceDiscountThirdStep{ get; set; }
|
||
|
||
|
||
/// <summary>
|
||
/// For internal usage only. DO NOT USE IT.
|
||
/// </summary>
|
||
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
||
{
|
||
this.SetParamSimple(map, prefix + "UnitPrice", this.UnitPrice);
|
||
this.SetParamSimple(map, prefix + "ChargeUnit", this.ChargeUnit);
|
||
this.SetParamSimple(map, prefix + "OriginalPrice", this.OriginalPrice);
|
||
this.SetParamSimple(map, prefix + "DiscountPrice", this.DiscountPrice);
|
||
this.SetParamSimple(map, prefix + "Discount", this.Discount);
|
||
this.SetParamSimple(map, prefix + "UnitPriceDiscount", this.UnitPriceDiscount);
|
||
this.SetParamSimple(map, prefix + "UnitPriceSecondStep", this.UnitPriceSecondStep);
|
||
this.SetParamSimple(map, prefix + "UnitPriceDiscountSecondStep", this.UnitPriceDiscountSecondStep);
|
||
this.SetParamSimple(map, prefix + "UnitPriceThirdStep", this.UnitPriceThirdStep);
|
||
this.SetParamSimple(map, prefix + "UnitPriceDiscountThirdStep", this.UnitPriceDiscountThirdStep);
|
||
}
|
||
}
|
||
}
|
||
|