mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-12-29 01:44:42 +08:00
feat(wxapi): 随官方更新微信小店商品相关接口模型
This commit is contained in:
@@ -39,6 +39,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
[System.Text.Json.Serialization.JsonPropertyName("reason")]
|
||||
[System.Xml.Serialization.XmlElement("reason", IsNullable = true)]
|
||||
public string? Reason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核信息 JSON 字符串。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audit_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_info")]
|
||||
[System.Xml.Serialization.XmlElement("audit_info", IsNullable = true)]
|
||||
public string? AuditInfoJson { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -342,6 +342,32 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("specification_list")]
|
||||
public IList<Types.Specification>? SpecificationList { get; set; }
|
||||
}
|
||||
|
||||
public class TimingOnSale
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置开售时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("onsale_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("onsale_time")]
|
||||
public long? OnSaleTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否隐藏价格。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_hide_price")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_hide_price")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
|
||||
public bool? IsHidePrice { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -358,14 +384,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("title")]
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品副标题。
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2025-06-16 下线。")]
|
||||
[Newtonsoft.Json.JsonProperty("sub_title")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_title")]
|
||||
public string? SubTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品短标题。
|
||||
/// </summary>
|
||||
@@ -510,5 +528,19 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[Newtonsoft.Json.JsonProperty("size_chart")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("size_chart")]
|
||||
public Types.SizeChart? SizeChart { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置待开售信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("timing_onsale_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("timing_onsale_info")]
|
||||
public Types.TimingOnSale? TimingOnSale { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置发布模式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("release_mode")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("release_mode")]
|
||||
public int? ReleaseMode { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -364,6 +364,39 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("specification_list")]
|
||||
public Types.Specification[]? SpecificationList { get; set; }
|
||||
}
|
||||
|
||||
public class TimingOnSale
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置开售时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("onsale_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("onsale_time")]
|
||||
public long OnSaleTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否隐藏价格。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_hide_price")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_hide_price")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
|
||||
public bool IsHidePrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置待开售任务 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("task_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("task_id")]
|
||||
public long? TaskId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -388,14 +421,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("title")]
|
||||
public string Title { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品副标题。
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2025-06-16 下线。")]
|
||||
[Newtonsoft.Json.JsonProperty("sub_title")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_title")]
|
||||
public string? SubTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品短标题。
|
||||
/// </summary>
|
||||
@@ -539,6 +564,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long? SourceProductId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置总销量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_sold_num")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_sold_num")]
|
||||
public int? TotalSoldCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置售后地址。
|
||||
/// </summary>
|
||||
@@ -559,6 +591,20 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[Newtonsoft.Json.JsonProperty("size_chart")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("size_chart")]
|
||||
public Types.SizeChart? SizeChart { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置待开售信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("timing_onsale_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("timing_onsale_info")]
|
||||
public Types.TimingOnSale? TimingOnSale { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置发布模式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("release_mode")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("release_mode")]
|
||||
public int? ReleaseMode { get; set; }
|
||||
}
|
||||
|
||||
public class SaleLimitInfo
|
||||
|
||||
@@ -134,6 +134,10 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class TimingOnSale : ChannelsECProductAddRequest.Types.TimingOnSale
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -150,14 +154,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("title")]
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品副标题。
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2025-06-16 下线。")]
|
||||
[Newtonsoft.Json.JsonProperty("sub_title")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_title")]
|
||||
public string? SubTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品短标题。
|
||||
/// </summary>
|
||||
@@ -302,5 +298,19 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[Newtonsoft.Json.JsonProperty("size_chart")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("size_chart")]
|
||||
public Types.SizeChart? SizeChart { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置待开售信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("timing_onsale_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("timing_onsale_info")]
|
||||
public Types.TimingOnSale? TimingOnSale { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置发布模式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("release_mode")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("release_mode")]
|
||||
public int? ReleaseMode { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
"ProductSpuAudit": {
|
||||
"product_id": "12345678",
|
||||
"status": 3,
|
||||
"reason": "abc"
|
||||
"reason": "abc",
|
||||
"audit_info": "{\"busi_audit_info\":{\"item_list\":[{\"multi_failed_reasons\":[{\"audit_reason\":\"您好,该商品疑似与实际类目不符,需要修改类目为【xx>xxx>xxx】,请修改后再提交\"}],\"busi_show_field_api\":\"product.cat_v2\"}]}}"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user