using System; namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models { /// /// 表示 [GET] /ecommerce/refunds/out-refund-no/{out_refund_no} 接口的响应。 /// public class GetEcommerceRefundByOutRefundNumberResponse : WechatTenpayResponse { public static class Types { public class Amount { /// /// 获取或设置退款金额(单位:分)。 /// [Newtonsoft.Json.JsonProperty("refund")] [System.Text.Json.Serialization.JsonPropertyName("refund")] public int Refund { get; set; } /// /// 获取或设置用户退款金额(单位:分)。 /// [Newtonsoft.Json.JsonProperty("payer_refund")] [System.Text.Json.Serialization.JsonPropertyName("payer_refund")] public int PayerRefund { get; set; } /// /// 获取或设置优惠退款金额(单位:分)。 /// [Newtonsoft.Json.JsonProperty("discount_refund")] [System.Text.Json.Serialization.JsonPropertyName("discount_refund")] public int DiscountRefund { get; set; } /// /// 获取或设置退款币种。 /// [Newtonsoft.Json.JsonProperty("currency")] [System.Text.Json.Serialization.JsonPropertyName("currency")] public string Currency { get; set; } = default!; } public class Promotion { /// /// 获取或设置券 ID。 /// [Newtonsoft.Json.JsonProperty("promotion_id")] [System.Text.Json.Serialization.JsonPropertyName("promotion_id")] public string PromotionId { get; set; } = default!; /// /// 获取或设置优惠范围。 /// [Newtonsoft.Json.JsonProperty("scope")] [System.Text.Json.Serialization.JsonPropertyName("scope")] public string Scope { get; set; } = default!; /// /// 获取或设置优惠类型。 /// [Newtonsoft.Json.JsonProperty("type")] [System.Text.Json.Serialization.JsonPropertyName("type")] public string Type { get; set; } = default!; /// /// 获取或设置优惠券面额(单位:分)。 /// [Newtonsoft.Json.JsonProperty("amount")] [System.Text.Json.Serialization.JsonPropertyName("amount")] public int Amount { get; set; } /// /// 获取或设置优惠退款金额(单位:分)。 /// [Newtonsoft.Json.JsonProperty("refund_amount")] [System.Text.Json.Serialization.JsonPropertyName("refund_amount")] public int RefundAmount { get; set; } } } /// /// 获取或设置商户退款单号。 /// [Newtonsoft.Json.JsonProperty("out_refund_no")] [System.Text.Json.Serialization.JsonPropertyName("out_refund_no")] public string OutRefundNumber { get; set; } = default!; /// /// 获取或设置微信退款单号。 /// [Newtonsoft.Json.JsonProperty("refund_id")] [System.Text.Json.Serialization.JsonPropertyName("refund_id")] public string RefundId { get; set; } = default!; /// /// 获取或设置商户订单号。 /// [Newtonsoft.Json.JsonProperty("out_trade_no")] [System.Text.Json.Serialization.JsonPropertyName("out_trade_no")] public string OutTradeNumber { get; set; } = default!; /// /// 获取或设置微信订单号。 /// [Newtonsoft.Json.JsonProperty("transaction_id")] [System.Text.Json.Serialization.JsonPropertyName("transaction_id")] public string TransactionId { get; set; } = default!; /// /// 获取或设置退款渠道。 /// [Newtonsoft.Json.JsonProperty("channel")] [System.Text.Json.Serialization.JsonPropertyName("channel")] public string Channel { get; set; } = default!; /// /// 获取或设置退款状态。 /// [Newtonsoft.Json.JsonProperty("status")] [System.Text.Json.Serialization.JsonPropertyName("status")] public string Status { get; set; } = default!; /// /// 获取或设置退款金额信息。 /// [Newtonsoft.Json.JsonProperty("amount")] [System.Text.Json.Serialization.JsonPropertyName("amount")] public Types.Amount Amount { get; set; } = default!; /// /// 获取或设置优惠退款信息。 /// [Newtonsoft.Json.JsonProperty("promotion_detail")] [System.Text.Json.Serialization.JsonPropertyName("promotion_detail")] public Types.Promotion[]? PromotionList { get; set; } /// /// 获取或设置退款入账账户。 /// [Newtonsoft.Json.JsonProperty("user_received_account")] [System.Text.Json.Serialization.JsonPropertyName("user_received_account")] public string UserReceivedAccount { get; set; } = default!; /// /// 获取或设置退款出资账户。 /// [Newtonsoft.Json.JsonProperty("refund_account")] [System.Text.Json.Serialization.JsonPropertyName("refund_account")] public string? RefundAccount { get; set; } /// /// 获取或设置资金账户。 /// [Newtonsoft.Json.JsonProperty("funds_account")] [System.Text.Json.Serialization.JsonPropertyName("funds_account")] public string? FundsAccount { get; set; } /// /// 获取或设置退款成功时间。 /// [Newtonsoft.Json.JsonProperty("success_time")] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339NullableDateTimeOffsetConverter))] [System.Text.Json.Serialization.JsonPropertyName("success_time")] [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339NullableDateTimeOffsetConverter))] public DateTimeOffset? SuccessTime { get; set; } /// /// 获取或设置退款创建时间。 /// [Newtonsoft.Json.JsonProperty("create_time")] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339DateTimeOffsetConverter))] [System.Text.Json.Serialization.JsonPropertyName("create_time")] [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339DateTimeOffsetConverter))] public DateTimeOffset CreateTime { get; set; } } }