mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-03-10 00:13:36 +08:00
feat(wxapi): 随官方更新自定义交易组件优惠券相关接口模型
This commit is contained in:
@@ -155,6 +155,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("valid_day_num")]
|
||||
public int? ValidDays { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置相对生效秒数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("valid_second")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("valid_second")]
|
||||
public int? ValidSeconds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置绝对生效开始时间戳。
|
||||
/// </summary>
|
||||
|
||||
@@ -212,6 +212,13 @@
|
||||
[System.Text.Json.Serialization.JsonPropertyName("valid_day_num")]
|
||||
public int? ValidDays { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置相对生效秒数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("valid_second")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("valid_second")]
|
||||
public int? ValidSeconds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置绝对生效开始时间戳。
|
||||
/// </summary>
|
||||
@@ -226,6 +233,16 @@
|
||||
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
|
||||
public long? EndTimestamp { get; set; }
|
||||
}
|
||||
|
||||
public class Extra
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置有效期时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("valid_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("valid_time")]
|
||||
public long? ValidTimestamp { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -261,7 +278,14 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("valid_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("valid_info")]
|
||||
public Types.Validity Validity { get; set; } = default!;
|
||||
public Types.Validity? Validity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置优惠券扩展信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ext_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ext_info")]
|
||||
public Types.Extra? Extra { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -272,6 +296,13 @@
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_coupon_id")]
|
||||
public string OutCouponId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string? AppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置优惠券类型。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user