using System; using System.Collections.Generic; using System.Linq; using System.Text; using Newtonsoft.Json; using NPoco; namespace POSV.Entity { [Serializable] [JsonObject(MemberSerialization.OptIn)] [TableName("pos_paymode")] [PrimaryKey(new string[] { "id","no" } , AutoIncrement = false)] public class PayMode:BaseEntity { public PayMode() { } /// /// 租户ID /// [JsonProperty(PropertyName = "tenantId")] [Column("tenantId")] public string TenantId { get; set; } /// /// 编号 /// [JsonProperty(PropertyName = "no")] [Column("no")] public string No { get; set; } /// /// 名称 /// [JsonProperty(PropertyName = "name")] [Column("name")] public string Name { get; set; } /// /// 付款类型ID /// [JsonProperty(PropertyName = "typeId")] [Column("typeId")] public string TypeId { get; set; } /// /// 快捷方式 /// [JsonProperty(PropertyName = "shortcut")] [Column("shortcut")] public string Shortcut { get; set; } /// /// 是否参与积分(0否1是) /// [JsonProperty(PropertyName = "pointFlag")] [Column("pointFlag")] public int PointFlag { get; set; } /// /// 是否展示(0否1是) /// [JsonProperty(PropertyName = "frontFlag")] [Column("frontFlag")] public int FrontFlag { get; set; } /// /// 会员充值(0否1是) /// [JsonProperty(PropertyName = "rechargeFlag")] [Column("rechargeFlag")] public int RechargeFlag { get; set; } /// /// 折扣率(%) /// [JsonProperty(PropertyName = "discount")] [Column("discount")] public decimal Discount { get; set; } /// /// 固定金额 /// [JsonProperty(PropertyName = "fixeAmount")] [Column("fixeAmount")] public decimal FixeAmount { get; set; } /// /// 支付参数 /// [JsonProperty(PropertyName = "pbody")] [SerializedColumn("pbody")] public Dictionary Body { get; set; } /// /// 支付参数 /// [JsonProperty(PropertyName = "certText")] [Column("certText")] public string CertText { get; set; } /// /// 扩展字段1 /// [JsonProperty(PropertyName = "ext1")] [Column("ext1")] public string Ext1 { get; set; } /// /// 扩展字段2 /// [JsonProperty(PropertyName = "ext2")] [Column("ext2")] public string Ext2 { get; set; } /// /// 扩展字段3 /// [JsonProperty(PropertyName = "ext3")] [Column("ext3")] public string Ext3 { get; set; } /// /// 是否实收(0-否;1-是;) /// [JsonProperty(PropertyName = "incomeFlag")] [Column("incomeFlag")] public int IncomeFlag { get; set; } /// /// 第三方扣费类型 /// [JsonProperty(PropertyName = "otherRateType")] [Column("otherRateType")] public int OtherRateType { get; set; } /// /// 第三方扣费值 /// [JsonProperty(PropertyName = "otherRateValue")] [Column("otherRateValue")] public decimal OtherRateValue { get; set; } /// /// 支付结算扣率 /// [JsonProperty(PropertyName = "periodDiscount")] [SerializedColumn("periodDiscount")] public List Settlement { get; set; } } [Serializable] [JsonObject(MemberSerialization.OptIn)] public class PeriodDiscount { /// /// 开始日期 /// [JsonProperty(PropertyName = "startDate")] public string StartDate { get; set; } /// /// 结束日期 /// [JsonProperty(PropertyName = "endDate")] public string EndDate { get; set; } /// /// 扣率 /// [JsonProperty(PropertyName = "discount")] public decimal Discount { get; set; } } }