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.

180 lines
4.7 KiB
C#

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