You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.2 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System;
using System.Collections.Generic;
using System.Web;
namespace WxPayAPI
{
public class DownloadBill
{
/***
* 下载对账单完整业务流程逻辑
* @param bill_date 下载对账单的日期格式20140603一次只能下载一天的对账单
* @param bill_type 账单类型
* ALL返回当日所有订单信息默认值
* SUCCESS返回当日成功支付的订单
* REFUND返回当日退款订单
* REVOKED已撤销的订单
* @return 对账单结果xml格式
*/
public static string Run(string bill_date, string bill_type)
{
Log.Info("DownloadBill", "DownloadBill is processing...");
WxPayData data = new WxPayData();
data.SetValue("bill_date", bill_date);//账单日期
data.SetValue("bill_type", bill_type);//账单类型
WxPayData result = WxPayApi.DownloadBill(data);//提交下载对账单请求给API接收返回结果
Log.Info("DownloadBill", "DownloadBill process complete, result : " + result.ToXml());
return result.ToPrintStr();
}
}
}