mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-15 23:13:32 +08:00
feat(wxapi): 随官方更新自定义交易组件商家入驻相关接口模型
This commit is contained in:
parent
d7d1f13279
commit
b57806f39d
@ -61,8 +61,8 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("reason")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("reason")]
|
||||
[System.Xml.Serialization.XmlElement("reason")]
|
||||
public string Reason { get; set; } = default!;
|
||||
[System.Xml.Serialization.XmlElement("reason", IsNullable = true)]
|
||||
public string? Reason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置场景审核结果列表。
|
||||
|
@ -22,6 +22,13 @@
|
||||
[Newtonsoft.Json.JsonProperty("service_agent_phone")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_agent_phone")]
|
||||
public string? ServiceAgentPhoneNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置客服类型列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_agent_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_agent_type")]
|
||||
public int[]? ServiceAgentTypeList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,10 +1,67 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /shop/account/update_info 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ShopAccountUpdateInfoRequest : WechatApiRequest, IInferable<ShopAccountUpdateInfoRequest, ShopAccountUpdateInfoResponse>
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class ReceivingAddress
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置收货人姓名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("receiver_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("receiver_name")]
|
||||
public string ReceiverName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置国家。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("country")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("country")]
|
||||
public string? Country { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置省份。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("province")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("province")]
|
||||
public string? Province { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置城市。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("city")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("city")]
|
||||
public string? City { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置区县。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("town")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("town")]
|
||||
public string? District { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置详细地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("detailed_address")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("detailed_address")]
|
||||
public string Detail { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置电话号码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("tel_number")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("tel_number")]
|
||||
public string PhoneNumber { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置客服页面路径。
|
||||
/// </summary>
|
||||
@ -18,5 +75,19 @@
|
||||
[Newtonsoft.Json.JsonProperty("service_agent_phone")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_agent_phone")]
|
||||
public string? ServiceAgentPhoneNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置客服类型列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_agent_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_agent_type")]
|
||||
public IList<int>? ServiceAgentTypeList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置默认退货地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("default_receiving_address")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("default_receiving_address")]
|
||||
public Types.ReceivingAddress? DefaultReceivingAddress { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -14,18 +14,161 @@
|
||||
public class Access
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置上传商品并审核成功状态。
|
||||
/// 获取或设置商品接口调试完成是否完成。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("spu_audit_success")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("spu_audit_success")]
|
||||
public int SPUAuditStatus { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("spu_audit_finished")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("spu_audit_finished")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsSPUAuditFinished { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置发起一笔订单并支付成功状态。
|
||||
/// 获取或设置上传商品并审核是否成功。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_order_success")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_order_success")]
|
||||
public int PayOrderStatus { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("spu_audit_success")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("spu_audit_success")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsSPUAuditSuccessful { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置物流接口调用是否完成。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("send_delivery_finished")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("send_delivery_finished")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsSendDeliveryFinished { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置物流接口调用是否成功。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("send_delivery_success")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("send_delivery_success")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsSendDeliverySuccessful { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置发起一笔订单并支付是否完成。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ec_order_finished")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ec_order_finished")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsECOrderFinished { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置发起一笔订单并支付是否成功。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ec_order_success")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ec_order_success")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsECOrderSuccessful { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置售后接口调用是否完成。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ec_after_sale_finished")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ec_after_sale_finished")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsECAftersaleFinished { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置售后接口调用是否成功。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ec_after_sale_success")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ec_after_sale_success")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsECAftersaleSuccessful { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否测试完成。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("test_api_finished")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("test_api_finished")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsTestApiFinished { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否发版完成。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("deploy_wxa_finished")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("deploy_wxa_finished")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsDepolyWxaFinished { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否完成自定义组件全部任务。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("open_product_task_finished")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("open_product_task_finished")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsOpenProductTaskFinished { get; set; }
|
||||
}
|
||||
|
||||
public class SceneGroup
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class SceneGroupExtra
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置审核项目 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ext_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ext_id")]
|
||||
public int ExtraId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核项目状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置场景 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("group_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("group_id")]
|
||||
public int SceneGroupId { 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("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核文案。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("reason")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("reason")]
|
||||
public string? Reason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置场景审核结果列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("scene_group_ext_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("scene_group_ext_list")]
|
||||
public Types.SceneGroupExtra[] SceneGroupExtraList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
@ -42,6 +185,13 @@
|
||||
[Newtonsoft.Json.JsonProperty("access_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("access_info")]
|
||||
public Types.Access? Access { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置场景接入相关信息列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("scene_group_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("scene_group_list")]
|
||||
public Types.SceneGroup[]? SceneGroupList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"data": {
|
||||
"service_agent_path": "https://www.baidu.com",
|
||||
"service_agent_phone": "020-888888"
|
||||
"service_agent_path": "小程序path",
|
||||
"service_agent_phone": "020-888888",
|
||||
"service_agent_type": [1, 2]
|
||||
}
|
||||
}
|
@ -1,4 +1,14 @@
|
||||
{
|
||||
"service_agent_path": "https://www.web.com",
|
||||
"service_agent_phone": "020-888888"
|
||||
"service_agent_path": "小程序path",
|
||||
"service_agent_phone": "020-888888",
|
||||
"service_agent_type": [ 1, 2 ],
|
||||
"default_receiving_address": {
|
||||
"receiver_name": "张三",
|
||||
"detailed_address": "详细收货地址信息",
|
||||
"tel_number": "收货人手机号码",
|
||||
"country": "国家,选填",
|
||||
"province": "省份,选填",
|
||||
"city": "城市,选填",
|
||||
"town": "乡镇,选填"
|
||||
}
|
||||
}
|
@ -5,7 +5,34 @@
|
||||
"status": 2,
|
||||
"access_info": {
|
||||
"spu_audit_success": 1,
|
||||
"pay_order_success": 0
|
||||
}
|
||||
"send_delivery_success": 0,
|
||||
"ec_order_success": 0,
|
||||
"ec_after_sale_success": 0,
|
||||
"spu_audit_finished": 0,
|
||||
"send_delivery_finished": 0,
|
||||
"ec_order_finished": 0,
|
||||
"ec_after_sale_finished": 0,
|
||||
"test_api_finished": 0,
|
||||
"deploy_wxa_finished": 0,
|
||||
"open_product_task_finished": 0
|
||||
},
|
||||
"scene_group_list": [
|
||||
{
|
||||
"group_id": 1,
|
||||
"reason": "小程序没有售后和客服功能,暂时无法使用视频号场景。",
|
||||
"name": "视频号、公众号场景",
|
||||
"status": 1,
|
||||
"scene_group_ext_list": [
|
||||
{
|
||||
"ext_id": 1,
|
||||
"status": 2
|
||||
},
|
||||
{
|
||||
"ext_id": 2,
|
||||
"status": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user