mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-02-17 21:56:26 +08:00
feat(tenpayv3): 升级公共组件
This commit is contained in:
@@ -10,31 +10,33 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置请求超时时间(单位:毫秒)。
|
||||
/// <para>默认值:30000</para>
|
||||
/// <para>
|
||||
/// 默认值:30000
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public int Timeout { get; set; } = 30 * 1000;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付 API 入口点。
|
||||
/// <para>默认值:<see cref="WechatTenpayEndpoints.DEFAULT"/></para>
|
||||
/// <para>
|
||||
/// 默认值:<see cref="WechatTenpayEndpoints.DEFAULT"/>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public string Endpoint { get; set; } = WechatTenpayEndpoints.DEFAULT;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置客户端用户代理。
|
||||
/// <para>默认值:<i>根据操作系统自动生成</i></para>
|
||||
/// </summary>
|
||||
public string UserAgent { get; set; } = $"OS/{Environment.OSVersion.Platform} SKIT.FlurlHttpClient.Wechat.Tenpay/{Assembly.GetExecutingAssembly().GetName().Version}";
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置声明应答中的错误描述使用的自然语言语种。
|
||||
/// <para>默认值:zh_CN</para>
|
||||
/// <para>
|
||||
/// 默认值:zh_CN
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public string AcceptLanguage { get; set; } = "zh-CN";
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付 API 签名认证方式。
|
||||
/// <para>默认值:<see cref="Constants.SignSchemes.WECHATPAY2_RSA_2048_WITH_SHA256"/></para>
|
||||
/// <para>
|
||||
/// 默认值:<see cref="Constants.SignSchemes.WECHATPAY2_RSA_2048_WITH_SHA256"/>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public string SignScheme { get; set; } = Constants.SignSchemes.WECHATPAY2_RSA_2048_WITH_SHA256;
|
||||
|
||||
@@ -60,19 +62,25 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否自动加密请求中的敏感字段数据。
|
||||
/// <para>注意:启用该功能需配合 <see cref="PlatformCertificateManager"/> 使用。</para>
|
||||
/// <para>
|
||||
/// 注意:启用该功能需配合 <see cref="PlatformCertificateManager"/> 使用。
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public bool AutoEncryptRequestSensitiveProperty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否自动解密响应中的敏感字段数据。
|
||||
/// <para>注意:启用该功能需配合 <see cref="PlatformCertificateManager"/> 使用。</para>
|
||||
/// <para>
|
||||
/// 注意:启用该功能需配合 <see cref="PlatformCertificateManager"/> 使用。
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public bool AutoDecryptResponseSensitiveProperty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付平台证书管理器。
|
||||
/// <para>默认值:<see cref="Settings.InMemoryCertificateManager"/></para>
|
||||
/// <para>
|
||||
/// 默认值:<see cref="Settings.InMemoryCertificateManager"/>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public Settings.CertificateManager PlatformCertificateManager { get; set; } = new Settings.InMemoryCertificateManager();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user