using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace POSV.Card { /// /// 消费撤销 /// [Serializable] [JsonObject(MemberSerialization.OptIn)] public class CardTradeCancelRequest { /// /// 交易参考号 /// [JsonProperty(PropertyName = "tradeVoucherNo")] public string TradeVoucherNo { get; set; } /// /// 商户订单号(tradeVoucherNo,tradeNo不能同时为空) /// [JsonProperty(PropertyName = "tradeNo")] public string TradeNo { get; set; } /// /// 业务单据号 /// [JsonProperty(PropertyName = "ticketNo")] public string TicketNo { get; set; } /// /// 撤销原因 /// [JsonProperty(PropertyName = "reason")] public string Reason { get; set; } /// /// 门店编号 /// [JsonProperty(PropertyName = "shopNo")] public string ShopNo { get; set; } /// /// 终端编号 /// [JsonProperty(PropertyName = "posNo")] public string PosNo { get; set; } /// /// 员工编号 /// [JsonProperty(PropertyName = "workerNo")] public string WorkerNo { get; set; } /// /// 终端标识(web、pos、wechat) /// [JsonProperty(PropertyName = "sourceSign")] public string SourceSign { get; set; } = "x86"; /// /// 撤销总积分 单位分 /// [JsonProperty(PropertyName = "totalPoint")] public int TotalPoint { get; set; } /// /// 撤销总金额 单位分 /// [JsonProperty(PropertyName = "totalAmount")] public int TotalAmount { get; set; } /// /// 会员卡退款明细 /// [JsonProperty(PropertyName = "cardInfo")] public List CardInfo { get; set; } } /// /// 会员卡退款明细 /// [Serializable] [JsonObject(MemberSerialization.OptIn)] public class RefundCardInfo { /// /// 卡号 /// [JsonProperty(PropertyName = "cardNo")] public string CardNo { get; set; } /// /// 退款金额 (精确到分) /// [JsonProperty(PropertyName = "amount")] public int Amount { get; set; } } }