mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-03-10 00:13:36 +08:00
84 lines
3.3 KiB
C#
84 lines
3.3 KiB
C#
namespace SKIT.FlurlHttpClient.Wechat.TenpayV2.Models
|
|
{
|
|
/// <summary>
|
|
/// <para>表示 [POST] /deposit/consume 接口的请求。</para>
|
|
/// </summary>
|
|
public class ConsumeDepositRequest : WechatTenpaySignableRequest
|
|
{
|
|
/// <summary>
|
|
/// <inheritdoc/>
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("mch_id")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("mch_id")]
|
|
public override string? MerchantId { get; set; }
|
|
|
|
/// <summary>
|
|
/// <inheritdoc/>
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("appid")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
|
public override string? AppId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置子商户号。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("sub_mch_id")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("sub_mch_id")]
|
|
public string? SubMerchantId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置子商户 AppId。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("sub_appid")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("sub_appid")]
|
|
public string? SubAppId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置商户订单号。与字段 <see cref="TransactionId"/> 二选一。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("out_trade_no")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("out_trade_no")]
|
|
public string? OutTradeNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置微信支付订单号。与字段 <see cref="OutTradeNumber"/> 二选一。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("transaction_id")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("transaction_id")]
|
|
public string? TransactionId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置订单金额(单位:分)。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("total_fee")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("total_fee")]
|
|
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
|
public int TotalFee { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置货币类型。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("fee_type")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("fee_type")]
|
|
public string? FeeType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置押金消费金额(单位:分)。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("consume_fee")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("consume_fee")]
|
|
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
|
public int ConsumeFee { get; set; }
|
|
|
|
/// <summary>
|
|
/// <inheritdoc/>
|
|
/// <para>默认值:<see cref="Constants.SignTypes.HMAC_SHA256"/></para>
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("sign_type")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("sign_type")]
|
|
#pragma warning disable CS8765
|
|
public override string SignType { get; set; } = Constants.SignTypes.HMAC_SHA256;
|
|
#pragma warning restore CS8765
|
|
}
|
|
}
|