using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace POSV.Card { /// /// Gift(充值方案赠送礼品信息)说明 /// [Serializable] [JsonObject(MemberSerialization.OptIn)] public class CardRechargeSchemeGift { /// /// 明细ID(唯一标识) /// [JsonProperty(PropertyName = "id")] public string Id { get; set; } /// /// 起始金额 /// [JsonProperty(PropertyName = "startAmount")] public decimal StartAmount { get; set; } /// /// 礼品编号 /// [JsonProperty(PropertyName = "no")] public string No { get; set; } /// /// 礼品名称 /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// 礼品规格 /// [JsonProperty(PropertyName = "spec")] public string Spec { get; set; } /// /// 礼品单位 /// [JsonProperty(PropertyName = "unit")] public string Unit { get; set; } /// /// 礼品条码 /// [JsonProperty(PropertyName = "barcode")] public string Barcode { get; set; } /// /// 单次赠送数量 /// [JsonProperty(PropertyName = "num")] public decimal Num { get; set; } /// /// 总数 /// [JsonProperty(PropertyName = "limitNum")] public decimal LimitNum { get; set; } /// /// 已送数量 /// [JsonProperty(PropertyName = "outNum")] public decimal OutNum { get; set; } public string DisPlayName { get { return string.Format("{0}{1}{2}个", this.Name,this.Spec, this.Num); } } } }