|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using NPoco;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace POSV.Entity
|
|
|
|
|
{
|
|
|
|
|
[Serializable]
|
|
|
|
|
[JsonObject(MemberSerialization.OptIn)]
|
|
|
|
|
[TableName("pos_saoma_pay_ticket")]
|
|
|
|
|
[PrimaryKey(new string[] { "id" }, AutoIncrement = false)]
|
|
|
|
|
public class SaomaPayTicket : BaseEntity
|
|
|
|
|
{
|
|
|
|
|
public SaomaPayTicket()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 租户ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "tenantId")]
|
|
|
|
|
[Column("tenantId")]
|
|
|
|
|
public string TenantId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 门店ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "storeId")]
|
|
|
|
|
[Column("storeId")]
|
|
|
|
|
public string StoreId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 员工ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "workerId")]
|
|
|
|
|
[Column("workerId")]
|
|
|
|
|
public string WorkerId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 班次号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "shiftNo")]
|
|
|
|
|
[Column("shiftNo")]
|
|
|
|
|
public string ShiftNo { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 订单号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "orderNo")]
|
|
|
|
|
[Column("orderNo")]
|
|
|
|
|
public string OrderNo { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 支付码
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "authCode")]
|
|
|
|
|
[Column("authCode")]
|
|
|
|
|
public string AuthCode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 支付金额
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "money")]
|
|
|
|
|
[Column("money")]
|
|
|
|
|
public decimal Money { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 支付流水号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "serialNo")]
|
|
|
|
|
[Column("serialNo")]
|
|
|
|
|
public string SerialNo { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 支付时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "payTime")]
|
|
|
|
|
[Column("payTime")]
|
|
|
|
|
public string PayTime { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 业务类型(0-销售1-充值2-礼品卡销售)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "busType")]
|
|
|
|
|
[Column("busType")]
|
|
|
|
|
public int BusType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 状态(0未支付1支付成功)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "payStatus")]
|
|
|
|
|
[Column("payStatus")]
|
|
|
|
|
public int PayStatus { get; set; }
|
|
|
|
|
|
|
|
|
|
[Ignore]
|
|
|
|
|
public string OrderStatus { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 支付渠道
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "payChannel")]
|
|
|
|
|
[Column("payChannel")]
|
|
|
|
|
public int PayChannel { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 支付方式编号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "payTypeNo")]
|
|
|
|
|
[Column("payTypeNo")]
|
|
|
|
|
public string PayTypeNo { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 支付方式名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "payTypeName")]
|
|
|
|
|
[Column("payTypeName")]
|
|
|
|
|
public string PayTypeName { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|