using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
using NPoco;
using POSV.Entity;
using POSV.Utils;
namespace POSV.ShoppingCart
{
///
/// 订单行支付明细
///
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
[TableName("pos_order_item_pay")]
[PrimaryKey(new string[] { "id" }, AutoIncrement = false)]
public class OrderItemPay : BaseEntity
{
public OrderItemPay()
{
}
///
/// 租户ID
///
[JsonProperty(PropertyName = "tenantId")]
[Column("tenantId")]
public string TenantId { get; set; }
///
/// 订单ID
///
[JsonProperty(PropertyName = "orderId")]
[Column("orderId")]
public string OrderId { get; set; }
///
/// 订单号
///
[JsonProperty(PropertyName = "tradeNo")]
[Column("tradeNo")]
public string TradeNo { get; set; }
///
/// 订单明细ID
///
[JsonProperty(PropertyName = "itemId")]
[Column("itemId")]
public string ItemId { get; set; }
///
/// 商品ID
///
[JsonProperty(PropertyName = "productId")]
[Column("productId")]
public string ProductId { get; set; }
///
/// 规格ID
///
[JsonProperty(PropertyName = "specId")]
[Column("specId")]
public string SpecId { get; set; }
///
/// 支付记录ID
///
[JsonProperty(PropertyName = "payId")]
[Column("payId")]
public string PayId { get; set; }
///
/// 付款方式编号
///
[JsonProperty(PropertyName = "no")]
[Column("no")]
public string No { get; set; }
///
/// 付款方式名称
///
[JsonProperty(PropertyName = "name")]
[Column("name")]
public string Name { get; set; }
///
/// 分摊的券占用金额,比如满20元可用5元,这个字段就是分摊占用的20元,因为这个是要排除后才能够计算,剩余可用券金额
///
[JsonProperty(PropertyName = "shareCouponLeastCost")]
[Column("shareCouponLeastCost")]
public decimal ShareCouponLeastCost { get; set; }
///
/// 分摊金额
///
[JsonProperty(PropertyName = "shareAmount")]
[Column("shareAmount")]
public decimal ShareAmount { get; set; }
///
/// 退款金额
///
[JsonProperty(PropertyName = "ramount")]
[Column("ramount")]
public decimal RefundAmount { get; set; }
///
/// 订单完成时间(格式:yyyy-MM-dd HH:mm:ss)
///
[JsonProperty(PropertyName = "finishDate")]
[Column("finishDate")]
public string FinishDate { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
///
/// 扩展信息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; }
}
}