mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-24 04:53:46 +08:00
feat(wxapi): 新增视频号小店兑换虚拟号码接口
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/order/virtualtelnumber/get 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECOrderVirtualTeleNumberGetRequest : WechatApiRequest, IInferable<ChannelsECOrderVirtualTeleNumberGetRequest, ChannelsECOrderVirtualTeleNumberGetResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
|
||||
public string OrderId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/order/virtualtelnumber/get 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECOrderVirtualTeleNumberGetResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置虚拟号码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("virtual_tel_number")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("virtual_tel_number")]
|
||||
public string VirtualTeleNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置虚拟号码过期时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("virtual_tel_expire_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("virtual_tel_expire_time")]
|
||||
public long VirtualTeleNumberExpireTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置兑换虚拟号码次数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("get_virtual_tel_cnt")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("get_virtual_tel_cnt")]
|
||||
public int GetVirtualTeleNumberCount { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user