using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
namespace POSV.Card
{
///
/// 消费退款
///
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
public class CardTradeRefundRequest
{
///
/// 交易参考号
///
[JsonProperty(PropertyName = "tradeVoucherNo")]
public string TradeVoucherNo { get; set; }
///
/// 商户订单号
///
[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 = "totalAmount")]
public int TotalAmount { get; set; }
///
/// 退款总积分(精确到分)
///
[JsonProperty(PropertyName = "totalPoint")]
public int TotalPoint { get; set; }
///
/// 会员卡退款明细(退款总金额大于0时不能为空)
///
[JsonProperty(PropertyName = "cardInfo")]
public List CardInfo { 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";
}
///
/// 支付方式明细
///
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
public class CardInfo
{
///
/// 会员卡号
///
[JsonProperty(PropertyName = "cardNo")]
public string CardNo { get; set; }
///
/// 退款金额 (精确到分)
///
[JsonProperty(PropertyName = "amount")]
public int Amount { get; set; }
}
}