mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-02-14 03:56:22 +08:00
feat(work): 新增第三方应用开放收银台订单相关接口
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/service/get_app_qrcode 接口的请求。</para>
|
||||
@@ -6,8 +8,9 @@
|
||||
public class CgibinServiceGetAppQrcodeRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置第三方应用 ID。
|
||||
/// 获取或设置第三方套件应用 ID。
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2020-01-13 下线。")]
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public int? AppId { get; set; }
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/service/get_auth_info 接口的响应。</para>
|
||||
@@ -211,8 +213,9 @@
|
||||
public string RoundLogoUrl { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 AppId。
|
||||
/// 获取或设置第三方套件应用 AppId。
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2020-01-13 下线。")]
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public int? AppId { get; set; }
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/service/get_order_list 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinServiceGetOrderListRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置起始时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("start_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("start_time")]
|
||||
public long StartTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置终止时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("end_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
|
||||
public long EndTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置测试模式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("test_mode")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("test_mode")]
|
||||
public int? TestMode { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,185 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/service/get_order_list 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinServiceGetOrderListResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Order
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class DealerCorp : CgibinServiceGetAuthInfoResponse.Types.DealerCorp
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("orderid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("orderid")]
|
||||
public string OrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_status")]
|
||||
public int OrderStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_type")]
|
||||
public int OrderType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置购买方 CorpId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("paid_corpid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("paid_corpid")]
|
||||
public string PayerCorpId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置下单方 CorpId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("operator_corpid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("operator_corpid")]
|
||||
public string? OperatorCorpId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置操作员 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("operator_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("operator_id")]
|
||||
public string? OperatorId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置第三方应用 SuiteId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("suiteid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("suiteid")]
|
||||
public string? SuiteId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置第三方套件应用 ID。
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2020-01-13 下线。")]
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public int AppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置版本 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("edition_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("edition_id")]
|
||||
public string EditionId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置版本名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("edition_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("edition_name")]
|
||||
public string EditionName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单价格(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("price")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("price")]
|
||||
public int Price { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置购买的人数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_count")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_count")]
|
||||
public int PaidUserCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置购买的天数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_period")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_period")]
|
||||
public int PaidDayCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置下单时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_time")]
|
||||
public long CreateTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置付款时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("paid_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("paid_time")]
|
||||
public long PayTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置购买生效期的开始时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("begin_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("begin_time")]
|
||||
public long BeginTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置购买生效期的结束时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("end_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
|
||||
public long EndTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置下单来源。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_from")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_from")]
|
||||
public int? OrderFrom { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置服务商分成金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_share_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_share_amount")]
|
||||
public int? ServiceShareAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置平台分成金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("platform_share_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("platform_share_amount")]
|
||||
public int? PlatformShareAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置代理商分成金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("dealer_share_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("dealer_share_amount")]
|
||||
public int? DealerShareAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置代理服务商企业信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("dealer_corp_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("dealer_corp_info")]
|
||||
public Types.DealerCorp? DealerCorp { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_list")]
|
||||
public Types.Order[] OrderList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/service/get_order 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinServiceGetOrderRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("orderid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("orderid")]
|
||||
public string OrderId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,172 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/service/get_order 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinServiceGetOrderResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class DealerCorp : CgibinServiceGetAuthInfoResponse.Types.DealerCorp
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("orderid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("orderid")]
|
||||
public string OrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_status")]
|
||||
public int OrderStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_type")]
|
||||
public int OrderType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置购买方 CorpId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("paid_corpid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("paid_corpid")]
|
||||
public string PayerCorpId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置下单方 CorpId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("operator_corpid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("operator_corpid")]
|
||||
public string? OperatorCorpId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置操作员 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("operator_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("operator_id")]
|
||||
public string? OperatorId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置第三方应用 SuiteId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("suiteid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("suiteid")]
|
||||
public string? SuiteId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置第三方套件应用 ID。
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2020-01-13 下线。")]
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public int AppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置版本 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("edition_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("edition_id")]
|
||||
public string EditionId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置版本名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("edition_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("edition_name")]
|
||||
public string EditionName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单价格(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("price")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("price")]
|
||||
public int Price { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置购买的人数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_count")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_count")]
|
||||
public int PaidUserCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置购买的天数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_period")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_period")]
|
||||
public int PaidDayCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置下单时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_time")]
|
||||
public long CreateTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置付款时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("paid_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("paid_time")]
|
||||
public long PayTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置购买生效期的开始时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("begin_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("begin_time")]
|
||||
public long BeginTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置购买生效期的结束时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("end_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
|
||||
public long EndTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置下单来源。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_from")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_from")]
|
||||
public int? OrderFrom { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置服务商分成金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_share_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_share_amount")]
|
||||
public int? ServiceShareAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置平台分成金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("platform_share_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("platform_share_amount")]
|
||||
public int? PlatformShareAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置代理商分成金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("dealer_share_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("dealer_share_amount")]
|
||||
public int? DealerShareAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置代理服务商企业信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("dealer_corp_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("dealer_corp_info")]
|
||||
public Types.DealerCorp? DealerCorp { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/service/prolong_try 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinServiceProlongTryRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置购买方 CorpId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("buyer_corpid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("buyer_corpid")]
|
||||
public string BuyerCorpId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置延长天数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("prolong_days")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("prolong_days")]
|
||||
public int ProlongDays { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置第三方套件应用 ID。
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2020-01-13 下线。")]
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public int? AppId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/service/prolong_try 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinServiceProlongTryResponse : WechatWorkResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置试用到期时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("try_end_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("try_end_time")]
|
||||
public long TryEndTimestamp { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user