diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinExtensions.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinExtensions.cs index 8d341d53..5daed09d 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinExtensions.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinExtensions.cs @@ -18,6 +18,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api ///
///
///
+ /// /// /// /// @@ -45,7 +46,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// REF:
///
///
- /// + ///
+ /// + /// /// /// /// diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinOpenApiExtensions.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinOpenApiExtensions.cs index 686eb395..bbe71421 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinOpenApiExtensions.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinOpenApiExtensions.cs @@ -15,7 +15,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// REF:
///
///
- /// + ///
+ ///
+ /// /// /// /// @@ -41,7 +43,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /cgi-bin/clear_quota/v2 接口。 /// /// REF:
- /// + ///
+ ///
+ /// ///
/// /// @@ -74,6 +78,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api ///
///
/// + ///
+ /// /// /// /// @@ -99,6 +105,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api ///
///
/// + ///
+ /// /// /// /// diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteChannelsExtensions.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteChannelsExtensions.cs index bdcb7a82..d3d692a3 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteChannelsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteChannelsExtensions.cs @@ -14,7 +14,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/aftersale/getaftersalelist 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -38,7 +39,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// /// REF:
///
- /// + ///
+ /// ///
/// /// @@ -61,7 +63,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/aftersale/acceptapply 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -84,7 +87,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/aftersale/rejectapply 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -107,7 +111,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/aftersale/uploadrefundcertificate 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -131,7 +136,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/aftersale/addcomplaintmaterial 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -154,7 +160,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/aftersale/addcomplaintproof 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -177,7 +184,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/aftersale/getcomplaintorder 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -202,7 +210,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/aftersale/reason/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -225,7 +234,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/aftersale/rejectreason/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -247,11 +257,36 @@ namespace SKIT.FlurlHttpClient.Wechat.Api #endregion #region ECBasics + /// + /// 异步调用 [GET] /channels/ec/basics/info/get 接口。 + /// + /// REF:
+ /// + /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECBasicsInfoGetAsync(this WechatApiClient client, Models.ChannelsECBasicsInfoGetRequest 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.Get, "channels", "ec", "basics", "info", "get") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + /// /// 异步调用 [POST] /channels/ec/basics/img/upload 接口。 /// /// REF:
- /// + ///
+ /// ///
///
/// @@ -286,34 +321,12 @@ namespace SKIT.FlurlHttpClient.Wechat.Api } } - /// - /// 异步调用 [GET] /channels/ec/basics/info/get 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteChannelsECBasicsInfoGetAsync(this WechatApiClient client, Models.ChannelsECBasicsInfoGetRequest 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.Get, "channels", "ec", "basics", "info", "get") - .SetQueryParam("access_token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - /// /// 异步调用 [POST] /channels/ec/basics/qualification/upload 接口。 /// /// REF:
- /// + ///
+ /// ///
///
/// @@ -343,7 +356,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/basics/addresscode/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -392,7 +406,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/brand/all 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -415,7 +430,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/brand/add 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -438,7 +454,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/brand/update 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -461,7 +478,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/brand/audit/cancel 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -484,7 +502,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/brand/delete 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -507,7 +526,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/brand/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -530,7 +550,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/brand/list/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -553,7 +574,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/brand/valid/list/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -578,7 +600,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [GET] /channels/ec/category/all 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -601,7 +624,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/category/detail 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -624,7 +648,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/category/availablesoncategories/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -647,7 +672,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/category/add 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -670,7 +696,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/category/audit/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -693,7 +720,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/category/audit/cancel 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -716,7 +744,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [GET] /channels/ec/category/list/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -741,7 +770,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/compass/shop/overall/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -764,7 +794,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/compass/shop/finder/authorization/list/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -787,7 +818,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/compass/shop/finder/list/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -810,7 +842,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/compass/shop/finder/overall/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -833,7 +866,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/compass/shop/finder/product/list/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -856,7 +890,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/compass/shop/finder/product/overall/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -879,7 +914,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/compass/shop/live/list/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -902,7 +938,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/compass/shop/product/list/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -925,7 +962,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/compass/shop/product/data/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -948,7 +986,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/compass/shop/sale/profile/data/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -1061,6 +1100,29 @@ namespace SKIT.FlurlHttpClient.Wechat.Api #endregion #region ECCooperation + /// + /// 异步调用 [POST] /channels/ec/cooperation/list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECCooperationListAsync(this WechatApiClient client, Models.ChannelsECCooperationListRequest 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, "channels", "ec", "cooperation", "list") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + /// /// 异步调用 [POST] /channels/ec/cooperation/shop/list 接口。 /// @@ -1152,6 +1214,100 @@ namespace SKIT.FlurlHttpClient.Wechat.Api return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } + + #region ECCooperation/Invitation + /// + /// 异步调用 [POST] /channels/ec/cooperation/invitation/cancel 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECCooperationInvitationCancelAsync(this WechatApiClient client, Models.ChannelsECCooperationInvitationCancelRequest 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, "channels", "ec", "cooperation", "invitation", "cancel") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/cooperation/invitation/unbind 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECCooperationInvitationUnbindAsync(this WechatApiClient client, Models.ChannelsECCooperationInvitationUnbindRequest 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, "channels", "ec", "cooperation", "invitation", "unbind") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/cooperation/invitation/qrcode/generate 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECCooperationInvitationQrcodeGenerateAsync(this WechatApiClient client, Models.ChannelsECCooperationInvitationQrcodeGenerateRequest 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, "channels", "ec", "cooperation", "invitation", "qrcode", "generate") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/cooperation/invitation/get 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECCooperationInvitationGetAsync(this WechatApiClient client, Models.ChannelsECCooperationInvitationGetRequest 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, "channels", "ec", "cooperation", "invitation", "get") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion #endregion #region ECCoupon @@ -1159,7 +1315,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/coupon/create 接口。 /// /// REF:
- /// + ///
+ /// ///
///
/// @@ -1182,7 +1339,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/coupon/update 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -1205,7 +1363,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/coupon/update_status 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -1228,7 +1387,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/coupon/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -1251,7 +1411,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/coupon/get_list 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -1274,7 +1435,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/coupon/get_user_coupon_list 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -1297,7 +1459,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/coupon/get_user_coupon 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -1370,7 +1533,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/funds/getbalance 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -1394,7 +1558,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// /// REF:
///
- /// + ///
+ /// ///
/// /// @@ -1417,7 +1582,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/funds/getfundsflowdetail 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -1441,7 +1607,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/funds/getbankacct 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -1464,7 +1631,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/funds/setbankacct 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -1489,7 +1657,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/funds/getwithdrawdetail 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -1512,7 +1681,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/funds/getwithdrawlist 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -1535,7 +1705,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/funds/submitwithdraw 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -1990,7 +2161,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/league/item/batchadd 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2013,7 +2185,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/league/item/upd 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2036,7 +2209,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/league/item/delete 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2059,7 +2233,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/league/item/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2082,7 +2257,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/league/item/list/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2105,7 +2281,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/league/item/headsupplier/batchadd 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2130,7 +2307,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/league/promoter/add 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2153,7 +2331,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/league/promoter/upd 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2176,7 +2355,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/league/promoter/delete 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2199,7 +2379,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/league/promoter/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2222,7 +2403,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/league/promoter/list/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2248,7 +2430,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/logistics/phonenumberpool/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2271,7 +2454,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/logistics/phonenumber/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2294,7 +2478,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/logistics/virtualnumber/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2319,7 +2504,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/logistics/ewaybill/biz/account/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2344,7 +2530,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/logistics/ewaybill/biz/delivery/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2369,7 +2556,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/logistics/ewaybill/biz/order/precreate 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2392,7 +2580,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/logistics/ewaybill/biz/order/create 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2415,7 +2604,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/logistics/ewaybill/biz/order/cancel 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2438,7 +2628,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/logistics/ewaybill/biz/order/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2461,7 +2652,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/logistics/ewaybill/biz/order/print 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2484,7 +2676,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/logistics/ewaybill/biz/order/batchprint 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2509,7 +2702,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/logistics/ewaybill/biz/print/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2534,7 +2728,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/logistics/ewaybill/biz/template/config 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2557,7 +2752,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/logistics/ewaybill/biz/template/create 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2580,7 +2776,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/logistics/ewaybill/biz/template/update 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2603,7 +2800,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/logistics/ewaybill/biz/template/delete 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2626,7 +2824,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/logistics/ewaybill/biz/template/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2649,7 +2848,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/logistics/ewaybill/biz/template/getbyid 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2677,7 +2877,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/merchant/getfreighttemplatelist 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2700,7 +2901,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/merchant/getfreighttemplatedetail 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2723,7 +2925,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/merchant/addfreighttemplate 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2746,7 +2949,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/merchant/updatefreighttemplate 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2771,7 +2975,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/merchant/address/list 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2794,7 +2999,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/merchant/address/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2817,7 +3023,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/merchant/address/add 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2840,7 +3047,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/merchant/address/update 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2863,7 +3071,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/merchant/address/delete 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2889,7 +3098,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/order/search 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2912,7 +3122,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/order/list/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2936,7 +3147,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// /// REF:
///
- /// + ///
+ /// ///
/// /// @@ -2959,7 +3171,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/order/price/update 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -2982,7 +3195,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/order/merchantnotes/update 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3005,7 +3219,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/order/sensitiveinfo/decode 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3028,7 +3243,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/order/virtualtelnumber/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3051,7 +3267,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/order/freshinspect/submit 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3075,7 +3292,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/order/address/update 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3098,7 +3316,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/order/addressmodify/accept 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3121,7 +3340,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/order/addressmodify/reject 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3142,11 +3362,36 @@ namespace SKIT.FlurlHttpClient.Wechat.Api #endregion #region ECOrder/Delivery + /// + /// 异步调用 [POST] /channels/ec/order/deliveryinfo/update 接口。 + /// + /// REF:
+ ///
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECOrderDeliveryInfoUpdateAsync(this WechatApiClient client, Models.ChannelsECOrderDeliveryInfoUpdateRequest 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, "channels", "ec", "order", "deliveryinfo", "update") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + } + /// /// 异步调用 [POST] /channels/ec/order/deliverycompanylist/get 接口。 /// /// REF:
- /// + ///
+ /// ///
///
/// @@ -3169,7 +3414,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/order/delivery/send 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3187,29 +3433,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Api return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } - - /// - /// 异步调用 [POST] /channels/ec/order/deliveryinfo/update 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteChannelsECOrderDeliveryInfoUpdateAsync(this WechatApiClient client, Models.ChannelsECOrderDeliveryInfoUpdateRequest 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, "channels", "ec", "order", "deliveryinfo", "update") - .SetQueryParam("access_token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); - } #endregion #endregion @@ -3218,7 +3441,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/product/add 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3241,7 +3465,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/product/update 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3265,7 +3490,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// /// REF:
///
- /// + ///
+ /// ///
/// /// @@ -3288,7 +3514,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/product/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3311,7 +3538,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/product/list/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3335,7 +3563,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// /// REF:
///
- /// + ///
+ /// ///
/// /// @@ -3359,7 +3588,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// /// REF:
///
- /// + ///
+ /// ///
/// /// @@ -3383,7 +3613,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// /// REF:
///
- /// + ///
+ /// ///
/// /// @@ -3406,7 +3637,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/product/h5url/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3429,7 +3661,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/product/taglink/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3452,8 +3685,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/product/qrcode/get 接口。 /// /// REF:
- /// - ///
+ ///
+ /// + /// /// /// /// @@ -3476,7 +3710,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/product/limiteddiscounttask/add 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3499,7 +3734,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/product/limiteddiscounttask/list/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3522,7 +3758,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/product/limiteddiscounttask/stop 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3545,7 +3782,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/product/limiteddiscounttask/delete 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3572,6 +3810,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// REF:
///
/// + /// /// /// /// @@ -3594,7 +3833,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/product/stock/get 接口。 /// /// REF:
- /// + ///
+ ///
///
/// /// @@ -3617,7 +3857,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/product/stock/batchget 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3640,7 +3881,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/product/stock/getflow 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3783,7 +4025,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [GET] /channels/ec/qic/inspect/config/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3806,7 +4049,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [GET] /channels/ec/qic/inspect/submitconfig/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3829,7 +4073,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/qic/inspect/code/print 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3852,7 +4097,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/qic/inspect/submit 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3877,7 +4123,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/sharer/bind 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3900,7 +4147,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/sharer/unbind 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3923,7 +4171,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/sharer/search_sharer 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3946,7 +4195,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/sharer/get_sharer_list 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3969,7 +4219,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/sharer/get_sharer_order_list 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -3992,7 +4243,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/sharer/get_sharer_product_h5url 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -4015,7 +4267,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/sharer/get_sharer_product_taglink 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -4038,7 +4291,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/sharer/get_sharer_product_qrcode 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -4061,7 +4315,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/sharer/get_shop_finder_live_notice_sharer_url 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -4084,7 +4339,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/sharer/get_shop_finder_live_sharer_url 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -4599,7 +4855,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/warehouse/create 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -4622,7 +4879,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/warehouse/list/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -4645,7 +4903,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/warehouse/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -4668,7 +4927,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/warehouse/detail/update 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -4692,7 +4952,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/warehouse/coverlocations/add 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -4715,7 +4976,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/warehouse/coverlocations/del 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -4740,7 +5002,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/warehouse/address/prioritysort/set 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -4763,7 +5026,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/warehouse/address/prioritysort/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// @@ -4783,12 +5047,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api } #endregion - #region Warehouse/Address + #region Warehouse/Stock /// /// 异步调用 [POST] /channels/ec/warehouse/stock/update 接口。 /// /// REF:
- /// + ///
+ /// ///
///
/// @@ -4811,7 +5076,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// 异步调用 [POST] /channels/ec/warehouse/stock/get 接口。 /// /// REF:
- /// + ///
+ /// ///
/// /// diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationListRequest.cs new file mode 100644 index 00000000..86e8d9e0 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationListRequest.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/cooperation/list 接口的请求。 + /// + public class ChannelsECCooperationListRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置合作账号类型。 + /// + [Newtonsoft.Json.JsonProperty("sharer_type")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_type")] + public int SharerType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationListResponse.cs new file mode 100644 index 00000000..5562862f --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationListResponse.cs @@ -0,0 +1,77 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/cooperation/list 接口的响应。 + /// + public class ChannelsECCooperationListResponse : WechatApiResponse + { + public static class Types + { + public class Sharer + { + /// + /// 获取或设置合作账号 ID。 + /// + [Newtonsoft.Json.JsonProperty("sharer_id")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_id")] + public string SharerId { get; set; } = default!; + + /// + /// 获取或设置合作账号名称。 + /// + [Newtonsoft.Json.JsonProperty("sharer_name")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_name")] + public string SharerName { get; set; } = default!; + + /// + /// 获取或设置合作账号类型。 + /// + [Newtonsoft.Json.JsonProperty("sharer_type")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_type")] + public int SharerType { get; set; } + + /// + /// 获取或设置合作账号状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + + /// + /// 获取或设置绑定时间毫秒级时间戳。 + /// + [Newtonsoft.Json.JsonProperty("bind_time")] + [System.Text.Json.Serialization.JsonPropertyName("bind_time")] + public long? BindTimeMilliseconds { get; set; } + + /// + /// 获取或设置解绑时间毫秒级时间戳。 + /// + [Newtonsoft.Json.JsonProperty("unbind_time")] + [System.Text.Json.Serialization.JsonPropertyName("unbind_time")] + public long? UnbindTimeMilliseconds { get; set; } + + /// + /// 获取或设置用户拒绝时间毫秒级时间戳。 + /// + [Newtonsoft.Json.JsonProperty("reject_time")] + [System.Text.Json.Serialization.JsonPropertyName("reject_time")] + public long? RejectTimeMilliseconds { get; set; } + + /// + /// 获取或设置商家取消时间毫秒级时间戳。 + /// + [Newtonsoft.Json.JsonProperty("cancel_time")] + [System.Text.Json.Serialization.JsonPropertyName("cancel_time")] + public long? CancelTimeMilliseconds { get; set; } + } + } + + /// + /// 获取或设置合作账号列表。 + /// + [Newtonsoft.Json.JsonProperty("data_list")] + [System.Text.Json.Serialization.JsonPropertyName("data_list")] + public Types.Sharer[] SharerList { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationCancelRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationCancelRequest.cs new file mode 100644 index 00000000..6306c8c2 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationCancelRequest.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/cooperation/invitation/cancel 接口的请求。 + /// + public class ChannelsECCooperationInvitationCancelRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置合作账号 ID。 + /// + [Newtonsoft.Json.JsonProperty("sharer_id")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_id")] + public string SharerId { get; set; } = string.Empty; + + /// + /// 获取或设置合作账号类型。 + /// + [Newtonsoft.Json.JsonProperty("sharer_type")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_type")] + public int SharerType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationCancelResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationCancelResponse.cs new file mode 100644 index 00000000..10b37a1a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationCancelResponse.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/cooperation/invitation/cancel 接口的响应。 + /// + public class ChannelsECCooperationInvitationCancelResponse : WechatApiResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationGetRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationGetRequest.cs new file mode 100644 index 00000000..23a1d9ed --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationGetRequest.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/cooperation/invitation/get 接口的请求。 + /// + public class ChannelsECCooperationInvitationGetRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置合作账号 ID。 + /// + [Newtonsoft.Json.JsonProperty("sharer_id")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_id")] + public string SharerId { get; set; } = string.Empty; + + /// + /// 获取或设置合作账号类型。 + /// + [Newtonsoft.Json.JsonProperty("sharer_type")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_type")] + public int SharerType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationGetResponse.cs new file mode 100644 index 00000000..c0cdd8e0 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationGetResponse.cs @@ -0,0 +1,28 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/cooperation/invitation/get 接口的响应。 + /// + public class ChannelsECCooperationInvitationGetResponse : WechatApiResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置合作账号状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationQrcodeGenerateRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationQrcodeGenerateRequest.cs new file mode 100644 index 00000000..1f077035 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationQrcodeGenerateRequest.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/cooperation/invitation/qrcode/generate 接口的请求。 + /// + public class ChannelsECCooperationInvitationQrcodeGenerateRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置合作账号 ID。 + /// + [Newtonsoft.Json.JsonProperty("sharer_id")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_id")] + public string SharerId { get; set; } = string.Empty; + + /// + /// 获取或设置合作账号类型。 + /// + [Newtonsoft.Json.JsonProperty("sharer_type")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_type")] + public int SharerType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationQrcodeGenerateResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationQrcodeGenerateResponse.cs new file mode 100644 index 00000000..3e2b1e87 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationQrcodeGenerateResponse.cs @@ -0,0 +1,28 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/cooperation/invitation/qrcode/generate 接口的响应。 + /// + public class ChannelsECCooperationInvitationQrcodeGenerateResponse : WechatApiResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置经过 Base64 编码后的二维码数据。 + /// + [Newtonsoft.Json.JsonProperty("qrcode_base64")] + [System.Text.Json.Serialization.JsonPropertyName("qrcode_base64")] + public string EncodingQrcodeData { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationUnbindRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationUnbindRequest.cs new file mode 100644 index 00000000..586f45d6 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationUnbindRequest.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/cooperation/invitation/unbind 接口的请求。 + /// + public class ChannelsECCooperationInvitationUnbindRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置合作账号 ID。 + /// + [Newtonsoft.Json.JsonProperty("sharer_id")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_id")] + public string SharerId { get; set; } = string.Empty; + + /// + /// 获取或设置合作账号类型。 + /// + [Newtonsoft.Json.JsonProperty("sharer_type")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_type")] + public int SharerType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationUnbindResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationUnbindResponse.cs new file mode 100644 index 00000000..8d9a3ada --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationUnbindResponse.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/cooperation/invitation/unbind 接口的响应。 + /// + public class ChannelsECCooperationInvitationUnbindResponse : WechatApiResponse + { + } +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/ChannelsECCooperationListRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/ChannelsECCooperationListRequest.json new file mode 100644 index 00000000..3687dbc2 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/ChannelsECCooperationListRequest.json @@ -0,0 +1,3 @@ +{ + "sharer_type": 1 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/ChannelsECCooperationListResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/ChannelsECCooperationListResponse.json new file mode 100644 index 00000000..fa5b5ba2 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/ChannelsECCooperationListResponse.json @@ -0,0 +1,26 @@ +{ + "errcode": 0, + "errmsg": "ok", + "data_list": [ + { + "sharer_id": "sphDFZbOEY46mMQ", + "status": 2, + "sharer_name": "视频号昵称1", + "sharer_type": 1, + "bind_time": 1728908643533, + "unbind_time": 1728909064625, + "reject_time": 0, + "cancel_time": 0 + }, + { + "sharer_id": "sphv31FDyX6sQOK", + "status": 1, + "sharer_name": "视频号昵称2", + "sharer_type": 1, + "bind_time": 1728903434994, + "unbind_time": 0, + "reject_time": 0, + "cancel_time": 0 + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationCancelRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationCancelRequest.json new file mode 100644 index 00000000..62dfea88 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationCancelRequest.json @@ -0,0 +1,4 @@ +{ + "sharer_id": "sph3FZbOEY64mWQ", + "sharer_type": 1 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationGetRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationGetRequest.json new file mode 100644 index 00000000..62dfea88 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationGetRequest.json @@ -0,0 +1,4 @@ +{ + "sharer_id": "sph3FZbOEY64mWQ", + "sharer_type": 1 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationGetResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationGetResponse.json new file mode 100644 index 00000000..1aa57f60 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationGetResponse.json @@ -0,0 +1,7 @@ +{ + "errcode": 0, + "errmsg": "ok", + "data": { + "status": 7 + } +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationQrcodeGenerateRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationQrcodeGenerateRequest.json new file mode 100644 index 00000000..62dfea88 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationQrcodeGenerateRequest.json @@ -0,0 +1,4 @@ +{ + "sharer_id": "sph3FZbOEY64mWQ", + "sharer_type": 1 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationQrcodeGenerateResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationQrcodeGenerateResponse.json new file mode 100644 index 00000000..6da8fed8 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationQrcodeGenerateResponse.json @@ -0,0 +1,7 @@ +{ + "errcode": 0, + "errmsg": "ok", + "data": { + "qrcode_base64": "/9j/4A" + } +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationUnbindRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationUnbindRequest.json new file mode 100644 index 00000000..62dfea88 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECCooperation/Invitation/ChannelsECCooperationInvitationUnbindRequest.json @@ -0,0 +1,4 @@ +{ + "sharer_id": "sph3FZbOEY64mWQ", + "sharer_type": 1 +}