mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-17 01:46:20 +08:00
feat(wxapi): 随官方更新小程序自定义交易组件订单相关接口模型
This commit is contained in:
parent
3969311b7a
commit
ddd0072654
@ -239,6 +239,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("address_info")]
|
||||
public Types.Address? Address { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置默认退货地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("default_receiving_address")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("default_receiving_address")]
|
||||
public Types.Address? DefaultReceivingAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置创建时间。
|
||||
/// </summary>
|
||||
|
@ -16,6 +16,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long OrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
@ -235,6 +235,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// <summary>
|
||||
/// 获取或设置推广员 OpenId。
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2022-06-08 下线。")]
|
||||
[Newtonsoft.Json.JsonProperty("promoter_openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_openid")]
|
||||
public string? PromoterOpenId { get; set; }
|
||||
@ -306,6 +307,58 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promotion_info")]
|
||||
public Types.Promotion? Promotion { get; set; }
|
||||
}
|
||||
|
||||
public class Address
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置收件人姓名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("receiver_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("receiver_name")]
|
||||
public string ReceiverName { get; set; } = default!;
|
||||
|
||||
/// <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; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置联系电话。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("tel_number")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("tel_number")]
|
||||
public string TeleNumber { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -374,6 +427,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("create_time")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RegularDateTimeOffsetConverter))]
|
||||
public DateTimeOffset CreateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置默认退货地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("default_receiving_address")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("default_receiving_address")]
|
||||
public Types.Address? DefaultReceivingAddress { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -208,6 +208,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("contact_info")]
|
||||
public Types.Contact Contact { get; set; } = new Types.Contact();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户简称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("merchant_shortname")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("merchant_shortname")]
|
||||
public string? MerchantShortName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置特殊资质信息。
|
||||
/// </summary>
|
||||
|
@ -40,6 +40,15 @@
|
||||
"city": "城市,选填",
|
||||
"town": "乡镇,选填"
|
||||
},
|
||||
"default_receiving_address": {
|
||||
"city": "广州市",
|
||||
"country": "中国",
|
||||
"detailed_address": "龙洞250号",
|
||||
"province": "广东省",
|
||||
"receiver_name": "我爱我家",
|
||||
"tel_number": "18712345678",
|
||||
"town": "温柔乡"
|
||||
},
|
||||
"fund_type": 1,
|
||||
"expire_time": 1642076428
|
||||
}
|
||||
|
@ -2,15 +2,23 @@
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"order": {
|
||||
"order_id": 123455,
|
||||
"out_order_id": "xxxxx",
|
||||
"order_id": 3302968738502279424,
|
||||
"out_order_id": "***************",
|
||||
"status": 20,
|
||||
"path": "/pages/order.html?out_order_id=xxxxx",
|
||||
"default_receiving_address": {
|
||||
"city": "广州市",
|
||||
"country": "中国",
|
||||
"detailed_address": "龙洞250号",
|
||||
"province": "广东省",
|
||||
"receiver_name": "我爱我家",
|
||||
"tel_number": "18712345678",
|
||||
"town": "温柔乡"
|
||||
},
|
||||
"order_detail": {
|
||||
"promotion_info": {
|
||||
"promoter_id": "PROMOTER_ID",
|
||||
"finder_nickname": "FINDER_NICKNAME",
|
||||
"promoter_openid": "PROMOTER_OPENID",
|
||||
"sharer_openid": "SHARER_OPENID"
|
||||
},
|
||||
"product_infos": [
|
||||
|
Loading…
Reference in New Issue
Block a user