2022-01-14 14:37:52 +08:00
|
|
|
|
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
2021-05-28 19:23:28 +08:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>表示 EVENT.user_view_card 事件的数据。</para>
|
|
|
|
|
/// <para>REF: https://developers.weixin.qq.com/doc/offiaccount/Cards_and_Offer/Coupons_Vouchers_and_Cards_Event_Push_Messages.html#7 </para>
|
|
|
|
|
/// </summary>
|
2021-08-26 11:15:17 +08:00
|
|
|
|
public class UserViewCardEvent : WechatApiEvent, WechatApiEvent.Serialization.IJsonSerializable, WechatApiEvent.Serialization.IXmlSerializable
|
2021-05-28 19:23:28 +08:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取或设置卡券模板编号。
|
|
|
|
|
/// </summary>
|
2021-06-07 00:34:41 +08:00
|
|
|
|
[Newtonsoft.Json.JsonProperty("CardId")]
|
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("CardId")]
|
2021-05-28 19:23:28 +08:00
|
|
|
|
[System.Xml.Serialization.XmlElement("CardId")]
|
|
|
|
|
public string CardId { get; set; } = default!;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取或设置卡券 Code。
|
|
|
|
|
/// </summary>
|
2021-06-07 00:34:41 +08:00
|
|
|
|
[Newtonsoft.Json.JsonProperty("UserCardCode")]
|
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("UserCardCode")]
|
2021-05-28 19:23:28 +08:00
|
|
|
|
[System.Xml.Serialization.XmlElement("UserCardCode")]
|
|
|
|
|
public string CardCode { get; set; } = default!;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取或设置商户自定义数值。
|
|
|
|
|
/// </summary>
|
2021-06-07 00:34:41 +08:00
|
|
|
|
[Newtonsoft.Json.JsonProperty("OuterId")]
|
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("OuterId")]
|
2021-05-28 19:23:28 +08:00
|
|
|
|
[System.Xml.Serialization.XmlElement("OuterId", IsNullable = true)]
|
|
|
|
|
public string? OuterId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取或设置商户自定义字符串。
|
|
|
|
|
/// </summary>
|
2021-06-07 00:34:41 +08:00
|
|
|
|
[Newtonsoft.Json.JsonProperty("OuterStr")]
|
|
|
|
|
[System.Text.Json.Serialization.JsonPropertyName("OuterStr")]
|
2021-05-28 19:23:28 +08:00
|
|
|
|
[System.Xml.Serialization.XmlElement("OuterStr", IsNullable = true)]
|
|
|
|
|
public string? OuterString { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|