| | |
| | | using LifePayment.Domain.Shared; |
| | | using System.Threading.Tasks; |
| | | using ZeroD.Util.Fadd; |
| | | |
| | | namespace LifePayment.Domain |
| | | { |
| | |
| | | |
| | | public async Task<WxPayDomesticRefundsReponse> WxPayDomesticRefunds(WxPayDomesticRefundsRequest input) |
| | | { |
| | | var result = await RefundsPostAsync<WxPayDomesticRefundsRequest, WxPayDomesticRefundsReponse>(input, LifePaymentConstant.WxPayDomesticRefunds); |
| | | var result = await NomalPostAsync<WxPayDomesticRefundsRequest, WxPayDomesticRefundsReponse>(input, LifePaymentConstant.WxPayDomesticRefunds); |
| | | return result; |
| | | } |
| | | |
| | | public async Task<WxPayDomesticRefundsQueryReponse> WxPayDomesticRefundsQuery(string outTradeNo) |
| | | { |
| | | var url = $"{string.Format(LifePaymentConstant.WxPayDomesticRefundsQuery, outTradeNo)}"; |
| | | var result = await Certificates<WxPayDomesticRefundsQueryReponse>(url); |
| | | return result; |
| | | } |
| | | |
| | | public async Task<WxPayDomesticRefundsQueryReponse> WxPayTradeQuery(string outTradeNo) |
| | | { |
| | | var url = $"{string.Format(LifePaymentConstant.WxPayTradeQyery, outTradeNo)}"; |
| | | var result = await Certificates<WxPayDomesticRefundsQueryReponse>(url); |
| | | return result; |
| | | } |
| | | |
| | | public async Task<WxPayTradeBillApplyReponse> WxPayTradeBillApply(WxPayTradeBillApplyRequest input) |
| | | { |
| | | var result = await NomalPostAsync<WxPayTradeBillApplyRequest, WxPayTradeBillApplyReponse>(input, LifePaymentConstant.WxPayTradeBillApply); |
| | | return result; |
| | | } |
| | | |
| | | public async Task<WxPayTradeBillQueryReponse> WxPayTradeBillQuery(WxPayTradeBillQueryRequest input) |
| | | { |
| | | var result = await NomalPostAsync<WxPayTradeBillQueryRequest, WxPayTradeBillQueryReponse>(input, LifePaymentConstant.WxPayTradeBillQuery); |
| | | return result; |
| | | } |
| | | } |