using System; using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Events { /// /// 表示 EVENT.user_gifting_card 事件的数据。 /// REF: https://developers.weixin.qq.com/doc/offiaccount/Cards_and_Offer/Coupons_Vouchers_and_Cards_Event_Push_Messages.html#3 /// public class UserGiftingCardEvent : WechatApiEvent, WechatApiEvent.Serialization.IJsonSerializable, WechatApiEvent.Serialization.IXmlSerializable { /// /// 获取或设置卡券模板编号。 /// [Newtonsoft.Json.JsonProperty("CardId")] [System.Text.Json.Serialization.JsonPropertyName("CardId")] [System.Xml.Serialization.XmlElement("CardId")] public string CardId { get; set; } = default!; /// /// 获取或设置卡券 Code。 /// [Newtonsoft.Json.JsonProperty("UserCardCode")] [System.Text.Json.Serialization.JsonPropertyName("UserCardCode")] [System.Xml.Serialization.XmlElement("UserCardCode")] public string CardCode { get; set; } = default!; /// /// 获取或设置接收卡券用户的 OpenId。 /// [Newtonsoft.Json.JsonProperty("FriendUserName")] [System.Text.Json.Serialization.JsonPropertyName("FriendUserName")] [System.Xml.Serialization.XmlElement("FriendUserName")] public string FriendOpenId { get; set; } = default!; /// /// 获取或设置是否转增退回。 /// [Newtonsoft.Json.JsonProperty("IsReturnBack")] [System.Text.Json.Serialization.JsonPropertyName("IsReturnBack")] [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))] [System.Xml.Serialization.XmlElement("IsReturnBack")] public bool IsReturnBack { get; set; } /// /// 获取或设置是否是群转增。 /// [Newtonsoft.Json.JsonProperty("IsChatRoom")] [System.Text.Json.Serialization.JsonPropertyName("IsChatRoom")] [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))] [System.Xml.Serialization.XmlElement("IsChatRoom")] public bool IsFromChatroom { get; set; } } }