feat(wxapi): 随官方更新视频号小店相关接口模型

This commit is contained in:
Fu Diwei 2024-04-29 23:00:25 +08:00
parent 348df3d996
commit 5bb7492ac3
38 changed files with 512 additions and 54 deletions

View File

@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
/// <![CDATA[ https://developers.weixin.qq.com/doc/channels/API/order/callback/channels_ec_order_ext_info.html ]]>
/// </para>
/// </summary>
public class ChannelsECOrderExtInfoUpdateEvent : WechatApiEvent
public class ChannelsECOrderExtendedInfoUpdateEvent : WechatApiEvent
{
public static class Types
{

View File

@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/aftersale/acceptapply 接口的请求。</para>
@ -18,5 +18,12 @@
[Newtonsoft.Json.JsonProperty("address_id")]
[System.Text.Json.Serialization.JsonPropertyName("address_id")]
public long? AddressId { get; set; }
/// <summary>
/// 获取或设置同意场景类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("accept_type")]
[System.Text.Json.Serialization.JsonPropertyName("accept_type")]
public int? AcceptType { get; set; }
}
}

View File

@ -83,6 +83,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("amount")]
[System.Text.Json.Serialization.JsonPropertyName("amount")]
public int Amount { get; set; }
/// <summary>
/// 获取或设置退款直接原因类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("refund_reason")]
[System.Text.Json.Serialization.JsonPropertyName("refund_reason")]
public int? RefundReasonType { get; set; }
}
public class Return
@ -237,6 +244,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("refund_resp")]
public Types.RefundResultInfo? RefundResultInfo { get; set; }
/// <summary>
/// 获取或设置操作剩余时间(单位:秒)。
/// </summary>
[Newtonsoft.Json.JsonProperty("deadline")]
[System.Text.Json.Serialization.JsonPropertyName("deadline")]
public int Deadline { get; set; }
/// <summary>
/// 获取或设置更新时间戳。
/// </summary>

View File

@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
@ -11,6 +11,19 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
public class Category
{
public static class Types
{
public class Brand
{
/// <summary>
/// 获取或设置品牌 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("brand_id")]
[System.Text.Json.Serialization.JsonPropertyName("brand_id")]
public long BrandId { get; set; }
}
}
/// <summary>
/// 获取或设置一级类目 ID。
/// </summary>
@ -38,6 +51,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("certificate")]
[System.Text.Json.Serialization.JsonPropertyName("certificate")]
public IList<string>? CertificateMediaIdList { get; set; }
/// <summary>
/// 获取或设置品牌列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("brand_list")]
[System.Text.Json.Serialization.JsonPropertyName("brand_list")]
public IList<Types.Brand>? BrandList { get; set; }
}
}

View File

@ -1,3 +1,5 @@
using System;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
@ -57,7 +59,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("qua_id")]
[System.Text.Json.Serialization.JsonPropertyName("qua_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public int QualificationId { get; set; }
public long QualificationId { get; set; }
/// <summary>
/// 获取或设置资质名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("name")]
[System.Text.Json.Serialization.JsonPropertyName("name")]
public string? Name { get; set; }
/// <summary>
/// 获取或设置资质信息。
@ -99,9 +108,24 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置商品资质信息。
/// </summary>
[Obsolete("相关接口或字段于 2024-03-19 下线。")]
[Newtonsoft.Json.JsonProperty("product_qua")]
[System.Text.Json.Serialization.JsonPropertyName("product_qua")]
public Types.Qualification? ProductQualification { get; set; }
/// <summary>
/// 获取或设置商品资质列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("product_qua_list")]
[System.Text.Json.Serialization.JsonPropertyName("product_qua_list")]
public Types.Qualification[]? ProductQualificationList { get; set; }
/// <summary>
/// 获取或设置品牌资质信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("brand_qua")]
[System.Text.Json.Serialization.JsonPropertyName("brand_qua")]
public Types.Qualification? BrandQualification { get; set; }
}
}

View File

@ -120,6 +120,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("pre_sale")]
public bool IsPresaleSupported { get; set; }
/// <summary>
/// 获取或设置是否支持七天无理由退货。
/// </summary>
[Newtonsoft.Json.JsonProperty("seven_day_return")]
[System.Text.Json.Serialization.JsonPropertyName("seven_day_return")]
public bool IsSevenDayReturnSupported { get; set; }
/// <summary>
/// 获取或设置定准类目的品牌列表。
/// </summary>
@ -148,6 +155,17 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[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; }
}
public class Qualification : ChannelsECCategoryAllResponse.Types.Category.Types.CategoryAndQualification.Types.Qualification
{
}
}
@ -164,5 +182,12 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("attr")]
[System.Text.Json.Serialization.JsonPropertyName("attr")]
public Types.CategoryAttribute CategoryAttribute { get; set; } = default!;
/// <summary>
/// 获取或设置商品资质列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("product_qua_list")]
[System.Text.Json.Serialization.JsonPropertyName("product_qua_list")]
public Types.Qualification[]? ProductQualificationList { get; set; }
}
}

View File

@ -33,7 +33,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public string? AppId { get; set; }
/// <summary>
/// 获取或设置视频号唯一标识
/// 获取或设置视频号 ID
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_id")]
[System.Text.Json.Serialization.JsonPropertyName("finder_id")]

View File

@ -6,10 +6,17 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public class ChannelsECLeagueHeadSupplierWindowAuthGetRequest : WechatApiRequest, IInferable<ChannelsECLeagueHeadSupplierWindowAuthGetRequest, ChannelsECLeagueHeadSupplierWindowAuthGetResponse>
{
/// <summary>
/// 获取或设置视频号唯一标识
/// 获取或设置视频号 ID。与字段 <see cref="OpenId" /> 二选一
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_id")]
[System.Text.Json.Serialization.JsonPropertyName("finder_id")]
public string FinderId { get; set; } = string.Empty;
public string? FinderId { get; set; }
/// <summary>
/// 获取或设置用户 OpenId。与字段 <see cref="FinderId" /> 二选一。
/// </summary>
[Newtonsoft.Json.JsonProperty("openid")]
[System.Text.Json.Serialization.JsonPropertyName("openid")]
public string? OpenId { get; set; }
}
}

View File

@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public class ChannelsECLeagueHeadSupplierWindowAuthStatusGetRequest : WechatApiRequest, IInferable<ChannelsECLeagueHeadSupplierWindowAuthStatusGetRequest, ChannelsECLeagueHeadSupplierWindowAuthStatusGetResponse>
{
/// <summary>
/// 获取或设置视频号唯一标识
/// 获取或设置视频号 ID
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_id")]
[System.Text.Json.Serialization.JsonPropertyName("finder_id")]

View File

@ -20,7 +20,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public string AppId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置视频号唯一标识
/// 获取或设置视频号 ID
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_id")]
[System.Text.Json.Serialization.JsonPropertyName("finder_id")]

View File

@ -13,7 +13,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public string AppId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置视频号唯一标识
/// 获取或设置视频号 ID
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_id")]
[System.Text.Json.Serialization.JsonPropertyName("finder_id")]

View File

@ -20,7 +20,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public string AppId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置视频号唯一标识
/// 获取或设置视频号 ID
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_id")]
[System.Text.Json.Serialization.JsonPropertyName("finder_id")]

View File

@ -20,7 +20,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public string AppId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置视频号唯一标识
/// 获取或设置视频号 ID
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_id")]
[System.Text.Json.Serialization.JsonPropertyName("finder_id")]

View File

@ -42,7 +42,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public IList<Types.Item> List { get; set; } = new List<Types.Item>();
/// <summary>
/// 获取或设置视频号唯一标识列表。
/// 获取或设置视频号 ID列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_ids")]
[System.Text.Json.Serialization.JsonPropertyName("finder_ids")]

View File

@ -15,6 +15,33 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
public class ExclusiveInfo
{
public static class Types
{
public class FinderInfo
{
/// <summary>
/// 获取或设置达人视频号。
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_id")]
[System.Text.Json.Serialization.JsonPropertyName("finder_id")]
public string FinderId { get; set; } = default!;
/// <summary>
/// 获取或设置开始时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("begin_time")]
[System.Text.Json.Serialization.JsonPropertyName("begin_time")]
public long BeginTimestamp { get; set; }
/// <summary>
/// 获取或设置结束时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("end_time")]
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
public long EndTimestamp { get; set; }
}
}
/// <summary>
/// 获取或设置特殊推广商品计划 ID。
/// </summary>
@ -24,7 +51,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public long? InfoId { get; set; }
/// <summary>
/// 获取或设置推广达人视频号唯一标识列表。
/// 获取或设置推广达人视频号 ID列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_ids")]
[System.Text.Json.Serialization.JsonPropertyName("finder_ids")]
@ -37,6 +64,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("finder_num")]
public int? FinderTotalCount { get; set; }
/// <summary>
/// 获取或设置推广达人视频号列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_info_list")]
[System.Text.Json.Serialization.JsonPropertyName("finder_info_list")]
public Types.FinderInfo[]? FinderInfoList { get; set; }
/// <summary>
/// 获取或设置推广开始时间戳。
/// </summary>

View File

@ -12,14 +12,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public class ExclusiveInfo
{
/// <summary>
/// 获取或设置新增的视频号唯一标识列表。
/// 获取或设置新增的视频号 ID列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("add_finder_ids")]
[System.Text.Json.Serialization.JsonPropertyName("add_finder_ids")]
public IList<string>? AddFinderIdList { get; set; }
/// <summary>
/// 获取或设置删除的视频号唯一标识列表。
/// 获取或设置删除的视频号 ID列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("del_finder_ids")]
[System.Text.Json.Serialization.JsonPropertyName("del_finder_ids")]

View File

@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public class ChannelsECLeaguePromoterAddRequest : WechatApiRequest, IInferable<ChannelsECLeaguePromoterAddRequest, ChannelsECLeaguePromoterAddResponse>
{
/// <summary>
/// 获取或设置视频号唯一标识
/// 获取或设置视频号 ID
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_id")]
[System.Text.Json.Serialization.JsonPropertyName("finder_id")]

View File

@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public class ChannelsECLeaguePromoterDeleteRequest : WechatApiRequest, IInferable<ChannelsECLeaguePromoterDeleteRequest, ChannelsECLeaguePromoterDeleteResponse>
{
/// <summary>
/// 获取或设置视频号唯一标识
/// 获取或设置视频号 ID
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_id")]
[System.Text.Json.Serialization.JsonPropertyName("finder_id")]

View File

@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public class ChannelsECLeaguePromoterGetRequest : WechatApiRequest, IInferable<ChannelsECLeaguePromoterGetRequest, ChannelsECLeaguePromoterGetResponse>
{
/// <summary>
/// 获取或设置视频号唯一标识
/// 获取或设置视频号 ID
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_id")]
[System.Text.Json.Serialization.JsonPropertyName("finder_id")]

View File

@ -10,7 +10,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public class Promoter
{
/// <summary>
/// 获取或设置视频号唯一标识
/// 获取或设置视频号 ID
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_id")]
[System.Text.Json.Serialization.JsonPropertyName("finder_id")]

View File

@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public class ChannelsECLeaguePromoterListGetResponse : WechatApiResponse
{
/// <summary>
/// 获取或设置视频号唯一标识列表。
/// 获取或设置视频号 ID列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_ids")]
[System.Text.Json.Serialization.JsonPropertyName("finder_ids")]

View File

@ -13,7 +13,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public int OperateType { get; set; }
/// <summary>
/// 获取或设置视频号唯一标识
/// 获取或设置视频号 ID
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_id")]
[System.Text.Json.Serialization.JsonPropertyName("finder_id")]

View File

@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
@ -60,6 +61,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置国家码。
/// </summary>
[Obsolete("相关接口或字段于 2023-11-20 下线。")]
[Newtonsoft.Json.JsonProperty("national_code")]
[System.Text.Json.Serialization.JsonPropertyName("national_code")]
public string? NationalCode { get; set; }

View File

@ -1,4 +1,6 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
using System;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/merchant/getfreighttemplatedetail 接口的响应。</para>
@ -51,6 +53,7 @@
/// <summary>
/// 获取或设置国家码。
/// </summary>
[Obsolete("相关接口或字段于 2023-11-20 下线。")]
[Newtonsoft.Json.JsonProperty("national_code")]
[System.Text.Json.Serialization.JsonPropertyName("national_code")]
public string? NationalCode { get; set; }

View File

@ -238,7 +238,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("delivery_deadline")]
[System.Text.Json.Serialization.JsonPropertyName("delivery_deadline")]
public long DeliveryDeadlineTimestamp { get; set; }
public long? DeliveryDeadlineTimestamp { get; set; }
}
public class Payment
@ -439,12 +439,69 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public class Address : ChannelsECMerchantAddressGetResponse.Types.AddressDetail.Types.Address
{
public static class Types
{
public class TeleNumberExtendedInfo
{
/// <summary>
/// 获取或设置脱敏手机号。
/// </summary>
[Newtonsoft.Json.JsonProperty("real_tel_number")]
[System.Text.Json.Serialization.JsonPropertyName("real_tel_number")]
public string? RealTeleNumber { get; set; }
/// <summary>
/// 获取或设置虚拟号码。
/// </summary>
[Newtonsoft.Json.JsonProperty("virtual_tel_number")]
[System.Text.Json.Serialization.JsonPropertyName("virtual_tel_number")]
public string? VirtualTeleNumber { get; set; }
/// <summary>
/// 获取或设置主动兑换的虚拟号码过期时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("virtual_tel_expire_time")]
[System.Text.Json.Serialization.JsonPropertyName("virtual_tel_expire_time")]
public long? VirtualTeleNumberExpireTimestamp { get; set; }
/// <summary>
/// 获取或设置主动兑换虚拟号码次数。
/// </summary>
[Newtonsoft.Json.JsonProperty("get_virtual_tel_cnt")]
[System.Text.Json.Serialization.JsonPropertyName("get_virtual_tel_cnt")]
public int? GetVirtualTeleNumberCount { get; set; }
}
}
/// <summary>
/// 获取或设置当前店铺下一个唯一的用户收货地址标识。
/// </summary>
[Newtonsoft.Json.JsonProperty("hash_code")]
[System.Text.Json.Serialization.JsonPropertyName("hash_code")]
public string? HashCode { get; set; }
/// <summary>
/// 获取或设置虚拟号码。
/// </summary>
[Newtonsoft.Json.JsonProperty("virtual_order_tel_number")]
[System.Text.Json.Serialization.JsonPropertyName("virtual_order_tel_number")]
public string? VirtualTeleNumber { get; set; }
/// <summary>
/// 获取或设置是否使用虚拟号码。
/// </summary>
[Newtonsoft.Json.JsonProperty("use_tel_number")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("use_tel_number")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsVirtualTeleNumber { get; set; }
/// <summary>
/// 获取或设置额外的联系方式信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("tel_number_ext_info")]
[System.Text.Json.Serialization.JsonPropertyName("tel_number_ext_info")]
public Types.TeleNumberExtendedInfo? TeleNumberExtendedInfo { get; set; }
}
}
@ -525,6 +582,51 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("merchant_notes")]
[System.Text.Json.Serialization.JsonPropertyName("merchant_notes")]
public string? MerchantNotes { get; set; }
/// <summary>
/// 获取或设置确认收货时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("confirm_receipt_time")]
[System.Text.Json.Serialization.JsonPropertyName("confirm_receipt_time")]
public long? ConfirmReceiptTimestamp { get; set; }
}
public class Settlement
{
/// <summary>
/// 获取或设置预计技术服务费(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("predict_commission_fee")]
[System.Text.Json.Serialization.JsonPropertyName("predict_commission_fee")]
public int PredictCommissionFee { get; set; }
/// <summary>
/// 获取或设置实际技术服务费(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("commission_fee")]
[System.Text.Json.Serialization.JsonPropertyName("commission_fee")]
public int? CommissionFee { get; set; }
/// <summary>
/// 获取或设置预计人气卡返佣金额(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("predict_wecoin_commission")]
[System.Text.Json.Serialization.JsonPropertyName("predict_wecoin_commission")]
public int? PredictWecoinCommission { get; set; }
/// <summary>
/// 获取或设置实际人气卡返佣金额(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("wecoin_commission")]
[System.Text.Json.Serialization.JsonPropertyName("wecoin_commission")]
public int? WecoinCommission { get; set; }
/// <summary>
/// 获取或设置结算时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("settle_time")]
[System.Text.Json.Serialization.JsonPropertyName("settle_time")]
public long? SettleTimestamp { get; set; }
}
public class Sharer
@ -576,21 +678,21 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public bool IsFromWecom { get; set; }
}
public class Settlement
public class AgentFinder
{
/// <summary>
/// 获取或设置预计技术服务费(单位:分)
/// 获取或设置授权视频号 ID
/// </summary>
[Newtonsoft.Json.JsonProperty("predict_commission_fee")]
[System.Text.Json.Serialization.JsonPropertyName("predict_commission_fee")]
public int PredictCommissionFee { get; set; }
[Newtonsoft.Json.JsonProperty("agent_finder_id")]
[System.Text.Json.Serialization.JsonPropertyName("agent_finder_id")]
public string AgentFinderId { get; set; } = default!;
/// <summary>
/// 获取或设置实际技术服务费(单位:分)
/// 获取或设置授权视频号昵称
/// </summary>
[Newtonsoft.Json.JsonProperty("commission_fee")]
[System.Text.Json.Serialization.JsonPropertyName("commission_fee")]
public int? CommissionFee { get; set; }
[Newtonsoft.Json.JsonProperty("agent_finder_nickname")]
[System.Text.Json.Serialization.JsonPropertyName("agent_finder_nickname")]
public bool AgentFinderNickname { get; set; }
}
}
@ -636,12 +738,21 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("ext_info")]
public Types.Extra? Extra { get; set; }
/// <summary>
/// 获取或设置结算信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("settle_info")]
[System.Text.Json.Serialization.JsonPropertyName("settle_info")]
public Types.Settlement? Settlement { get; set; }
/// <summary>
/// 获取或设置分享员信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("sharer_info")]
[System.Text.Json.Serialization.JsonPropertyName("sharer_info")]
public Types.Sharer? Sharer { get; set; }
/// <summary>
/// 获取或设置 SKU 分享员信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("sku_sharer_infos")]
@ -649,11 +760,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public Types.SKUSharer[]? SKUSharerList { get; set; }
/// <summary>
/// 获取或设置服务费信息。
/// 获取或设置授权账号信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("settle_info")]
[System.Text.Json.Serialization.JsonPropertyName("settle_info")]
public Types.Settlement? Settlement { get; set; }
[Newtonsoft.Json.JsonProperty("agent_info")]
[System.Text.Json.Serialization.JsonPropertyName("agent_info")]
public Types.AgentFinder? AgentFinder { get; set; }
}
public class AftersaleDetail

View File

@ -1,3 +1,5 @@
using System;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
@ -54,6 +56,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// 获取或设置国家码。
/// </summary>
[Obsolete("相关接口或字段于 2023-11-20 下线。")]
[Newtonsoft.Json.JsonProperty("national_code")]
[System.Text.Json.Serialization.JsonPropertyName("national_code")]
public string? NationalCode { get; set; }

View File

@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
@ -36,6 +36,57 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("product_cnt")]
public int Count { get; set; }
}
public class Course
{
public static class Types
{
public class CoursePath
{
/// <summary>
/// 获取或设置课程地址类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("type")]
[System.Text.Json.Serialization.JsonPropertyName("type")]
public int Type { get; set; }
/// <summary>
/// 获取或设置小程序 AppId。
/// </summary>
[Newtonsoft.Json.JsonProperty("wxa_appid")]
[System.Text.Json.Serialization.JsonPropertyName("wxa_appid")]
public string? MiniProgramAppId { get; set; }
/// <summary>
/// 获取或设置小程序页面路径。
/// </summary>
[Newtonsoft.Json.JsonProperty("wxa_path")]
[System.Text.Json.Serialization.JsonPropertyName("wxa_path")]
public string? MiniProgramPagePath { get; set; }
}
}
/// <summary>
/// 获取或设置课程开始时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("start_time")]
[System.Text.Json.Serialization.JsonPropertyName("start_time")]
public long? StartTimestamp { get; set; }
/// <summary>
/// 获取或设置课程结束时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("end_time")]
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
public long? EndTimestamp { get; set; }
/// <summary>
/// 获取或设置课程地址信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("course_path")]
[System.Text.Json.Serialization.JsonPropertyName("course_path")]
public Types.CoursePath CoursePath { get; set; } = default!;
}
}
/// <summary>
@ -65,6 +116,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("product_infos")]
[System.Text.Json.Serialization.JsonPropertyName("product_infos")]
public IList<Types.Product> ProductList { get; set; } = new List<Types.Product>();
/// <summary>
/// 获取或设置课程信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("course_info")]
[System.Text.Json.Serialization.JsonPropertyName("course_info")]
public Types.Course? Course { get; set; }
}
}

View File

@ -240,6 +240,24 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("after_sale_address_id")]
public long? AftersaleAddressId { get; set; }
}
public class Qualification
{
/// <summary>
/// 获取或设置资质 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("qua_id")]
[System.Text.Json.Serialization.JsonPropertyName("qua_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long QualificationId { get; set; }
/// <summary>
/// 获取或设置资质图片 URL 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("qua_url")]
[System.Text.Json.Serialization.JsonPropertyName("qua_url")]
public string[] PictureUrlList { get; set; } = default!;
}
}
/// <summary>
@ -391,12 +409,27 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("edit_time")]
public long EditTimestamp { get; set; }
/// <summary>
/// 获取或设置导入的来源商品 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("src_product_id")]
[System.Text.Json.Serialization.JsonPropertyName("src_product_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long? SourceProductId { get; set; }
/// <summary>
/// 获取或设置售后地址。
/// </summary>
[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("product_qua_infos")]
[System.Text.Json.Serialization.JsonPropertyName("product_qua_infos")]
public Types.Qualification[]? QualificationList { get; set; }
}
}

View File

@ -15,7 +15,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
public static class Types
{
public class ExtraInfo
public class ExtendedInfo
{
/// <summary>
/// 获取或设置归还的源库存子类型。
@ -116,7 +116,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("ext_info")]
[System.Text.Json.Serialization.JsonPropertyName("ext_info")]
public Types.ExtraInfo? ExtraInfo { get; set; }
public Types.ExtendedInfo? ExtendedInfo { get; set; }
}
}

View File

@ -14,7 +14,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public class FinderScene
{
/// <summary>
/// 获取或设置视频号唯一标识
/// 获取或设置视频号 ID
/// </summary>
[Newtonsoft.Json.JsonProperty("promoter_id")]
[System.Text.Json.Serialization.JsonPropertyName("promoter_id")]

View File

@ -0,0 +1,11 @@
{
"ToUserName": "gh_*",
"FromUserName": "OPENID",
"CreateTime": 1662480000,
"MsgType": "event",
"Event": "channels_ec_order_ext_info_update",
"order_info": {
"order_id": 3705115058471208928,
"type": 1
}
}

View File

@ -18,7 +18,8 @@
"tel_number": ""
},
"refund_info": {
"amount": 11
"amount": 11,
"refund_reason": 1
},
"return_info": {
"waybill_id": "",

View File

@ -1,8 +1,12 @@
{
{
"category_info": {
"level1": 7419,
"level2": 7439,
"level3": 7448,
"certificate": ["THE_MEDIA_ID_1", "THE_MEDIA_ID_2"]
"certificate": [ "THE_MEDIA_ID_1", "THE_MEDIA_ID_2" ],
"brand_list": [
{ "brand_id": 1001 },
{ "brand_id": 1002 }
]
}
}

View File

@ -12,17 +12,46 @@
"level": 3
},
"qua": {
"qua_id": "1003",
"qua_id": "0",
"need_to_apply": true,
"tips": "",
"mandatory": true
},
"product_qua": {
"qua_id": "1003",
"qua_id": "0",
"need_to_apply": true,
"tips": "",
"mandatory": true
}
},
"brand_qua": {
"qua_id": "0",
"need_to_apply": true,
"tips": "",
"mandatory": true
},
"product_qua_list": [
{
"qua_id": "1111487",
"need_to_apply": true,
"tips": "若涉及名人或大师作品,可提供作品授权证明/大师资质证明",
"mandatory": true,
"name": "作品授权证明/大师资质证明"
},
{
"qua_id": "1111488",
"need_to_apply": true,
"tips": "若涉及名人或大师作品,可提供鉴定证书",
"mandatory": false,
"name": "鉴定证书"
},
{
"qua_id": "1111489",
"need_to_apply": true,
"tips": "若涉及名人或大师作品,可提供收藏证书",
"mandatory": false,
"name": "收藏证书"
}
]
},
{
"cat": {

View File

@ -9,6 +9,7 @@
"shop_no_shipment": false,
"access_permit_required": false,
"pre_sale": false,
"seven_day_return": false,
"brand_list": [
{
"brand_id": "10000031"
@ -28,7 +29,7 @@
{
"name": "检测标准",
"type": "select_one",
"value": "3C;美标;欧盟 ECE ;ADAC;C-NCAP",
"value": "3C;美标;欧盟ECE;ADAC;C-NCAP",
"is_required": false
},
{
@ -42,6 +43,30 @@
"basis_point": 250,
"original_basis_point": 250,
"incentive_type": 0
},
"is_limit_brand": false
},
"product_qua_list": [
{
"qua_id": "1111487",
"need_to_apply": true,
"tips": "若涉及名人或大师作品,可提供作品授权证明/大师资质证明",
"mandatory": false,
"name": "作品授权证明/大师资质证明"
},
{
"qua_id": "1111488",
"need_to_apply": true,
"tips": "若涉及名人或大师作品,可提供鉴定证书",
"mandatory": false,
"name": "鉴定证书"
},
{
"qua_id": "1111489",
"need_to_apply": true,
"tips": "若涉及名人或大师作品,可提供收藏证书",
"mandatory": false,
"name": "收藏证书"
}
}
]
}

View File

@ -14,7 +14,24 @@
"finder_ids": [
"finder_id_01"
],
"finder_num": 1
"finder_num": 1,
"finder_info_list": [
{
"finder_id": "sphAAAA",
"begin_time": 1669867200,
"end_time": 1672459200
},
{
"finder_id": "sphBBBB",
"begin_time": 1669867200,
"end_time": 1672459200
},
{
"finder_id": "sphCCCC",
"begin_time": 1669867200,
"end_time": 1672459200
}
]
},
"ext_info": {
"is_sale_forbidden": false,

View File

@ -1,4 +1,4 @@
{
{
"order_id": "123456",
"delivery_list": [
{
@ -11,7 +11,16 @@
"product_id": "12345",
"sku_id": "678910"
}
]
],
"course_info": {
"start_time": 1675180800,
"end_time": 1675958400,
"course_path": {
"type": 0,
"wxa_appid": "wxabcdes",
"wxa_path": "path"
}
}
}
]
}

View File

@ -73,6 +73,27 @@
"edit_time": 1700450698,
"after_sale_info": {
"after_sale_address_id": 123345
}
},
"product_qua_infos": [
{
"qua_id": 1111484,
"qua_url": [
"https://mmecimage.cn/p/wx2b255582a7b4bfd0/HCnhqIWMZSIAJzzDRNmevAzRXj5ZCAZw8vGKYF1GW8Y"
]
},
{
"qua_id": 1111491,
"qua_url": [
"https://mmecimage.cn/p/wx2b255582a7b4bfd0/HPySAtxADO1LuDHdmJ7wiSwJzyEicLNTSAE-a10swwM"
]
},
{
"qua_id": 1111492,
"qua_url": [
"https://mmecimage.cn/p/wx2b255582a7b4bfd0/HGekHKK4yA_s0Ur3wwgil2x_6sZ7RiFpA4JSSfT_gYI",
"https://mmecimage.cn/p/wx2b255582a7b4bfd0/HPfiP6fjCN5BeLJ48i9e0zANmKUuv-hyo55nuUk9mBA"
]
}
]
}
}