public JsApiRequestData(TenpayDateTime time_expire, Amount amount, string mchid, string description, string notify_url, Payer payer, string out_trade_no, string goods_tag, string appid, string attach, Detail detail, Scene_Info scene_info)
 {
     this.time_expire  = time_expire;
     this.amount       = amount;
     this.mchid        = mchid;
     this.description  = description;
     this.notify_url   = notify_url;
     this.payer        = payer;
     this.out_trade_no = out_trade_no;
     this.goods_tag    = goods_tag;
     this.appid        = appid;
     this.attach       = attach;
     this.detail       = detail;
     this.scene_info   = scene_info;
 }
 /// <summary>
 /// 含参构造函数
 /// </summary>
 /// <param name="appid">由微信生成的应用ID,全局唯一</param>
 /// <param name="mchid">直连商户的商户号,由微信支付生成并下发</param>
 /// <param name="description">商品描述 示例值:Image形象店-深圳腾大-QQ公仔</param>
 /// <param name="out_trade_no">商户系统内部订单号</param>
 /// <param name="time_expire">订单失效时间 遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,可为null</param>
 /// <param name="attach">附加数据,在查询API和支付通知中原样返回,可作为自定义参数使用,可为null</param>
 /// <param name="notify_url">通知URL 必须为直接可访问的URL,不允许携带查询串,要求必须为https地址</param>
 /// <param name="goods_tag">订单优惠标记 示例值:WXG,可为null</param>
 /// <param name="amount">订单金额</param>
 /// <param name="payer">支付者,JSAPI下单必填,其它下单方式必须为null</param>
 /// <param name="detail">优惠功能,可为null</param>
 /// <param name="settle_info">结算信息,可为null</param>
 /// <param name="scene_info">支付场景描述,H5下单必填,其它支付方式可为null</param>
 public TransactionsRequestData(string appid, string mchid, string description,
                                string out_trade_no, TenpayDateTime time_expire, string attach,
                                string notify_url, string goods_tag, Amount amount, Payer payer = null,
                                Detail detail = null, Settle_Info settle_info = null, Scene_Info scene_info = null)
 {
     this.appid        = appid;
     this.mchid        = mchid;
     this.description  = description;
     this.out_trade_no = out_trade_no;
     this.time_expire  = time_expire.ToString();
     this.attach       = attach;
     this.notify_url   = notify_url;
     this.goods_tag    = goods_tag;
     this.amount       = amount;
     this.payer        = payer;
     this.detail       = detail;
     this.settle_info  = settle_info;
     this.scene_info   = scene_info;
 }
Example #3
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="combine_appid">合单商户appid</param>
 /// <param name="combine_mchid">合单商户号</param>
 /// <param name="combine_out_trade_no">合单商户订单号</param>
 /// <param name="scene_info">支付场景描述,可为null</param>
 /// <param name="sub_orders">子单信息 最多支持子单条数:10</param>
 /// <param name="combine_payer_info">支付者信息</param>
 /// <param name="time_start">订单生成时间 遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,可为null</param>
 /// <param name="time_expire">订单失效时间 遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,可为null</param>
 /// <param name="notify_url">通知URL 必须为直接可访问的URL,不允许携带查询串,要求必须为https地址。</param>
 public CombineTransactionsRequestData(string combine_appid, string combine_mchid, string combine_out_trade_no, Scene_Info scene_info, IEnumerable <Sub_Order> sub_orders, Combine_Payer_Info combine_payer_info, TenpayDateTime time_start, TenpayDateTime time_expire, string notify_url)
 {
     this.combine_appid        = combine_appid;
     this.combine_mchid        = combine_mchid;
     this.combine_out_trade_no = combine_out_trade_no;
     this.scene_info           = scene_info;
     this.sub_orders           = sub_orders;
     this.combine_payer_info   = combine_payer_info;
     this.time_start           = time_start?.ToString();
     this.time_expire          = time_expire?.ToString();
     this.notify_url           = notify_url;
 }