mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-03-10 00:13:36 +08:00
158 lines
6.0 KiB
C#
158 lines
6.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
|
{
|
|
/// <summary>
|
|
/// <para>表示 [GET] /pay/partner/transactions/out-trade-no/{out_trade_no} 接口的响应。</para>
|
|
/// </summary>
|
|
public class GetPayPartnerTransactionByOutTradeNumberResponse : WechatTenpayResponse
|
|
{
|
|
public static class Types
|
|
{
|
|
public class Payer
|
|
{
|
|
/// <summary>
|
|
/// 获取或设置用户在服务商下唯一标识。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("sp_openid")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("sp_openid")]
|
|
public string? OpenId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置用户在子商户下唯一标识。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("sub_openid")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("sub_openid")]
|
|
public string? SubOpenId { get; set; }
|
|
}
|
|
|
|
public class Amount : GetPayTransactionByOutTradeNumberResponse.Types.Amount
|
|
{
|
|
}
|
|
|
|
public class Scene : GetPayTransactionByOutTradeNumberResponse.Types.Scene
|
|
{
|
|
}
|
|
|
|
public class Promotion : GetPayTransactionByOutTradeNumberResponse.Types.Promotion
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取或设置服务商商户号。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("sp_mchid")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("sp_mchid")]
|
|
public string MerchantId { get; set; } = default!;
|
|
|
|
/// <summary>
|
|
/// 获取或设置子商户号。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
|
public string SubMerchantId { get; set; } = default!;
|
|
|
|
/// <summary>
|
|
/// 获取或设置服务商 AppId。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("sp_appid")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("sp_appid")]
|
|
public string AppId { get; set; } = default!;
|
|
|
|
/// <summary>
|
|
/// 获取或设置子商户 AppId。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("sub_appid")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("sub_appid")]
|
|
public string SubAppId { get; set; } = default!;
|
|
|
|
/// <summary>
|
|
/// 获取或设置商户订单号。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("out_trade_no")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("out_trade_no")]
|
|
public string OutTradeNumber { get; set; } = default!;
|
|
|
|
/// <summary>
|
|
/// 获取或设置微信支付订单号。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("transaction_id")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("transaction_id")]
|
|
public string? TransactionId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置交易类型。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("trade_type")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("trade_type")]
|
|
public string TradeType { get; set; } = default!;
|
|
|
|
/// <summary>
|
|
/// 获取或设置交易状态。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("trade_state")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("trade_state")]
|
|
public string TradeState { get; set; } = default!;
|
|
|
|
/// <summary>
|
|
/// 获取或设置交易状态描述。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("trade_state_desc")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("trade_state_desc")]
|
|
public string TradeStateDescription { get; set; } = default!;
|
|
|
|
/// <summary>
|
|
/// 获取或设置付款银行类型。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("bank_type")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("bank_type")]
|
|
public string? BankType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置附加数据。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("attach")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("attach")]
|
|
public string? Attachment { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置支付完成时间。
|
|
/// </summary>
|
|
[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; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置支付者信息。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("payer")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("payer")]
|
|
public Types.Payer? Payer { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置金额信息。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("amount")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("amount")]
|
|
public Types.Amount Amount { get; set; } = default!;
|
|
|
|
/// <summary>
|
|
/// 获取或设置场景信息。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("scene_info")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("scene_info")]
|
|
public Types.Scene? Scene { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置优惠信息。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("promotion_detail")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("promotion_detail")]
|
|
public Types.Promotion[]? PromotionList { get; set; }
|
|
}
|
|
}
|