fix(tenpayv3): 修复创建代金券券批次相关接口的请求模型定义错误

This commit is contained in:
Fu Diwei 2021-11-18 17:48:14 +08:00
parent 330c2c52e2
commit 7b441640c4
2 changed files with 8 additions and 8 deletions

View File

@ -17,14 +17,14 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("max_coupons")]
[System.Text.Json.Serialization.JsonPropertyName("max_coupons")]
public int MaxCoupons { get; set; }
public int? MaxCoupons { get; set; }
/// <summary>
/// 获取或设置单个用户可领个数。
/// </summary>
[Newtonsoft.Json.JsonProperty("max_coupons_per_user")]
[System.Text.Json.Serialization.JsonPropertyName("max_coupons_per_user")]
public int MaxCouponsPerUser { get; set; }
public int? MaxCouponsPerUser { get; set; }
/// <summary>
/// 获取或设置单天发放上限个数。

View File

@ -17,42 +17,42 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("max_coupons")]
[System.Text.Json.Serialization.JsonPropertyName("max_coupons")]
public int MaxCoupons { get; set; }
public int? MaxCoupons { get; set; }
/// <summary>
/// 获取或设置发放总预算(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("max_amount")]
[System.Text.Json.Serialization.JsonPropertyName("max_amount")]
public long MaxAmount { get; set; }
public long? MaxAmount { get; set; }
/// <summary>
/// 获取或设置单天预算发放上限(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("max_amount_by_day")]
[System.Text.Json.Serialization.JsonPropertyName("max_amount_by_day")]
public long MaxAmountPerDay { get; set; }
public long? MaxAmountPerDay { get; set; }
/// <summary>
/// 获取或设置单个用户可领个数。
/// </summary>
[Newtonsoft.Json.JsonProperty("max_coupons_per_user")]
[System.Text.Json.Serialization.JsonPropertyName("max_coupons_per_user")]
public int MaxCouponsPerUser { get; set; }
public int? MaxCouponsPerUser { get; set; }
/// <summary>
/// 获取或设置是否开启自然人限制。
/// </summary>
[Newtonsoft.Json.JsonProperty("natural_person_limit")]
[System.Text.Json.Serialization.JsonPropertyName("natural_person_limit")]
public bool IsNaturalPersonLimit { get; set; }
public bool? IsNaturalPersonLimit { get; set; }
/// <summary>
/// 获取或设置是否开启防刷拦截。
/// </summary>
[Newtonsoft.Json.JsonProperty("prevent_api_abuse")]
[System.Text.Json.Serialization.JsonPropertyName("prevent_api_abuse")]
public bool IsPreventApiAbuse { get; set; }
public bool? IsPreventApiAbuse { get; set; }
}
public class CouponUseRule