mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-03-10 00:13:36 +08:00
feat(wxapi): 随官方更新标准版交易组件 SPU 相关接口模型
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
@@ -128,8 +128,39 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sku_attrs")]
|
||||
public IList<Attribute> AttributeList { get; set; } = new List<Attribute>();
|
||||
}
|
||||
|
||||
public class CouponCode
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Validity : ProductCouponCreateRequest.Types.Validity
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置核销类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("verify_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("verify_type")]
|
||||
public int VerifyType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置有效期信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("valid_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("valid_info")]
|
||||
public Types.Validity Validity { get; set; } = new Types.Validity();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_type")]
|
||||
public int? ProductType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商家自定义商品 ID。
|
||||
/// </summary>
|
||||
@@ -206,5 +237,12 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[Newtonsoft.Json.JsonProperty("skus")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("skus")]
|
||||
public IList<Types.SKU>? SKUList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置券码信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("couponcode_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("couponcode_info")]
|
||||
public Types.CouponCode? CouponCode { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /product/spu/get 接口的响应。</para>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /product/spu/search 接口的请求。</para>
|
||||
@@ -12,6 +12,13 @@
|
||||
[System.Text.Json.Serialization.JsonPropertyName("keyword")]
|
||||
public string Keyword { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置指定商品上线状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int? ListingStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置指定商品来源。
|
||||
/// </summary>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
@@ -24,8 +24,32 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public class Express : ProductSPUAddRequest.Types.Express
|
||||
{
|
||||
}
|
||||
|
||||
public class CouponCode : ProductSPUAddRequest.Types.CouponCode
|
||||
{
|
||||
public static new class Types
|
||||
{
|
||||
public class Validity : ProductSPUAddRequest.Types.CouponCode.Types.Validity
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置有效期信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("valid_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("valid_info")]
|
||||
public new Types.Validity Validity { get; set; } = new Types.Validity();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_type")]
|
||||
public int? ProductType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品 ID。与字段 <see cref="OutProductId"/> 二选一。
|
||||
/// </summary>
|
||||
@@ -102,5 +126,12 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[Newtonsoft.Json.JsonProperty("express_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("express_info")]
|
||||
public Types.Express Express { get; set; } = new Types.Express();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置券码信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("couponcode_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("couponcode_info")]
|
||||
public Types.CouponCode? CouponCode { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user