mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-20 10:38:10 +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
|
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||||
{
|
{
|
||||||
@@ -128,8 +128,39 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
[System.Text.Json.Serialization.JsonPropertyName("sku_attrs")]
|
[System.Text.Json.Serialization.JsonPropertyName("sku_attrs")]
|
||||||
public IList<Attribute> AttributeList { get; set; } = new List<Attribute>();
|
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>
|
/// <summary>
|
||||||
/// 获取或设置商家自定义商品 ID。
|
/// 获取或设置商家自定义商品 ID。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -206,5 +237,12 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
[Newtonsoft.Json.JsonProperty("skus")]
|
[Newtonsoft.Json.JsonProperty("skus")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("skus")]
|
[System.Text.Json.Serialization.JsonPropertyName("skus")]
|
||||||
public IList<Types.SKU>? SKUList { get; set; }
|
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>
|
/// <summary>
|
||||||
/// <para>表示 [POST] /product/spu/get 接口的响应。</para>
|
/// <para>表示 [POST] /product/spu/get 接口的响应。</para>
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [POST] /product/spu/search 接口的请求。</para>
|
/// <para>表示 [POST] /product/spu/search 接口的请求。</para>
|
||||||
@@ -12,6 +12,13 @@
|
|||||||
[System.Text.Json.Serialization.JsonPropertyName("keyword")]
|
[System.Text.Json.Serialization.JsonPropertyName("keyword")]
|
||||||
public string Keyword { get; set; } = string.Empty;
|
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>
|
||||||
/// 获取或设置指定商品来源。
|
/// 获取或设置指定商品来源。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||||
{
|
{
|
||||||
@@ -24,8 +24,32 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
public class Express : ProductSPUAddRequest.Types.Express
|
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>
|
/// <summary>
|
||||||
/// 获取或设置商品 ID。与字段 <see cref="OutProductId"/> 二选一。
|
/// 获取或设置商品 ID。与字段 <see cref="OutProductId"/> 二选一。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -102,5 +126,12 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
[Newtonsoft.Json.JsonProperty("express_info")]
|
[Newtonsoft.Json.JsonProperty("express_info")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("express_info")]
|
[System.Text.Json.Serialization.JsonPropertyName("express_info")]
|
||||||
public Types.Express Express { get; set; } = new Types.Express();
|
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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"out_product_id": "1234566",
|
"out_product_id": "1234566",
|
||||||
"title": "任天堂 Nintendo Switch 国行续航增强版 NS家用体感游戏机掌机 便携掌上游戏机 红蓝主机",
|
"title": "任天堂 Nintendo Switch 国行续航增强版 NS家用体感游戏机掌机 便携掌上游戏机 红蓝主机",
|
||||||
"sub_title": "JD自营更放心】【国行Switch,更安心的保修服务,更快的国行服务器】一台主机三种模式,游戏掌机,随时随地,一起趣玩。",
|
"sub_title": "JD自营更放心】【国行Switch,更安心的保修服务,更快的国行服务器】一台主机三种模式,游戏掌机,随时随地,一起趣玩。",
|
||||||
@@ -60,5 +60,15 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"product_type": 1,
|
||||||
|
"couponcode_info": {
|
||||||
|
"verify_type": 0,
|
||||||
|
"valid_info": {
|
||||||
|
"valid_type": 1,
|
||||||
|
"valid_day_num": 1,
|
||||||
|
"start_time": 0,
|
||||||
|
"end_time": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user