feat(wxapi): 随官方更新微信小店分类、商品、订单、售后单等相关接口模型

This commit is contained in:
Fu Diwei
2025-02-01 00:03:43 +08:00
parent add0a607f7
commit 4c9f605049
8 changed files with 251 additions and 2 deletions

View File

@@ -24,6 +24,40 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("vourcher_code")]
public string VoucherCode { get; set; } = default!;
}
public class GiftProduct
{
/// <summary>
/// 获取或设置商品 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("product_id")]
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long ProductId { get; set; }
/// <summary>
/// 获取或设置 SKU ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("sku_id")]
[System.Text.Json.Serialization.JsonPropertyName("sku_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long SKUId { get; set; }
/// <summary>
/// 获取或设置商品数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("count")]
[System.Text.Json.Serialization.JsonPropertyName("count")]
public int Count { get; set; }
/// <summary>
/// 获取或设置活动 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("task_id")]
[System.Text.Json.Serialization.JsonPropertyName("task_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long TaskId { get; set; }
}
}
/// <summary>
@@ -55,6 +89,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("voucher_list")]
[System.Text.Json.Serialization.JsonPropertyName("voucher_list")]
public Types.Voucher[]? VoucherList { get; set; }
/// <summary>
/// 获取或设置赠品列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("gift_product_list")]
[System.Text.Json.Serialization.JsonPropertyName("gift_product_list")]
public Types.GiftProduct[]? GiftProductList { get; set; }
}
public class AftersaleDetail

View File

@@ -133,6 +133,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("brand_qua")]
[System.Text.Json.Serialization.JsonPropertyName("brand_qua")]
public Types.Qualification? BrandQualification { get; set; }
/// <summary>
/// 获取或设置是否放心买必须打开坏损包赔。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_confidence_require_bad_must_pay")]
[System.Text.Json.Serialization.JsonPropertyName("is_confidence_require_bad_must_pay")]
public bool? IsConfidenceRequireBadMustPay { get; set; }
}
}

View File

@@ -319,12 +319,33 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public int? FloorPrice { get; set; }
/// <summary>
/// 获取或设置收货时间选项。
/// </summary>
[Newtonsoft.Json.JsonProperty("confirm_receipt_days")]
[System.Text.Json.Serialization.JsonPropertyName("confirm_receipt_days")]
public string[]? ConfirmReceiptDays { get; set; }
/// <summary>
/// 获取或设置商品编辑要求信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("product_requirement")]
[System.Text.Json.Serialization.JsonPropertyName("product_requirement")]
public Types.ProductRequirement? ProductRequirement { get; set; }
/// <summary>
/// 获取或设置尺码表列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("size_chart")]
[System.Text.Json.Serialization.JsonPropertyName("size_chart")]
public Types.SizeChart[]? SizeChartList { get; set; }
/// <summary>
/// 获取或设置是否放心买必须打开坏损包赔。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_confidence_require_bad_must_pay")]
[System.Text.Json.Serialization.JsonPropertyName("is_confidence_require_bad_must_pay")]
public bool? IsConfidenceRequireBadMustPay { get; set; }
}
public class Qualification : ChannelsECCategoryAllResponse.Types.Category.Types.CategoryAndQualification.Types.Qualification

View File

@@ -18,5 +18,12 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("template_id")]
[System.Text.Json.Serialization.JsonPropertyName("template_id")]
public string TemplateId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置子单的物流单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("sub_waybill_id")]
[System.Text.Json.Serialization.JsonPropertyName("sub_waybill_id")]
public string? SubWaybillId { get; set; }
}
}

View File

@@ -61,12 +61,33 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public class OrderProductCoupon
{
/// <summary>
/// 获取或设置优惠券类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("coupon_type")]
[System.Text.Json.Serialization.JsonPropertyName("coupon_type")]
public int CouponType { get; set; }
/// <summary>
/// 获取或设置用户优惠券 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("user_coupon_id")]
[System.Text.Json.Serialization.JsonPropertyName("user_coupon_id")]
public string? UserCouponId { get; set; }
/// <summary>
/// 获取或设置优惠券 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("coupon_id")]
[System.Text.Json.Serialization.JsonPropertyName("coupon_id")]
public string? CouponId { get; set; }
/// <summary>
/// 获取或设置优惠金额(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("discounted_price")]
[System.Text.Json.Serialization.JsonPropertyName("discounted_price")]
public int? DiscountedPrice { get; set; }
}
public class Voucher
@@ -595,6 +616,30 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("inspect_status")]
public int InspectStatus { get; set; }
}
public class Recharge
{
/// <summary>
/// 获取或设置账号充值类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("account_type")]
[System.Text.Json.Serialization.JsonPropertyName("account_type")]
public string? AccountType { get; set; }
/// <summary>
/// 获取或设置虚拟商品充值账号。
/// </summary>
[Newtonsoft.Json.JsonProperty("account_no")]
[System.Text.Json.Serialization.JsonPropertyName("account_no")]
public string? AccountNumber { get; set; }
/// <summary>
/// 获取或设置用户的微信 OpenId。
/// </summary>
[Newtonsoft.Json.JsonProperty("wx_openid")]
[System.Text.Json.Serialization.JsonPropertyName("wx_openid")]
public string? WxOpenId { get; set; }
}
}
/// <summary>
@@ -661,6 +706,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("quality_inspect_info")]
[System.Text.Json.Serialization.JsonPropertyName("quality_inspect_info")]
public Types.QualityInspection? QualityInspection { get; set; }
/// <summary>
/// 获取或设置虚拟商品充值账户信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("recharge_info")]
[System.Text.Json.Serialization.JsonPropertyName("recharge_info")]
public Types.Recharge? Recharge { get; set; }
}
public class Coupon
@@ -828,6 +880,69 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("agent_finder_nickname")]
public string AgentFinderNickname { get; set; } = default!;
}
public class Source
{
/// <summary>
/// 获取或设置 SKU ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("sku_id")]
[System.Text.Json.Serialization.JsonPropertyName("sku_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long SKUId { get; set; }
/// <summary>
/// 获取或设置账号关联类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("sale_channel")]
[System.Text.Json.Serialization.JsonPropertyName("sale_channel")]
public int SaleChannel { get; set; }
/// <summary>
/// 获取或设置带货账号类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("account_type")]
[System.Text.Json.Serialization.JsonPropertyName("account_type")]
public int AccountType { get; set; }
/// <summary>
/// 获取或设置带货账号 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("account_id")]
[System.Text.Json.Serialization.JsonPropertyName("account_id")]
public string? AccountId { get; set; }
/// <summary>
/// 获取或设置带货账号昵称。
/// </summary>
[Newtonsoft.Json.JsonProperty("account_nickname")]
[System.Text.Json.Serialization.JsonPropertyName("account_nickname")]
public string? AccountNickname { get; set; }
/// <summary>
/// 获取或设置带货内容类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("content_type")]
[System.Text.Json.Serialization.JsonPropertyName("content_type")]
public int ContentType { get; set; }
/// <summary>
/// 获取或设置带货内容 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("content_id")]
[System.Text.Json.Serialization.JsonPropertyName("content_id")]
public string? ContentId { get; set; }
}
public class Refund
{
/// <summary>
/// 获取或设置退还运费金额(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("refund_freight")]
[System.Text.Json.Serialization.JsonPropertyName("refund_freight")]
public int? RefundFreight { get; set; }
}
}
/// <summary>
@@ -899,6 +1014,20 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("agent_info")]
[System.Text.Json.Serialization.JsonPropertyName("agent_info")]
public Types.AgentFinder? AgentFinder { get; set; }
/// <summary>
/// 获取或设置订单来源列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("source_infos")]
[System.Text.Json.Serialization.JsonPropertyName("source_infos")]
public Types.Source[]? SourceList { get; set; }
/// <summary>
/// 获取或设置退款信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("refund_info")]
[System.Text.Json.Serialization.JsonPropertyName("refund_info")]
public Types.Refund? Refund { get; set; }
}
public class AftersaleDetail
@@ -996,6 +1125,28 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("create_time")]
[System.Text.Json.Serialization.JsonPropertyName("create_time")]
public long CreateTimestamp { get; set; }
/// <summary>
/// 获取或设置是否礼物订单。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_present")]
[System.Text.Json.Serialization.JsonPropertyName("is_present")]
public bool IsPresent { get; set; }
/// <summary>
/// 获取或设置礼物订单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("present_order_id")]
[System.Text.Json.Serialization.JsonPropertyName("present_order_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string? PresentOrderId { get; set; }
/// <summary>
/// 获取或设置礼物订单留言。
/// </summary>
[Newtonsoft.Json.JsonProperty("present_note")]
[System.Text.Json.Serialization.JsonPropertyName("present_note")]
public string? PresentNote { get; set; }
}
}

View File

@@ -106,7 +106,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("stock_num")]
[System.Text.Json.Serialization.JsonPropertyName("stock_num")]
public int Stock { get; set; }
public int? Stock { get; set; }
/// <summary>
/// 获取或设置商品编码。
@@ -439,6 +439,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("deliver_method")]
public int? DeliverMethod { get; set; }
/// <summary>
/// 获取或设置发货账号类型列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("deliver_acct_type")]
[System.Text.Json.Serialization.JsonPropertyName("deliver_acct_type")]
public IList<int>? DeliverAccountTypeList { get; set; }
/// <summary>
/// 获取或设置运费信息。
/// </summary>

View File

@@ -68,7 +68,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("stock_num")]
[System.Text.Json.Serialization.JsonPropertyName("stock_num")]
public int Stock { get; set; }
public int? Stock { get; set; }
/// <summary>
/// 获取或设置商品编码。
@@ -223,6 +223,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("deliver_method")]
public int? DeliverMethod { get; set; }
/// <summary>
/// 获取或设置发货账号类型列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("deliver_acct_type")]
[System.Text.Json.Serialization.JsonPropertyName("deliver_acct_type")]
public IList<int>? DeliverAccountTypeList { get; set; }
/// <summary>
/// 获取或设置运费信息。
/// </summary>

View File

@@ -16,6 +16,14 @@
{
"vourcher_code": "232324"
}
],
"gift_product_list": [
{
"product_id": "123",
"sku_id": "456",
"count": 1,
"task_id": 234
}
]
},
"details": {