Files
juipnet/Infrastructure/ServiceClient/Alipay.AopSdk.Core/Domain/DiscountInfo.cs
wanyongkang d318014316 初始提交
2020-10-07 20:25:03 +08:00

144 lines
3.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using Newtonsoft.Json;
namespace Alipay.AopSdk.Core.Domain
{
/// <summary>
/// DiscountInfo Data Structure.
/// </summary>
[Serializable]
public class DiscountInfo : AopObject
{
/// <summary>
/// 全场代金的门槛金额
/// </summary>
[JsonProperty("apply_condition")]
public string ApplyCondition { get; set; }
/// <summary>
/// 买M送N的描述
/// </summary>
[JsonProperty("buy_send_desc")]
public string BuySendDesc { get; set; }
/// <summary>
/// 折扣率 仅当券类型为折扣券时有效 有效折扣率取值范围0.11-0.99 仅允许保留小数点后两位
/// </summary>
[JsonProperty("discount")]
public string Discount { get; set; }
/// <summary>
/// 最近店铺离当前用户的距离
/// </summary>
[JsonProperty("distance")]
public string Distance { get; set; }
/// <summary>
/// 优惠结束时间
/// </summary>
[JsonProperty("end_time")]
public string EndTime { get; set; }
/// <summary>
/// 券的图片地址
/// </summary>
[JsonProperty("image_url")]
public string ImageUrl { get; set; }
/// <summary>
/// 优惠id
/// </summary>
[JsonProperty("item_id")]
public string ItemId { get; set; }
/// <summary>
/// 券的名称
/// </summary>
[JsonProperty("item_name")]
public string ItemName { get; set; }
/// <summary>
/// 商品的一些标签
/// </summary>
[JsonProperty("label")]
public string Label { get; set; }
/// <summary>
/// 减至券的原价
/// </summary>
[JsonProperty("original_price")]
public string OriginalPrice { get; set; }
/// <summary>
/// 每满thresholdPrice元减perPrice元封顶topPrice元
/// </summary>
[JsonProperty("per_price")]
public string PerPrice { get; set; }
/// <summary>
/// 当券类型是代金券的时候,这个字段代表实际金额;当券类型是减至券的时候,这个字段代表减至到的金额
/// </summary>
[JsonProperty("price")]
public string Price { get; set; }
/// <summary>
/// 券推荐语
/// </summary>
[JsonProperty("reason")]
public string Reason { get; set; }
/// <summary>
/// 买A送B中B的描述
/// </summary>
[JsonProperty("send_item_name")]
public string SendItemName { get; set; }
/// <summary>
/// 门店id
/// </summary>
[JsonProperty("shop_id")]
public string ShopId { get; set; }
/// <summary>
/// 券的店铺名
/// </summary>
[JsonProperty("shop_name")]
public string ShopName { get; set; }
/// <summary>
/// 已领数
/// </summary>
[JsonProperty("sold")]
public string Sold { get; set; }
/// <summary>
/// 优惠开始时间
/// </summary>
[JsonProperty("start_time")]
public string StartTime { get; set; }
/// <summary>
/// 每满thresholdPrice元减perPrice元封顶topPrice元
/// </summary>
[JsonProperty("threshold_price")]
public string ThresholdPrice { get; set; }
/// <summary>
/// 每满减用的字段每满thresholdPrice元减perPrice元封顶topPrice元
/// </summary>
[JsonProperty("top_price")]
public string TopPrice { get; set; }
/// <summary>
/// 目前有discount:折扣券;cash:代金券;exchange:兑换券;limit_reduce_cash:减至券
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }
/// <summary>
/// 券二级类型。all_discount:全场折扣;single_discount:单品折扣;all_cash:全场代金;single_cash单品代金
/// </summary>
[JsonProperty("vol_type")]
public string VolType { get; set; }
}
}