mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-15 23:13:32 +08:00
chore(tenpayv2): 更新官方文档参考链接
This commit is contained in:
parent
c02d87c6f4
commit
bd6dee3468
@ -12,7 +12,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV2
|
||||
/// <para>异步调用 [POST] /papay/preentrustweb 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_2.shtml ]]>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v2/merchant/4011986804 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
@ -37,7 +37,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV2
|
||||
/// <para>异步调用 [GET] /papay/h5entrustweb 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_4.shtml ]]>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v2/merchant/4011987295 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
@ -62,7 +62,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV2
|
||||
/// <para>异步调用 [POST] /pay/contractorder 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_5.shtml ]]>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v2/merchant/4011987320 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
@ -84,7 +84,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV2
|
||||
/// <para>异步调用 [POST] /pay/pappayapply 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_8.shtml ]]>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v2/merchant/4011987377 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
@ -106,9 +106,8 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV2
|
||||
/// <para>异步调用 [POST] /papay/deletecontract 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_9.shtml ]]>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v2/merchant/4011987432 ]]>
|
||||
/// </para>
|
||||
/// <para>REF" https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter5_9.shtml </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@ -129,7 +128,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV2
|
||||
/// <para>异步调用 [POST] /papay/querycontract 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_7.shtml ]]>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v2/merchant/4011987640 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
|
@ -12,7 +12,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV2
|
||||
/// <para>异步调用 [POST] /papay/partner/preentrustweb 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter5_2.shtml ]]>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v2/partner/4011988366 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
@ -37,7 +37,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV2
|
||||
/// <para>异步调用 [GET] /papay/partner/h5entrustweb 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter5_4.shtml ]]>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v2/partner/4011988368 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
@ -83,7 +83,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV2
|
||||
/// <para>异步调用 [POST] /pay/partner/pappayapply 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter5_8.shtml ]]>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v2/partner/4011988372 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
@ -101,11 +101,33 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV2
|
||||
return await client.SendFlurlRequestAsXmlAsync<Models.ApplyPAPPayPartnerResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /papay/deletecontract 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v2/partner/4011988374 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.DeletePAPPayPartnerContractResponse> ExecuteDeletePAPPayPartnerContractAsync(this WechatTenpayClient client, Models.DeletePAPPayPartnerContractRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "papay", "deletecontract");
|
||||
|
||||
return await client.SendFlurlRequestAsXmlAsync<Models.DeletePAPPayPartnerContractResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /papay/partner/querycontract 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter5_7.shtml ]]>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v2/partner/4011988379 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
|
@ -183,7 +183,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV2
|
||||
/// <para>生成客户端公众号唤起微信委托代扣的 URL。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_1.shtml ]]>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v2/merchant/4011986768 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
@ -227,7 +227,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV2
|
||||
/// <para>生成客户端公众号唤起微信委托代扣的 URL。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter5_1.shtml ]]>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v2/partner/4011988368 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
@ -275,7 +275,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV2
|
||||
/// <para>生成客户端小程序唤起微信委托代扣页面所需的参数字典。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_3.shtml ]]>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v2/merchant/4011987274 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
@ -313,7 +313,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV2
|
||||
/// <para>生成客户端小程序唤起微信委托代扣页面所需的参数字典。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter5_3.shtml ]]>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v2/partner/4011988367 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV2.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV2.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/deletecontract 接口的请求。</para>
|
||||
@ -19,20 +19,6 @@
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public override string? AppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_mch_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_mch_id")]
|
||||
public string? SubMerchantId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_appid")]
|
||||
public string? SubAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置接口版本号。
|
||||
/// <para>默认值:1.0</para>
|
||||
|
@ -27,20 +27,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV2.Models
|
||||
#pragma warning restore CS8765
|
||||
#pragma warning restore CS8618
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_mch_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_mch_id")]
|
||||
public string? SubMerchantId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_appid")]
|
||||
public string? SubAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置接口版本号。
|
||||
/// </summary>
|
||||
|
@ -0,0 +1,72 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV2.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/deletecontract 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class DeletePAPPayPartnerContractRequest : 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.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public override string? AppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_mch_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_mch_id")]
|
||||
public string? SubMerchantId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_appid")]
|
||||
public string? SubAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置接口版本号。
|
||||
/// <para>默认值:1.0</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("version")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("version")]
|
||||
public string Version { get; set; } = "1.0";
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置模板 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("plan_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("plan_id")]
|
||||
public int? PlanId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置签约协议号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("contract_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("contract_code")]
|
||||
public string? Contract { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置委托代扣协议 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("contract_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("contract_id")]
|
||||
public string? ContractId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置解约备注。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("contract_termination_remark")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("contract_termination_remark")]
|
||||
public string TerminationRemark { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@ -0,0 +1,79 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV2.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /papay/deletecontract 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class DeletePAPPayPartnerContractResponse : WechatTenpaySignableResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// <inheritdoc/>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mch_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mch_id")]
|
||||
#pragma warning disable CS8618
|
||||
#pragma warning disable CS8765
|
||||
public override string MerchantId { get; set; }
|
||||
#pragma warning restore CS8765
|
||||
#pragma warning restore CS8618
|
||||
|
||||
/// <summary>
|
||||
/// <inheritdoc/>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
#pragma warning disable CS8618
|
||||
#pragma warning disable CS8765
|
||||
public override string AppId { get; set; }
|
||||
#pragma warning restore CS8765
|
||||
#pragma warning restore CS8618
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_mch_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_mch_id")]
|
||||
public string? SubMerchantId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置子商户 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_appid")]
|
||||
public string? SubAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置接口版本号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("version")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("version")]
|
||||
public string Version { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置模板 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("plan_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("plan_id")]
|
||||
public int PlanId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置签约协议号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("contract_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("contract_code")]
|
||||
public string ContractCode { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置委托代扣协议 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("contract_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("contract_id")]
|
||||
public string ContractId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置解约备注。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("contract_termination_remark")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("contract_termination_remark")]
|
||||
public string TerminationRemark { get; set; } = default!;
|
||||
}
|
||||
}
|
@ -12,7 +12,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <para>异步调用 [POST] /papay/contracts/{contract_id}/notify 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter3_10.shtml ]]>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v2/merchant/4011987402 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
|
@ -12,7 +12,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
/// <para>异步调用 [POST] /partner-papay/contracts/{contract_id}/notify 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter5_15.shtml ]]>
|
||||
/// <![CDATA[ https://pay.weixin.qq.com/doc/v2/partner/4011988373 ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
|
@ -0,0 +1,10 @@
|
||||
{
|
||||
"mch_id": "10000098",
|
||||
"appid": "wxcbda96de0b165486",
|
||||
"sub_mch_id": "10010405",
|
||||
"sign": "E1EE61A91C8E90F299DE6AE075D60A2D",
|
||||
"plan_id": "12251",
|
||||
"contract_code": "1234",
|
||||
"contract_termination_remark": "原因",
|
||||
"version": "1.0"
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
{
|
||||
"return_code": "SUCCESS",
|
||||
"result_code": "SUCCESS",
|
||||
"sign": "C380BEC2BFD727A4B6845133519F3AD6",
|
||||
"mch_id": "10010404",
|
||||
"sub_mch_id": "10010405",
|
||||
"appid": "wxcbda96de0b165486",
|
||||
"contract_id": "100005698"
|
||||
}
|
Loading…
Reference in New Issue
Block a user