| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 资金记账本开通 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | public AlipayFundAccountbookCreateResponse FundAccountbookCreate(AlipayFundAccountbookCreateModel model) |
| | | { |
| | | logger.LogInformation($"正在执行资金记账本开通接口:{model.ToJson()}"); |
| | | AlipayFundAccountbookCreateRequest request = new AlipayFundAccountbookCreateRequest(); |
| | | request.SetBizModel(model); |
| | | AlipayFundAccountbookCreateResponse response = alipayClient.CertificateExecute(request); |
| | | logger.LogInformation($"结果:{response.ToJson()}"); |
| | | return response; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 资金记账本的信息查询 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | public AlipayFundAccountbookQueryResponse FundAccountbookQuery(AlipayFundAccountbookQueryModel model) |
| | | { |
| | | logger.LogInformation($"正在执行资金记账本的信息查询接口:{model.ToJson()}"); |
| | | AlipayFundAccountbookQueryRequest request = new AlipayFundAccountbookQueryRequest(); |
| | | request.SetBizModel(model); |
| | | AlipayFundAccountbookQueryResponse response = alipayClient.CertificateExecute(request); |
| | | logger.LogInformation($"结果:{response.ToJson()}"); |
| | | return response; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 资金转账页面支付接口 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <param name="notifyUrl"></param> |
| | | public AlipayFundTransPagePayResponse FundTransPagePay(AlipayFundTransPagePayModel model, string notifyUrl = null) |
| | | { |
| | | logger.LogInformation($"正在执行资金转账页面支付接口:{model.ToJson()}"); |
| | | AlipayFundTransPagePayRequest request = new AlipayFundTransPagePayRequest(); |
| | | request.SetBizModel(model); |
| | | if (notifyUrl.IsNotNull()) |
| | | { |
| | | notifyUrl = $"{options.Value.NotifyUrl}{notifyUrl}"; |
| | | request.SetNotifyUrl(notifyUrl); |
| | | } |
| | | AlipayFundTransPagePayResponse response = alipayClient.pageExecute(request, null, "GET"); |
| | | logger.LogInformation($"结果:{response.Body}"); |
| | | return response; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 单笔转账接口 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | public AlipayFundTransUniTransferResponse FundTransUniTransfer(AlipayFundTransUniTransferModel model) |
| | | /// <param name="notifyUrl"></param> |
| | | public AlipayFundTransUniTransferResponse FundTransUniTransfer(AlipayFundTransUniTransferModel model, string notifyUrl = null) |
| | | { |
| | | logger.LogInformation($"正在执行单笔转账接口:{model.ToJson()}"); |
| | | AlipayFundTransUniTransferRequest request = new AlipayFundTransUniTransferRequest(); |
| | | request.SetBizModel(model); |
| | | if (notifyUrl.IsNotNull()) |
| | | { |
| | | notifyUrl = $"{options.Value.NotifyUrl}{notifyUrl}"; |
| | | request.SetNotifyUrl(notifyUrl); |
| | | } |
| | | AlipayFundTransUniTransferResponse response = alipayClient.CertificateExecute(request); |
| | | logger.LogInformation($"结果:{response.ToJson()}"); |
| | | return response; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 转账业务单据查询接口 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | public AlipayFundTransCommonQueryResponse FundTransCommonQuery(AlipayFundTransCommonQueryModel model) |
| | | { |
| | | logger.LogInformation($"正在执行转账业务单据查询接口:{model.ToJson()}"); |
| | | AlipayFundTransCommonQueryRequest request = new AlipayFundTransCommonQueryRequest(); |
| | | request.SetBizModel(model); |
| | | AlipayFundTransCommonQueryResponse response = alipayClient.CertificateExecute(request); |
| | | logger.LogInformation($"结果:{response.ToJson()}"); |
| | | return response; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 账单与电子凭证下载 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | public AlipayDataBillBizfundagentQueryResponse FundTransCommonQuery(AlipayDataBillBizfundagentQueryModel model) |
| | | { |
| | | logger.LogInformation($"正在执行账单与电子凭证下载:{model.ToJson()}"); |
| | | AlipayDataBillBizfundagentQueryRequest request = new AlipayDataBillBizfundagentQueryRequest(); |
| | | request.SetBizModel(model); |
| | | AlipayDataBillBizfundagentQueryResponse response = alipayClient.CertificateExecute(request); |
| | | logger.LogInformation($"结果:{response.ToJson()}"); |
| | | return response; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 资金二级商户KYB代进件文件上传接口 |
| | | /// </summary> |
| | | /// <returns></returns> |