using Newtonsoft.Json; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace LifePayment.Domain { public class FundBatchUniTransferInput { /// /// 商户的批次号 /// [JsonProperty("out_batch_no", NullValueHandling = NullValueHandling.Ignore)] [Required] public string OutBatchNo { set; get; } /// /// 销售产品码,商家和支付宝签约的产品码 /// [JsonProperty("product_code", NullValueHandling = NullValueHandling.Ignore)] [Required] public string ProductCode { set; get; } /// /// 业务场景。不同场景值不同,具体值联系支付宝确认。 MESSAGE_BATCH_PAY /// [JsonProperty("biz_scene", NullValueHandling = NullValueHandling.Ignore)] [Required] public string BizScene { set; get; } /// /// 订单总金额,单位为元,精确到小数点后两位,取值范围[0.01,9999999999999.99] /// [JsonProperty("total_trans_amount", NullValueHandling = NullValueHandling.Ignore)] [Required] public double TotaltransAmount { set; get; } /// /// 批次总笔数 /// [JsonProperty("total_count", NullValueHandling = NullValueHandling.Ignore)] [Required] public string TotalCount { set; get; } /// /// 付款方信息 /// [JsonProperty("payer_info", NullValueHandling = NullValueHandling.Ignore)] [Required] public Participant PayerInfo { set; get; } /// /// 收款信息列表 /// [JsonProperty("trans_order_list", NullValueHandling = NullValueHandling.Ignore)] [Required] public List TransOrderList { set; get; } /// /// 转账备注 /// [JsonProperty("remark", NullValueHandling = NullValueHandling.Ignore)] [Required] public string Remark { set; get; } /// /// 支付绝对超时时间,格式为yyyy-MM-dd HH:mm /// [JsonProperty("time_expire", NullValueHandling = NullValueHandling.Ignore)] [Required] public string TimeExpire { set; get; } /// /// JSON格式,传递业务扩展参数,使用前请与支付宝工程师联系! {"agreement_no":"2019000000000"} 授权协议号 /// [JsonProperty("business_params", NullValueHandling = NullValueHandling.Ignore)] [Required] public string BusinessParams { set; get; } } public class TransOrderDetail { /// /// 商户订单号 /// [JsonProperty("out_biz_no", NullValueHandling = NullValueHandling.Ignore)] [Required] public string OutBizNo { set; get; } /// /// 转账金额 /// [JsonProperty("trans_amount", NullValueHandling = NullValueHandling.Ignore)] [Required] public string TransAmount { set; get; } /// /// 收款方信息 /// [JsonProperty("payee_info", NullValueHandling = NullValueHandling.Ignore)] [Required] public Participant PayeeInfo { set; get; } /// /// 转账订单的标题,用于在收银台和消费记录展示 /// [JsonProperty("order_title", NullValueHandling = NullValueHandling.Ignore)] [Required] public string OrderTitle { set; get; } /// /// 转账备注,收、付款方均可见,收款方如果是支付宝账号,会展示在收款方账单里。 /// [JsonProperty("remark", NullValueHandling = NullValueHandling.Ignore)] [Required] public string Remark { set; get; } } }