mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-04-05 17:37:54 +08:00
feat(wxapi): 随官方更新自定义交易组件订单相关接口模型
This commit is contained in:
parent
b57806f39d
commit
9f1fe5d2c0
@ -596,6 +596,26 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
return await client.SendRequestWithJsonAsync<Models.ShopOrderGetResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /shop/order/get_list 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/order/get_order_list.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ShopOrderGetListResponse> ExecuteShopOrderGetListAsync(this WechatApiClient client, Models.ShopOrderGetListRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "shop", "order", "get_list")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.ShopOrderGetListResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /shop/order/get_list_by_finder 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/order/get_order_list_by_finder.html </para>
|
||||
@ -635,6 +655,46 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.ShopOrderGetListBySharerResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /shop/order/getpaymentparams 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/order/getpaymentparams.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ShopOrderGetPaymentParametersResponse> ExecuteShopOrderGetPaymentParametersAsync(this WechatApiClient client, Models.ShopOrderGetPaymentParametersRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "shop", "order", "getpaymentparams")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.ShopOrderGetPaymentParametersResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /shop/order/close 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/order/order_close.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ShopOrderCloseResponse> ExecuteShopOrderCloseAsync(this WechatApiClient client, Models.ShopOrderCloseRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "shop", "order", "close")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.ShopOrderCloseResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Delivery
|
||||
|
@ -9,10 +9,10 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class ReceivingAddress
|
||||
public class Address
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置收货人姓名。
|
||||
/// 获取或设置收件人姓名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("receiver_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("receiver_name")]
|
||||
@ -54,11 +54,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public string Detail { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置电话号码。
|
||||
/// 获取或设置联系电话。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("tel_number")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("tel_number")]
|
||||
public string PhoneNumber { get; set; } = string.Empty;
|
||||
public string TeleNumber { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
@ -88,6 +88,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("default_receiving_address")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("default_receiving_address")]
|
||||
public Types.ReceivingAddress? DefaultReceivingAddress { get; set; }
|
||||
public Types.Address? DefaultReceivingAddress { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -44,6 +44,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sale_price")]
|
||||
public int SalePrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 SKU 总实付价(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sku_real_price")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sku_real_price")]
|
||||
public int SKURealPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序商品页面路径。
|
||||
/// </summary>
|
||||
@ -171,7 +178,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("receiver_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("receiver_name")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string ReceiverName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置国家。
|
||||
@ -241,9 +248,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// <summary>
|
||||
/// 获取或设置订单类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("type")]
|
||||
public int Type { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("fund_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("fund_type")]
|
||||
public int FundType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置场景值。
|
||||
@ -288,5 +295,21 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("create_time")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RegularDateTimeOffsetConverter))]
|
||||
public DateTimeOffset CreateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置超时时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("expire_time")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.UnixTimestampNullableDateTimeOffsetConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("expire_time")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.UnixTimestampNullableDateTimeOffsetConverter))]
|
||||
public DateTimeOffset? ExpireTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置确认收货之后多久禁止发起售后(单位:天)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("aftersale_duration")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("aftersale_duration")]
|
||||
public int? AftersaleDuration { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /shop/order/close 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ShopOrderCloseRequest : WechatApiRequest, IInferable<ShopOrderCloseRequest, ShopOrderCloseResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
|
||||
public long? OrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商家自定义订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_order_id")]
|
||||
public string? OutOrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户的 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /shop/order/close 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ShopOrderCloseResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
@ -26,18 +26,18 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public DateTimeOffset? EndPayTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推广员用户名。
|
||||
/// 获取或设置推广员 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("finder_username")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("finder_username")]
|
||||
public string? FinderUsername { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("promoter_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_id")]
|
||||
public string? PromoterId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推广员备注。
|
||||
/// 获取或设置推广员 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("finder_remark")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("finder_remark")]
|
||||
public string? FinderRemark { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("promoter_openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_openid")]
|
||||
public string? PromoterOpenId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页页数(从 1 开始)。
|
||||
|
@ -0,0 +1,50 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /shop/order/get_list 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ShopOrderGetListRequest : WechatApiRequest, IInferable<ShopOrderGetListRequest, ShopOrderGetListResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置创建时间的开始时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("start_create_time")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RegularNullableDateTimeOffsetConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("start_create_time")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RegularNullableDateTimeOffsetConverter))]
|
||||
public DateTimeOffset? StartCreateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置创建时间的结束时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("end_create_time")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RegularNullableDateTimeOffsetConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("end_create_time")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RegularNullableDateTimeOffsetConverter))]
|
||||
public DateTimeOffset? EndCreateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置排序方式。
|
||||
/// <para>默认值:1</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sort_order")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sort_order")]
|
||||
public int SortType { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页页数(从 1 开始)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("page")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("page")]
|
||||
public int Page { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页每页数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("page_size")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
|
||||
public int Limit { get; set; } = 10;
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /shop/order/get_list 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ShopOrderGetListResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Order : ShopOrderGetResponse.Types.Order
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("orders")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("orders")]
|
||||
public Types.Order[] OrderList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单总数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_num")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_num")]
|
||||
public int TotalCount { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /shop/order/getpaymentparams 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ShopOrderGetPaymentParametersRequest : WechatApiRequest, IInferable<ShopOrderGetPaymentParametersRequest, ShopOrderGetPaymentParametersResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
|
||||
public long? OrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商家自定义订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_order_id")]
|
||||
public string? OutOrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户的 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /shop/order/getpaymentparams 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ShopOrderGetPaymentParametersResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class PaymentParameters
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("timeStamp")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("timeStamp")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long Timestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置随机字符串。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("nonceStr")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("nonceStr")]
|
||||
public string Nonce { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置下单参数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("package")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("package")]
|
||||
public string Package { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置签名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("paySign")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("paySign")]
|
||||
public string PaySign { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置签名方式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("signType")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("signType")]
|
||||
public string SignType { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置支付参数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("payment_params")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("payment_params")]
|
||||
public Types.PaymentParameters PaymentParameters { get; set; } = default!;
|
||||
}
|
||||
}
|
@ -85,8 +85,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// <summary>
|
||||
/// 获取或设置商品头图 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("head_image")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("head_image")]
|
||||
[Newtonsoft.Json.JsonProperty("head_img")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("head_img")]
|
||||
public string HeadImageUrl { get; set; } = default!;
|
||||
}
|
||||
|
||||
@ -226,11 +226,18 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public class Promotion
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置推广员用户名。
|
||||
/// 获取或设置推广员 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("finder_username")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("finder_username")]
|
||||
public string? FinderUsername { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("promoter_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_id")]
|
||||
public string? PromoterId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推广员 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promoter_openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_openid")]
|
||||
public string? PromoterOpenId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推广员昵称。
|
||||
@ -239,13 +246,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("finder_nickname")]
|
||||
public string? FinderNickname { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推广员备注。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("finder_remark")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("finder_remark")]
|
||||
public string? FinderRemark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分享者的 OpenId。
|
||||
/// </summary>
|
||||
@ -278,13 +278,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_info")]
|
||||
public Types.Payment? Payment { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置多支付信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("multi_pay_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("multi_pay_info")]
|
||||
public Types.Payment[]? PaymentList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置金额信息。
|
||||
/// </summary>
|
||||
@ -329,6 +322,20 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("fund_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("fund_type")]
|
||||
public int FundType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置场景值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("scene")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("scene")]
|
||||
public int Scene { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序订单页面路径。
|
||||
/// </summary>
|
||||
|
@ -1,10 +1,8 @@
|
||||
{
|
||||
"create_time": "2020-03-25 13:05:25",
|
||||
"type": 0,
|
||||
"out_order_id": "xxxxx",
|
||||
"openid": "oTVP50O53a7jgmawAmxKukNlq3XI",
|
||||
"path": "/pages/order.html?out_order_id=xxxxx",
|
||||
"scene": 1177,
|
||||
"out_user_id": "323232323",
|
||||
"order_detail": {
|
||||
"product_infos": [
|
||||
@ -12,16 +10,16 @@
|
||||
"out_product_id": "12345",
|
||||
"out_sku_id": "23456",
|
||||
"product_cnt": 10,
|
||||
"sale_price": 100,
|
||||
"sale_price": 100,
|
||||
"sku_real_price": 1000,
|
||||
"path": "pages/productDetail/productDetail?productId=2176180",
|
||||
"title": "洗洁精",
|
||||
"head_img": "http://img10.360buyimg.com/n1/s450x450_jfs/t1/85865/39/13611/488083/5e590a40E4bdf69c0/55c9bf645ea2b727.jpg"
|
||||
|
||||
}
|
||||
],
|
||||
"pay_info": {
|
||||
"pay_method_type": 0,
|
||||
"prepay_id": "42526234625",
|
||||
"prepay_time": "2020-03-25 14:04:25"
|
||||
"pay_method_type": 0
|
||||
},
|
||||
"price_info": {
|
||||
"order_price": 1600,
|
||||
@ -42,5 +40,7 @@
|
||||
"province": "省份,选填",
|
||||
"city": "城市,选填",
|
||||
"town": "乡镇,选填"
|
||||
}
|
||||
},
|
||||
"fund_type": 1,
|
||||
"expire_time": 1642076428
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
{
|
||||
"order_id": 123455,
|
||||
"out_order_id": "xxxxx",
|
||||
"openid": "oTVP50O53a7jgmawAmxKukNlq3XI"
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok"
|
||||
}
|
@ -1,8 +1,8 @@
|
||||
{
|
||||
"start_pay_time": "2020-03-25 12:05:25",
|
||||
"end_pay_time": "2020-04-25 12:05:25",
|
||||
"finder_username": "FINDER_USERNAME",
|
||||
"finder_remark": "REMARK",
|
||||
"promoter_id": "PROMOTER_ID",
|
||||
"promoter_openid": "OPENID",
|
||||
"page": 1,
|
||||
"page_size": 10
|
||||
}
|
@ -9,9 +9,9 @@
|
||||
"path": "/pages/order.html?out_order_id=xxxxx",
|
||||
"order_detail": {
|
||||
"promotion_info": {
|
||||
"finder_username": "FINDER_USERNAME",
|
||||
"finder_nickname": "FINDER_NICKNAME",
|
||||
"finder_remark": "FINDER_REMARK"
|
||||
"promoter_id": "PROMOTER_ID",
|
||||
"promoter_openid": "OPENID"
|
||||
},
|
||||
"product_infos": [
|
||||
{
|
||||
@ -21,7 +21,7 @@
|
||||
"sale_price": 200,
|
||||
"path": "pages/productDetail/productDetail?productId=2176180",
|
||||
"title": "标题",
|
||||
"head_image": "http://img10.360buyimg.com/n1/s450x450_jfs/t1/85865/39/13611/488083/5e590a40E4bdf69c0/55c9bf645ea2b727.jpg",
|
||||
"head_img": "http://img10.360buyimg.com/n1/s450x450_jfs/t1/85865/39/13611/488083/5e590a40E4bdf69c0/55c9bf645ea2b727.jpg",
|
||||
"real_price": 200
|
||||
}
|
||||
],
|
||||
|
@ -9,7 +9,6 @@
|
||||
"path": "/pages/order.html?out_order_id=xxxxx",
|
||||
"order_detail": {
|
||||
"promotion_info": {
|
||||
"finder_username": "FINDER_USERNAME",
|
||||
"finder_nickname": "FINDER_NICKNAME",
|
||||
"sharer_openid": "OPENID",
|
||||
"live_start_time": "2020-04-25 12:05:25"
|
||||
@ -22,7 +21,7 @@
|
||||
"sale_price": 200,
|
||||
"path": "pages/productDetail/productDetail?productId=2176180",
|
||||
"title": "标题",
|
||||
"head_image": "http://img10.360buyimg.com/n1/s450x450_jfs/t1/85865/39/13611/488083/5e590a40E4bdf69c0/55c9bf645ea2b727.jpg",
|
||||
"head_img": "http://img10.360buyimg.com/n1/s450x450_jfs/t1/85865/39/13611/488083/5e590a40E4bdf69c0/55c9bf645ea2b727.jpg",
|
||||
"real_price": 200
|
||||
}
|
||||
],
|
||||
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"page": 1,
|
||||
"page_size": 10,
|
||||
"sort_order": 1,
|
||||
"start_create_time": "2020-03-25 12:05:25",
|
||||
"end_create_time": "2020-04-25 12:05:25"
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"total_num": 2,
|
||||
"orders": []
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
{
|
||||
"order_id": 123455,
|
||||
"out_order_id": "xxxxx",
|
||||
"openid": "oTVP50O53a7jgmawAmxKukNlq3XI"
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"payment_params": {
|
||||
"timeStamp": 1639124652,
|
||||
"nonceStr": "123",
|
||||
"package": "prepay_id=123",
|
||||
"paySign": "12904324823458940394",
|
||||
"signType": "MD5"
|
||||
}
|
||||
}
|
@ -7,34 +7,32 @@
|
||||
"status": 20,
|
||||
"path": "/pages/order.html?out_order_id=xxxxx",
|
||||
"order_detail": {
|
||||
"promotion_info": {
|
||||
"promoter_id": "PROMOTER_ID",
|
||||
"finder_nickname": "FINDER_NICKNAME",
|
||||
"promoter_openid": "PROMOTER_OPENID",
|
||||
"sharer_openid": "SHARER_OPENID"
|
||||
},
|
||||
"product_infos": [
|
||||
{
|
||||
"product_id": 234245,
|
||||
"out_product_id": "12345",
|
||||
"sku_id": 23424,
|
||||
"out_sku_id": "23456",
|
||||
"product_cnt": 10,
|
||||
"sale_price": 200
|
||||
"sale_price": 200,
|
||||
"path": "pages/productDetail/productDetail?productId=2176180",
|
||||
"title": "标题",
|
||||
"head_img": "http://img10.360buyimg.com/n1/s450x450_jfs/t1/85865/39/13611/488083/5e590a40E4bdf69c0/55c9bf645ea2b727.jpg",
|
||||
"real_price": 200
|
||||
}
|
||||
],
|
||||
"pay_info":
|
||||
{
|
||||
"pay_info": {
|
||||
"pay_method": "微信支付",
|
||||
"prepay_id": "42526234625",
|
||||
"prepay_time": "2020-03-25 14:04:25",
|
||||
"transaction_id": "131456479687",
|
||||
"pay_time": "2020-03-25 14:05:25"
|
||||
"pay_time": "2020-03-25 14:05:25",
|
||||
"pay_method_type": 0
|
||||
},
|
||||
"multi_pay_info":
|
||||
[
|
||||
{
|
||||
"pay_method": "微信支付",
|
||||
"prepay_id": "42526234625",
|
||||
"prepay_time": "2020-03-25 14:04:25",
|
||||
"transaction_id": "131456479687",
|
||||
"pay_time": "2020-03-25 14:05:25"
|
||||
}
|
||||
],
|
||||
"price_info": {
|
||||
"order_price": 1600,
|
||||
"freight": 500,
|
||||
@ -42,8 +40,7 @@
|
||||
"additional_price": 100,
|
||||
"additional_remarks": "税费"
|
||||
},
|
||||
"delivery_detail":
|
||||
{
|
||||
"delivery_detail": {
|
||||
"delivery_type": 1,
|
||||
"finish_all_delivery": 1,
|
||||
"delivery_list": [
|
||||
|
Loading…
Reference in New Issue
Block a user