mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-20 02:29:40 +08:00
feat(tenpayv3): 随官方更新智慧商圈相关回调通知事件模型
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Events
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Events
|
||||||
{
|
{
|
||||||
@@ -19,28 +19,28 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Events
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("merchant_name")]
|
[Newtonsoft.Json.JsonProperty("merchant_name")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("merchant_name")]
|
[System.Text.Json.Serialization.JsonPropertyName("merchant_name")]
|
||||||
public string MerchantName { get; set; } = default!;
|
public string? MerchantName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置门店名称。
|
/// 获取或设置门店名称。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("shop_name")]
|
[Newtonsoft.Json.JsonProperty("shop_name")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("shop_name")]
|
[System.Text.Json.Serialization.JsonPropertyName("shop_name")]
|
||||||
public string ShopName { get; set; } = default!;
|
public string? ShopName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置门店编号。
|
/// 获取或设置门店编号。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("shop_number")]
|
[Newtonsoft.Json.JsonProperty("shop_number")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("shop_number")]
|
[System.Text.Json.Serialization.JsonPropertyName("shop_number")]
|
||||||
public string ShopNumber { get; set; } = default!;
|
public string? ShopNumber { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置微信 AppId。
|
/// 获取或设置微信 AppId。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("appid")]
|
[Newtonsoft.Json.JsonProperty("appid")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||||
public string AppId { get; set; } = default!;
|
public string? AppId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置用户唯一标识。
|
/// 获取或设置用户唯一标识。
|
||||||
@@ -54,23 +54,23 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Events
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("transaction_id")]
|
[Newtonsoft.Json.JsonProperty("transaction_id")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("transaction_id")]
|
[System.Text.Json.Serialization.JsonPropertyName("transaction_id")]
|
||||||
public string TransactionId { get; set; } = default!;
|
public string? TransactionId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置金额(单位:分)。
|
/// 获取或设置金额(单位:分)。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("amount")]
|
[Newtonsoft.Json.JsonProperty("amount")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("amount")]
|
[System.Text.Json.Serialization.JsonPropertyName("amount")]
|
||||||
public int Amount { get; set; }
|
public int? Amount { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置交易完成时间。
|
/// 获取或设置交易完成时间。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Newtonsoft.Json.JsonProperty("time_end")]
|
[Newtonsoft.Json.JsonProperty("time_end")]
|
||||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339DateTimeOffsetConverter))]
|
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("time_end")]
|
[System.Text.Json.Serialization.JsonPropertyName("time_end")]
|
||||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339DateTimeOffsetConverter))]
|
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RFC3339NullableDateTimeOffsetConverter))]
|
||||||
public DateTimeOffset SuccessTime { get; set; }
|
public DateTimeOffset? SuccessTime { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置手动提交积分标记。
|
/// 获取或设置手动提交积分标记。
|
||||||
@@ -78,5 +78,19 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Events
|
|||||||
[Newtonsoft.Json.JsonProperty("commit_tag")]
|
[Newtonsoft.Json.JsonProperty("commit_tag")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("commit_tag")]
|
[System.Text.Json.Serialization.JsonPropertyName("commit_tag")]
|
||||||
public string? CommitTag { get; set; }
|
public string? CommitTag { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置授权类型。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("auth_type")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("auth_type")]
|
||||||
|
public string? AuthType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置会员卡 Code。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("code")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("code")]
|
||||||
|
public string? CardCode { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"mchid": "1230000109",
|
"mchid": "1230000109",
|
||||||
"merchant_name": "腾讯广场",
|
"merchant_name": "腾讯广场",
|
||||||
"shop_name": "微信支付",
|
"shop_name": "微信支付",
|
||||||
@@ -7,5 +7,7 @@
|
|||||||
"openid": "oUpF8uMuAJ2pxb1Q9zNjWUHsd",
|
"openid": "oUpF8uMuAJ2pxb1Q9zNjWUHsd",
|
||||||
"amount": 200,
|
"amount": 200,
|
||||||
"time_end": "2020-05-20T13:29:35+08:00",
|
"time_end": "2020-05-20T13:29:35+08:00",
|
||||||
"transaction_id": "1234567890"
|
"transaction_id": "1234567890",
|
||||||
|
"code": "478515832665",
|
||||||
|
"auth_type": "REGISTERED_MODE"
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sub_mchid": "1234567890",
|
"sub_mchid": "1234567890",
|
||||||
"transaction_id": "4200000533202000000000000000",
|
"transaction_id": "4200000533202000000000000000",
|
||||||
"appid": "wx8828b70xxxxxxx8",
|
"appid": "wx8828b70xxxxxxx8",
|
||||||
@@ -6,5 +6,6 @@
|
|||||||
"earn_points": true,
|
"earn_points": true,
|
||||||
"increased_points": 100,
|
"increased_points": 100,
|
||||||
"points_update_time": "2020-05-20T13:29:35.120+08:00",
|
"points_update_time": "2020-05-20T13:29:35.120+08:00",
|
||||||
|
"no_points_remarks": "促销商品不参与积分活动",
|
||||||
"total_points": 888888
|
"total_points": 888888
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user