From ae93becc75d6f9eac35034fd67b98c7dd11315c0 Mon Sep 17 00:00:00 2001 From: gdlcf88 Date: Sat, 3 Aug 2024 22:16:52 +0800 Subject: [PATCH] Add a `CloseOrderResponse` class --- common.props | 2 +- .../Services/BasicPayment/BasicPaymentService.cs | 4 ++-- .../Services/BasicPayment/Models/CloseOrderResponse.cs | 7 +++++++ 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 src/Pay/EasyAbp.Abp.WeChat.Pay/Services/BasicPayment/Models/CloseOrderResponse.cs diff --git a/common.props b/common.props index 94eb881..e0afb6f 100644 --- a/common.props +++ b/common.props @@ -1,7 +1,7 @@ latest - 3.2.0 + 3.3.0-preview.1 $(NoWarn);CS1591 true EasyAbp Team diff --git a/src/Pay/EasyAbp.Abp.WeChat.Pay/Services/BasicPayment/BasicPaymentService.cs b/src/Pay/EasyAbp.Abp.WeChat.Pay/Services/BasicPayment/BasicPaymentService.cs index 96dfb47..0b3aad0 100644 --- a/src/Pay/EasyAbp.Abp.WeChat.Pay/Services/BasicPayment/BasicPaymentService.cs +++ b/src/Pay/EasyAbp.Abp.WeChat.Pay/Services/BasicPayment/BasicPaymentService.cs @@ -46,10 +46,10 @@ public virtual Task QueryOrderByOutTradeNumberAsync(QueryOrd return ApiRequester.RequestAsync(HttpMethod.Get, requestUrl, request); } - public virtual Task CloseOrderAsync(CloseOrderRequest request) + public virtual Task CloseOrderAsync(CloseOrderRequest request) { var requestUrl = CloseOrderUrl.Replace("{out_trade_no}", request.OutTradeNo); - return ApiRequester.RequestAsync(HttpMethod.Post, requestUrl, request); + return ApiRequester.RequestAsync(HttpMethod.Post, requestUrl, request); } public virtual Task RefundAsync(RefundOrderRequest orderRequest) diff --git a/src/Pay/EasyAbp.Abp.WeChat.Pay/Services/BasicPayment/Models/CloseOrderResponse.cs b/src/Pay/EasyAbp.Abp.WeChat.Pay/Services/BasicPayment/Models/CloseOrderResponse.cs new file mode 100644 index 0000000..cc67a04 --- /dev/null +++ b/src/Pay/EasyAbp.Abp.WeChat.Pay/Services/BasicPayment/Models/CloseOrderResponse.cs @@ -0,0 +1,7 @@ +using EasyAbp.Abp.WeChat.Pay.Services.ParametersModel; + +namespace EasyAbp.Abp.WeChat.Pay.Services.BasicPayment.Models; + +public class CloseOrderResponse : WeChatPayCommonErrorResponse +{ +} \ No newline at end of file