You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.0 KiB
C#

9 months ago
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace POSV.Card
{
/// <summary>
/// Coupon(充值方案赠送电子券信息)说明
/// </summary>
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
public class CardRechargeSchemeCoupon
{
/// <summary>
/// 赠送信息ID(唯一标识)
/// </summary>
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
/// <summary>
/// 起始金额
/// </summary>
[JsonProperty(PropertyName = "startAmount")]
public decimal StartAmount { get; set; }
/// <summary>
/// 券类型
/// </summary>
[JsonProperty(PropertyName = "couponType")]
public string CouponType { get; set; }
/// <summary>
/// 券编号
/// </summary>
[JsonProperty(PropertyName = "couponNo")]
public string CouponNo { get; set; }
/// <summary>
/// 券标题
/// </summary>
[JsonProperty(PropertyName = "title")]
public string Title { get; set; }
/// <summary>
/// 优惠描述
/// </summary>
[JsonProperty(PropertyName = "content")]
public string Content { get; set; }
/// <summary>
/// 单次赠送数量
/// </summary>
[JsonProperty(PropertyName = "num")]
public decimal Num { get; set; }
/// <summary>
/// 总数
/// </summary>
[JsonProperty(PropertyName = "limitNum")]
public decimal LimitNum { get; set; }
/// <summary>
/// 已送数量
/// </summary>
[JsonProperty(PropertyName = "outNum")]
public decimal OutNum { get; set; }
public string DisPlayName
{
get
{
return string.Format("{0}{1}个", this.Title, this.Num);
}
}
}
}