mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-20 18:48:10 +08:00
feat(wxapi): 随官方更新视频号小店商品相关接口模型
This commit is contained in:
@@ -58,14 +58,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
[System.Text.Json.Serialization.JsonPropertyName("detail_info")]
|
[System.Text.Json.Serialization.JsonPropertyName("detail_info")]
|
||||||
public string Detail { get; set; } = string.Empty;
|
public string Detail { get; set; } = string.Empty;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 获取或设置国家码。
|
|
||||||
/// </summary>
|
|
||||||
[Obsolete("相关接口或字段于 2023-11-20 下线。")]
|
|
||||||
[Newtonsoft.Json.JsonProperty("national_code")]
|
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("national_code")]
|
|
||||||
public string? NationalCode { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置电话号码。
|
/// 获取或设置电话号码。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@@ -50,14 +50,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
[System.Text.Json.Serialization.JsonPropertyName("detail_info")]
|
[System.Text.Json.Serialization.JsonPropertyName("detail_info")]
|
||||||
public string? Detail { get; set; }
|
public string? Detail { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 获取或设置国家码。
|
|
||||||
/// </summary>
|
|
||||||
[Obsolete("相关接口或字段于 2023-11-20 下线。")]
|
|
||||||
[Newtonsoft.Json.JsonProperty("national_code")]
|
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("national_code")]
|
|
||||||
public string? NationalCode { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置收件人电话。
|
/// 获取或设置收件人电话。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@@ -53,14 +53,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
[System.Text.Json.Serialization.JsonPropertyName("detail_info")]
|
[System.Text.Json.Serialization.JsonPropertyName("detail_info")]
|
||||||
public string? Detail { get; set; }
|
public string? Detail { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 获取或设置国家码。
|
|
||||||
/// </summary>
|
|
||||||
[Obsolete("相关接口或字段于 2023-11-20 下线。")]
|
|
||||||
[Newtonsoft.Json.JsonProperty("national_code")]
|
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("national_code")]
|
|
||||||
public string? NationalCode { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置电话号码。
|
/// 获取或设置电话号码。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||||
@@ -221,6 +222,23 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
[System.Text.Json.Serialization.JsonPropertyName("after_sale_address_id")]
|
[System.Text.Json.Serialization.JsonPropertyName("after_sale_address_id")]
|
||||||
public long? AftersaleAddressId { get; set; }
|
public long? AftersaleAddressId { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class Qualification
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置资质 ID。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("qua_id")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("qua_id")]
|
||||||
|
public long QualificationId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置图片 URL 列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("qua_url")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("qua_url")]
|
||||||
|
public IList<string> PictureUrlList { get; set; } = new List<string>();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -288,12 +306,20 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
public long? BrandId { get; set; }
|
public long? BrandId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置特殊资质图片媒体文件标识 ID 列表。
|
/// 获取或设置商品资质图片媒体文件标识 ID 列表。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("相关接口或字段于 2024-04-29 下线。")]
|
||||||
[Newtonsoft.Json.JsonProperty("qualifications")]
|
[Newtonsoft.Json.JsonProperty("qualifications")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("qualifications")]
|
[System.Text.Json.Serialization.JsonPropertyName("qualifications")]
|
||||||
public IList<string>? QualificationPictureMediaIdList { get; set; }
|
public IList<string>? QualificationPictureMediaIdList { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置商品资质列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("product_qua_infos")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("product_qua_infos")]
|
||||||
|
public IList<Types.Qualification>? ProductQualificationList { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置发货方式。
|
/// 获取或设置发货方式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||||
@@ -106,6 +107,10 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
public class Aftersale : ChannelsECProductAddRequest.Types.Aftersale
|
public class Aftersale : ChannelsECProductAddRequest.Types.Aftersale
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class Qualification : ChannelsECProductAddRequest.Types.Qualification
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -173,12 +178,20 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
|||||||
public long? BrandId { get; set; }
|
public long? BrandId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置特殊资质图片媒体文件标识 ID 列表。
|
/// 获取或设置商品资质图片媒体文件标识 ID 列表。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("相关接口或字段于 2024-04-29 下线。")]
|
||||||
[Newtonsoft.Json.JsonProperty("qualifications")]
|
[Newtonsoft.Json.JsonProperty("qualifications")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("qualifications")]
|
[System.Text.Json.Serialization.JsonPropertyName("qualifications")]
|
||||||
public IList<string>? QualificationPictureMediaIdList { get; set; }
|
public IList<string>? QualificationPictureMediaIdList { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置商品资质列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("product_qua_infos")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("product_qua_infos")]
|
||||||
|
public IList<Types.Qualification>? ProductQualificationList { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置发货方式。
|
/// 获取或设置发货方式。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"freight_template": {
|
"freight_template": {
|
||||||
"name": "测试api",
|
"name": "测试api",
|
||||||
"valuation_type": "PIECE",
|
"valuation_type": "PIECE",
|
||||||
@@ -10,7 +10,6 @@
|
|||||||
"city_name": "广州市",
|
"city_name": "广州市",
|
||||||
"county_name": "海珠区",
|
"county_name": "海珠区",
|
||||||
"detail_info": "新港中路",
|
"detail_info": "新港中路",
|
||||||
"national_code": "23456",
|
|
||||||
"tel_number": "12345"
|
"tel_number": "12345"
|
||||||
},
|
},
|
||||||
"delivery_type": "EXPRESS",
|
"delivery_type": "EXPRESS",
|
||||||
|
@@ -13,7 +13,6 @@
|
|||||||
"city_name": "广州市",
|
"city_name": "广州市",
|
||||||
"county_name": "海珠区",
|
"county_name": "海珠区",
|
||||||
"detail_info": "",
|
"detail_info": "",
|
||||||
"national_code": "",
|
|
||||||
"tel_number": ""
|
"tel_number": ""
|
||||||
},
|
},
|
||||||
"delivery_type": "EXPRESS",
|
"delivery_type": "EXPRESS",
|
||||||
|
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"freight_template": {
|
||||||
|
"name": "测试api",
|
||||||
|
"valuation_type": "PIECE",
|
||||||
|
"send_time": "SendTime_FOUR_HOUR",
|
||||||
|
"address_info": {
|
||||||
|
"user_name": "",
|
||||||
|
"postal_code": "12345",
|
||||||
|
"province_name": "广东省",
|
||||||
|
"city_name": "广州市",
|
||||||
|
"county_name": "海珠区",
|
||||||
|
"detail_info": "新港中路",
|
||||||
|
"tel_number": "12345"
|
||||||
|
},
|
||||||
|
"delivery_type": "EXPRESS",
|
||||||
|
"shipping_method": "FREE",
|
||||||
|
"is_default": false
|
||||||
|
}
|
||||||
|
}
|
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"order_id": "123456",
|
"order_id": "123456",
|
||||||
"user_address": {
|
"user_address": {
|
||||||
"user_name": "陈先生",
|
"user_name": "陈先生",
|
||||||
@@ -7,7 +7,6 @@
|
|||||||
"city_name": "广州",
|
"city_name": "广州",
|
||||||
"county_name": "海珠区",
|
"county_name": "海珠区",
|
||||||
"detail_info": "大塘",
|
"detail_info": "大塘",
|
||||||
"national_code": "234234",
|
|
||||||
"tel_number": "24534252"
|
"tel_number": "24534252"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -60,7 +60,6 @@
|
|||||||
"city_name": "广州",
|
"city_name": "广州",
|
||||||
"county_name": "海珠区",
|
"county_name": "海珠区",
|
||||||
"detail_info": "大塘",
|
"detail_info": "大塘",
|
||||||
"national_code": "234234",
|
|
||||||
"tel_number": "24534252"
|
"tel_number": "24534252"
|
||||||
},
|
},
|
||||||
"delivery_product_info": [
|
"delivery_product_info": [
|
||||||
|
@@ -62,7 +62,6 @@
|
|||||||
],
|
],
|
||||||
"spu_code": "AABBCC",
|
"spu_code": "AABBCC",
|
||||||
"brand_id": 2100000000,
|
"brand_id": 2100000000,
|
||||||
"qualifications": ["123123"],
|
|
||||||
"extra_service": {
|
"extra_service": {
|
||||||
"seven_day_return": 1,
|
"seven_day_return": 1,
|
||||||
"pay_after_use": 1,
|
"pay_after_use": 1,
|
||||||
@@ -71,5 +70,21 @@
|
|||||||
"listing": true,
|
"listing": true,
|
||||||
"after_sale_info": {
|
"after_sale_info": {
|
||||||
"after_sale_address_id": 123345
|
"after_sale_address_id": 123345
|
||||||
}
|
},
|
||||||
|
"product_qua_infos": [
|
||||||
|
{
|
||||||
|
"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_url": [
|
||||||
|
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ",
|
||||||
|
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn71nCC"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
@@ -88,7 +88,6 @@
|
|||||||
],
|
],
|
||||||
"spu_code": "AABBCC",
|
"spu_code": "AABBCC",
|
||||||
"brand_id": 2100000000,
|
"brand_id": 2100000000,
|
||||||
"qualifications": ["123123"],
|
|
||||||
"extra_service": {
|
"extra_service": {
|
||||||
"seven_day_return": 1,
|
"seven_day_return": 1,
|
||||||
"pay_after_use": 1,
|
"pay_after_use": 1,
|
||||||
@@ -97,5 +96,21 @@
|
|||||||
"listing": true,
|
"listing": true,
|
||||||
"after_sale_info": {
|
"after_sale_info": {
|
||||||
"after_sale_address_id": 123345
|
"after_sale_address_id": 123345
|
||||||
}
|
},
|
||||||
|
"product_qua_infos": [
|
||||||
|
{
|
||||||
|
"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_url": [
|
||||||
|
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn51nMQ",
|
||||||
|
"https://mmecimage.cn/p/wx37f38d59298839c3/HJE9eJaEc5bJk-eaArVdILSB7MMaHgdK2-JIn71nCC"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user