mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-03-10 00:13:36 +08:00
feat(tenpayv2): 新增部分接口
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV2.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /risk/getpublickey 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class GetRiskPublicKeyRequest : WechatTenpaySignableRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// <inheritdoc/>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mch_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mch_id")]
|
||||
public override string? MerchantId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// <inheritdoc/>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public override string? AppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// <inheritdoc/>
|
||||
/// <para>默认值:<see cref="Constants.SignTypes.MD5"/></para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sign_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sign_type")]
|
||||
#pragma warning disable CS8765
|
||||
public override string SignType { get; set; } = Constants.SignTypes.MD5;
|
||||
#pragma warning restore CS8765
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV2.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /risk/getpublickey 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class GetRiskPublicKeyResponse : WechatTenpaySignableResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// <inheritdoc/>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mch_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mch_id")]
|
||||
public override string? MerchantId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// <inheritdoc/>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public override string? AppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 RSA 公钥。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pub_key")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pub_key")]
|
||||
public string PublicKey { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user