feat(tenpayv2): 随官方更新清关报关订单附加信息重推接口模型

This commit is contained in:
Fu Diwei 2023-04-03 22:04:00 +08:00
parent 56210b1a60
commit 019e77fccd
3 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
@ -47,7 +47,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV2
}
/// <summary>
/// <para>异步调用 [POST] /cgi-bin/mch/customs/customdeclareredeclare 接口。</para>
/// <para>异步调用 [POST] /cgi-bin/mch/newcustoms/customdeclareredeclare 接口。</para>
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/api/external/declarecustom.php?chapter=18_4&index=3 </para>
/// </summary>
/// <param name="client"></param>
@ -60,7 +60,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV2
if (request is null) throw new ArgumentNullException(nameof(request));
IFlurlRequest flurlReq = client
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "mch", "customs", "customdeclareredeclare");
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "mch", "newcustoms", "customdeclareredeclare");
return await client.SendRequestWithXmlAsync<Models.RedeclareMerchantCustomsCustomDeclarationResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}

View File

@ -1,7 +1,7 @@
namespace SKIT.FlurlHttpClient.Wechat.TenpayV2.Models
namespace SKIT.FlurlHttpClient.Wechat.TenpayV2.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/mch/customs/customdeclareredeclare 接口的请求。</para>
/// <para>表示 [POST] /cgi-bin/mch/newcustoms/customdeclareredeclare 接口的请求。</para>
/// </summary>
public class RedeclareMerchantCustomsCustomDeclarationRequest : WechatTenpaySignableRequest
{

View File

@ -1,9 +1,9 @@
using System;
using System;
namespace SKIT.FlurlHttpClient.Wechat.TenpayV2.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/mch/customs/customdeclareredeclare 接口的响应。</para>
/// <para>表示 [POST] /cgi-bin/mch/newcustoms/customdeclareredeclare 接口的响应。</para>
/// </summary>
public class RedeclareMerchantCustomsCustomDeclarationResponse : WechatTenpaySignableResponse
{