| | |
| | | using Alipay.AopSdk.F2FPay.Model; |
| | | using LifePayment.Application.Contracts; |
| | | using LifePayment.Application.LifePay; |
| | | using LifePayment.Domain; |
| | | using LifePayment.Domain.Common; |
| | | using LifePayment.Domain.Shared; |
| | | using Microsoft.AspNetCore.Authorization; |
| | |
| | | public async Task<WxPayDomesticRefundsQueryReponse> WxPayDomesticRefundsQuery(string outTradeNo) |
| | | { |
| | | var res = await _lifePayService.WxPayDomesticRefundsQuery(outTradeNo); |
| | | await _lifePayOrderService.AddLifePayExpensesReceipts(new AddLifePayExpensesReceiptsInput() |
| | | if (res.Code == WxpayResultCode.Success) |
| | | { |
| | | OrderNo = res.OutTradeNo, |
| | | OutRefundNo = res.RefundId, |
| | | OutOrderNo = res.TransactionId, |
| | | LifePayType = LifePayTypeEnum.WxPay, |
| | | ExpensesReceiptsType = ExpensesReceiptsTypeEnum.Expenses, |
| | | Amount = Convert.ToDecimal(res.Amount.Total) |
| | | }); |
| | | await _lifePayOrderService.AddLifePayExpensesReceipts(new AddLifePayExpensesReceiptsInput() |
| | | { |
| | | OrderNo = res.OutTradeNo, |
| | | OutRefundNo = res.RefundId, |
| | | OutOrderNo = res.TransactionId, |
| | | LifePayType = LifePayTypeEnum.WxPay, |
| | | ExpensesReceiptsType = ExpensesReceiptsTypeEnum.Expenses, |
| | | Amount = Convert.ToDecimal(res.Amount.Total) |
| | | }); |
| | | } |
| | | return res; |
| | | |
| | | } |
| | | |
| | | /// <summary> |