Skip to content

Commit

Permalink
Merge pull request #115 from EasyAbp/close-order-response
Browse files Browse the repository at this point in the history
Add a `CloseOrderResponse` class
  • Loading branch information
gdlcf88 authored Aug 3, 2024
2 parents 9093c0f + ae93bec commit d821f5d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>3.2.0</Version>
<Version>3.3.0-preview.1</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ public virtual Task<QueryOrderResponse> QueryOrderByOutTradeNumberAsync(QueryOrd
return ApiRequester.RequestAsync<QueryOrderResponse>(HttpMethod.Get, requestUrl, request);
}

public virtual Task<WeChatPayCommonErrorResponse> CloseOrderAsync(CloseOrderRequest request)
public virtual Task<CloseOrderResponse> CloseOrderAsync(CloseOrderRequest request)
{
var requestUrl = CloseOrderUrl.Replace("{out_trade_no}", request.OutTradeNo);
return ApiRequester.RequestAsync<WeChatPayCommonErrorResponse>(HttpMethod.Post, requestUrl, request);
return ApiRequester.RequestAsync<CloseOrderResponse>(HttpMethod.Post, requestUrl, request);
}

public virtual Task<RefundOrderResponse> RefundAsync(RefundOrderRequest orderRequest)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using EasyAbp.Abp.WeChat.Pay.Services.ParametersModel;

namespace EasyAbp.Abp.WeChat.Pay.Services.BasicPayment.Models;

public class CloseOrderResponse : WeChatPayCommonErrorResponse
{
}

0 comments on commit d821f5d

Please sign in to comment.