mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-04-05 17:37:54 +08:00
feat(tenpayv3): 随官方更新微信支付分相关接口模型
This commit is contained in:
parent
75e3899551
commit
b2c116f49f
@ -142,6 +142,30 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("amount")]
|
||||
public int Amount { get; set; }
|
||||
}
|
||||
|
||||
public class Device
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置服务开始的设备 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("start_device_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("start_device_id")]
|
||||
public string? StartDeviceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置服务结束的设备 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("end_device_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("end_device_id")]
|
||||
public string? EndDeviceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置物料编码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("materiel_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("materiel_no")]
|
||||
public string? MaterielNumber { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -228,6 +252,13 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("location")]
|
||||
public Types.Location? Location { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置设备信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("device")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("device")]
|
||||
public Types.Device? Device { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单风险金信息。
|
||||
/// </summary>
|
||||
|
@ -1,4 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
@ -16,6 +16,10 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
public class Discount : CreatePayScoreServiceOrderRequest.Types.Discount
|
||||
{
|
||||
}
|
||||
|
||||
public class Device : CreatePayScoreServiceOrderRequest.Types.Device
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -53,6 +57,13 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("post_discounts")]
|
||||
public IList<Types.Discount>? PostDiscountList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置设备信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("device")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("device")]
|
||||
public Types.Device? Device { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置总金额(单位:分)。
|
||||
/// </summary>
|
||||
|
@ -1,4 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
@ -24,6 +24,10 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
public class Location : CreatePayScoreServiceOrderRequest.Types.Location
|
||||
{
|
||||
}
|
||||
|
||||
public class Device : CreatePayScoreServiceOrderRequest.Types.Device
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -75,6 +79,13 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("location")]
|
||||
public Types.Location? Location { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置设备信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("device")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("device")]
|
||||
public Types.Device? Device { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置总金额(单位:分)。
|
||||
/// </summary>
|
||||
|
@ -24,7 +24,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("currency")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("currency")]
|
||||
public string Currency { get; set; } = "CNY";
|
||||
public string? Currency { get; set; } = "CNY";
|
||||
}
|
||||
|
||||
public class Parking
|
||||
|
Loading…
Reference in New Issue
Block a user