-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from EasyAbp/refactor-request-handling-services
Refactor request handling services
- Loading branch information
Showing
11 changed files
with
106 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...yAbp.Abp.WeChat.Pay.Abstractions/RequestHandling/Dtos/GetJsSdkWeChatPayParametersInput.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace EasyAbp.Abp.WeChat.Pay.RequestHandling.Dtos; | ||
|
||
public class GetJsSdkWeChatPayParametersInput | ||
{ | ||
public string MchId { get; set; } | ||
|
||
[Required] | ||
public string AppId { get; set; } | ||
|
||
[Required] | ||
public string PrepayId { get; set; } | ||
} |
2 changes: 1 addition & 1 deletion
2
...ling/GetJsSdkWeChatPayParametersResult.cs → ...Dtos/GetJsSdkWeChatPayParametersResult.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/Pay/EasyAbp.Abp.WeChat.Pay.Abstractions/RequestHandling/Dtos/PaidNotifyInput.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace EasyAbp.Abp.WeChat.Pay.RequestHandling.Dtos; | ||
|
||
public class PaidNotifyInput | ||
{ | ||
public string MchId { get; set; } | ||
|
||
[Required] | ||
public string Xml { get; set; } | ||
} |
11 changes: 11 additions & 0 deletions
11
src/Pay/EasyAbp.Abp.WeChat.Pay.Abstractions/RequestHandling/Dtos/RefundNotifyInput.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace EasyAbp.Abp.WeChat.Pay.RequestHandling.Dtos; | ||
|
||
public class RefundNotifyInput | ||
{ | ||
public string MchId { get; set; } | ||
|
||
[Required] | ||
public string Xml { get; set; } | ||
} |
5 changes: 2 additions & 3 deletions
5
...Abp.Abp.WeChat.Pay.Abstractions/RequestHandling/IWeChatPayClientRequestHandlingService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
using System.Threading.Tasks; | ||
using JetBrains.Annotations; | ||
using EasyAbp.Abp.WeChat.Pay.RequestHandling.Dtos; | ||
|
||
namespace EasyAbp.Abp.WeChat.Pay.RequestHandling; | ||
|
||
public interface IWeChatPayClientRequestHandlingService | ||
{ | ||
Task<GetJsSdkWeChatPayParametersResult> GetJsSdkWeChatPayParametersAsync( | ||
string mchId, [NotNull] string appId, [NotNull] string prepayId); | ||
Task<GetJsSdkWeChatPayParametersResult> GetJsSdkWeChatPayParametersAsync(GetJsSdkWeChatPayParametersInput input); | ||
} |
7 changes: 3 additions & 4 deletions
7
...yAbp.Abp.WeChat.Pay.Abstractions/RequestHandling/IWeChatPayEventRequestHandlingService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
using System.Threading.Tasks; | ||
using System.Xml; | ||
using EasyAbp.Abp.WeChat.Common.RequestHandling; | ||
using JetBrains.Annotations; | ||
using EasyAbp.Abp.WeChat.Pay.RequestHandling.Dtos; | ||
|
||
namespace EasyAbp.Abp.WeChat.Pay.RequestHandling; | ||
|
||
public interface IWeChatPayEventRequestHandlingService | ||
{ | ||
Task<WeChatRequestHandlingResult> NotifyAsync([CanBeNull] string mchId, XmlDocument xmlDocument); | ||
Task<WeChatRequestHandlingResult> PaidNotifyAsync(PaidNotifyInput input); | ||
|
||
Task<WeChatRequestHandlingResult> RefundNotifyAsync([CanBeNull] string mchId, XmlDocument xmlDocument); | ||
Task<WeChatRequestHandlingResult> RefundNotifyAsync(RefundNotifyInput input); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters