mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-15 23:13:32 +08:00
feat(wxapi): 新增小程序交易保障商家申诉接口
This commit is contained in:
parent
2e5ffa7560
commit
53fbe2ff68
@ -1211,6 +1211,29 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.WxaApiMiniShopBusinessSupplyRefundResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxaapi/minishop/busiAppeal 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/guarantee/complaint.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaApiMiniShopBusinessAppealResponse> ExecuteWxaApiMiniShopBusinessAppealAsync(this WechatApiClient client, Models.WxaApiMiniShopBusinessAppealRequest 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, "wxaapi", "minishop", "busiAppeal")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.WxaApiMiniShopBusinessAppealResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region WxaEmbedded
|
||||
|
@ -0,0 +1,31 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxaapi/minishop/busiAppeal 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaApiMiniShopBusinessAppealRequest : WechatApiRequest, IInferable<WxaApiMiniShopBusinessAppealRequest, WxaApiMiniShopBusinessAppealResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置投诉单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("complaintOrderId")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("complaintOrderId")]
|
||||
public long ComplaintOrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置内容。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("content")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("content")]
|
||||
public string? Content { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置图片 MediaId 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mediaIdList")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mediaIdList")]
|
||||
public IList<string>? MediaIdList { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxaapi/minishop/busiAppeal 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaApiMiniShopBusinessAppealResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user