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#

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();
}
}
}