mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-02-12 02:36:21 +08:00
feat(wxapi): 随官方更新自定义交易组件商品相关接口模型
This commit is contained in:
@@ -111,6 +111,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("path")]
|
||||
public string PagePath { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序商品立即购买页面路径。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("direct_path")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("direct_path")]
|
||||
public string? DirectPagePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置主图 Url 列表。
|
||||
/// </summary>
|
||||
@@ -159,5 +166,12 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[Newtonsoft.Json.JsonProperty("skus")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("skus")]
|
||||
public IList<Types.SKU> SKUList { get; set; } = new List<Types.SKU>();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品使用场景 ID 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("scene_group_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("scene_group_list")]
|
||||
public IList<int>? SceneGroupIdList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,11 +85,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public class SKU
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置 SKU ID。
|
||||
/// 获取或设置商家自定义商品 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sku_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sku_id")]
|
||||
public long SKUId { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("out_product_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_product_id")]
|
||||
public string OutProductId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商家自定义 SKU ID。
|
||||
|
||||
@@ -50,6 +50,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("path")]
|
||||
public string PagePath { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序商品立即购买页面路径。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("direct_path")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("direct_path")]
|
||||
public string? DirectPagePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置主图 Url 列表。
|
||||
/// </summary>
|
||||
@@ -98,5 +105,12 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[Newtonsoft.Json.JsonProperty("skus")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("skus")]
|
||||
public IList<Types.SKU> SKUList { get; set; } = new List<Types.SKU>();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品使用场景 ID 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("scene_group_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("scene_group_list")]
|
||||
public IList<int>? SceneGroupIdList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user