using System; namespace CRM.Core.DTO.Ord { public class add2OrderOpen { /// /// 产品小类 (必填) /// public string productCode { get; set; } /// /// 用户名(必填) /// public string userName { get; set; } private string _businessType = "3"; /// /// 业务类型: /// public string businessType { get { return _businessType; } set { _businessType = value; } } /// /// 手机号-明文 mobile和resPhone二选一必填 /// public string mobile { get; set; } /// /// 手机号 resid /// public string resPhone { get; set; } ///// ///// 姓名 ///// //public string fullName { get; set; } /// /// 操作人 /// public string CreateUser { get; set; } private string _payNO; /// /// 流水号 (必填) /// public string PayNo { get { if (string.IsNullOrWhiteSpace(_payNO)) { System.DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTime(1970, 1, 1, 0, 0, 0)); return "tgorder" + (long)(DateTime.Now - startTime).TotalMilliseconds; } else { return _payNO; } } set { _payNO = value; } } /// /// 支付金额 /// public decimal PayPrice { get; set; } private string _payType = "3"; /// /// 银行转账 3 /// public string PayType { get { return _payType; } set { _payType = value; } } /// /// 开通天数 /// public decimal Days { get; set; } /// /// 支付备注 /// public string PayMark { get; set; } /// /// 订单系统生成的订单号 /// public decimal Orderid { get; set; } public string ch { get; set; } } /// /// 参见订单请求参数 /// public class CreateOrderReq { /// /// 产品ID,对于E投顾业务的组合产品,多个子产品以竖线分隔开 /// public string productId { get; set; } /// /// 用户名 /// public string userName { get; set; } /// /// 产品数量 /// public int count { get; set; } /// /// YYY = 1, // 优应用 /// YJY = 2, // 优精研 /// YZN = 3, // 优智能 /// YTJ = 5, // 优投教 /// YTG = 6, // 优投顾(原E投顾业务并入优投顾) /// YTG_APP = 7, // 投顾APP端的优投顾 /// YTJ_APP = 8, // 投教APP端的优投教 /// 默认 1 /// public int busType { get; set; } /// /// 订单生成的渠道号,对应旧版的campaignId /// 默认 500 /// public int ch { get; set; } /// /// 订单生成的平台,对应旧版的数据库orderext表中的RESOURCETAG,接口的subActiviyId字段 /// P = 0, PC /// A = 1 安卓 /// I = 2 IOS /// public int plat { get; set; } /// /// 订单来源 1:营业部座席订单 2:网上支付开通 /// 默认 1 /// public int source { get; set; } /// /// //0-单一产品、1-组合产品 /// public int productType { get; set; } /// /// 优惠券编码 /// public string couponCode { get; set; } /// /// 用户手机号 /// public string mobile { get; set; } /// /// 客户端IP地址 /// public string ip { get; set; } /// /// 总价 /// public int totalPrice { get; set; } /// /// 开通天数 /// public int totalDays { get; set; } /// /// 该字段供不同调用方存储其业务所需的特定信息 /// public string ext1 { get; set; } /// /// 订单标识 /// public string flag { get; set; } /// /// 客服人员ID,仅客服系统线下订单有值 /// public string cssId { get; set; } /// /// 渠道信息,格式"原始渠道_(客服端本地)当前渠道"。原始渠道为上次安装时的渠道,新安装的渠道为当前渠道,可能和上次安装的渠道不同 /// 默认500 /// public int originalCH { get; set; } /// /// 默认500 /// public int currentCH { get; set; } /// /// 下单时的App版本号 /// public string appversion { get; set; } /// /// 合规流程中的电子签名ID /// public string signId { get; set; } /// /// 统一支付层传入的合局控制标识,0 - 非合规、1 - 合规 /// 默认1 /// public int complianceFlag { get; set; } /// /// 协议类型,透传给合同服务 /// public string protocolType { get; set; } /// /// 下单时设备的xua /// public string xua { get; set; } /// /// 下单时设备的GUID /// public string guid { get; set; } //public int investTime{ get; set; } //public string investType { get; set; } } /// /// 开通订单请求参数 /// public class OpenOrderReq { /// /// 订单ID /// public string orderId { get; set; } /// /// 流水号 /// public string payId { get; set; } /// /// 支付方式 /// Alipay = 1, //支付宝 /// Tenpay = 2, //财付通 /// BankTransfer = 3, //银行转账 /// BankOnLinePay = 4, //网银支付 /// WXPay = 5, //微信支付 /// AliBankOnLine = 6, //支付宝网银 /// CUPS = 7, //银联 /// JDPAY = 8, //京东支付 /// Donate = 10, //公司赠送 /// ApplePay = 11, //苹果支付 /// HuaweiPay = 12, //华为支付 /// VirtualCurrency = 99 //虚拟币支付 /// public int payType { get; set; } public int payPrice { get; set; } public string userName { get; set; } /// /// 优惠券编号 /// public string couponCode { get; set; } /// /// 是否免费订单 0-否、1-是 /// public int isFree { get; set; } public string payRemark { get; set; } public int businessOrderId { get; set; } public string sceneType { get; set; } public int? eid { get; set; } } /// /// 开通订单返回参数 /// public class OpenOrderRsp { public int retCode { get; set; } public string retMsg { get; set; } } /// /// 退款请求 参数 /// public class RefundOrderReq { /// /// 订单号 /// public string orderId { get; set; } /// /// 退款状态 /// 由调用方(客户系统)传入,客户系统在受理退款申请时会经过两步处理,即审核和确认。180:已申请、200:已审核/审核通过、220:已退款/确认 /// public int refundStatus { get; set; } /// /// 退款金额 /// public int cancelAmount { get; set; } } /// /// 退款返回参数 /// public class RefundOrderRsp { public int retCode { get; set; } public string retMsg { get; set; } } }