using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
{
///
/// 表示 EVENT.ORDER_STATUS_FINANCE_SUCC 事件的数据。
/// REF: https://developers.weixin.qq.com/doc/offiaccount/Cards_and_Offer/Coupons_Vouchers_and_Cards_Event_Push_Messages.html#11
///
public class OrderStatusFinanceSuccessEvent : WechatApiEvent, WechatApiEvent.Serialization.IJsonSerializable, WechatApiEvent.Serialization.IXmlSerializable
{
///
/// 获取或设置订单号。
///
[Newtonsoft.Json.JsonProperty("OrderId")]
[System.Text.Json.Serialization.JsonPropertyName("OrderId")]
[System.Xml.Serialization.XmlElement("OrderId")]
public string OrderId { get; set; } = default!;
///
/// 获取或设置订单类型。
///
[Newtonsoft.Json.JsonProperty("OrderType")]
[System.Text.Json.Serialization.JsonPropertyName("OrderType")]
[System.Xml.Serialization.XmlElement("OrderType")]
public string OrderType { get; set; } = default!;
///
/// 获取或设置订单状态。
///
[Newtonsoft.Json.JsonProperty("Status")]
[System.Text.Json.Serialization.JsonPropertyName("Status")]
[System.Xml.Serialization.XmlElement("Status")]
public string OrderStatus { get; set; } = default!;
///
/// 获取或设置订单生成时间戳。
///
[Newtonsoft.Json.JsonProperty("CreateOrderTime")]
[System.Text.Json.Serialization.JsonPropertyName("CreateOrderTime")]
[System.Xml.Serialization.XmlElement("CreateOrderTime")]
public long OrderCreateTimestamp { get; set; }
///
/// 获取或设置订单支付成功时间戳。
///
[Newtonsoft.Json.JsonProperty("PayFinishTime")]
[System.Text.Json.Serialization.JsonPropertyName("PayFinishTime")]
[System.Xml.Serialization.XmlElement("PayFinishTime")]
public long OrderPayTimestamp { get; set; }
///
/// 获取或设置支付方式。
///
[Newtonsoft.Json.JsonProperty("Desc")]
[System.Text.Json.Serialization.JsonPropertyName("Desc")]
[System.Xml.Serialization.XmlElement("Desc", IsNullable = true)]
public string? Description { get; set; }
///
/// 获取或设置剩余免费券点数量。
///
[Newtonsoft.Json.JsonProperty("FreeCoinCount")]
[System.Text.Json.Serialization.JsonPropertyName("FreeCoinCount")]
[System.Xml.Serialization.XmlElement("FreeCoinCount")]
public int FreeCoinCount { get; set; }
///
/// 获取或设置剩余付费券点数量。
///
[Newtonsoft.Json.JsonProperty("PayCoinCount")]
[System.Text.Json.Serialization.JsonPropertyName("PayCoinCount")]
[System.Xml.Serialization.XmlElement("PayCoinCount")]
public int PayCoinCount { get; set; }
///
/// 获取或设置本次变动的免费券点数量。
///
[Newtonsoft.Json.JsonProperty("RefundFreeCoinCount")]
[System.Text.Json.Serialization.JsonPropertyName("RefundFreeCoinCount")]
[System.Xml.Serialization.XmlElement("RefundFreeCoinCount")]
public int RefundFreeCoinCount { get; set; }
///
/// 获取或设置本次变动的付费券点数量。
///
[Newtonsoft.Json.JsonProperty("RefundPayCoinCount")]
[System.Text.Json.Serialization.JsonPropertyName("RefundPayCoinCount")]
[System.Xml.Serialization.XmlElement("RefundPayCoinCount")]
public int RefundPayCoinCount { get; set; }
///
/// 获取或设置所开收据的详情。
///
[Newtonsoft.Json.JsonProperty("ReceiptInfo")]
[System.Text.Json.Serialization.JsonPropertyName("ReceiptInfo")]
[System.Xml.Serialization.XmlElement("ReceiptInfo", IsNullable = true)]
public string? Receipt { get; set; }
///
/// 获取或设置系统备注。
///
[Newtonsoft.Json.JsonProperty("Memo")]
[System.Text.Json.Serialization.JsonPropertyName("Memo")]
[System.Xml.Serialization.XmlElement("Memo", IsNullable = true)]
public string? Remark { get; set; }
}
}