mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-04-05 17:37:54 +08:00
feat(tenpayv2): 随官方更新清关报关订单附加信息重推接口模型
This commit is contained in:
parent
56210b1a60
commit
019e77fccd
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user