/// <summary>
        /// 账单下载接口,根据本接口返回的URL地址,在D+1日下载对账单。注意,本接口返回的URL地址有时效,请尽快下载。URL超时时效后,请重新调用本接口再次获取。
        /// </summary>
        /// <param name="req"><see cref="DownloadBillRequest"/></param>
        /// <returns><see cref="DownloadBillResponse"/></returns>
        public async Task <DownloadBillResponse> DownloadBill(DownloadBillRequest req)
        {
            JsonResponseModel <DownloadBillResponse> rsp = null;

            try
            {
                var strResp = await this.InternalRequest(req, "DownloadBill");

                rsp = JsonConvert.DeserializeObject <JsonResponseModel <DownloadBillResponse> >(strResp);
            }
            catch (JsonSerializationException e)
            {
                throw new TencentCloudSDKException(e.Message);
            }
            return(rsp.Response);
        }
Example #2
0
 public Task <DownloadBillResponse> DownloadBillAsync(DownloadBillRequest request)
 {
     return(RequestAsync <DownloadBillResponse>("https://api.mch.weixin.qq.com/pay/downloadbill", RequestProperties, request));
 }