mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-18 22:35:46 +08:00
29 lines
1.3 KiB
C#
29 lines
1.3 KiB
C#
![]() |
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.ExtendedSDK.Global
|
||
|
{
|
||
|
public static class WechatTenpayGlobalClientResponseDecryptionExtensions
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// <para>解密响应中返回的敏感数据。该方法会改变传入的响应模型对象。</para>
|
||
|
/// </summary>
|
||
|
/// <param name="client"></param>
|
||
|
/// <param name="response"></param>
|
||
|
/// <returns></returns>
|
||
|
public static Models.QueryCertificatesResponse DecryptResponseSensitiveProperty(this WechatTenpayClient client, Models.QueryCertificatesResponse response)
|
||
|
{
|
||
|
return WechatTenpayClientResponseDecryptionExtensions.DecryptResponseSensitiveProperty(client, response);
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// <para>解密响应中返回的敏感数据。该方法会改变传入的响应模型对象。</para>
|
||
|
/// </summary>
|
||
|
/// <param name="client"></param>
|
||
|
/// <param name="response"></param>
|
||
|
/// <returns></returns>
|
||
|
public static TResponse DecryptResponseSensitiveProperty<TResponse>(this WechatTenpayGlobalClient client, TResponse response)
|
||
|
where TResponse : WechatTenpayResponse
|
||
|
{
|
||
|
return WechatTenpayClientResponseDecryptionExtensions.DecryptResponseSensitiveProperty(client, response);
|
||
|
}
|
||
|
}
|
||
|
}
|