-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
610 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
src/SKIT.FlurlHttpClient.Wechat.Api/Events/Channels/Cooperation/CooperationShopOrderEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
namespace SKIT.FlurlHttpClient.Wechat.Api.Events | ||
{ | ||
/// <summary> | ||
/// <para>表示 EVENT.cooperation_shop_order 事件的数据。</para> | ||
/// <para> | ||
/// REF: <br/> | ||
/// <![CDATA[ https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/cooperation_shop/order_callback.html ]]> | ||
/// </para> | ||
/// </summary> | ||
public class CooperationShopOrderEvent : WechatApiEvent | ||
{ | ||
public static class Types | ||
{ | ||
public class EventData | ||
{ | ||
/// <summary> | ||
/// 获取或设置店铺 AppId。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("shop_appid")] | ||
[System.Text.Json.Serialization.JsonPropertyName("shop_appid")] | ||
[System.Xml.Serialization.XmlElement("shop_appid")] | ||
public string ShopAppId { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// 获取或设置订单 ID。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("order_id")] | ||
[System.Text.Json.Serialization.JsonPropertyName("order_id")] | ||
[System.Xml.Serialization.XmlElement("order_id")] | ||
public string OrderId { get; set; } = default!; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// 获取或设置事件参数。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("EventData")] | ||
[System.Text.Json.Serialization.JsonPropertyName("EventData")] | ||
[System.Xml.Serialization.XmlElement("EventData")] | ||
public Types.EventData EventData { get; set; } = default!; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...tpClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationOrderGetRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models | ||
{ | ||
/// <summary> | ||
/// <para>表示 [POST] /channels/ec/cooperation/order/get 接口的请求。</para> | ||
/// </summary> | ||
public class ChannelsECCooperationOrderGetRequest : WechatApiRequest, IInferable<ChannelsECCooperationOrderGetRequest, ChannelsECCooperationOrderGetResponse> | ||
{ | ||
/// <summary> | ||
/// 获取或设置店铺 AppId。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("shop_appid")] | ||
[System.Text.Json.Serialization.JsonPropertyName("shop_appid")] | ||
public string ShopAppId { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// 获取或设置订单 ID。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("order_id")] | ||
[System.Text.Json.Serialization.JsonPropertyName("order_id")] | ||
public string OrderId { get; set; } = string.Empty; | ||
} | ||
} |
73 changes: 73 additions & 0 deletions
73
...pClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationOrderGetResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models | ||
{ | ||
/// <summary> | ||
/// <para>表示 [POST] /channels/ec/cooperation/order/get 接口的响应。</para> | ||
/// </summary> | ||
public class ChannelsECCooperationOrderGetResponse : WechatApiResponse | ||
{ | ||
public static class Types | ||
{ | ||
public class Order | ||
{ | ||
public static class Types | ||
{ | ||
public class OrderDetail | ||
{ | ||
public static class Types | ||
{ | ||
public class Product : ChannelsECOrderGetResponse.Types.Order.Types.OrderDetail.Types.Product | ||
{ | ||
} | ||
|
||
public class Amount : ChannelsECOrderGetResponse.Types.Order.Types.OrderDetail.Types.Amount | ||
{ | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// 获取或设置商品列表。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("product_infos")] | ||
[System.Text.Json.Serialization.JsonPropertyName("product_infos")] | ||
public Types.Product[] ProductList { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// 获取或设置金额信息。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("price_info")] | ||
[System.Text.Json.Serialization.JsonPropertyName("price_info")] | ||
public Types.Amount Amount { get; set; } = default!; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// 获取或设置订单详细信息。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("order_detail")] | ||
[System.Text.Json.Serialization.JsonPropertyName("order_detail")] | ||
public Types.OrderDetail OrderDetail { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// 获取或设置下单用户 OpenId。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("openid")] | ||
[System.Text.Json.Serialization.JsonPropertyName("openid")] | ||
public string OpenId { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// 获取或设置下单用户 UnionId。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("unionid")] | ||
[System.Text.Json.Serialization.JsonPropertyName("unionid")] | ||
public string? UnionId { get; set; } | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// 获取或设置订单信息。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("order")] | ||
[System.Text.Json.Serialization.JsonPropertyName("order")] | ||
public Types.Order Order { get; set; } = default!; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...Client.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationProductGetRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models | ||
{ | ||
/// <summary> | ||
/// <para>表示 [POST] /channels/ec/cooperation/product/get 接口的请求。</para> | ||
/// </summary> | ||
public class ChannelsECCooperationProductGetRequest : WechatApiRequest, IInferable<ChannelsECCooperationProductGetRequest, ChannelsECCooperationProductGetResponse> | ||
{ | ||
/// <summary> | ||
/// 获取或设置店铺 AppId。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("shop_appid")] | ||
[System.Text.Json.Serialization.JsonPropertyName("shop_appid")] | ||
public string ShopAppId { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// 获取或设置商品 ID。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("product_id")] | ||
[System.Text.Json.Serialization.JsonPropertyName("product_id")] | ||
public long ProductId { get; set; } | ||
} | ||
} |
Oops, something went wrong.