12345678910111213141516171819202122232425262728293031 |
- using System.ComponentModel.DataAnnotations;
- using PaySharp.Core.Utils;
- namespace PaySharp.Wechatpay.Domain
- {
- public class AppPayModel : BasePayModel
- {
- public AppPayModel()
- {
- TradeType = "APP";
- }
- /// <summary>
- /// 交易类型
- /// </summary>
- public string TradeType { get; private set; }
- /// <summary>
- /// 用户IP
- /// </summary>
- [Required(ErrorMessage = "请设置用户IP")]
- [StringLength(16, ErrorMessage = "用户IP最大长度为16位")]
- public string SpbillCreateIp { get; set; } = HttpUtil.RemoteIpAddress;
- /// <summary>
- /// 场景信息,该字段用于上报场景信息,目前支持上报实际门店信息。该字段为JSON对象数据,对象格式为{"store_info":{"id": "门店ID","name": "名称","area_code": "编码","address": "地址" }}
- /// </summary>
- [StringLength(256, ErrorMessage = "场景信息最大长度为256位")]
- public string SceneInfo { get; set; }
- }
- }
|