mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-18 17:48:12 +08:00
feat(wxapi): 随官方更新视频号商品相关接口模型
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
@@ -52,10 +54,18 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// <summary>
|
||||
/// 获取或设置属性类型。
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2023-06-03 下线。")]
|
||||
[Newtonsoft.Json.JsonProperty("type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("type")]
|
||||
public string Type { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置新版属性类型(后续将替代 <see cref="Type"/> 字段)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("type_v2")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("type_v2")]
|
||||
public string TypeV2 { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置属性值。
|
||||
/// </summary>
|
||||
@@ -69,12 +79,30 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[Newtonsoft.Json.JsonProperty("is_required")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_required")]
|
||||
public bool IsRequired { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置输入提示。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("hint")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("hint")]
|
||||
public string? Hint { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否允许添加选项。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("append_allowed")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("append_allowed")]
|
||||
public bool? IsAppendAllowed { get; set; }
|
||||
}
|
||||
|
||||
public class SaleAttribute : ProductAttribute
|
||||
{
|
||||
}
|
||||
|
||||
public class TransactionFee
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置实收的交易佣金比例(单位:万分比)。
|
||||
/// 获取或设置实收的交易佣金比例(单位:万分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("basis_point")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("basis_point")]
|
||||
@@ -82,7 +110,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public int BasisPoint { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置原始佣金比例(单位:万分比)。
|
||||
/// 获取或设置原始佣金比例(单位:万分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("original_basis_point")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("original_basis_point")]
|
||||
@@ -97,6 +125,112 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public int IncentiveType { get; set; }
|
||||
}
|
||||
|
||||
public class CouponRule
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置最高的折扣比例(单位:百分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("discount_ratio_limit")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("discount_ratio_limit")]
|
||||
public int DiscountRatioLimit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置最高的折扣金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("discount_limit")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("discount_limit")]
|
||||
public int DiscountLimit { get; set; }
|
||||
}
|
||||
|
||||
public class ProductRequirement
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商品标题的编辑要求。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_title_requirement")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_title_requirement")]
|
||||
public string? RroductTitleRequirement { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品图片的编辑要求。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_img_requirement")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_img_requirement")]
|
||||
public string? RroductImageRequirement { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品描述的编辑要求。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_desc_requirement")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_desc_requirement")]
|
||||
public string? RroductDescriptionRequirement { get; set; }
|
||||
}
|
||||
|
||||
public class SizeChart
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Item
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string Name { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置单位。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("unit")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("unit")]
|
||||
public string Unit { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置属性值的类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("type")]
|
||||
public string Type { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置属性值的填写格式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("format")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("format")]
|
||||
public string Format { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置属性值的限制。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("limit")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("limit")]
|
||||
public string Limit { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否必填。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_required")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_required")]
|
||||
public bool IsRequired { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否支持。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_support")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_support")]
|
||||
public bool IsSupported { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置尺码项列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("item_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("item_list")]
|
||||
public Types.Item[]? ItemList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -127,6 +261,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("seven_day_return")]
|
||||
public bool IsSevenDayReturnSupported { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否品牌定向准入。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_limit_brand")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_limit_brand")]
|
||||
public bool IsLimitBrand { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置定准类目的品牌列表。
|
||||
/// </summary>
|
||||
@@ -134,6 +275,34 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("brand_list")]
|
||||
public Types.Brand[]? BrandList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置产品属性列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_attr_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_attr_list")]
|
||||
public Types.ProductAttribute[]? ProductAttributeList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置销售属性列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sale_attr_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sale_attr_list")]
|
||||
public Types.SaleAttribute[]? SaleAttributeList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置交易佣金信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("transactionfee_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("transactionfee_info")]
|
||||
public Types.TransactionFee? TransactionFee { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置优惠券规则信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("coupon_rule")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("coupon_rule")]
|
||||
public Types.CouponRule? CouponRule { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置保证金(单位:分)。
|
||||
/// </summary>
|
||||
@@ -143,25 +312,19 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public int? Deposit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置产品属性列表。
|
||||
/// 获取或设置价格下限(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_attr_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_attr_list")]
|
||||
public Types.ProductAttribute[]? ProductAttributeList { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("floor_price")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("floor_price")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public int? FloorPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置交易佣金信息。
|
||||
/// 获取或设置商品编辑要求信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("transactionfee_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("transactionfee_info")]
|
||||
public Types.TransactionFee? TransactionFee { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否品牌定向准入。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_limit_brand")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_limit_brand")]
|
||||
public bool IsLimitBrand { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("product_requirement")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_requirement")]
|
||||
public Types.ProductRequirement? ProductRequirement { get; set; }
|
||||
}
|
||||
|
||||
public class Qualification : ChannelsECCategoryAllResponse.Types.Category.Types.CategoryAndQualification.Types.Qualification
|
||||
|
@@ -1,4 +1,6 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/order/search 接口的请求。</para>
|
||||
@@ -33,11 +35,18 @@
|
||||
/// <summary>
|
||||
/// 获取或设置收件人电话号码。
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2023-05-31 下线。")]
|
||||
[Obsolete("相关接口或字段于 2023-06-03 下线。")]
|
||||
[Newtonsoft.Json.JsonProperty("tel_number")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("tel_number")]
|
||||
public string? TeleNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收件人电话号码后 4 位。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("tel_number_last4")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("tel_number_last4")]
|
||||
public string? TeleNumberLast4Digits { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单 ID。
|
||||
/// </summary>
|
||||
|
@@ -239,6 +239,91 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("qua_url")]
|
||||
public IList<string> PictureUrlList { get; set; } = new List<string>();
|
||||
}
|
||||
|
||||
public class SizeChart
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Specification
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class SpecificationValue
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置尺码值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("key")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("key")]
|
||||
public string Key { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置属性值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("value")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("value")]
|
||||
public string? Value { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置属性值的左边界。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("left")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("left")]
|
||||
public string? Left { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置属性值的右边界。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("right")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("right")]
|
||||
public string? Right { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置单位。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("unit")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("unit")]
|
||||
public string Unit { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置属性值是否为区间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_range")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_range")]
|
||||
public bool IsRange { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置属性值映射列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("value_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("value_list")]
|
||||
public IList<Types.SpecificationValue> ValueList { get; set; } = new List<Types.SpecificationValue>();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否启用。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("enable")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enable")]
|
||||
public bool IsEnabled { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置尺码规格列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("specification_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("specification_list")]
|
||||
public IList<Types.Specification>? SpecificationList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -377,5 +462,12 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[Newtonsoft.Json.JsonProperty("after_sale_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("after_sale_info")]
|
||||
public Types.Aftersale? Aftersale { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置尺码表信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("size_chart")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("size_chart")]
|
||||
public Types.SizeChart? SizeChart { get; set; }
|
||||
}
|
||||
}
|
||||
|
@@ -258,6 +258,91 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("qua_url")]
|
||||
public string[] PictureUrlList { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class SizeChart
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Specification
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class SpecificationValue
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置尺码值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("key")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("key")]
|
||||
public string Key { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置属性值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("value")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("value")]
|
||||
public string? Value { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置属性值的左边界。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("left")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("left")]
|
||||
public string? Left { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置属性值的右边界。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("right")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("right")]
|
||||
public string? Right { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string Name { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置单位。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("unit")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("unit")]
|
||||
public string Unit { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置属性值是否为区间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_range")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_range")]
|
||||
public bool IsRange { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置属性值映射列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("value_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("value_list")]
|
||||
public Types.SpecificationValue[] ValueList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否启用。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("enable")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enable")]
|
||||
public bool IsEnabled { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置尺码规格列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("specification_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("specification_list")]
|
||||
public Types.Specification[]? SpecificationList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -430,6 +515,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[Newtonsoft.Json.JsonProperty("product_qua_infos")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_qua_infos")]
|
||||
public Types.Qualification[]? QualificationList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置尺码表信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("size_chart")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("size_chart")]
|
||||
public Types.SizeChart? SizeChart { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -111,6 +111,22 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public class Qualification : ChannelsECProductAddRequest.Types.Qualification
|
||||
{
|
||||
}
|
||||
|
||||
public class SizeChart : ChannelsECProductAddRequest.Types.SizeChart
|
||||
{
|
||||
public static new class Types
|
||||
{
|
||||
public class Specification : ChannelsECProductAddRequest.Types.SizeChart.Types.Specification
|
||||
{
|
||||
public static new class Types
|
||||
{
|
||||
public class SpecificationValue : ChannelsECProductAddRequest.Types.SizeChart.Types.Specification.Types.SpecificationValue
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -249,5 +265,12 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[Newtonsoft.Json.JsonProperty("after_sale_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("after_sale_info")]
|
||||
public Types.Aftersale? Aftersale { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置尺码表信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("size_chart")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("size_chart")]
|
||||
public Types.SizeChart? SizeChart { get; set; }
|
||||
}
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
@@ -59,7 +59,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public int? MinCommissionValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置佣金比例下限(单位:万分之一)。
|
||||
/// 获取或设置佣金比例下限(单位:万分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
|
@@ -62,7 +62,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public int ProductCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置佣金比例(单位:万分之一)。
|
||||
/// 获取或设置佣金比例(单位:万分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ratio")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ratio")]
|
||||
|
@@ -228,7 +228,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public int ProductCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置佣金比例(单位:万分之一)。
|
||||
/// 获取或设置佣金比例(单位:万分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ratio")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ratio")]
|
||||
|
@@ -57,7 +57,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public int? MinCommissionValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置佣金比例下限(单位:万分之一)。
|
||||
/// 获取或设置佣金比例下限(单位:万分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
|
@@ -299,7 +299,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public bool HasCommission { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置佣金比例(单位:万分之一)。
|
||||
/// 获取或设置佣金比例(单位:万分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("commissionRatio")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("commissionRatio")]
|
||||
|
@@ -124,7 +124,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public int? MinCommissionValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置佣金比例下限(单位:万分之一)。
|
||||
/// 获取或设置佣金比例下限(单位:万分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
|
@@ -237,7 +237,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public int ProductStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置佣金率(单位:万分之一)。
|
||||
/// 获取或设置佣金率(单位:万分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("commissionRatio")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("commissionRatio")]
|
||||
|
@@ -31,14 +31,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public bool IsCommissionProduct { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置佣金率(单位:万分之一)。
|
||||
/// 获取或设置佣金率(单位:万分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("commissionRatio")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("commissionRatio")]
|
||||
public int? CommissionRatio { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置待生效佣金率(单位:万分之一)。
|
||||
/// 获取或设置待生效佣金率(单位:万分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("nextCommissionRatio")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("nextCommissionRatio")]
|
||||
|
@@ -26,7 +26,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public string? OutProductId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置佣金率(单位:万分之一)。
|
||||
/// 获取或设置佣金率(单位:万分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("commissionRatio")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("commissionRatio")]
|
||||
|
@@ -218,7 +218,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public int ProductCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置佣金比例(单位:万分之一)。
|
||||
/// 获取或设置佣金比例(单位:万分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ratio")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ratio")]
|
||||
|
@@ -50,7 +50,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public long ProductId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置佣金率(单位:万分之一)。
|
||||
/// 获取或设置佣金率(单位:万分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("rate")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("rate")]
|
||||
|
@@ -96,7 +96,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public int Stock { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置佣金率(单位:万分之一)。
|
||||
/// 获取或设置佣金率(单位:万分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("commissionRatio")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("commissionRatio")]
|
||||
|
@@ -20,7 +20,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public string? ReturnMessage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分账比例(单位:百分比)。
|
||||
/// 获取或设置分账比例(单位:百分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("share_ratio")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("share_ratio")]
|
||||
|
@@ -20,7 +20,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public string? AppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分账比例(单位:百分比)。
|
||||
/// 获取或设置分账比例(单位:百分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("share_ratio")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("share_ratio")]
|
||||
|
@@ -21,22 +21,65 @@
|
||||
"deposit": "500000",
|
||||
"product_attr_list": [
|
||||
{
|
||||
"name": "颜色",
|
||||
"name": "产地",
|
||||
"type": "string",
|
||||
"type_v2": "string",
|
||||
"value": "",
|
||||
"is_required": false
|
||||
},
|
||||
{
|
||||
"name": "检测标准",
|
||||
"type": "select_one",
|
||||
"value": "3C;美标;欧盟ECE;ADAC;C-NCAP",
|
||||
"is_required": false
|
||||
"is_required": false,
|
||||
"hint": "生产地",
|
||||
"append_allowed": false
|
||||
},
|
||||
{
|
||||
"name": "材质",
|
||||
"type": "select_one",
|
||||
"type_v2": "select_one",
|
||||
"value": "不锈钢;碳钢;金属;塑料;玻璃;硅胶;其他",
|
||||
"is_required": true
|
||||
},
|
||||
{
|
||||
"name": "适用人群",
|
||||
"type": "select_one",
|
||||
"type_v2": "select_many",
|
||||
"value": "婴儿;儿童;青年;中年;老年",
|
||||
"is_required": false,
|
||||
"hint": "请选择适用的人群",
|
||||
"append_allowed": false
|
||||
},
|
||||
{
|
||||
"name": "数量",
|
||||
"type": "string",
|
||||
"type_v2": "integer",
|
||||
"value": "",
|
||||
"is_required": true,
|
||||
"hint": "请设置数量",
|
||||
"append_allowed": false
|
||||
},
|
||||
{
|
||||
"name": "精度",
|
||||
"type": "string",
|
||||
"type_v2": "decimal4",
|
||||
"value": "",
|
||||
"is_required": true,
|
||||
"hint": "请设置精度,支持小数点后 4 位",
|
||||
"append_allowed": false
|
||||
},
|
||||
{
|
||||
"name": "重量",
|
||||
"type": "string",
|
||||
"type_v2": "integer_unit",
|
||||
"value": "mg;g;kg",
|
||||
"is_required": false,
|
||||
"hint": "请设置产品重量",
|
||||
"append_allowed": false
|
||||
},
|
||||
{
|
||||
"name": "毛重",
|
||||
"type": "string",
|
||||
"type_v2": "decimal4_unit",
|
||||
"value": "mg;g;kg",
|
||||
"is_required": false,
|
||||
"hint": "请设置产品毛重",
|
||||
"append_allowed": false
|
||||
}
|
||||
],
|
||||
"transactionfee_info": {
|
||||
|
@@ -86,5 +86,31 @@
|
||||
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn71nCC"
|
||||
]
|
||||
}
|
||||
]
|
||||
],
|
||||
"size_chart": {
|
||||
"enable": true,
|
||||
"specification_list": [
|
||||
{
|
||||
"name": "",
|
||||
"unit": "",
|
||||
"is_range": false,
|
||||
"value_list": [
|
||||
{
|
||||
"key": "1",
|
||||
"value": "S",
|
||||
"left": "",
|
||||
"right": ""
|
||||
},
|
||||
{
|
||||
"key": "2",
|
||||
"value": "M"
|
||||
},
|
||||
{
|
||||
"key": "3",
|
||||
"value": "L"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@@ -27,17 +27,36 @@
|
||||
],
|
||||
"attrs": [
|
||||
{
|
||||
"attr_key": "商品毛重",
|
||||
"attr_value": "380g"
|
||||
"attr_key": "产地",
|
||||
"attr_value": "四川成都"
|
||||
},
|
||||
{
|
||||
"attr_key": "商品产地",
|
||||
"attr_value": "中国大陆"
|
||||
"attr_key": "材质",
|
||||
"attr_value": "玻璃"
|
||||
},
|
||||
{
|
||||
"attr_key": "适用人群",
|
||||
"attr_value": "青年;中年"
|
||||
},
|
||||
{
|
||||
"attr_key": "数量",
|
||||
"attr_value": "33"
|
||||
},
|
||||
{
|
||||
"attr_key": "精度",
|
||||
"attr_value": "3.001"
|
||||
},
|
||||
{
|
||||
"attr_key": "重量",
|
||||
"attr_value": "38 mg"
|
||||
},
|
||||
{
|
||||
"attr_key": "毛重",
|
||||
"attr_value": "380 kg"
|
||||
}
|
||||
],
|
||||
"express_info": {
|
||||
"template_id": "123456",
|
||||
"weight": 100
|
||||
"template_id": "123456"
|
||||
},
|
||||
"status": 5,
|
||||
"edit_status": 2,
|
||||
@@ -47,33 +66,43 @@
|
||||
"out_sku_id": "OUT_SKU_ID_TEST",
|
||||
"thumb_img": "",
|
||||
"sale_price": 1,
|
||||
"market_price": 2,
|
||||
"stock_num": 5,
|
||||
"sku_code": "SKU_CODE_TEST",
|
||||
"sku_attrs": [],
|
||||
"status": 0,
|
||||
"sku_deliver_info": {
|
||||
"stock_type": 1,
|
||||
"full_payment_presale_delivery_type": 2,
|
||||
"presale_begin_time": 1700450698,
|
||||
"presale_end_time": 1700882698,
|
||||
"full_payment_presale_delivery_time": 3
|
||||
}
|
||||
"sku_attrs": [
|
||||
{
|
||||
"attr_key": "产地",
|
||||
"attr_value": "四川成都"
|
||||
},
|
||||
{
|
||||
"attr_key": "材质",
|
||||
"attr_value": "玻璃"
|
||||
},
|
||||
{
|
||||
"attr_key": "适用人群",
|
||||
"attr_value": "青年;中年"
|
||||
},
|
||||
{
|
||||
"attr_key": "数量",
|
||||
"attr_value": "33"
|
||||
},
|
||||
{
|
||||
"attr_key": "精度",
|
||||
"attr_value": "3.001"
|
||||
},
|
||||
{
|
||||
"attr_key": "重量",
|
||||
"attr_value": "38 mg"
|
||||
},
|
||||
{
|
||||
"attr_key": "毛重",
|
||||
"attr_value": "380 kg"
|
||||
}
|
||||
],
|
||||
"status": 0
|
||||
}
|
||||
],
|
||||
"min_price": 1,
|
||||
"product_type": 1,
|
||||
"spu_code": "AABBCC",
|
||||
"brand_id": 2100000000,
|
||||
"extra_service": {
|
||||
"seven_day_return": 1,
|
||||
"pay_after_use": 1,
|
||||
"freight_insurance": 0
|
||||
},
|
||||
"edit_time": 1700450698,
|
||||
"after_sale_info": {
|
||||
"after_sale_address_id": 123345
|
||||
},
|
||||
"spu_code": "SPU_CODE_TEST",
|
||||
"product_qua_infos": [
|
||||
{
|
||||
"qua_id": 1111484,
|
||||
|
@@ -8,7 +8,8 @@
|
||||
"desc_info": {
|
||||
"imgs": [
|
||||
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ"
|
||||
]
|
||||
],
|
||||
"desc": "物美价廉"
|
||||
},
|
||||
"cats": [
|
||||
{
|
||||
@@ -23,94 +24,158 @@
|
||||
],
|
||||
"attrs": [
|
||||
{
|
||||
"attr_key": "商品毛重",
|
||||
"attr_value": "380g"
|
||||
"attr_key": "产地",
|
||||
"attr_value": "四川成都"
|
||||
},
|
||||
{
|
||||
"attr_key": "商品产地",
|
||||
"attr_value": "中国大陆"
|
||||
"attr_key": "材质",
|
||||
"attr_value": "玻璃"
|
||||
},
|
||||
{
|
||||
"attr_key": "适用人群",
|
||||
"attr_value": "青年;中年"
|
||||
},
|
||||
{
|
||||
"attr_key": "数量",
|
||||
"attr_value": "33"
|
||||
},
|
||||
{
|
||||
"attr_key": "精度",
|
||||
"attr_value": "3.001"
|
||||
},
|
||||
{
|
||||
"attr_key": "重量",
|
||||
"attr_value": "38 mg"
|
||||
},
|
||||
{
|
||||
"attr_key": "毛重",
|
||||
"attr_value": "380 kg"
|
||||
}
|
||||
],
|
||||
"express_info": {
|
||||
"template_id": "47428464001",
|
||||
"weight": 100
|
||||
"template_id": "47428464001"
|
||||
},
|
||||
"skus": [
|
||||
{
|
||||
"sku_id": "462966903",
|
||||
"thumb_img": "https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ",
|
||||
"sale_price": 1300,
|
||||
"market_price": 1500,
|
||||
"stock_num": 100,
|
||||
"sku_code": "A24525252",
|
||||
"sku_attrs": [
|
||||
{
|
||||
"attr_key": "选择颜色",
|
||||
"attr_value": "红蓝主机"
|
||||
"attr_key": "产地",
|
||||
"attr_value": "四川成都"
|
||||
},
|
||||
{
|
||||
"attr_key": "选择套装",
|
||||
"attr_value": "主机+保护套"
|
||||
"attr_key": "材质",
|
||||
"attr_value": "玻璃"
|
||||
},
|
||||
{
|
||||
"attr_key": "适用人群",
|
||||
"attr_value": "青年;中年"
|
||||
},
|
||||
{
|
||||
"attr_key": "数量",
|
||||
"attr_value": "33"
|
||||
},
|
||||
{
|
||||
"attr_key": "精度",
|
||||
"attr_value": "3.001"
|
||||
},
|
||||
{
|
||||
"attr_key": "重量",
|
||||
"attr_value": "38 mg"
|
||||
},
|
||||
{
|
||||
"attr_key": "毛重",
|
||||
"attr_value": "380 kg"
|
||||
}
|
||||
],
|
||||
"sku_deliver_info": {
|
||||
"stock_type": 1,
|
||||
"full_payment_presale_delivery_type": 2,
|
||||
"presale_begin_time": 1700450698,
|
||||
"presale_end_time": 1700882698,
|
||||
"full_payment_presale_delivery_time": 3
|
||||
"stock_type": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"thumb_img": "https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ",
|
||||
"sale_price": 1000,
|
||||
"market_price": 1200,
|
||||
"stock_num": 100,
|
||||
"sku_code": "A24525252",
|
||||
"sku_attrs": [
|
||||
{
|
||||
"attr_key": "选择颜色",
|
||||
"attr_value": "红蓝主机"
|
||||
"attr_key": "产地",
|
||||
"attr_value": "四川成都"
|
||||
},
|
||||
{
|
||||
"attr_key": "选择套装",
|
||||
"attr_value": "标配"
|
||||
"attr_key": "材质",
|
||||
"attr_value": "玻璃"
|
||||
},
|
||||
{
|
||||
"attr_key": "适用人群",
|
||||
"attr_value": "青年;中年"
|
||||
},
|
||||
{
|
||||
"attr_key": "数量",
|
||||
"attr_value": "33"
|
||||
},
|
||||
{
|
||||
"attr_key": "精度",
|
||||
"attr_value": "3.001"
|
||||
},
|
||||
{
|
||||
"attr_key": "重量",
|
||||
"attr_value": "38 mg"
|
||||
},
|
||||
{
|
||||
"attr_key": "毛重",
|
||||
"attr_value": "380 kg"
|
||||
}
|
||||
],
|
||||
"sku_deliver_info": {
|
||||
"stock_type": 1,
|
||||
"full_payment_presale_delivery_type": 2,
|
||||
"presale_begin_time": 1700450698,
|
||||
"presale_end_time": 1700882698,
|
||||
"full_payment_presale_delivery_time": 3
|
||||
"stock_type": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"spu_code": "AABBCC",
|
||||
"brand_id": 2100000000,
|
||||
"extra_service": {
|
||||
"seven_day_return": 1,
|
||||
"pay_after_use": 1,
|
||||
"freight_insurance": 0
|
||||
},
|
||||
"listing": true,
|
||||
"after_sale_info": {
|
||||
"after_sale_address_id": 123345
|
||||
},
|
||||
"product_qua_infos": [
|
||||
{
|
||||
"qua_id": 1111488,
|
||||
"qua_id": "1111488",
|
||||
"qua_url": [
|
||||
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ",
|
||||
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn71nCC"
|
||||
]
|
||||
},
|
||||
{
|
||||
"qua_id": 1111489,
|
||||
"qua_id": "1111489",
|
||||
"qua_url": [
|
||||
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ",
|
||||
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn71nCC"
|
||||
]
|
||||
}
|
||||
]
|
||||
],
|
||||
"size_chart": {
|
||||
"enable": true,
|
||||
"specification_list": [
|
||||
{
|
||||
"name": "",
|
||||
"unit": "",
|
||||
"is_range": false,
|
||||
"value_list": [
|
||||
{
|
||||
"key": "1",
|
||||
"value": "S",
|
||||
"left": "",
|
||||
"right": ""
|
||||
},
|
||||
{
|
||||
"key": "2",
|
||||
"value": "M"
|
||||
},
|
||||
{
|
||||
"key": "3",
|
||||
"value": "L"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user