mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-15 14:04:32 +08:00
134 lines
4.9 KiB
C#
134 lines
4.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
|
{
|
|
/// <summary>
|
|
/// <para>表示 [POST] /pay/transactions/jsapi 接口的请求。</para>
|
|
/// </summary>
|
|
public class CreatePayTransactionJsapiRequest : WechatTenpayRequest
|
|
{
|
|
public static class Types
|
|
{
|
|
public class Payer
|
|
{
|
|
/// <summary>
|
|
/// 获取或设置用户唯一标识。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("openid")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
|
public string OpenId { get; set; } = string.Empty;
|
|
}
|
|
|
|
public class Amount : CreatePayTransactionAppRequest.Types.Amount
|
|
{
|
|
}
|
|
|
|
public class Detail : CreatePayTransactionAppRequest.Types.Detail
|
|
{
|
|
}
|
|
|
|
public class Scene : CreatePayTransactionAppRequest.Types.Scene
|
|
{
|
|
}
|
|
|
|
public class Settlement : CreatePayTransactionAppRequest.Types.Settlement
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取或设置微信商户号。如果不指定将使用构造 <see cref="WechatTenpayClient"/> 时的 <see cref="WechatTenpayClientOptions.MerchantId"/> 参数。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("mchid")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("mchid")]
|
|
public string? MerchantId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置微信 AppId。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("appid")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
|
public string AppId { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 获取或设置商品描述。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("description")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
|
public string Description { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 获取或设置商户订单号。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("out_trade_no")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("out_trade_no")]
|
|
public string OutTradeNumber { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 获取或设置交易结束时间。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("time_expire")]
|
|
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
|
[System.Text.Json.Serialization.JsonPropertyName("time_expire")]
|
|
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
|
public DateTimeOffset? ExpireTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置附加数据。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("attach")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("attach")]
|
|
public string? Attachment { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置回调通知地址。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("notify_url")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("notify_url")]
|
|
public string? NotifyUrl { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置订单优惠标记。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("goods_tag")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("goods_tag")]
|
|
public string? GoodsTag { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取或设置金额信息。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("amount")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("amount")]
|
|
public Types.Amount Amount { get; set; } = new Types.Amount();
|
|
|
|
/// <summary>
|
|
/// 获取或设置支付者信息。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("payer")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("payer")]
|
|
public Types.Payer Payer { get; set; } = new Types.Payer();
|
|
|
|
/// <summary>
|
|
/// 获取或设置商品信息。
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonProperty("detail")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("detail")]
|
|
public Types.Detail? Detail { get; set; }
|
|
|
|
/// <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("settle_info")]
|
|
[System.Text.Json.Serialization.JsonPropertyName("settle_info")]
|
|
public Types.Settlement? Settlement { get; set; }
|
|
}
|
|
}
|