From cbe374763dec0f1ef71928bf22b7a7d543fa5ee9 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Thu, 27 Nov 2025 15:36:30 +0800 Subject: [PATCH] =?UTF-8?q?feat(wxapi):=20=E9=9A=8F=E5=AE=98=E6=96=B9?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=BE=AE=E4=BF=A1=E5=B0=8F=E5=BA=97=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E8=AE=A2=E5=8D=95=E8=AF=A6=E6=83=85=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...sECMerchantPrivateNumberAddPhoneRequest.cs | 4 +- ...sECMerchantPrivateNumberGetPhoneRequest.cs | 4 +- ...chantPrivateNumberSendVerifyCodeRequest.cs | 4 +- .../ChannelsECOpenGetDownloadUrlResponse.cs | 4 +- .../ECOrder/ChannelsECOrderGetResponse.cs | 64 +++++++++++++++++-- ...elsECOrderDropshipSupplierSearchRequest.cs | 28 ++++++++ .../ChannelsECOpenGetDownloadUrlResponse.json | 2 +- 7 files changed, 97 insertions(+), 13 deletions(-) diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECMerchant/PrivateNumber/ChannelsECMerchantPrivateNumberAddPhoneRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECMerchant/PrivateNumber/ChannelsECMerchantPrivateNumberAddPhoneRequest.cs index 7b3006b6..3a438124 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECMerchant/PrivateNumber/ChannelsECMerchantPrivateNumberAddPhoneRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECMerchant/PrivateNumber/ChannelsECMerchantPrivateNumberAddPhoneRequest.cs @@ -8,8 +8,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models /// /// 获取或设置待认证的手机号。 /// - [Newtonsoft.Json.JsonProperty("house_number")] - [System.Text.Json.Serialization.JsonPropertyName("house_number")] + [Newtonsoft.Json.JsonProperty("mobile")] + [System.Text.Json.Serialization.JsonPropertyName("mobile")] public string MobileNumber { get; set; } = string.Empty; /// diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECMerchant/PrivateNumber/ChannelsECMerchantPrivateNumberGetPhoneRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECMerchant/PrivateNumber/ChannelsECMerchantPrivateNumberGetPhoneRequest.cs index 0f55648e..bc382876 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECMerchant/PrivateNumber/ChannelsECMerchantPrivateNumberGetPhoneRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECMerchant/PrivateNumber/ChannelsECMerchantPrivateNumberGetPhoneRequest.cs @@ -8,8 +8,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models /// /// 获取或设置待认证的手机号。 /// - [Newtonsoft.Json.JsonProperty("house_number")] - [System.Text.Json.Serialization.JsonPropertyName("house_number")] + [Newtonsoft.Json.JsonProperty("mobile")] + [System.Text.Json.Serialization.JsonPropertyName("mobile")] public string MobileNumber { get; set; } = string.Empty; } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECMerchant/PrivateNumber/ChannelsECMerchantPrivateNumberSendVerifyCodeRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECMerchant/PrivateNumber/ChannelsECMerchantPrivateNumberSendVerifyCodeRequest.cs index 17aeea6f..b2ff6b7d 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECMerchant/PrivateNumber/ChannelsECMerchantPrivateNumberSendVerifyCodeRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECMerchant/PrivateNumber/ChannelsECMerchantPrivateNumberSendVerifyCodeRequest.cs @@ -8,8 +8,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models /// /// 获取或设置待认证的手机号。 /// - [Newtonsoft.Json.JsonProperty("house_number")] - [System.Text.Json.Serialization.JsonPropertyName("house_number")] + [Newtonsoft.Json.JsonProperty("mobile")] + [System.Text.Json.Serialization.JsonPropertyName("mobile")] public string MobileNumber { get; set; } = string.Empty; } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECOpen/ChannelsECOpenGetDownloadUrlResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECOpen/ChannelsECOpenGetDownloadUrlResponse.cs index 339d00db..f8abf7e6 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECOpen/ChannelsECOpenGetDownloadUrlResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECOpen/ChannelsECOpenGetDownloadUrlResponse.cs @@ -8,8 +8,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models /// /// 获取或设置文件下载链接。 /// - [Newtonsoft.Json.JsonProperty("download_url")] - [System.Text.Json.Serialization.JsonPropertyName("download_url")] + [Newtonsoft.Json.JsonProperty("url")] + [System.Text.Json.Serialization.JsonPropertyName("url")] public string DownloadUrl { get; set; } = default!; /// diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECOrder/ChannelsECOrderGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECOrder/ChannelsECOrderGetResponse.cs index 77110835..c3c17c6f 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECOrder/ChannelsECOrderGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECOrder/ChannelsECOrderGetResponse.cs @@ -325,6 +325,41 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [System.Text.Json.Serialization.JsonPropertyName("finder_discounted_price")] public int? FinderDiscountedPrice { get; set; } + /// + /// 获取或设置一起买优惠金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("bulkbuy_discounted_price")] + [System.Text.Json.Serialization.JsonPropertyName("bulkbuy_discounted_price")] + public int? BulkBuyDiscountedPrice { get; set; } + + /// + /// 获取或设置平台券优惠金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("cash_coupon_discounted_price")] + [System.Text.Json.Serialization.JsonPropertyName("cash_coupon_discounted_price")] + public int? CashCouponDiscountedPrice { get; set; } + + /// + /// 获取或设置活动商家补贴金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("platform_activity_merchant_discounted_price")] + [System.Text.Json.Serialization.JsonPropertyName("platform_activity_merchant_discounted_price")] + public int? PlatformActivityMerchantDiscountedPrice { get; set; } + + /// + /// 获取或设置国补优惠金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("national_subsidy_discounted_price")] + [System.Text.Json.Serialization.JsonPropertyName("national_subsidy_discounted_price")] + public int? NationalSubsidyDiscountedPrice { get; set; } + + /// + /// 获取或设置国补优惠商家出资金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("national_subsidy_merchant_discounted_price")] + [System.Text.Json.Serialization.JsonPropertyName("national_subsidy_merchant_discounted_price")] + public int? NationalSubsidyMerchantDiscountedPrice { get; set; } + /// /// 获取或设置是否修改过价格。 /// @@ -452,6 +487,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [Newtonsoft.Json.JsonProperty("dropship_info")] [System.Text.Json.Serialization.JsonPropertyName("dropship_info")] public Types.Dropship? Dropship { get; set; } + + /// + /// 获取或设置是否为闪购商品。 + /// + [Newtonsoft.Json.JsonProperty("is_flash_sale")] + [System.Text.Json.Serialization.JsonPropertyName("is_flash_sale")] + public bool? IsFlashSale { get; set; } } public class Payment @@ -606,6 +648,20 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [System.Text.Json.Serialization.JsonPropertyName("vip_discounted_price")] public int? VipDiscountedPrice { get; set; } + /// + /// 获取或设置订单内平台券优惠金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("cash_coupon_discounted_price")] + [System.Text.Json.Serialization.JsonPropertyName("cash_coupon_discounted_price")] + public int? CashCouponDiscountedPrice { get; set; } + + /// + /// 获取或设置活动商家补贴金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("platform_activity_merchant_discounted_price")] + [System.Text.Json.Serialization.JsonPropertyName("platform_activity_merchant_discounted_price")] + public int? PlatformActivityMerchantDiscountedPrice { get; set; } + /// /// 获取或设置订单内一起买优惠金额(单位:分)。 /// @@ -621,11 +677,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public int? NationalSubsidyDiscountedPrice { get; set; } /// - /// 获取或设置订单内平台券优惠金额(单位:分)。 + /// 获取或设置订单内国补优惠商家出资金额(单位:分)。 /// - [Newtonsoft.Json.JsonProperty("cash_coupon_discounted_price")] - [System.Text.Json.Serialization.JsonPropertyName("cash_coupon_discounted_price")] - public int? CashCouponDiscountedPrice { get; set; } + [Newtonsoft.Json.JsonProperty("national_subsidy_merchant_discounted_price")] + [System.Text.Json.Serialization.JsonPropertyName("national_subsidy_merchant_discounted_price")] + public int? NationalSubsidyMerchantDiscountedPrice { get; set; } } public class Delivery diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECOrder/Dropship/Supplier/ChannelsECOrderDropshipSupplierSearchRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECOrder/Dropship/Supplier/ChannelsECOrderDropshipSupplierSearchRequest.cs index 46371972..04bc06b0 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECOrder/Dropship/Supplier/ChannelsECOrderDropshipSupplierSearchRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECOrder/Dropship/Supplier/ChannelsECOrderDropshipSupplierSearchRequest.cs @@ -30,6 +30,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] public string? ShopAppId { get; set; } + /// + /// 获取或设置商家小店名称。 + /// + [Newtonsoft.Json.JsonProperty("shop_appname")] + [System.Text.Json.Serialization.JsonPropertyName("shop_appname")] + public string? ShopName { get; set; } + /// /// 获取或设置代发单状态。 /// @@ -50,6 +57,27 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [Newtonsoft.Json.JsonProperty("waybill_id")] [System.Text.Json.Serialization.JsonPropertyName("waybill_id")] public string? WaybillId { get; set; } + + /// + /// 获取或设置商品编码。 + /// + [Newtonsoft.Json.JsonProperty("product_code")] + [System.Text.Json.Serialization.JsonPropertyName("product_code")] + public string? ProductCode { get; set; } + + /// + /// 获取或设置商品名称。 + /// + [Newtonsoft.Json.JsonProperty("spu_name")] + [System.Text.Json.Serialization.JsonPropertyName("spu_name")] + public string? ProductName { get; set; } + + /// + /// 获取或设置商家备注。 + /// + [Newtonsoft.Json.JsonProperty("merchant_notes")] + [System.Text.Json.Serialization.JsonPropertyName("merchant_notes")] + public string? MerchantNotes { get; set; } } public class Pagination : ChannelsECOrderDropshipSupplierListRequest.Types.Pagination diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECOpen/ChannelsECOpenGetDownloadUrlResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECOpen/ChannelsECOpenGetDownloadUrlResponse.json index a08ae4fd..84c4ba6a 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECOpen/ChannelsECOpenGetDownloadUrlResponse.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECOpen/ChannelsECOpenGetDownloadUrlResponse.json @@ -1,6 +1,6 @@ { "errcode": 0, "errmsg": "成功", - "download_url": "https://cos.tencent.com/image/test.png", + "url": "https://cos.tencent.com/image/test.png", "expire_time": 17823232312 }