using System; using System.Collections.Generic; using System.Text; namespace Edu.Common.WeChatPayAPIv3.Model.GenerateOrder { /// /// 微信支付下单实体,都是必填的字段,非必填的字段就没有写 /// public class GenerateOrderModelForWxPay { /// /// 直连商户申请的公众号或移动应用appid。 /// public string appid { set; get; } /// /// 直连商户的商户号,由微信支付生成并下发。 /// public string mchid { set; get; } /// /// 商品描述 /// public string description { set; get; } /// /// 商户系统内部订单号,只能是数字、大小写字母_-*且在同一个商户号下唯一 /// public string out_trade_no { set; get; } /// /// 附加数据,在查询API和支付通知中原样返回,可作为自定义参数使用 /// public string attach { set; get; } /// /// 通知URL必须为直接可访问的URL,不允许携带查询串。格式:URL /// public string notify_url { set; get; } /// /// 订单金额信息 /// public WxPayAmountModel amount { set; get; } } /// /// 微信支付金额实体 /// public class WxPayAmountModel { /// /// 订单总金额,单位为分。 /// public int total { set; get; } /// /// 货币类型,CNY:人民币,境内商户号仅支持人民币。 /// public string currency { set; get; } = "CNY"; } }